diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000000000000000000000000000000000..f911190c25928a04a067949c3f1a47a1b1006cdd --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +max@binimum.org. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/Dockerfile b/Dockerfile index 43bf334487dda79f73f9d423cd00d3c9a54aeb57..e53935c4986fe36eb67ab8f641563624ff630ce3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,36 @@ -FROM python:3.11-slim - -RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* +# Use a Node.js Slim image for the builder stage +FROM node:24.0.1-slim AS builder +# Set the working directory WORKDIR /app -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +# Copy package files and install dependencies +COPY package*.json ./ +RUN npm ci + +# Copy the rest of the source files and build the SvelteKit app +COPY . . +RUN npm run build -COPY main.py . +# Prune dependencies to production-only +RUN npm prune --production +# Use another Node.js Slim image for the final stage +FROM node:24.0.1-slim AS runner + +# Set the working directory +WORKDIR /app + +# Copy the built app and production node_modules from the builder stage +COPY --from=builder /app/build build/ +COPY --from=builder /app/node_modules node_modules/ +COPY package.json . + +# Expose the port the app runs on EXPOSE 7860 -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] +# Set the environment to production +ENV NODE_ENV=production + +# Specify the command to run the app +CMD ["node", "build"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d0a1fa1482eea82e19510e7920cbe3a03e41f691 --- /dev/null +++ b/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000000000000000000000000000000000000..6659a640e54aedb9ccb9be391f9d1be7836efad7 --- /dev/null +++ b/bun.lock @@ -0,0 +1,1033 @@ +{ + "lockfileVersion": 1, + "workspaces": { + "": { + "name": "tidal-ui", + "dependencies": { + "@ffmpeg/ffmpeg": "^0.12.6", + "@ffmpeg/util": "^0.12.1", + "colorthief": "^2.6.0", + "ioredis": "^5.4.1", + "jszip": "^3.10.1", + "lucide-svelte": "^0.544.0", + "shaka-player": "^4.11.7", + }, + "devDependencies": { + "@eslint/compat": "^1.2.5", + "@eslint/js": "^9.22.0", + "@sveltejs/adapter-auto": "^6.0.0", + "@sveltejs/adapter-cloudflare": "^7.2.4", + "@sveltejs/adapter-node": "^5.3.3", + "@sveltejs/adapter-vercel": "^5.10.3", + "@sveltejs/kit": "^2.22.0", + "@sveltejs/vite-plugin-svelte": "^6.0.0", + "@tailwindcss/forms": "^0.5.9", + "@tailwindcss/typography": "^0.5.15", + "@tailwindcss/vite": "^4.0.0", + "@types/colorthief": "^2.6.0", + "@types/node": "^20", + "eslint": "^9.22.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-svelte": "^3.0.0", + "globals": "^16.0.0", + "prettier": "^3.4.2", + "prettier-plugin-svelte": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.11", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", + "tailwindcss": "^4.0.0", + "typescript": "^5.0.0", + "typescript-eslint": "^8.20.0", + "vite": "^7.0.4", + "vite-plugin-devtools-json": "^1.0.0", + }, + }, + }, + "packages": { + "@cloudflare/kv-asset-handler": ["@cloudflare/kv-asset-handler@0.4.0", "", { "dependencies": { "mime": "^3.0.0" } }, "sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA=="], + + "@cloudflare/unenv-preset": ["@cloudflare/unenv-preset@2.7.6", "", { "peerDependencies": { "unenv": "2.0.0-rc.21", "workerd": "^1.20250927.0" }, "optionalPeers": ["workerd"] }, "sha512-ykG2nd3trk6jbknRCH69xL3RpGLLbKCrbTbWSOvKEq7s4jH06yLrQlRr/q9IU+dK9p1JY1EXqhFK7VG5KqhzmQ=="], + + "@cloudflare/workerd-darwin-64": ["@cloudflare/workerd-darwin-64@1.20251001.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-y1ST/cCscaRewWRnsHZdWbgiLJbki5UMGd0hMo/FLqjlztwPeDgQ5CGm5jMiCDdw/IBCpWxEukftPYR34rWNog=="], + + "@cloudflare/workerd-darwin-arm64": ["@cloudflare/workerd-darwin-arm64@1.20251001.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-+z4QHHZ/Yix82zLFYS+ZS2UV09IENFPwDCEKUWfnrM9Km2jOOW3Ua4hJNob1EgQUYs8fFZo7k5O/tpwxMsSbbQ=="], + + "@cloudflare/workerd-linux-64": ["@cloudflare/workerd-linux-64@1.20251001.0", "", { "os": "linux", "cpu": "x64" }, "sha512-hGS+O2V9Mm2XjJUaB9ZHMA5asDUaDjKko42e+accbew0PQR7zrAl1afdII6hMqCLV4tk4GAjvhv281pN4g48rg=="], + + "@cloudflare/workerd-linux-arm64": ["@cloudflare/workerd-linux-arm64@1.20251001.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-QYaMK+pRgt28N7CX1JlJ+ToegJF9LxzqdT7MjWqPgVj9D2WTyIhBVYl3wYjJRcgOlnn+DRt42+li4T64CPEeuA=="], + + "@cloudflare/workerd-windows-64": ["@cloudflare/workerd-windows-64@1.20251001.0", "", { "os": "win32", "cpu": "x64" }, "sha512-ospnDR/FlyRvrv9DSHuxDAXmzEBLDUiAHQrQHda1iUH9HqxnNQ8giz9VlPfq7NIRc7bQ1ZdIYPGLJOY4Q366Ng=="], + + "@cloudflare/workers-types": ["@cloudflare/workers-types@4.20251004.0", "", {}, "sha512-FkTBHEyOBwphbW4SLQ2XLCgNntD2wz0v1Si7NwJeN0JAPW/39/w6zhsKy3rsh+203tuSfBgsoP34+Os4RaySOw=="], + + "@cspotcode/source-map-support": ["@cspotcode/source-map-support@0.8.1", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="], + + "@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="], + + "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="], + + "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="], + + "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="], + + "@eslint-community/eslint-utils": ["@eslint-community/eslint-utils@4.9.0", "", { "dependencies": { "eslint-visitor-keys": "^3.4.3" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g=="], + + "@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.1", "", {}, "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ=="], + + "@eslint/compat": ["@eslint/compat@1.4.0", "", { "dependencies": { "@eslint/core": "^0.16.0" }, "peerDependencies": { "eslint": "^8.40 || 9" } }, "sha512-DEzm5dKeDBPm3r08Ixli/0cmxr8LkRdwxMRUIJBlSCpAwSrvFEJpVBzV+66JhDxiaqKxnRzCXhtiMiczF7Hglg=="], + + "@eslint/config-array": ["@eslint/config-array@0.21.0", "", { "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ=="], + + "@eslint/config-helpers": ["@eslint/config-helpers@0.3.1", "", {}, "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA=="], + + "@eslint/core": ["@eslint/core@0.16.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-nmC8/totwobIiFcGkDza3GIKfAw1+hLiYVrh3I1nIomQ8PEr5cxg34jnkmGawul/ep52wGRAcyeDCNtWKSOj4Q=="], + + "@eslint/eslintrc": ["@eslint/eslintrc@3.3.1", "", { "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^10.0.1", "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" } }, "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ=="], + + "@eslint/js": ["@eslint/js@9.36.0", "", {}, "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw=="], + + "@eslint/object-schema": ["@eslint/object-schema@2.1.6", "", {}, "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA=="], + + "@eslint/plugin-kit": ["@eslint/plugin-kit@0.3.5", "", { "dependencies": { "@eslint/core": "^0.15.2", "levn": "^0.4.1" } }, "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w=="], + + "@ffmpeg/ffmpeg": ["@ffmpeg/ffmpeg@0.12.15", "", { "dependencies": { "@ffmpeg/types": "^0.12.4" } }, "sha512-1C8Obr4GsN3xw+/1Ww6PFM84wSQAGsdoTuTWPOj2OizsRDLT4CXTaVjPhkw6ARyDus1B9X/L2LiXHqYYsGnRFw=="], + + "@ffmpeg/types": ["@ffmpeg/types@0.12.4", "", {}, "sha512-k9vJQNBGTxE5AhYDtOYR5rO5fKsspbg51gbcwtbkw2lCdoIILzklulcjJfIDwrtn7XhDeF2M+THwJ2FGrLeV6A=="], + + "@ffmpeg/util": ["@ffmpeg/util@0.12.2", "", {}, "sha512-ouyoW+4JB7WxjeZ2y6KpRvB+dLp7Cp4ro8z0HIVpZVCM7AwFlHa0c4R8Y/a4M3wMqATpYKhC7lSFHQ0T11MEDw=="], + + "@humanfs/core": ["@humanfs/core@0.19.1", "", {}, "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA=="], + + "@humanfs/node": ["@humanfs/node@0.16.7", "", { "dependencies": { "@humanfs/core": "^0.19.1", "@humanwhocodes/retry": "^0.4.0" } }, "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ=="], + + "@humanwhocodes/module-importer": ["@humanwhocodes/module-importer@1.0.1", "", {}, "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA=="], + + "@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="], + + "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="], + + "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="], + + "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="], + + "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="], + + "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.0.5", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="], + + "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="], + + "@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.0.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="], + + "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="], + + "@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="], + + "@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="], + + "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="], + + "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="], + + "@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="], + + "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="], + + "@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="], + + "@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="], + + "@img/sharp-wasm32": ["@img/sharp-wasm32@0.33.5", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="], + + "@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.33.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="], + + "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.33.5", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="], + + "@ioredis/commands": ["@ioredis/commands@1.4.0", "", {}, "sha512-aFT2yemJJo+TZCmieA7qnYGQooOS7QfNmYrzGtsYd3g9j5iDP8AimYYAesf79ohjbLG12XxC4nG5DyEnC88AsQ=="], + + "@isaacs/cliui": ["@isaacs/cliui@8.0.2", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="], + + "@isaacs/fs-minipass": ["@isaacs/fs-minipass@4.0.1", "", { "dependencies": { "minipass": "^7.0.4" } }, "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w=="], + + "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], + + "@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="], + + "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + + "@lokesh.dhakar/quantize": ["@lokesh.dhakar/quantize@1.4.0", "", {}, "sha512-+//cqVWKis//t0YH62EDtwaFSPG/CDtYNg4CZmzNmG2d5W17Iu3fuDAdpQXCDHUDrrU9q0veze4A7tPZXlR/mg=="], + + "@mapbox/node-pre-gyp": ["@mapbox/node-pre-gyp@2.0.0", "", { "dependencies": { "consola": "^3.2.3", "detect-libc": "^2.0.0", "https-proxy-agent": "^7.0.5", "node-fetch": "^2.6.7", "nopt": "^8.0.0", "semver": "^7.5.3", "tar": "^7.4.0" }, "bin": { "node-pre-gyp": "bin/node-pre-gyp" } }, "sha512-llMXd39jtP0HpQLVI37Bf1m2ADlEb35GYSh1SDSLsBhR+5iCxiNGlT31yqbNtVHygHAtMy6dWFERpU2JgufhPg=="], + + "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="], + + "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="], + + "@nodelib/fs.walk": ["@nodelib/fs.walk@1.2.8", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="], + + "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], + + "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="], + + "@poppinss/colors": ["@poppinss/colors@4.1.5", "", { "dependencies": { "kleur": "^4.1.5" } }, "sha512-FvdDqtcRCtz6hThExcFOgW0cWX+xwSMWcRuQe5ZEb2m7cVQOAVZOIMt+/v9RxGiD9/OY16qJBXK4CVKWAPalBw=="], + + "@poppinss/dumper": ["@poppinss/dumper@0.6.4", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@sindresorhus/is": "^7.0.2", "supports-color": "^10.0.0" } }, "sha512-iG0TIdqv8xJ3Lt9O8DrPRxw1MRLjNpoqiSGU03P/wNLP/s0ra0udPJ1J2Tx5M0J3H/cVyEgpbn8xUKRY9j59kQ=="], + + "@poppinss/exception": ["@poppinss/exception@1.2.2", "", {}, "sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg=="], + + "@rollup/plugin-commonjs": ["@rollup/plugin-commonjs@28.0.6", "", { "dependencies": { "@rollup/pluginutils": "^5.0.1", "commondir": "^1.0.1", "estree-walker": "^2.0.2", "fdir": "^6.2.0", "is-reference": "1.2.1", "magic-string": "^0.30.3", "picomatch": "^4.0.2" }, "peerDependencies": { "rollup": "^2.68.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-XSQB1K7FUU5QP+3lOQmVCE3I0FcbbNvmNT4VJSj93iUjayaARrTQeoRdiYQoftAJBLrR9t2agwAd3ekaTgHNlw=="], + + "@rollup/plugin-json": ["@rollup/plugin-json@6.1.0", "", { "dependencies": { "@rollup/pluginutils": "^5.1.0" }, "peerDependencies": { "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA=="], + + "@rollup/plugin-node-resolve": ["@rollup/plugin-node-resolve@16.0.2", "", { "dependencies": { "@rollup/pluginutils": "^5.0.1", "@types/resolve": "1.20.2", "deepmerge": "^4.2.2", "is-module": "^1.0.0", "resolve": "^1.22.1" }, "peerDependencies": { "rollup": "^2.78.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-tCtHJ2BlhSoK4cCs25NMXfV7EALKr0jyasmqVCq3y9cBrKdmJhtsy1iTz36Xhk/O+pDJbzawxF4K6ZblqCnITQ=="], + + "@rollup/pluginutils": ["@rollup/pluginutils@5.3.0", "", { "dependencies": { "@types/estree": "^1.0.0", "estree-walker": "^2.0.2", "picomatch": "^4.0.2" }, "peerDependencies": { "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q=="], + + "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.52.3", "", { "os": "android", "cpu": "arm" }, "sha512-h6cqHGZ6VdnwliFG1NXvMPTy/9PS3h8oLh7ImwR+kl+oYnQizgjxsONmmPSb2C66RksfkfIxEVtDSEcJiO0tqw=="], + + "@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.52.3", "", { "os": "android", "cpu": "arm64" }, "sha512-wd+u7SLT/u6knklV/ifG7gr5Qy4GUbH2hMWcDauPFJzmCZUAJ8L2bTkVXC2niOIxp8lk3iH/QX8kSrUxVZrOVw=="], + + "@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.52.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-lj9ViATR1SsqycwFkJCtYfQTheBdvlWJqzqxwc9f2qrcVrQaF/gCuBRTiTolkRWS6KvNxSk4KHZWG7tDktLgjg=="], + + "@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.52.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-+Dyo7O1KUmIsbzx1l+4V4tvEVnVQqMOIYtrxK7ncLSknl1xnMHLgn7gddJVrYPNZfEB8CIi3hK8gq8bDhb3h5A=="], + + "@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.52.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-u9Xg2FavYbD30g3DSfNhxgNrxhi6xVG4Y6i9Ur1C7xUuGDW3banRbXj+qgnIrwRN4KeJ396jchwy9bCIzbyBEQ=="], + + "@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.52.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-5M8kyi/OX96wtD5qJR89a/3x5x8x5inXBZO04JWhkQb2JWavOWfjgkdvUqibGJeNNaz1/Z1PPza5/tAPXICI6A=="], + + "@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.52.3", "", { "os": "linux", "cpu": "arm" }, "sha512-IoerZJ4l1wRMopEHRKOO16e04iXRDyZFZnNZKrWeNquh5d6bucjezgd+OxG03mOMTnS1x7hilzb3uURPkJ0OfA=="], + + "@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.52.3", "", { "os": "linux", "cpu": "arm" }, "sha512-ZYdtqgHTDfvrJHSh3W22TvjWxwOgc3ThK/XjgcNGP2DIwFIPeAPNsQxrJO5XqleSlgDux2VAoWQ5iJrtaC1TbA=="], + + "@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.52.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-NcViG7A0YtuFDA6xWSgmFb6iPFzHlf5vcqb2p0lGEbT+gjrEEz8nC/EeDHvx6mnGXnGCC1SeVV+8u+smj0CeGQ=="], + + "@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.52.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-d3pY7LWno6SYNXRm6Ebsq0DJGoiLXTb83AIPCXl9fmtIQs/rXoS8SJxxUNtFbJ5MiOvs+7y34np77+9l4nfFMw=="], + + "@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.52.3", "", { "os": "linux", "cpu": "none" }, "sha512-3y5GA0JkBuirLqmjwAKwB0keDlI6JfGYduMlJD/Rl7fvb4Ni8iKdQs1eiunMZJhwDWdCvrcqXRY++VEBbvk6Eg=="], + + "@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.52.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-AUUH65a0p3Q0Yfm5oD2KVgzTKgwPyp9DSXc3UA7DtxhEb/WSPfbG4wqXeSN62OG5gSo18em4xv6dbfcUGXcagw=="], + + "@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.52.3", "", { "os": "linux", "cpu": "none" }, "sha512-1makPhFFVBqZE+XFg3Dkq+IkQ7JvmUrwwqaYBL2CE+ZpxPaqkGaiWFEWVGyvTwZace6WLJHwjVh/+CXbKDGPmg=="], + + "@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.52.3", "", { "os": "linux", "cpu": "none" }, "sha512-OOFJa28dxfl8kLOPMUOQBCO6z3X2SAfzIE276fwT52uXDWUS178KWq0pL7d6p1kz7pkzA0yQwtqL0dEPoVcRWg=="], + + "@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.52.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-jMdsML2VI5l+V7cKfZx3ak+SLlJ8fKvLJ0Eoa4b9/vCUrzXKgoKxvHqvJ/mkWhFiyp88nCkM5S2v6nIwRtPcgg=="], + + "@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.52.3", "", { "os": "linux", "cpu": "x64" }, "sha512-tPgGd6bY2M2LJTA1uGq8fkSPK8ZLYjDjY+ZLK9WHncCnfIz29LIXIqUgzCR0hIefzy6Hpbe8Th5WOSwTM8E7LA=="], + + "@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.52.3", "", { "os": "linux", "cpu": "x64" }, "sha512-BCFkJjgk+WFzP+tcSMXq77ymAPIxsX9lFJWs+2JzuZTLtksJ2o5hvgTdIcZ5+oKzUDMwI0PfWzRBYAydAHF2Mw=="], + + "@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.52.3", "", { "os": "none", "cpu": "arm64" }, "sha512-KTD/EqjZF3yvRaWUJdD1cW+IQBk4fbQaHYJUmP8N4XoKFZilVL8cobFSTDnjTtxWJQ3JYaMgF4nObY/+nYkumA=="], + + "@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.52.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-+zteHZdoUYLkyYKObGHieibUFLbttX2r+58l27XZauq0tcWYYuKUwY2wjeCN9oK1Um2YgH2ibd6cnX/wFD7DuA=="], + + "@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.52.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-of1iHkTQSo3kr6dTIRX6t81uj/c/b15HXVsPcEElN5sS859qHrOepM5p9G41Hah+CTqSh2r8Bm56dL2z9UQQ7g=="], + + "@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.52.3", "", { "os": "win32", "cpu": "x64" }, "sha512-s0hybmlHb56mWVZQj8ra9048/WZTPLILKxcvcq+8awSZmyiSUZjjem1AhU3Tf4ZKpYhK4mg36HtHDOe8QJS5PQ=="], + + "@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.52.3", "", { "os": "win32", "cpu": "x64" }, "sha512-zGIbEVVXVtauFgl3MRwGWEN36P5ZGenHRMgNw88X5wEhEBpq0XrMEZwOn07+ICrwM17XO5xfMZqh0OldCH5VTA=="], + + "@sindresorhus/is": ["@sindresorhus/is@7.1.0", "", {}, "sha512-7F/yz2IphV39hiS2zB4QYVkivrptHHh0K8qJJd9HhuWSdvf8AN7NpebW3CcDZDBQsUPMoDKWsY2WWgW7bqOcfA=="], + + "@speed-highlight/core": ["@speed-highlight/core@1.2.7", "", {}, "sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g=="], + + "@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="], + + "@sveltejs/acorn-typescript": ["@sveltejs/acorn-typescript@1.0.6", "", { "peerDependencies": { "acorn": "^8.9.0" } }, "sha512-4awhxtMh4cx9blePWl10HRHj8Iivtqj+2QdDCSMDzxG+XKa9+VCNupQuCuvzEhYPzZSrX+0gC+0lHA/0fFKKQQ=="], + + "@sveltejs/adapter-auto": ["@sveltejs/adapter-auto@6.1.1", "", { "peerDependencies": { "@sveltejs/kit": "^2.0.0" } }, "sha512-cBNt4jgH4KuaNO5gRSB2CZKkGtz+OCZ8lPjRQGjhvVUD4akotnj2weUia6imLl2v07K3IgsQRyM36909miSwoQ=="], + + "@sveltejs/adapter-cloudflare": ["@sveltejs/adapter-cloudflare@7.2.4", "", { "dependencies": { "@cloudflare/workers-types": "^4.20250507.0", "worktop": "0.8.0-next.18" }, "peerDependencies": { "@sveltejs/kit": "^2.0.0", "wrangler": "^4.0.0" } }, "sha512-uD8VlOuGXGuZWL+zbBYSjtmC4WDtlonUodfqAZ/COd5uIy2Z0QptIicB/nkTrGNI9sbmzgf7z0N09CHyWYlUvQ=="], + + "@sveltejs/adapter-node": ["@sveltejs/adapter-node@5.3.3", "", { "dependencies": { "@rollup/plugin-commonjs": "^28.0.1", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.0", "rollup": "^4.9.5" }, "peerDependencies": { "@sveltejs/kit": "^2.4.0" } }, "sha512-SRDVuFBkmpKGsA9b0wYaCrrSChq2Yv5Dv8g7WiZcs8E69vdQNRamN0DzQV9/rEixvuRkojATLADNeQ+6FeyVNQ=="], + + "@sveltejs/adapter-vercel": ["@sveltejs/adapter-vercel@5.10.3", "", { "dependencies": { "@vercel/nft": "^0.30.0", "esbuild": "^0.25.4" }, "peerDependencies": { "@sveltejs/kit": "^2.4.0" } }, "sha512-fW2ZhMiOrUKsJJhiB4ift9sYDSFWgvH3N22cjf8ukOyWgHolb9SmSS3owr+nHQNlgTEAdy4eIr4Fnasw3nkxTw=="], + + "@sveltejs/kit": ["@sveltejs/kit@2.43.7", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/cookie": "^0.6.0", "acorn": "^8.14.1", "cookie": "^0.6.0", "devalue": "^5.3.2", "esm-env": "^1.2.2", "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", "sade": "^1.8.1", "set-cookie-parser": "^2.6.0", "sirv": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0", "svelte": "^4.0.0 || ^5.0.0-next.0", "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0" }, "optionalPeers": ["@opentelemetry/api"], "bin": { "svelte-kit": "svelte-kit.js" } }, "sha512-6trpyltB9XZNkM8cfVHG9U2urAH4NPD7UeO0wiBvZjD8gHj6w9bVeWnBQgnO8LPNpzOhSlwnZDk355OOAa/9Zw=="], + + "@sveltejs/vite-plugin-svelte": ["@sveltejs/vite-plugin-svelte@6.2.1", "", { "dependencies": { "@sveltejs/vite-plugin-svelte-inspector": "^5.0.0", "debug": "^4.4.1", "deepmerge": "^4.3.1", "magic-string": "^0.30.17", "vitefu": "^1.1.1" }, "peerDependencies": { "svelte": "^5.0.0", "vite": "^6.3.0 || ^7.0.0" } }, "sha512-YZs/OSKOQAQCnJvM/P+F1URotNnYNeU3P2s4oIpzm1uFaqUEqRxUB0g5ejMjEb5Gjb9/PiBI5Ktrq4rUUF8UVQ=="], + + "@sveltejs/vite-plugin-svelte-inspector": ["@sveltejs/vite-plugin-svelte-inspector@5.0.1", "", { "dependencies": { "debug": "^4.4.1" }, "peerDependencies": { "@sveltejs/vite-plugin-svelte": "^6.0.0-next.0", "svelte": "^5.0.0", "vite": "^6.3.0 || ^7.0.0" } }, "sha512-ubWshlMk4bc8mkwWbg6vNvCeT7lGQojE3ijDh3QTR6Zr/R+GXxsGbyH4PExEPpiFmqPhYiVSVmHBjUcVc1JIrA=="], + + "@tailwindcss/forms": ["@tailwindcss/forms@0.5.10", "", { "dependencies": { "mini-svg-data-uri": "^1.2.3" }, "peerDependencies": { "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" } }, "sha512-utI1ONF6uf/pPNO68kmN1b8rEwNXv3czukalo8VtJH8ksIkZXr3Q3VYudZLkCsDd4Wku120uF02hYK25XGPorw=="], + + "@tailwindcss/node": ["@tailwindcss/node@4.1.14", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "enhanced-resolve": "^5.18.3", "jiti": "^2.6.0", "lightningcss": "1.30.1", "magic-string": "^0.30.19", "source-map-js": "^1.2.1", "tailwindcss": "4.1.14" } }, "sha512-hpz+8vFk3Ic2xssIA3e01R6jkmsAhvkQdXlEbRTk6S10xDAtiQiM3FyvZVGsucefq764euO/b8WUW9ysLdThHw=="], + + "@tailwindcss/oxide": ["@tailwindcss/oxide@4.1.14", "", { "dependencies": { "detect-libc": "^2.0.4", "tar": "^7.5.1" }, "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.1.14", "@tailwindcss/oxide-darwin-arm64": "4.1.14", "@tailwindcss/oxide-darwin-x64": "4.1.14", "@tailwindcss/oxide-freebsd-x64": "4.1.14", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.14", "@tailwindcss/oxide-linux-arm64-gnu": "4.1.14", "@tailwindcss/oxide-linux-arm64-musl": "4.1.14", "@tailwindcss/oxide-linux-x64-gnu": "4.1.14", "@tailwindcss/oxide-linux-x64-musl": "4.1.14", "@tailwindcss/oxide-wasm32-wasi": "4.1.14", "@tailwindcss/oxide-win32-arm64-msvc": "4.1.14", "@tailwindcss/oxide-win32-x64-msvc": "4.1.14" } }, "sha512-23yx+VUbBwCg2x5XWdB8+1lkPajzLmALEfMb51zZUBYaYVPDQvBSD/WYDqiVyBIo2BZFa3yw1Rpy3G2Jp+K0dw=="], + + "@tailwindcss/oxide-android-arm64": ["@tailwindcss/oxide-android-arm64@4.1.14", "", { "os": "android", "cpu": "arm64" }, "sha512-a94ifZrGwMvbdeAxWoSuGcIl6/DOP5cdxagid7xJv6bwFp3oebp7y2ImYsnZBMTwjn5Ev5xESvS3FFYUGgPODQ=="], + + "@tailwindcss/oxide-darwin-arm64": ["@tailwindcss/oxide-darwin-arm64@4.1.14", "", { "os": "darwin", "cpu": "arm64" }, "sha512-HkFP/CqfSh09xCnrPJA7jud7hij5ahKyWomrC3oiO2U9i0UjP17o9pJbxUN0IJ471GTQQmzwhp0DEcpbp4MZTA=="], + + "@tailwindcss/oxide-darwin-x64": ["@tailwindcss/oxide-darwin-x64@4.1.14", "", { "os": "darwin", "cpu": "x64" }, "sha512-eVNaWmCgdLf5iv6Qd3s7JI5SEFBFRtfm6W0mphJYXgvnDEAZ5sZzqmI06bK6xo0IErDHdTA5/t7d4eTfWbWOFw=="], + + "@tailwindcss/oxide-freebsd-x64": ["@tailwindcss/oxide-freebsd-x64@4.1.14", "", { "os": "freebsd", "cpu": "x64" }, "sha512-QWLoRXNikEuqtNb0dhQN6wsSVVjX6dmUFzuuiL09ZeXju25dsei2uIPl71y2Ic6QbNBsB4scwBoFnlBfabHkEw=="], + + "@tailwindcss/oxide-linux-arm-gnueabihf": ["@tailwindcss/oxide-linux-arm-gnueabihf@4.1.14", "", { "os": "linux", "cpu": "arm" }, "sha512-VB4gjQni9+F0VCASU+L8zSIyjrLLsy03sjcR3bM0V2g4SNamo0FakZFKyUQ96ZVwGK4CaJsc9zd/obQy74o0Fw=="], + + "@tailwindcss/oxide-linux-arm64-gnu": ["@tailwindcss/oxide-linux-arm64-gnu@4.1.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-qaEy0dIZ6d9vyLnmeg24yzA8XuEAD9WjpM5nIM1sUgQ/Zv7cVkharPDQcmm/t/TvXoKo/0knI3me3AGfdx6w1w=="], + + "@tailwindcss/oxide-linux-arm64-musl": ["@tailwindcss/oxide-linux-arm64-musl@4.1.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-ISZjT44s59O8xKsPEIesiIydMG/sCXoMBCqsphDm/WcbnuWLxxb+GcvSIIA5NjUw6F8Tex7s5/LM2yDy8RqYBQ=="], + + "@tailwindcss/oxide-linux-x64-gnu": ["@tailwindcss/oxide-linux-x64-gnu@4.1.14", "", { "os": "linux", "cpu": "x64" }, "sha512-02c6JhLPJj10L2caH4U0zF8Hji4dOeahmuMl23stk0MU1wfd1OraE7rOloidSF8W5JTHkFdVo/O7uRUJJnUAJg=="], + + "@tailwindcss/oxide-linux-x64-musl": ["@tailwindcss/oxide-linux-x64-musl@4.1.14", "", { "os": "linux", "cpu": "x64" }, "sha512-TNGeLiN1XS66kQhxHG/7wMeQDOoL0S33x9BgmydbrWAb9Qw0KYdd8o1ifx4HOGDWhVmJ+Ul+JQ7lyknQFilO3Q=="], + + "@tailwindcss/oxide-wasm32-wasi": ["@tailwindcss/oxide-wasm32-wasi@4.1.14", "", { "cpu": "none" }, "sha512-uZYAsaW/jS/IYkd6EWPJKW/NlPNSkWkBlaeVBi/WsFQNP05/bzkebUL8FH1pdsqx4f2fH/bWFcUABOM9nfiJkQ=="], + + "@tailwindcss/oxide-win32-arm64-msvc": ["@tailwindcss/oxide-win32-arm64-msvc@4.1.14", "", { "os": "win32", "cpu": "arm64" }, "sha512-Az0RnnkcvRqsuoLH2Z4n3JfAef0wElgzHD5Aky/e+0tBUxUhIeIqFBTMNQvmMRSP15fWwmvjBxZ3Q8RhsDnxAA=="], + + "@tailwindcss/oxide-win32-x64-msvc": ["@tailwindcss/oxide-win32-x64-msvc@4.1.14", "", { "os": "win32", "cpu": "x64" }, "sha512-ttblVGHgf68kEE4om1n/n44I0yGPkCPbLsqzjvybhpwa6mKKtgFfAzy6btc3HRmuW7nHe0OOrSeNP9sQmmH9XA=="], + + "@tailwindcss/typography": ["@tailwindcss/typography@0.5.19", "", { "dependencies": { "postcss-selector-parser": "6.0.10" }, "peerDependencies": { "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1" } }, "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg=="], + + "@tailwindcss/vite": ["@tailwindcss/vite@4.1.14", "", { "dependencies": { "@tailwindcss/node": "4.1.14", "@tailwindcss/oxide": "4.1.14", "tailwindcss": "4.1.14" }, "peerDependencies": { "vite": "^5.2.0 || ^6 || ^7" } }, "sha512-BoFUoU0XqgCUS1UXWhmDJroKKhNXeDzD7/XwabjkDIAbMnc4ULn5e2FuEuBbhZ6ENZoSYzKlzvZ44Yr6EUDUSA=="], + + "@tokenizer/token": ["@tokenizer/token@0.3.0", "", {}, "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="], + + "@types/colorthief": ["@types/colorthief@2.6.0", "", {}, "sha512-GZBHPzkgEsyZqO7a9rhqkcW2BJZW+UpRlIUorY8vfOk7BVFVZMuDvZRPyaExv7ML0DaeB/t78PUOTkGo/THDpQ=="], + + "@types/cookie": ["@types/cookie@0.6.0", "", {}, "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="], + + "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], + + "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], + + "@types/ndarray": ["@types/ndarray@1.0.14", "", {}, "sha512-oANmFZMnFQvb219SSBIhI1Ih/r4CvHDOzkWyJS/XRqkMrGH5/kaPSA1hQhdIBzouaE+5KpE/f5ylI9cujmckQg=="], + + "@types/node": ["@types/node@20.19.19", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-pb1Uqj5WJP7wrcbLU7Ru4QtA0+3kAXrkutGiD26wUKzSMgNNaPARTUDQmElUXp64kh3cWdou3Q0C7qwwxqSFmg=="], + + "@types/resolve": ["@types/resolve@1.20.2", "", {}, "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q=="], + + "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.45.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.45.0", "@typescript-eslint/type-utils": "8.45.0", "@typescript-eslint/utils": "8.45.0", "@typescript-eslint/visitor-keys": "8.45.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.45.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-HC3y9CVuevvWCl/oyZuI47dOeDF9ztdMEfMH8/DW/Mhwa9cCLnK1oD7JoTVGW/u7kFzNZUKUoyJEqkaJh5y3Wg=="], + + "@typescript-eslint/parser": ["@typescript-eslint/parser@8.45.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.45.0", "@typescript-eslint/types": "8.45.0", "@typescript-eslint/typescript-estree": "8.45.0", "@typescript-eslint/visitor-keys": "8.45.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-TGf22kon8KW+DeKaUmOibKWktRY8b2NSAZNdtWh798COm1NWx8+xJ6iFBtk3IvLdv6+LGLJLRlyhrhEDZWargQ=="], + + "@typescript-eslint/project-service": ["@typescript-eslint/project-service@8.45.0", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.45.0", "@typescript-eslint/types": "^8.45.0", "debug": "^4.3.4" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-3pcVHwMG/iA8afdGLMuTibGR7pDsn9RjDev6CCB+naRsSYs2pns5QbinF4Xqw6YC/Sj3lMrm/Im0eMfaa61WUg=="], + + "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.45.0", "", { "dependencies": { "@typescript-eslint/types": "8.45.0", "@typescript-eslint/visitor-keys": "8.45.0" } }, "sha512-clmm8XSNj/1dGvJeO6VGH7EUSeA0FMs+5au/u3lrA3KfG8iJ4u8ym9/j2tTEoacAffdW1TVUzXO30W1JTJS7dA=="], + + "@typescript-eslint/tsconfig-utils": ["@typescript-eslint/tsconfig-utils@8.45.0", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-aFdr+c37sc+jqNMGhH+ajxPXwjv9UtFZk79k8pLoJ6p4y0snmYpPA52GuWHgt2ZF4gRRW6odsEj41uZLojDt5w=="], + + "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.45.0", "", { "dependencies": { "@typescript-eslint/types": "8.45.0", "@typescript-eslint/typescript-estree": "8.45.0", "@typescript-eslint/utils": "8.45.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-bpjepLlHceKgyMEPglAeULX1vixJDgaKocp0RVJ5u4wLJIMNuKtUXIczpJCPcn2waII0yuvks/5m5/h3ZQKs0A=="], + + "@typescript-eslint/types": ["@typescript-eslint/types@8.45.0", "", {}, "sha512-WugXLuOIq67BMgQInIxxnsSyRLFxdkJEJu8r4ngLR56q/4Q5LrbfkFRH27vMTjxEK8Pyz7QfzuZe/G15qQnVRA=="], + + "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.45.0", "", { "dependencies": { "@typescript-eslint/project-service": "8.45.0", "@typescript-eslint/tsconfig-utils": "8.45.0", "@typescript-eslint/types": "8.45.0", "@typescript-eslint/visitor-keys": "8.45.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-GfE1NfVbLam6XQ0LcERKwdTTPlLvHvXXhOeUGC1OXi4eQBoyy1iVsW+uzJ/J9jtCz6/7GCQ9MtrQ0fml/jWCnA=="], + + "@typescript-eslint/utils": ["@typescript-eslint/utils@8.45.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.45.0", "@typescript-eslint/types": "8.45.0", "@typescript-eslint/typescript-estree": "8.45.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-bxi1ht+tLYg4+XV2knz/F7RVhU0k6VrSMc9sb8DQ6fyCTrGQLHfo7lDtN0QJjZjKkLA2ThrKuCdHEvLReqtIGg=="], + + "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.45.0", "", { "dependencies": { "@typescript-eslint/types": "8.45.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-qsaFBA3e09MIDAGFUrTk+dzqtfv1XPVz8t8d1f0ybTzrCY7BKiMC5cjrl1O/P7UmHsNyW90EYSkU/ZWpmXelag=="], + + "@vercel/nft": ["@vercel/nft@0.30.2", "", { "dependencies": { "@mapbox/node-pre-gyp": "^2.0.0", "@rollup/pluginutils": "^5.1.3", "acorn": "^8.6.0", "acorn-import-attributes": "^1.9.5", "async-sema": "^3.1.1", "bindings": "^1.4.0", "estree-walker": "2.0.2", "glob": "^10.4.5", "graceful-fs": "^4.2.9", "node-gyp-build": "^4.2.2", "picomatch": "^4.0.2", "resolve-from": "^5.0.0" }, "bin": { "nft": "out/cli.js" } }, "sha512-pquXF3XZFg/T3TBor08rUhIGgOhdSilbn7WQLVP/aVSSO+25Rs4H/m3nxNDQ2x3znX7Z3yYjryN8xaLwypcwQg=="], + + "abbrev": ["abbrev@3.0.1", "", {}, "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg=="], + + "abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="], + + "acorn": ["acorn@8.15.0", "", { "bin": "bin/acorn" }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="], + + "acorn-import-attributes": ["acorn-import-attributes@1.9.5", "", { "peerDependencies": { "acorn": "^8" } }, "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ=="], + + "acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="], + + "acorn-walk": ["acorn-walk@8.3.2", "", {}, "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A=="], + + "agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="], + + "ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="], + + "ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], + + "ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], + + "argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="], + + "aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="], + + "async-sema": ["async-sema@3.1.1", "", {}, "sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg=="], + + "axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="], + + "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], + + "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="], + + "bindings": ["bindings@1.5.0", "", { "dependencies": { "file-uri-to-path": "1.0.0" } }, "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ=="], + + "blake3-wasm": ["blake3-wasm@2.1.5", "", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="], + + "brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="], + + "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], + + "buffer": ["buffer@6.0.3", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA=="], + + "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], + + "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="], + + "chownr": ["chownr@3.0.0", "", {}, "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g=="], + + "clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="], + + "cluster-key-slot": ["cluster-key-slot@1.1.2", "", {}, "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA=="], + + "color": ["color@4.2.3", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="], + + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], + + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], + + "color-string": ["color-string@1.9.1", "", { "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="], + + "colorthief": ["colorthief@2.6.0", "", { "dependencies": { "@lokesh.dhakar/quantize": "^1.4.0", "file-type": "^16.5.3", "ndarray-pixels": "^4.1.0", "sharp": "^0.33.5" } }, "sha512-yL3B7laeOr4kH9XasFF5rl+9Taz+Pmt/CRbaTI6XepZFyQvk4K/abaGKIAsngVpxKkgFeoJ2IwdRpS228icrig=="], + + "commondir": ["commondir@1.0.1", "", {}, "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg=="], + + "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="], + + "consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="], + + "cookie": ["cookie@0.6.0", "", {}, "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="], + + "core-util-is": ["core-util-is@1.0.3", "", {}, "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="], + + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + + "cssesc": ["cssesc@3.0.0", "", { "bin": "bin/cssesc" }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], + + "cwise-compiler": ["cwise-compiler@1.1.3", "", { "dependencies": { "uniq": "^1.0.0" } }, "sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ=="], + + "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "deep-is": ["deep-is@0.1.4", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="], + + "deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="], + + "defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="], + + "denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="], + + "detect-libc": ["detect-libc@2.1.1", "", {}, "sha512-ecqj/sy1jcK1uWrwpR67UhYrIFQ+5WlGxth34WquCbamhFA6hkkwiu37o6J5xCHdo1oixJRfVRw+ywV+Hq/0Aw=="], + + "devalue": ["devalue@5.3.2", "", {}, "sha512-UDsjUbpQn9kvm68slnrs+mfxwFkIflOhkanmyabZ8zOYk8SMEIbJ3TK+88g70hSIeytu4y18f0z/hYHMTrXIWw=="], + + "eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="], + + "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], + + "enhanced-resolve": ["enhanced-resolve@5.18.3", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" } }, "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww=="], + + "error-stack-parser-es": ["error-stack-parser-es@1.0.5", "", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="], + + "esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": "bin/esbuild" }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="], + + "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], + + "eslint": ["eslint@9.36.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", "@eslint/config-helpers": "^0.3.1", "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "9.36.0", "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.4.0", "eslint-visitor-keys": "^4.2.1", "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "bin": "bin/eslint.js" }, "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ=="], + + "eslint-config-prettier": ["eslint-config-prettier@10.1.8", "", { "peerDependencies": { "eslint": ">=7.0.0" }, "bin": "bin/cli.js" }, "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w=="], + + "eslint-plugin-svelte": ["eslint-plugin-svelte@3.12.4", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.6.1", "@jridgewell/sourcemap-codec": "^1.5.0", "esutils": "^2.0.3", "globals": "^16.0.0", "known-css-properties": "^0.37.0", "postcss": "^8.4.49", "postcss-load-config": "^3.1.4", "postcss-safe-parser": "^7.0.0", "semver": "^7.6.3", "svelte-eslint-parser": "^1.3.0" }, "peerDependencies": { "eslint": "^8.57.1 || ^9.0.0", "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" } }, "sha512-hD7wPe+vrPgx3U2X2b/wyTMtWobm660PygMGKrWWYTc9lvtY8DpNFDaU2CJQn1szLjGbn/aJ3g8WiXuKakrEkw=="], + + "eslint-scope": ["eslint-scope@8.4.0", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg=="], + + "eslint-visitor-keys": ["eslint-visitor-keys@4.2.1", "", {}, "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ=="], + + "esm-env": ["esm-env@1.2.2", "", {}, "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="], + + "espree": ["espree@10.4.0", "", { "dependencies": { "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^4.2.1" } }, "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ=="], + + "esquery": ["esquery@1.6.0", "", { "dependencies": { "estraverse": "^5.1.0" } }, "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg=="], + + "esrap": ["esrap@2.1.0", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-yzmPNpl7TBbMRC5Lj2JlJZNPml0tzqoqP5B1JXycNUwtqma9AKCO0M2wHrdgsHcy1WRW7S9rJknAMtByg3usgA=="], + + "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], + + "estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], + + "estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="], + + "esutils": ["esutils@2.0.3", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="], + + "event-target-shim": ["event-target-shim@5.0.1", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="], + + "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="], + + "exit-hook": ["exit-hook@2.2.1", "", {}, "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw=="], + + "exsolve": ["exsolve@1.0.7", "", {}, "sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw=="], + + "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], + + "fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="], + + "fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="], + + "fast-levenshtein": ["fast-levenshtein@2.0.6", "", {}, "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="], + + "fastq": ["fastq@1.19.1", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ=="], + + "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" } }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], + + "file-entry-cache": ["file-entry-cache@8.0.0", "", { "dependencies": { "flat-cache": "^4.0.0" } }, "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ=="], + + "file-type": ["file-type@16.5.4", "", { "dependencies": { "readable-web-to-node-stream": "^3.0.0", "strtok3": "^6.2.4", "token-types": "^4.1.1" } }, "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw=="], + + "file-uri-to-path": ["file-uri-to-path@1.0.0", "", {}, "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="], + + "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], + + "find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="], + + "flat-cache": ["flat-cache@4.0.1", "", { "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" } }, "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw=="], + + "flatted": ["flatted@3.3.3", "", {}, "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg=="], + + "foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "glob": ["glob@10.4.5", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg=="], + + "glob-parent": ["glob-parent@6.0.2", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="], + + "glob-to-regexp": ["glob-to-regexp@0.4.1", "", {}, "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="], + + "globals": ["globals@16.4.0", "", {}, "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw=="], + + "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + + "graphemer": ["graphemer@1.4.0", "", {}, "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag=="], + + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + + "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + + "https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="], + + "ieee754": ["ieee754@1.2.1", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="], + + "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], + + "immediate": ["immediate@3.0.6", "", {}, "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="], + + "import-fresh": ["import-fresh@3.3.1", "", { "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ=="], + + "imurmurhash": ["imurmurhash@0.1.4", "", {}, "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="], + + "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], + + "ioredis": ["ioredis@5.8.0", "", { "dependencies": { "@ioredis/commands": "1.4.0", "cluster-key-slot": "^1.1.0", "debug": "^4.3.4", "denque": "^2.1.0", "lodash.defaults": "^4.2.0", "lodash.isarguments": "^3.1.0", "redis-errors": "^1.2.0", "redis-parser": "^3.0.0", "standard-as-callback": "^2.1.0" } }, "sha512-AUXbKn9gvo9hHKvk6LbZJQSKn/qIfkWXrnsyL9Yrf+oeXmla9Nmf6XEumOddyhM8neynpK5oAV6r9r99KBuwzA=="], + + "iota-array": ["iota-array@1.0.0", "", {}, "sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA=="], + + "is-arrayish": ["is-arrayish@0.3.4", "", {}, "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA=="], + + "is-buffer": ["is-buffer@1.1.6", "", {}, "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="], + + "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], + + "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], + + "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + + "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], + + "is-module": ["is-module@1.0.0", "", {}, "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g=="], + + "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + + "is-reference": ["is-reference@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.6" } }, "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw=="], + + "isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="], + + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + + "jackspeak": ["jackspeak@3.4.3", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="], + + "jiti": ["jiti@2.6.1", "", { "bin": "lib/jiti-cli.mjs" }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="], + + "js-yaml": ["js-yaml@4.1.0", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": "bin/js-yaml.js" }, "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA=="], + + "json-buffer": ["json-buffer@3.0.1", "", {}, "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ=="], + + "json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="], + + "json-stable-stringify-without-jsonify": ["json-stable-stringify-without-jsonify@1.0.1", "", {}, "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="], + + "jszip": ["jszip@3.10.1", "", { "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "setimmediate": "^1.0.5" } }, "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g=="], + + "keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="], + + "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], + + "known-css-properties": ["known-css-properties@0.37.0", "", {}, "sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ=="], + + "levn": ["levn@0.4.1", "", { "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" } }, "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="], + + "lie": ["lie@3.3.0", "", { "dependencies": { "immediate": "~3.0.5" } }, "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ=="], + + "lightningcss": ["lightningcss@1.30.1", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-darwin-arm64": "1.30.1", "lightningcss-darwin-x64": "1.30.1", "lightningcss-freebsd-x64": "1.30.1", "lightningcss-linux-arm-gnueabihf": "1.30.1", "lightningcss-linux-arm64-gnu": "1.30.1", "lightningcss-linux-arm64-musl": "1.30.1", "lightningcss-linux-x64-gnu": "1.30.1", "lightningcss-linux-x64-musl": "1.30.1", "lightningcss-win32-arm64-msvc": "1.30.1", "lightningcss-win32-x64-msvc": "1.30.1" } }, "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg=="], + + "lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.30.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ=="], + + "lightningcss-darwin-x64": ["lightningcss-darwin-x64@1.30.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA=="], + + "lightningcss-freebsd-x64": ["lightningcss-freebsd-x64@1.30.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig=="], + + "lightningcss-linux-arm-gnueabihf": ["lightningcss-linux-arm-gnueabihf@1.30.1", "", { "os": "linux", "cpu": "arm" }, "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q=="], + + "lightningcss-linux-arm64-gnu": ["lightningcss-linux-arm64-gnu@1.30.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw=="], + + "lightningcss-linux-arm64-musl": ["lightningcss-linux-arm64-musl@1.30.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ=="], + + "lightningcss-linux-x64-gnu": ["lightningcss-linux-x64-gnu@1.30.1", "", { "os": "linux", "cpu": "x64" }, "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw=="], + + "lightningcss-linux-x64-musl": ["lightningcss-linux-x64-musl@1.30.1", "", { "os": "linux", "cpu": "x64" }, "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ=="], + + "lightningcss-win32-arm64-msvc": ["lightningcss-win32-arm64-msvc@1.30.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA=="], + + "lightningcss-win32-x64-msvc": ["lightningcss-win32-x64-msvc@1.30.1", "", { "os": "win32", "cpu": "x64" }, "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg=="], + + "lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="], + + "locate-character": ["locate-character@3.0.0", "", {}, "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA=="], + + "locate-path": ["locate-path@6.0.0", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="], + + "lodash.defaults": ["lodash.defaults@4.2.0", "", {}, "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ=="], + + "lodash.isarguments": ["lodash.isarguments@3.1.0", "", {}, "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg=="], + + "lodash.merge": ["lodash.merge@4.6.2", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="], + + "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], + + "lucide-svelte": ["lucide-svelte@0.544.0", "", { "peerDependencies": { "svelte": "^3 || ^4 || ^5.0.0-next.42" } }, "sha512-8kBxSivf8SJdEUJRHBpu9bRw0S/qfVK+Yfb92KQnRRBdP425RzT6aQfrIfZctG1oucPVTBQe1ZXgmth/3qVICg=="], + + "magic-string": ["magic-string@0.30.19", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw=="], + + "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="], + + "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], + + "mime": ["mime@3.0.0", "", { "bin": { "mime": "cli.js" } }, "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A=="], + + "mini-svg-data-uri": ["mini-svg-data-uri@1.4.4", "", { "bin": "cli.js" }, "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg=="], + + "miniflare": ["miniflare@4.20251001.0", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "acorn": "8.14.0", "acorn-walk": "8.3.2", "exit-hook": "2.2.1", "glob-to-regexp": "0.4.1", "sharp": "^0.33.5", "stoppable": "1.1.0", "undici": "7.14.0", "workerd": "1.20251001.0", "ws": "8.18.0", "youch": "4.1.0-beta.10", "zod": "3.22.3" }, "bin": { "miniflare": "bootstrap.js" } }, "sha512-OHd31D2LT8JH+85nVXClV0Z18jxirCohzKNAcZs/fgt4mIkUDtidX3VqR3ovAM0jWooNxrFhB9NSs3iDbiJF7Q=="], + + "minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="], + + "minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="], + + "minizlib": ["minizlib@3.1.0", "", { "dependencies": { "minipass": "^7.1.2" } }, "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw=="], + + "mri": ["mri@1.2.0", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="], + + "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "nanoid": ["nanoid@3.3.11", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], + + "natural-compare": ["natural-compare@1.4.0", "", {}, "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="], + + "ndarray": ["ndarray@1.0.19", "", { "dependencies": { "iota-array": "^1.0.0", "is-buffer": "^1.0.2" } }, "sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ=="], + + "ndarray-ops": ["ndarray-ops@1.2.2", "", { "dependencies": { "cwise-compiler": "^1.0.0" } }, "sha512-BppWAFRjMYF7N/r6Ie51q6D4fs0iiGmeXIACKY66fLpnwIui3Wc3CXiD/30mgLbDjPpSLrsqcp3Z62+IcHZsDw=="], + + "ndarray-pixels": ["ndarray-pixels@4.1.0", "", { "dependencies": { "@types/ndarray": "^1.0.14", "ndarray": "^1.0.19", "ndarray-ops": "^1.2.2", "sharp": "^0.33.4" } }, "sha512-xKPI4zXJ2pkUcVX24zIN1AWqqPWvRWWhRuO6PlY4EdB2VNRauNwA6rDdsAQG/ldQp0sU7nTXgPR/io1duy3Zyg=="], + + "node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="], + + "node-gyp-build": ["node-gyp-build@4.8.4", "", { "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", "node-gyp-build-test": "build-test.js" } }, "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ=="], + + "nopt": ["nopt@8.1.0", "", { "dependencies": { "abbrev": "^3.0.0" }, "bin": { "nopt": "bin/nopt.js" } }, "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A=="], + + "ohash": ["ohash@2.0.11", "", {}, "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ=="], + + "optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="], + + "p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="], + + "p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="], + + "package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="], + + "pako": ["pako@1.0.11", "", {}, "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="], + + "parent-module": ["parent-module@1.0.1", "", { "dependencies": { "callsites": "^3.0.0" } }, "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="], + + "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + + "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + + "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], + + "path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="], + + "path-to-regexp": ["path-to-regexp@6.3.0", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="], + + "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "peek-readable": ["peek-readable@4.1.0", "", {}, "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="], + + "postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="], + + "postcss-load-config": ["postcss-load-config@3.1.4", "", { "dependencies": { "lilconfig": "^2.0.5", "yaml": "^1.10.2" }, "peerDependencies": { "postcss": ">=8.0.9", "ts-node": ">=9.0.0" }, "optionalPeers": ["ts-node"] }, "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg=="], + + "postcss-safe-parser": ["postcss-safe-parser@7.0.1", "", { "peerDependencies": { "postcss": "^8.4.31" } }, "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A=="], + + "postcss-scss": ["postcss-scss@4.0.9", "", { "peerDependencies": { "postcss": "^8.4.29" } }, "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A=="], + + "postcss-selector-parser": ["postcss-selector-parser@6.0.10", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w=="], + + "prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="], + + "prettier": ["prettier@3.6.2", "", { "bin": "bin/prettier.cjs" }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="], + + "prettier-plugin-svelte": ["prettier-plugin-svelte@3.4.0", "", { "peerDependencies": { "prettier": "^3.0.0", "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" } }, "sha512-pn1ra/0mPObzqoIQn/vUTR3ZZI6UuZ0sHqMK5x2jMLGrs53h0sXhkVuDcrlssHwIMk7FYrMjHBPoUSyyEEDlBQ=="], + + "prettier-plugin-tailwindcss": ["prettier-plugin-tailwindcss@0.6.14", "", { "peerDependencies": { "@ianvs/prettier-plugin-sort-imports": "*", "@prettier/plugin-hermes": "*", "@prettier/plugin-oxc": "*", "@prettier/plugin-pug": "*", "@shopify/prettier-plugin-liquid": "*", "@trivago/prettier-plugin-sort-imports": "*", "@zackad/prettier-plugin-twig": "*", "prettier": "^3.0", "prettier-plugin-astro": "*", "prettier-plugin-css-order": "*", "prettier-plugin-import-sort": "*", "prettier-plugin-jsdoc": "*", "prettier-plugin-marko": "*", "prettier-plugin-multiline-arrays": "*", "prettier-plugin-organize-attributes": "*", "prettier-plugin-organize-imports": "*", "prettier-plugin-sort-imports": "*", "prettier-plugin-style-order": "*", "prettier-plugin-svelte": "*" }, "optionalPeers": ["@ianvs/prettier-plugin-sort-imports", "@prettier/plugin-hermes", "@prettier/plugin-oxc", "@prettier/plugin-pug", "@shopify/prettier-plugin-liquid", "@trivago/prettier-plugin-sort-imports", "@zackad/prettier-plugin-twig", "prettier-plugin-astro", "prettier-plugin-css-order", "prettier-plugin-import-sort", "prettier-plugin-jsdoc", "prettier-plugin-marko", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-attributes", "prettier-plugin-organize-imports", "prettier-plugin-sort-imports", "prettier-plugin-style-order"] }, "sha512-pi2e/+ZygeIqntN+vC573BcW5Cve8zUB0SSAGxqpB4f96boZF4M3phPVoOFCeypwkpRYdi7+jQ5YJJUwrkGUAg=="], + + "process": ["process@0.11.10", "", {}, "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A=="], + + "process-nextick-args": ["process-nextick-args@2.0.1", "", {}, "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="], + + "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], + + "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="], + + "readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="], + + "readable-web-to-node-stream": ["readable-web-to-node-stream@3.0.4", "", { "dependencies": { "readable-stream": "^4.7.0" } }, "sha512-9nX56alTf5bwXQ3ZDipHJhusu9NTQJ/CVPtb/XHAJCXihZeitfJvIRS4GqQ/mfIoOE3IelHMrpayVrosdHBuLw=="], + + "readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="], + + "redis-errors": ["redis-errors@1.2.0", "", {}, "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w=="], + + "redis-parser": ["redis-parser@3.0.0", "", { "dependencies": { "redis-errors": "^1.0.0" } }, "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A=="], + + "regexparam": ["regexparam@3.0.0", "", {}, "sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q=="], + + "resolve": ["resolve@1.22.10", "", { "dependencies": { "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w=="], + + "resolve-from": ["resolve-from@5.0.0", "", {}, "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="], + + "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="], + + "rollup": ["rollup@4.52.3", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.52.3", "@rollup/rollup-android-arm64": "4.52.3", "@rollup/rollup-darwin-arm64": "4.52.3", "@rollup/rollup-darwin-x64": "4.52.3", "@rollup/rollup-freebsd-arm64": "4.52.3", "@rollup/rollup-freebsd-x64": "4.52.3", "@rollup/rollup-linux-arm-gnueabihf": "4.52.3", "@rollup/rollup-linux-arm-musleabihf": "4.52.3", "@rollup/rollup-linux-arm64-gnu": "4.52.3", "@rollup/rollup-linux-arm64-musl": "4.52.3", "@rollup/rollup-linux-loong64-gnu": "4.52.3", "@rollup/rollup-linux-ppc64-gnu": "4.52.3", "@rollup/rollup-linux-riscv64-gnu": "4.52.3", "@rollup/rollup-linux-riscv64-musl": "4.52.3", "@rollup/rollup-linux-s390x-gnu": "4.52.3", "@rollup/rollup-linux-x64-gnu": "4.52.3", "@rollup/rollup-linux-x64-musl": "4.52.3", "@rollup/rollup-openharmony-arm64": "4.52.3", "@rollup/rollup-win32-arm64-msvc": "4.52.3", "@rollup/rollup-win32-ia32-msvc": "4.52.3", "@rollup/rollup-win32-x64-gnu": "4.52.3", "@rollup/rollup-win32-x64-msvc": "4.52.3", "fsevents": "~2.3.2" }, "bin": "dist/bin/rollup" }, "sha512-RIDh866U8agLgiIcdpB+COKnlCreHJLfIhWC3LVflku5YHfpnsIKigRZeFfMfCc4dVcqNVfQQ5gO/afOck064A=="], + + "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="], + + "sade": ["sade@1.8.1", "", { "dependencies": { "mri": "^1.1.0" } }, "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A=="], + + "safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], + + "semver": ["semver@7.7.2", "", { "bin": "bin/semver.js" }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="], + + "set-cookie-parser": ["set-cookie-parser@2.7.1", "", {}, "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ=="], + + "setimmediate": ["setimmediate@1.0.5", "", {}, "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="], + + "shaka-player": ["shaka-player@4.16.3", "", {}, "sha512-KFvcg78uwoAyYJAlEa8y673XpPZeQCVG9L1ikoCSUMhCHeNNkNiG1FB4LZwGYN1IrwVEPH3IJVpWoB7RU4d0HA=="], + + "sharp": ["sharp@0.33.5", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="], + + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + + "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + + "simple-swizzle": ["simple-swizzle@0.2.4", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw=="], + + "sirv": ["sirv@3.0.2", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g=="], + + "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], + + "standard-as-callback": ["standard-as-callback@2.1.0", "", {}, "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A=="], + + "stoppable": ["stoppable@1.1.0", "", {}, "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw=="], + + "string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], + + "string-width-cjs": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="], + + "strip-ansi": ["strip-ansi@7.1.2", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA=="], + + "strip-ansi-cjs": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-json-comments": ["strip-json-comments@3.1.1", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="], + + "strtok3": ["strtok3@6.3.0", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "peek-readable": "^4.1.0" } }, "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw=="], + + "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], + + "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], + + "svelte": ["svelte@5.39.8", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "esm-env": "^1.2.1", "esrap": "^2.1.0", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-KfZ3hCITdxIXTOvrea4nFZX2o+47HPTChKeocgj9BwJQYqWrviVCcPj4boXHF5yf8+eBKqhHY8xii//XaakKXA=="], + + "svelte-check": ["svelte-check@4.3.2", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "chokidar": "^4.0.1", "fdir": "^6.2.0", "picocolors": "^1.0.0", "sade": "^1.7.4" }, "peerDependencies": { "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": ">=5.0.0" }, "bin": "bin/svelte-check" }, "sha512-71udP5w2kaSTcX8iV0hn3o2FWlabQHhJTJLIQrCqMsrcOeDUO2VhCQKKCA8AMVHSPwdxLEWkUWh9OKxns5PD9w=="], + + "svelte-eslint-parser": ["svelte-eslint-parser@1.3.3", "", { "dependencies": { "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.0.0", "espree": "^10.0.0", "postcss": "^8.4.49", "postcss-scss": "^4.0.9", "postcss-selector-parser": "^7.0.0" }, "peerDependencies": { "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" } }, "sha512-oTrDR8Z7Wnguut7QH3YKh7JR19xv1seB/bz4dxU5J/86eJtZOU4eh0/jZq4dy6tAlz/KROxnkRQspv5ZEt7t+Q=="], + + "tailwindcss": ["tailwindcss@4.1.14", "", {}, "sha512-b7pCxjGO98LnxVkKjaZSDeNuljC4ueKUddjENJOADtubtdo8llTaJy7HwBMeLNSSo2N5QIAgklslK1+Ir8r6CA=="], + + "tapable": ["tapable@2.3.0", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="], + + "tar": ["tar@7.5.1", "", { "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", "minizlib": "^3.1.0", "yallist": "^5.0.0" } }, "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g=="], + + "tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="], + + "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], + + "token-types": ["token-types@4.2.1", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" } }, "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ=="], + + "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], + + "tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], + + "ts-api-utils": ["ts-api-utils@2.1.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="], + + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + + "type-check": ["type-check@0.4.0", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="], + + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + + "typescript-eslint": ["typescript-eslint@8.45.0", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.45.0", "@typescript-eslint/parser": "8.45.0", "@typescript-eslint/typescript-estree": "8.45.0", "@typescript-eslint/utils": "8.45.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-qzDmZw/Z5beNLUrXfd0HIW6MzIaAV5WNDxmMs9/3ojGOpYavofgNAAD/nC6tGV2PczIi0iw8vot2eAe/sBn7zg=="], + + "ufo": ["ufo@1.6.1", "", {}, "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA=="], + + "undici": ["undici@7.14.0", "", {}, "sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ=="], + + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], + + "unenv": ["unenv@2.0.0-rc.21", "", { "dependencies": { "defu": "^6.1.4", "exsolve": "^1.0.7", "ohash": "^2.0.11", "pathe": "^2.0.3", "ufo": "^1.6.1" } }, "sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A=="], + + "uniq": ["uniq@1.0.1", "", {}, "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA=="], + + "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], + + "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], + + "uuid": ["uuid@11.1.0", "", { "bin": "dist/esm/bin/uuid" }, "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A=="], + + "vite": ["vite@7.1.8", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["less", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx"], "bin": "bin/vite.js" }, "sha512-oBXvfSHEOL8jF+R9Am7h59Up07kVVGH1NrFGFoEG6bPDZP3tGpQhvkBpy5x7U6+E6wZCu9OihsWgJqDbQIm8LQ=="], + + "vite-plugin-devtools-json": ["vite-plugin-devtools-json@1.0.0", "", { "dependencies": { "uuid": "^11.1.0" }, "peerDependencies": { "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-MobvwqX76Vqt/O4AbnNMNWoXWGrKUqZbphCUle/J2KXH82yKQiunOeKnz/nqEPosPsoWWPP9FtNuPBSYpiiwkw=="], + + "vitefu": ["vitefu@1.1.1", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" } }, "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ=="], + + "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + + "whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], + + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + + "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], + + "workerd": ["workerd@1.20251001.0", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20251001.0", "@cloudflare/workerd-darwin-arm64": "1.20251001.0", "@cloudflare/workerd-linux-64": "1.20251001.0", "@cloudflare/workerd-linux-arm64": "1.20251001.0", "@cloudflare/workerd-windows-64": "1.20251001.0" }, "bin": { "workerd": "bin/workerd" } }, "sha512-oT/K4YWNhmwpVmGeaHNmF7mLRfgjszlVr7lJtpS4jx5khmxmMzWZEEQRrJEpgzeHP6DOq9qWLPNT0bjMK7TchQ=="], + + "worktop": ["worktop@0.8.0-next.18", "", { "dependencies": { "mrmime": "^2.0.0", "regexparam": "^3.0.0" } }, "sha512-+TvsA6VAVoMC3XDKR5MoC/qlLqDixEfOBysDEKnPIPou/NvoPWCAuXHXMsswwlvmEuvX56lQjvELLyLuzTKvRw=="], + + "wrangler": ["wrangler@4.42.0", "", { "dependencies": { "@cloudflare/kv-asset-handler": "0.4.0", "@cloudflare/unenv-preset": "2.7.6", "blake3-wasm": "2.1.5", "esbuild": "0.25.4", "miniflare": "4.20251001.0", "path-to-regexp": "6.3.0", "unenv": "2.0.0-rc.21", "workerd": "1.20251001.0" }, "optionalDependencies": { "fsevents": "~2.3.2" }, "peerDependencies": { "@cloudflare/workers-types": "^4.20251001.0" }, "optionalPeers": ["@cloudflare/workers-types"], "bin": { "wrangler": "bin/wrangler.js", "wrangler2": "bin/wrangler.js" } }, "sha512-OZXiUSfGD66OVkncDbjZtqrsH6bWPRQMYc6RmMbkzYm/lEvJ8lvARKcqDgEyq8zDAgJAivlMQLyPtKQoVjQ/4g=="], + + "wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], + + "wrap-ansi-cjs": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + + "ws": ["ws@8.18.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw=="], + + "yallist": ["yallist@5.0.0", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="], + + "yaml": ["yaml@2.8.1", "", { "bin": "bin.mjs" }, "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw=="], + + "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], + + "youch": ["youch@4.1.0-beta.10", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@poppinss/dumper": "^0.6.4", "@speed-highlight/core": "^1.2.7", "cookie": "^1.0.2", "youch-core": "^0.3.3" } }, "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ=="], + + "youch-core": ["youch-core@0.3.3", "", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="], + + "zimmerframe": ["zimmerframe@1.1.4", "", {}, "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ=="], + + "zod": ["zod@3.22.3", "", {}, "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug=="], + + "@cspotcode/source-map-support/@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="], + + "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], + + "@eslint/eslintrc/globals": ["globals@14.0.0", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="], + + "@eslint/plugin-kit/@eslint/core": ["@eslint/core@0.15.2", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg=="], + + "@poppinss/dumper/supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], + + "@rollup/plugin-commonjs/is-reference": ["is-reference@1.2.1", "", { "dependencies": { "@types/estree": "*" } }, "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ=="], + + "@typescript-eslint/eslint-plugin/ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], + + "@typescript-eslint/typescript-estree/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="], + + "eslint/@eslint/core": ["@eslint/core@0.15.2", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg=="], + + "fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], + + "glob/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="], + + "import-fresh/resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], + + "micromatch/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], + + "miniflare/acorn": ["acorn@8.14.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA=="], + + "postcss-load-config/yaml": ["yaml@1.10.2", "", {}, "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="], + + "readable-web-to-node-stream/readable-stream": ["readable-stream@4.7.0", "", { "dependencies": { "abort-controller": "^3.0.0", "buffer": "^6.0.3", "events": "^3.3.0", "process": "^0.11.10", "string_decoder": "^1.3.0" } }, "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg=="], + + "string-width-cjs/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "string-width-cjs/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-ansi-cjs/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "svelte-eslint-parser/postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="], + + "wrangler/esbuild": ["esbuild@0.25.4", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.4", "@esbuild/android-arm": "0.25.4", "@esbuild/android-arm64": "0.25.4", "@esbuild/android-x64": "0.25.4", "@esbuild/darwin-arm64": "0.25.4", "@esbuild/darwin-x64": "0.25.4", "@esbuild/freebsd-arm64": "0.25.4", "@esbuild/freebsd-x64": "0.25.4", "@esbuild/linux-arm": "0.25.4", "@esbuild/linux-arm64": "0.25.4", "@esbuild/linux-ia32": "0.25.4", "@esbuild/linux-loong64": "0.25.4", "@esbuild/linux-mips64el": "0.25.4", "@esbuild/linux-ppc64": "0.25.4", "@esbuild/linux-riscv64": "0.25.4", "@esbuild/linux-s390x": "0.25.4", "@esbuild/linux-x64": "0.25.4", "@esbuild/netbsd-arm64": "0.25.4", "@esbuild/netbsd-x64": "0.25.4", "@esbuild/openbsd-arm64": "0.25.4", "@esbuild/openbsd-x64": "0.25.4", "@esbuild/sunos-x64": "0.25.4", "@esbuild/win32-arm64": "0.25.4", "@esbuild/win32-ia32": "0.25.4", "@esbuild/win32-x64": "0.25.4" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q=="], + + "wrap-ansi/ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="], + + "wrap-ansi-cjs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "wrap-ansi-cjs/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "youch/cookie": ["cookie@1.0.2", "", {}, "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA=="], + + "@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], + + "glob/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], + + "readable-web-to-node-stream/readable-stream/string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="], + + "string-width-cjs/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "wrangler/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.4", "", { "os": "aix", "cpu": "ppc64" }, "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q=="], + + "wrangler/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.4", "", { "os": "android", "cpu": "arm" }, "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ=="], + + "wrangler/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.4", "", { "os": "android", "cpu": "arm64" }, "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A=="], + + "wrangler/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.4", "", { "os": "android", "cpu": "x64" }, "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ=="], + + "wrangler/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g=="], + + "wrangler/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A=="], + + "wrangler/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.4", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ=="], + + "wrangler/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ=="], + + "wrangler/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.4", "", { "os": "linux", "cpu": "arm" }, "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ=="], + + "wrangler/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ=="], + + "wrangler/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.4", "", { "os": "linux", "cpu": "ia32" }, "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ=="], + + "wrangler/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA=="], + + "wrangler/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg=="], + + "wrangler/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag=="], + + "wrangler/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA=="], + + "wrangler/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g=="], + + "wrangler/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.4", "", { "os": "linux", "cpu": "x64" }, "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA=="], + + "wrangler/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.4", "", { "os": "none", "cpu": "arm64" }, "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ=="], + + "wrangler/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.4", "", { "os": "none", "cpu": "x64" }, "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw=="], + + "wrangler/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.4", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A=="], + + "wrangler/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.4", "", { "os": "openbsd", "cpu": "x64" }, "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw=="], + + "wrangler/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.4", "", { "os": "sunos", "cpu": "x64" }, "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q=="], + + "wrangler/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ=="], + + "wrangler/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.4", "", { "os": "win32", "cpu": "ia32" }, "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg=="], + + "wrangler/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.4", "", { "os": "win32", "cpu": "x64" }, "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ=="], + + "wrap-ansi-cjs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "wrap-ansi-cjs/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "readable-web-to-node-stream/readable-stream/string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..ff64af1184e562c8421fbf71097602105b4db58d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3' + +services: + svelte-prod: + build: + context: . + dockerfile: ./Dockerfile + ports: + - '7860:7860' + restart: unless-stopped + environment: + - NODE_ENV=production + - TITLE=${TITLE} + - REDIS_URL=${REDIS_URL} + - REDIS_HOST=${REDIS_HOST} + - REDIS_PORT=${REDIS_PORT} + - REDIS_USERNAME=${REDIS_USERNAME} + - REDIS_PASSWORD=${REDIS_PASSWORD} + - REDIS_TLS=${REDIS_TLS} + - REDIS_CACHE_TTL_SECONDS=${REDIS_CACHE_TTL_SECONDS} + - REDIS_CACHE_TTL_SEARCH_SECONDS=${REDIS_CACHE_TTL_SEARCH_SECONDS} + - REDIS_CACHE_TTL_TRACK_SECONDS=${REDIS_CACHE_TTL_TRACK_SECONDS} + - REDIS_CACHE_MAX_BODY_BYTES=${REDIS_CACHE_MAX_BODY_BYTES} + - PORT=7860 + +networks: + default: + driver: bridge diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000000000000000000000000000000000000..2c49fa64f856fcd6fed01810fa00fadfbdc6f9f6 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,41 @@ +import prettier from 'eslint-config-prettier'; +import { fileURLToPath } from 'node:url'; +import { includeIgnoreFile } from '@eslint/compat'; +import js from '@eslint/js'; +import svelte from 'eslint-plugin-svelte'; +import { defineConfig } from 'eslint/config'; +import globals from 'globals'; +import ts from 'typescript-eslint'; +import svelteConfig from './svelte.config.js'; + +const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); + +export default defineConfig( + includeIgnoreFile(gitignorePath), + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs.recommended, + prettier, + ...svelte.configs.prettier, + { + languageOptions: { + globals: { ...globals.browser, ...globals.node } + }, + rules: { + // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects. + // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors + 'no-undef': 'off' + } + }, + { + files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], + languageOptions: { + parserOptions: { + projectService: true, + extraFileExtensions: ['.svelte'], + parser: ts.parser, + svelteConfig + } + } + } +); diff --git a/generate_spotify_totp.py b/generate_spotify_totp.py new file mode 100644 index 0000000000000000000000000000000000000000..7f7a741bab135c638bf7e9151ac4b9c48b193742 --- /dev/null +++ b/generate_spotify_totp.py @@ -0,0 +1,225 @@ +#!/usr/bin/env python3 +""" +Author: Michal Szymanski +v1.2 + +Automatic extractor for secret keys used for TOTP generation in Spotify Web Player JavaScript bundles +https://github.com/misiektoja/spotify_monitor#debugging-tools + +Python pip3 requirements: + +playwright + +Install: + +pip install playwright +playwright install + +--------------- + +Change log: + +v1.2 (12 Oct 25): +- Added CLI output modes (--secret, --secretbytes and --secretdict CLI flags, see -h for help) +- Added --all mode writing all secret formats to files (secrets.json, secretBytes.json, secretDict.json) (thx @tomballgithub) + +v1.1 (12 Jul 25): +- Added JSON array output for plain secrets and secret bytes + +v1.0 (09 Jul 25): +- Initial proof-of-concept, confirmed to extract v10, v11 and v12 secrets +""" + + +import asyncio +import re +from datetime import datetime +import json +from typing import List, Dict, Any +from playwright.async_api import async_playwright +import argparse +import sys + + +BUNDLE_RE = re.compile(r"""(?x)(?:vendor~web-player|encore~web-player|web-player)\.[0-9a-f]{4,}\.(?:js|mjs)""") +TIMEOUT = 45000 # 45s +VERBOSE = True + +OUTPUT_FILES = { + 'plain_json': 'secrets.json', + 'bytes_json_array': 'secretBytes.json', + 'bytes_json_dict': 'secretDict.json', +} + + +def _inline_int_array(nums): + return '[ ' + ', '.join(str(n) for n in nums) + ' ]' + + +def _write_secretbytes_compact(fp, items): + fp.write('[\n') + last = len(items) - 1 + for i, itm in enumerate(items): + comma = ',' if i < last else '' + fp.write(f' {{ "version": {itm["version"]}, "secret": {_inline_int_array(itm["secret"])} }}{comma}\n') + fp.write(']\n') + + +def _write_secretdict_compact(fp, mapping): + keys = sorted(mapping.keys(), key=lambda k: int(k)) + fp.write('{\n') + for i, v in enumerate(keys): + comma = ',' if i < len(keys) - 1 else '' + fp.write(f' "{v}": {_inline_int_array(mapping[v])}{comma}\n') + fp.write('}\n') + + +def log(m): + if VERBOSE: + print(f"[{datetime.now().strftime('%H:%M:%S')}] {m}") + + +def summarise(caps: List[Dict[str, Any]], mode=None): + real = {} + + for cap in caps: + sec = cap.get('secret') + if not isinstance(sec, str): + continue + ver = cap.get('version') or (isinstance(cap.get('obj'), dict) and cap['obj'].get('version')) + if ver is None: + continue + real[str(ver)] = sec + + if not real: + log('No real secrets with version.') + return + + sorted_items = sorted(real.items(), key=lambda kv: int(kv[0])) + formatted_data = [{"version": int(v), "secret": s} for v, s in sorted_items] + secret_bytes = [{"version": int(v), "secret": [ord(c) for c in s]} for v, s in sorted_items] + secret_dict = {v: [ord(c) for c in s] for v, s in sorted_items} + + if mode is None: + print("\n--- List of extracted secrets ---\n") + for v, s in sorted(real.items(), key=lambda kv: int(kv[0])): + print(f"v{v}: '{s}'") + + print("\n--- Plain secrets (JSON array) ---\n") + print(json.dumps(formatted_data, indent=2)) + + print("\n--- Secret bytes (JSON array) ---\n") + print('[') + for idx, itm in enumerate(secret_bytes): + comma = ',' if idx < len(secret_bytes) - 1 else '' + print(' {') + print(f' "version": {itm["version"]},') + print(f' "secret": {_inline_int_array(itm["secret"])}') + print(f' }}{comma}') + print(']') + + print("\n--- Secret bytes (JSON object/dict): version -> byte list mapping ---\n") + print('{') + last = len(real) - 1 + for idx, (v, s) in enumerate(sorted(real.items(), key=lambda kv: int(kv[0]))): + arr = [ord(c) for c in s] + comma = ',' if idx < last else '' + print(f' "{v}": {_inline_int_array(arr)}{comma}') + print('}') + + elif mode == 'secret': + print(json.dumps(formatted_data, indent=2)) + + elif mode == 'secretbytes': + print('[') + for idx, itm in enumerate(secret_bytes): + comma = ',' if idx < len(secret_bytes) - 1 else '' + print(f' {{ "version": {itm["version"]}, "secret": {_inline_int_array(itm["secret"])} }}{comma}') + print(']') + + elif mode == 'secretdict': + print('{') + last = len(real) - 1 + for idx, (v, s) in enumerate(sorted(real.items(), key=lambda kv: int(kv[0]))): + arr = [ord(c) for c in s] + comma = ',' if idx < last else '' + print(f' "{v}": {_inline_int_array(arr)}{comma}') + print('}') + + elif mode == 'all': + try: + with open(OUTPUT_FILES['plain_json'], 'w') as f: + json.dump(formatted_data, f, indent=2) + f.write('\n') + with open(OUTPUT_FILES['bytes_json_array'], 'w') as f: + _write_secretbytes_compact(f, secret_bytes) + with open(OUTPUT_FILES['bytes_json_dict'], 'w') as f: + _write_secretdict_compact(f, secret_dict) + if VERBOSE: + print(f"[+] Wrote plain secrets to {OUTPUT_FILES['plain_json']}") + print(f"[+] Wrote secret bytes array to {OUTPUT_FILES['bytes_json_array']}") + print(f"[+] Wrote secret bytes dict to {OUTPUT_FILES['bytes_json_dict']}") + except Exception as e: + print(f"Error writing output files: {e}", file=sys.stderr) + + +async def grab_live(): + hook = """(()=>{if(globalThis.__secretHookInstalled)return;globalThis.__secretHookInstalled=true;globalThis.__captures=[]; +Object.defineProperty(Object.prototype,'secret',{configurable:true,set:function(v){try{__captures.push({secret:v,version:this.version,obj:this});}catch(e){} +Object.defineProperty(this,'secret',{value:v,writable:true,configurable:true,enumerable:true});}});})();""" + + async with async_playwright() as p: + b = await p.chromium.launch(headless=True) + ctx = await b.new_context() + await ctx.add_init_script(hook) + pg = await ctx.new_page() + pg.on('response', lambda resp: BUNDLE_RE.fullmatch(resp.url.split('/')[-1]) and log(f"↓ {resp.url.split('/')[-1]} ({resp.status})")) + log('→ opening open.spotify.com ...') + await pg.goto('https://open.spotify.com', timeout=TIMEOUT) + await pg.wait_for_load_state('networkidle', timeout=TIMEOUT) + await pg.wait_for_timeout(3000) + caps = await pg.evaluate('__captures') + + if caps: + for c in caps: + if isinstance(c.get('secret'), str) and c.get('version') is not None: + log(f"✔ secret({c.get('version')}) → {c.get('secret')}") + + await b.close() + return caps or [] + + +def main(): + parser = argparse.ArgumentParser(description='Extract Spotify web-player TOTP secrets') + parser.add_argument('--secret', action='store_true', help='Output plain secrets JSON only') + parser.add_argument('--secretbytes', action='store_true', help='Output secret-bytes JSON only') + parser.add_argument('--secretdict', action='store_true', help='Output version->byte-list dict JSON only') + parser.add_argument('--all', action='store_true', help='Write plain, bytes array and bytes dict JSON files') + args = parser.parse_args() + + mode = None + if args.secret: + mode = 'secret' + elif args.secretbytes: + mode = 'secretbytes' + elif args.secretdict: + mode = 'secretdict' + elif args.all: + mode = 'all' + + global VERBOSE + if mode and mode != 'all': + VERBOSE = False + elif mode == 'all': + VERBOSE = True + + try: + caps = asyncio.run(grab_live()) + summarise(caps, mode) + except Exception as e: + print(f"Error: {e}", file=sys.stderr) + sys.exit(1) + + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..17127a75113bb956c90ad22edab2217f060e0168 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,7382 @@ +{ + "name": "tidal-ui", + "version": "3.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "tidal-ui", + "version": "3.0.0", + "license": "MPL-2.0", + "dependencies": { + "@ffmpeg/ffmpeg": "^0.12.6", + "@ffmpeg/util": "^0.12.1", + "colorthief": "^2.6.0", + "ioredis": "^5.4.1", + "jszip": "^3.10.1", + "lucide-svelte": "^0.544.0", + "shaka-player": "^4.11.7" + }, + "devDependencies": { + "@eslint/compat": "^1.2.5", + "@eslint/js": "^9.22.0", + "@sveltejs/adapter-auto": "^6.0.0", + "@sveltejs/adapter-cloudflare": "^7.2.4", + "@sveltejs/adapter-node": "^5.3.3", + "@sveltejs/adapter-vercel": "^5.10.3", + "@sveltejs/kit": "^2.22.0", + "@sveltejs/vite-plugin-svelte": "^6.0.0", + "@tailwindcss/forms": "^0.5.9", + "@tailwindcss/typography": "^0.5.15", + "@tailwindcss/vite": "^4.0.0", + "@types/colorthief": "^2.6.0", + "@types/node": "^20", + "eslint": "^9.22.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-svelte": "^3.0.0", + "globals": "^16.0.0", + "prettier": "^3.4.2", + "prettier-plugin-svelte": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.11", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", + "tailwindcss": "^4.0.0", + "typescript": "^5.0.0", + "typescript-eslint": "^8.20.0", + "vite": "^7.0.4", + "vite-plugin-devtools-json": "^1.0.0" + } + }, + "node_modules/@cloudflare/kv-asset-handler": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.4.1.tgz", + "integrity": "sha512-Nu8ahitGFFJztxUml9oD/DLb7Z28C8cd8F46IVQ7y5Btz575pvMY8AqZsXkX7Gds29eCKdMgIHjIvzskHgPSFg==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "mime": "^3.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@cloudflare/unenv-preset": { + "version": "2.7.13", + "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.7.13.tgz", + "integrity": "sha512-NulO1H8R/DzsJguLC0ndMuk4Ufv0KSlN+E54ay9rn9ZCQo0kpAPwwh3LhgpZ96a3Dr6L9LqW57M4CqC34iLOvw==", + "dev": true, + "license": "MIT OR Apache-2.0", + "peerDependencies": { + "unenv": "2.0.0-rc.24", + "workerd": "^1.20251202.0" + }, + "peerDependenciesMeta": { + "workerd": { + "optional": true + } + } + }, + "node_modules/@cloudflare/workerd-darwin-64": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20251210.0.tgz", + "integrity": "sha512-Nn9X1moUDERA9xtFdCQ2XpQXgAS9pOjiCxvOT8sVx9UJLAiBLkfSCGbpsYdarODGybXCpjRlc77Yppuolvt7oQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-darwin-arm64": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20251210.0.tgz", + "integrity": "sha512-Mg8iYIZQFnbevq/ls9eW/eneWTk/EE13Pej1MwfkY5et0jVpdHnvOLywy/o+QtMJFef1AjsqXGULwAneYyBfHw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-64": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20251210.0.tgz", + "integrity": "sha512-kjC2fCZhZ2Gkm1biwk2qByAYpGguK5Gf5ic8owzSCUw0FOUfQxTZUT9Lp3gApxsfTLbbnLBrX/xzWjywH9QR4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-arm64": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20251210.0.tgz", + "integrity": "sha512-2IB37nXi7PZVQLa1OCuO7/6pNxqisRSO8DmCQ5x/3sezI5op1vwOxAcb1osAnuVsVN9bbvpw70HJvhKruFJTuA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-windows-64": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20251210.0.tgz", + "integrity": "sha512-Uaz6/9XE+D6E7pCY4OvkCuJHu7HcSDzeGcCGY1HLhojXhHd7yL52c3yfiyJdS8hPatiAa0nn5qSI/42+aTdDSw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workers-types": { + "version": "4.20251224.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20251224.0.tgz", + "integrity": "sha512-6Prvhe2L4iH4wL8hDpWabFxnauGqDZ+o66fMChGRE2gLDa1YYDxu8zw15p+Iq5minz6d5DkJ8M0l5uudx/+d4g==", + "dev": true, + "license": "MIT OR Apache-2.0", + "peer": true + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", + "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/compat": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.4.1.tgz", + "integrity": "sha512-cfO82V9zxxGBxcQDr1lfaYB7wykTa0b00mGa36FrJl7iTFd0Z2cHfEYuxcBRP/iNijCsWsEkA+jzT8hGYmv33w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^8.40 || 9" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@ffmpeg/ffmpeg": { + "version": "0.12.15", + "resolved": "https://registry.npmjs.org/@ffmpeg/ffmpeg/-/ffmpeg-0.12.15.tgz", + "integrity": "sha512-1C8Obr4GsN3xw+/1Ww6PFM84wSQAGsdoTuTWPOj2OizsRDLT4CXTaVjPhkw6ARyDus1B9X/L2LiXHqYYsGnRFw==", + "license": "MIT", + "dependencies": { + "@ffmpeg/types": "^0.12.4" + }, + "engines": { + "node": ">=18.x" + } + }, + "node_modules/@ffmpeg/types": { + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@ffmpeg/types/-/types-0.12.4.tgz", + "integrity": "sha512-k9vJQNBGTxE5AhYDtOYR5rO5fKsspbg51gbcwtbkw2lCdoIILzklulcjJfIDwrtn7XhDeF2M+THwJ2FGrLeV6A==", + "license": "MIT", + "engines": { + "node": ">=16.x" + } + }, + "node_modules/@ffmpeg/util": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@ffmpeg/util/-/util-0.12.2.tgz", + "integrity": "sha512-ouyoW+4JB7WxjeZ2y6KpRvB+dLp7Cp4ro8z0HIVpZVCM7AwFlHa0c4R8Y/a4M3wMqATpYKhC7lSFHQ0T11MEDw==", + "license": "MIT", + "engines": { + "node": ">=18.x" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", + "integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.5.tgz", + "integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz", + "integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.4.tgz", + "integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.5.tgz", + "integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.4.tgz", + "integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.4.tgz", + "integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz", + "integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.4.tgz", + "integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz", + "integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.5.tgz", + "integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.0.5" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.5.tgz", + "integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.5.tgz", + "integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.0.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz", + "integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.5.tgz", + "integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz", + "integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.0.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.5.tgz", + "integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.2.0" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.5.tgz", + "integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz", + "integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@ioredis/commands": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.4.0.tgz", + "integrity": "sha512-aFT2yemJJo+TZCmieA7qnYGQooOS7QfNmYrzGtsYd3g9j5iDP8AimYYAesf79ohjbLG12XxC4nG5DyEnC88AsQ==", + "license": "MIT" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@lokesh.dhakar/quantize": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@lokesh.dhakar/quantize/-/quantize-1.4.0.tgz", + "integrity": "sha512-+//cqVWKis//t0YH62EDtwaFSPG/CDtYNg4CZmzNmG2d5W17Iu3fuDAdpQXCDHUDrrU9q0veze4A7tPZXlR/mg==", + "license": "MIT" + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.3.tgz", + "integrity": "sha512-uwPAhccfFJlsfCxMYTwOdVfOz3xqyj8xYL3zJj8f0pb30tLohnnFPhLuqp4/qoEz8sNxe4SESZedcBojRefIzg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "consola": "^3.2.3", + "detect-libc": "^2.0.0", + "https-proxy-agent": "^7.0.5", + "node-fetch": "^2.6.7", + "nopt": "^8.0.0", + "semver": "^7.5.3", + "tar": "^7.4.0" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.29", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", + "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==", + "dev": true, + "license": "MIT" + }, + "node_modules/@poppinss/colors": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz", + "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^4.1.5" + } + }, + "node_modules/@poppinss/dumper": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz", + "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@poppinss/colors": "^4.1.5", + "@sindresorhus/is": "^7.0.2", + "supports-color": "^10.0.0" + } + }, + "node_modules/@poppinss/dumper/node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@poppinss/exception": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz", + "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "28.0.9", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.9.tgz", + "integrity": "sha512-PIR4/OHZ79romx0BVVll/PkwWpJ7e5lsqFa3gFfcrFPWwLXLV39JVUzQV9RKjWerE7B845Hqjj9VYlQeieZ2dA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "fdir": "^6.2.0", + "is-reference": "1.2.1", + "magic-string": "^0.30.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-json": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", + "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.1.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.3.tgz", + "integrity": "sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.54.0.tgz", + "integrity": "sha512-OywsdRHrFvCdvsewAInDKCNyR3laPA2mc9bRYJ6LBp5IyvF3fvXbbNR0bSzHlZVFtn6E0xw2oZlyjg4rKCVcng==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.54.0.tgz", + "integrity": "sha512-Skx39Uv+u7H224Af+bDgNinitlmHyQX1K/atIA32JP3JQw6hVODX5tkbi2zof/E69M1qH2UoN3Xdxgs90mmNYw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.54.0.tgz", + "integrity": "sha512-k43D4qta/+6Fq+nCDhhv9yP2HdeKeP56QrUUTW7E6PhZP1US6NDqpJj4MY0jBHlJivVJD5P8NxrjuobZBJTCRw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.54.0.tgz", + "integrity": "sha512-cOo7biqwkpawslEfox5Vs8/qj83M/aZCSSNIWpVzfU2CYHa2G3P1UN5WF01RdTHSgCkri7XOlTdtk17BezlV3A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.54.0.tgz", + "integrity": "sha512-miSvuFkmvFbgJ1BevMa4CPCFt5MPGw094knM64W9I0giUIMMmRYcGW/JWZDriaw/k1kOBtsWh1z6nIFV1vPNtA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.54.0.tgz", + "integrity": "sha512-KGXIs55+b/ZfZsq9aR026tmr/+7tq6VG6MsnrvF4H8VhwflTIuYh+LFUlIsRdQSgrgmtM3fVATzEAj4hBQlaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.54.0.tgz", + "integrity": "sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.54.0.tgz", + "integrity": "sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.54.0.tgz", + "integrity": "sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.54.0.tgz", + "integrity": "sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.54.0.tgz", + "integrity": "sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.54.0.tgz", + "integrity": "sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.54.0.tgz", + "integrity": "sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.54.0.tgz", + "integrity": "sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.54.0.tgz", + "integrity": "sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.54.0.tgz", + "integrity": "sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.54.0.tgz", + "integrity": "sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.54.0.tgz", + "integrity": "sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.54.0.tgz", + "integrity": "sha512-c2V0W1bsKIKfbLMBu/WGBz6Yci8nJ/ZJdheE0EwB73N3MvHYKiKGs3mVilX4Gs70eGeDaMqEob25Tw2Gb9Nqyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.54.0.tgz", + "integrity": "sha512-woEHgqQqDCkAzrDhvDipnSirm5vxUXtSKDYTVpZG3nUdW/VVB5VdCYA2iReSj/u3yCZzXID4kuKG7OynPnB3WQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.54.0.tgz", + "integrity": "sha512-dzAc53LOuFvHwbCEOS0rPbXp6SIhAf2txMP5p6mGyOXXw5mWY8NGGbPMPrs4P1WItkfApDathBj/NzMLUZ9rtQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.54.0.tgz", + "integrity": "sha512-hYT5d3YNdSh3mbCU1gwQyPgQd3T2ne0A3KG8KSBdav5TiBg6eInVmV+TeR5uHufiIgSFg0XsOWGW5/RhNcSvPg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@sindresorhus/is": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.1.1.tgz", + "integrity": "sha512-rO92VvpgMc3kfiTjGT52LEtJ8Yc5kCWhZjLQ3LwlA4pSgPpQO7bVpYXParOD8Jwf+cVQECJo3yP/4I8aZtUQTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@speed-highlight/core": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.12.tgz", + "integrity": "sha512-uilwrK0Ygyri5dToHYdZSjcvpS2ZwX0w5aSt3GCEN9hrjxWCoeV4Z2DTXuxjwbntaLQIEEAlCeNQss5SoHvAEA==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sveltejs/acorn-typescript": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.8.tgz", + "integrity": "sha512-esgN+54+q0NjB0Y/4BomT9samII7jGwNy/2a3wNZbT2A2RpmXsXwUt24LvLhx6jUq2gVk4cWEvcRO6MFQbOfNA==", + "license": "MIT", + "peerDependencies": { + "acorn": "^8.9.0" + } + }, + "node_modules/@sveltejs/adapter-auto": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-auto/-/adapter-auto-6.1.1.tgz", + "integrity": "sha512-cBNt4jgH4KuaNO5gRSB2CZKkGtz+OCZ8lPjRQGjhvVUD4akotnj2weUia6imLl2v07K3IgsQRyM36909miSwoQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@sveltejs/kit": "^2.0.0" + } + }, + "node_modules/@sveltejs/adapter-cloudflare": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-cloudflare/-/adapter-cloudflare-7.2.4.tgz", + "integrity": "sha512-uD8VlOuGXGuZWL+zbBYSjtmC4WDtlonUodfqAZ/COd5uIy2Z0QptIicB/nkTrGNI9sbmzgf7z0N09CHyWYlUvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cloudflare/workers-types": "^4.20250507.0", + "worktop": "0.8.0-next.18" + }, + "peerDependencies": { + "@sveltejs/kit": "^2.0.0", + "wrangler": "^4.0.0" + } + }, + "node_modules/@sveltejs/adapter-node": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-node/-/adapter-node-5.4.0.tgz", + "integrity": "sha512-NMsrwGVPEn+J73zH83Uhss/hYYZN6zT3u31R3IHAn3MiKC3h8fjmIAhLfTSOeNHr5wPYfjjMg8E+1gyFgyrEcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/plugin-commonjs": "^28.0.1", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^16.0.0", + "rollup": "^4.9.5" + }, + "peerDependencies": { + "@sveltejs/kit": "^2.4.0" + } + }, + "node_modules/@sveltejs/adapter-vercel": { + "version": "5.10.3", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-vercel/-/adapter-vercel-5.10.3.tgz", + "integrity": "sha512-fW2ZhMiOrUKsJJhiB4ift9sYDSFWgvH3N22cjf8ukOyWgHolb9SmSS3owr+nHQNlgTEAdy4eIr4Fnasw3nkxTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vercel/nft": "^0.30.0", + "esbuild": "^0.25.4" + }, + "peerDependencies": { + "@sveltejs/kit": "^2.4.0" + } + }, + "node_modules/@sveltejs/kit": { + "version": "2.49.2", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.49.2.tgz", + "integrity": "sha512-Vp3zX/qlwerQmHMP6x0Ry1oY7eKKRcOWGc2P59srOp4zcqyn+etJyQpELgOi4+ZSUgteX8Y387NuwruLgGXLUQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "@sveltejs/acorn-typescript": "^1.0.5", + "@types/cookie": "^0.6.0", + "acorn": "^8.14.1", + "cookie": "^0.6.0", + "devalue": "^5.3.2", + "esm-env": "^1.2.2", + "kleur": "^4.1.5", + "magic-string": "^0.30.5", + "mrmime": "^2.0.0", + "sade": "^1.8.1", + "set-cookie-parser": "^2.6.0", + "sirv": "^3.0.0" + }, + "bin": { + "svelte-kit": "svelte-kit.js" + }, + "engines": { + "node": ">=18.13" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0", + "svelte": "^4.0.0 || ^5.0.0-next.0", + "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + } + } + }, + "node_modules/@sveltejs/vite-plugin-svelte": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-6.2.1.tgz", + "integrity": "sha512-YZs/OSKOQAQCnJvM/P+F1URotNnYNeU3P2s4oIpzm1uFaqUEqRxUB0g5ejMjEb5Gjb9/PiBI5Ktrq4rUUF8UVQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@sveltejs/vite-plugin-svelte-inspector": "^5.0.0", + "debug": "^4.4.1", + "deepmerge": "^4.3.1", + "magic-string": "^0.30.17", + "vitefu": "^1.1.1" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24" + }, + "peerDependencies": { + "svelte": "^5.0.0", + "vite": "^6.3.0 || ^7.0.0" + } + }, + "node_modules/@sveltejs/vite-plugin-svelte-inspector": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-5.0.1.tgz", + "integrity": "sha512-ubWshlMk4bc8mkwWbg6vNvCeT7lGQojE3ijDh3QTR6Zr/R+GXxsGbyH4PExEPpiFmqPhYiVSVmHBjUcVc1JIrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.1" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24" + }, + "peerDependencies": { + "@sveltejs/vite-plugin-svelte": "^6.0.0-next.0", + "svelte": "^5.0.0", + "vite": "^6.3.0 || ^7.0.0" + } + }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.11.tgz", + "integrity": "sha512-h9wegbZDPurxG22xZSoWtdzc41/OlNEUQERNqI/0fOwa2aVlWGu7C35E/x6LDyD3lgtztFSSjKZyuVM0hxhbgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" + } + }, + "node_modules/@tailwindcss/node": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.18.tgz", + "integrity": "sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.4", + "enhanced-resolve": "^5.18.3", + "jiti": "^2.6.1", + "lightningcss": "1.30.2", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.1.18" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.18.tgz", + "integrity": "sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.1.18", + "@tailwindcss/oxide-darwin-arm64": "4.1.18", + "@tailwindcss/oxide-darwin-x64": "4.1.18", + "@tailwindcss/oxide-freebsd-x64": "4.1.18", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.18", + "@tailwindcss/oxide-linux-arm64-gnu": "4.1.18", + "@tailwindcss/oxide-linux-arm64-musl": "4.1.18", + "@tailwindcss/oxide-linux-x64-gnu": "4.1.18", + "@tailwindcss/oxide-linux-x64-musl": "4.1.18", + "@tailwindcss/oxide-wasm32-wasi": "4.1.18", + "@tailwindcss/oxide-win32-arm64-msvc": "4.1.18", + "@tailwindcss/oxide-win32-x64-msvc": "4.1.18" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.18.tgz", + "integrity": "sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.18.tgz", + "integrity": "sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.18.tgz", + "integrity": "sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.18.tgz", + "integrity": "sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.18.tgz", + "integrity": "sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.18.tgz", + "integrity": "sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.18.tgz", + "integrity": "sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.18.tgz", + "integrity": "sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.18.tgz", + "integrity": "sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.18.tgz", + "integrity": "sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1", + "@emnapi/wasi-threads": "^1.1.0", + "@napi-rs/wasm-runtime": "^1.1.0", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.18.tgz", + "integrity": "sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.18.tgz", + "integrity": "sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tailwindcss/typography": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.19.tgz", + "integrity": "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "6.0.10" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.18.tgz", + "integrity": "sha512-jVA+/UpKL1vRLg6Hkao5jldawNmRo7mQYrZtNHMIVpLfLhDml5nMRUo/8MwoX2vNXvnaXNNMedrMfMugAVX1nA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.1.18", + "@tailwindcss/oxide": "4.1.18", + "tailwindcss": "4.1.18" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "license": "MIT" + }, + "node_modules/@types/colorthief": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@types/colorthief/-/colorthief-2.6.0.tgz", + "integrity": "sha512-GZBHPzkgEsyZqO7a9rhqkcW2BJZW+UpRlIUorY8vfOk7BVFVZMuDvZRPyaExv7ML0DaeB/t78PUOTkGo/THDpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/ndarray": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@types/ndarray/-/ndarray-1.0.14.tgz", + "integrity": "sha512-oANmFZMnFQvb219SSBIhI1Ih/r4CvHDOzkWyJS/XRqkMrGH5/kaPSA1hQhdIBzouaE+5KpE/f5ylI9cujmckQg==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.19.27", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.27.tgz", + "integrity": "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.50.1.tgz", + "integrity": "sha512-PKhLGDq3JAg0Jk/aK890knnqduuI/Qj+udH7wCf0217IGi4gt+acgCyPVe79qoT+qKUvHMDQkwJeKW9fwl8Cyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.50.1", + "@typescript-eslint/type-utils": "8.50.1", + "@typescript-eslint/utils": "8.50.1", + "@typescript-eslint/visitor-keys": "8.50.1", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.50.1", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.50.1.tgz", + "integrity": "sha512-hM5faZwg7aVNa819m/5r7D0h0c9yC4DUlWAOvHAtISdFTc8xB86VmX5Xqabrama3wIPJ/q9RbGS1worb6JfnMg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.50.1", + "@typescript-eslint/types": "8.50.1", + "@typescript-eslint/typescript-estree": "8.50.1", + "@typescript-eslint/visitor-keys": "8.50.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.50.1.tgz", + "integrity": "sha512-E1ur1MCVf+YiP89+o4Les/oBAVzmSbeRB0MQLfSlYtbWU17HPxZ6Bhs5iYmKZRALvEuBoXIZMOIRRc/P++Ortg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.50.1", + "@typescript-eslint/types": "^8.50.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.50.1.tgz", + "integrity": "sha512-mfRx06Myt3T4vuoHaKi8ZWNTPdzKPNBhiblze5N50//TSHOAQQevl/aolqA/BcqqbJ88GUnLqjjcBc8EWdBcVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.50.1", + "@typescript-eslint/visitor-keys": "8.50.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.50.1.tgz", + "integrity": "sha512-ooHmotT/lCWLXi55G4mvaUF60aJa012QzvLK0Y+Mp4WdSt17QhMhWOaBWeGTFVkb2gDgBe19Cxy1elPXylslDw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.50.1.tgz", + "integrity": "sha512-7J3bf022QZE42tYMO6SL+6lTPKFk/WphhRPe9Tw/el+cEwzLz1Jjz2PX3GtGQVxooLDKeMVmMt7fWpYRdG5Etg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.50.1", + "@typescript-eslint/typescript-estree": "8.50.1", + "@typescript-eslint/utils": "8.50.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.50.1.tgz", + "integrity": "sha512-v5lFIS2feTkNyMhd7AucE/9j/4V9v5iIbpVRncjk/K0sQ6Sb+Np9fgYS/63n6nwqahHQvbmujeBL7mp07Q9mlA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.50.1.tgz", + "integrity": "sha512-woHPdW+0gj53aM+cxchymJCrh0cyS7BTIdcDxWUNsclr9VDkOSbqC13juHzxOmQ22dDkMZEpZB+3X1WpUvzgVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.50.1", + "@typescript-eslint/tsconfig-utils": "8.50.1", + "@typescript-eslint/types": "8.50.1", + "@typescript-eslint/visitor-keys": "8.50.1", + "debug": "^4.3.4", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.50.1.tgz", + "integrity": "sha512-lCLp8H1T9T7gPbEuJSnHwnSuO9mDf8mfK/Nion5mZmiEaQD9sWf9W4dfeFqRyqRjF06/kBuTmAqcs9sewM2NbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.50.1", + "@typescript-eslint/types": "8.50.1", + "@typescript-eslint/typescript-estree": "8.50.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.50.1.tgz", + "integrity": "sha512-IrDKrw7pCRUR94zeuCSUWQ+w8JEf5ZX5jl/e6AHGSLi1/zIr0lgutfn/7JpfCey+urpgQEdrZVYzCaVVKiTwhQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.50.1", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vercel/nft": { + "version": "0.30.4", + "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.30.4.tgz", + "integrity": "sha512-wE6eAGSXScra60N2l6jWvNtVK0m+sh873CpfZW4KI2v8EHuUQp+mSEi4T+IcdPCSEDgCdAS/7bizbhQlkjzrSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@mapbox/node-pre-gyp": "^2.0.0", + "@rollup/pluginutils": "^5.1.3", + "acorn": "^8.6.0", + "acorn-import-attributes": "^1.9.5", + "async-sema": "^3.1.1", + "bindings": "^1.4.0", + "estree-walker": "2.0.2", + "glob": "^10.5.0", + "graceful-fs": "^4.2.9", + "node-gyp-build": "^4.2.2", + "picomatch": "^4.0.2", + "resolve-from": "^5.0.0" + }, + "bin": { + "nft": "out/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/abbrev": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", + "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-sema": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/async-sema/-/async-sema-3.1.1.tgz", + "integrity": "sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/blake3-wasm": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz", + "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/colorthief": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/colorthief/-/colorthief-2.6.0.tgz", + "integrity": "sha512-yL3B7laeOr4kH9XasFF5rl+9Taz+Pmt/CRbaTI6XepZFyQvk4K/abaGKIAsngVpxKkgFeoJ2IwdRpS228icrig==", + "license": "MIT", + "dependencies": { + "@lokesh.dhakar/quantize": "^1.4.0", + "file-type": "^16.5.3", + "ndarray-pixels": "^4.1.0", + "sharp": "^0.33.5" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cwise-compiler": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/cwise-compiler/-/cwise-compiler-1.1.3.tgz", + "integrity": "sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ==", + "license": "MIT", + "dependencies": { + "uniq": "^1.0.0" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devalue": { + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.6.1.tgz", + "integrity": "sha512-jDwizj+IlEZBunHcOuuFVBnIMPAEHvTsJj0BcIp94xYguLRVBcXO853px/MyIJvbVzWdsGvrRweIUWJw8hBP7A==", + "license": "MIT" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/enhanced-resolve": { + "version": "5.18.4", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz", + "integrity": "sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/error-stack-parser-es": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz", + "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-prettier": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-svelte": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-3.13.1.tgz", + "integrity": "sha512-Ng+kV/qGS8P/isbNYVE3sJORtubB+yLEcYICMkUWNaDTb0SwZni/JhAYXh/Dz/q2eThUwWY0VMPZ//KYD1n3eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.6.1", + "@jridgewell/sourcemap-codec": "^1.5.0", + "esutils": "^2.0.3", + "globals": "^16.0.0", + "known-css-properties": "^0.37.0", + "postcss": "^8.4.49", + "postcss-load-config": "^3.1.4", + "postcss-safe-parser": "^7.0.0", + "semver": "^7.6.3", + "svelte-eslint-parser": "^1.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + }, + "peerDependencies": { + "eslint": "^8.57.1 || ^9.0.0", + "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "svelte": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esm-env": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz", + "integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==", + "license": "MIT" + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrap": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/esrap/-/esrap-2.2.1.tgz", + "integrity": "sha512-GiYWG34AN/4CUyaWAgunGt0Rxvr1PTMlGC0vvEov/uOQYWne2bpN03Um+k8jT+q3op33mKouP2zeJ6OlM+qeUg==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/exit-hook": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz", + "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/file-type": { + "version": "16.5.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz", + "integrity": "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw==", + "license": "MIT", + "dependencies": { + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.2.4", + "token-types": "^4.1.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", + "license": "MIT" + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ioredis": { + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.8.2.tgz", + "integrity": "sha512-C6uC+kleiIMmjViJINWk80sOQw5lEzse1ZmvD+S/s8p8CWapftSaC+kocGTx6xrbrJ4WmYQGC08ffHLr6ToR6Q==", + "license": "MIT", + "dependencies": { + "@ioredis/commands": "1.4.0", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.4", + "denque": "^2.1.0", + "lodash.defaults": "^4.2.0", + "lodash.isarguments": "^3.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" + } + }, + "node_modules/iota-array": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz", + "integrity": "sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA==", + "license": "MIT" + }, + "node_modules/is-arrayish": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz", + "integrity": "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==", + "license": "MIT" + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "license": "(MIT OR GPL-3.0-or-later)", + "dependencies": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/known-css-properties": { + "version": "0.37.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.37.0.tgz", + "integrity": "sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "license": "MIT", + "dependencies": { + "immediate": "~3.0.5" + } + }, + "node_modules/lightningcss": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz", + "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.30.2", + "lightningcss-darwin-arm64": "1.30.2", + "lightningcss-darwin-x64": "1.30.2", + "lightningcss-freebsd-x64": "1.30.2", + "lightningcss-linux-arm-gnueabihf": "1.30.2", + "lightningcss-linux-arm64-gnu": "1.30.2", + "lightningcss-linux-arm64-musl": "1.30.2", + "lightningcss-linux-x64-gnu": "1.30.2", + "lightningcss-linux-x64-musl": "1.30.2", + "lightningcss-win32-arm64-msvc": "1.30.2", + "lightningcss-win32-x64-msvc": "1.30.2" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz", + "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz", + "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz", + "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz", + "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz", + "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz", + "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz", + "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz", + "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz", + "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz", + "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz", + "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/locate-character": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz", + "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==", + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", + "license": "MIT" + }, + "node_modules/lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/lucide-svelte": { + "version": "0.544.0", + "resolved": "https://registry.npmjs.org/lucide-svelte/-/lucide-svelte-0.544.0.tgz", + "integrity": "sha512-8kBxSivf8SJdEUJRHBpu9bRw0S/qfVK+Yfb92KQnRRBdP425RzT6aQfrIfZctG1oucPVTBQe1ZXgmth/3qVICg==", + "license": "ISC", + "peerDependencies": { + "svelte": "^3 || ^4 || ^5.0.0-next.42" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "dev": true, + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "license": "MIT", + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, + "node_modules/miniflare": { + "version": "4.20251210.0", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20251210.0.tgz", + "integrity": "sha512-k6kIoXwGVqlPZb0hcn+X7BmnK+8BjIIkusQPY22kCo2RaQJ/LzAjtxHQdGXerlHSnJyQivDQsL6BJHMpQfUFyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "acorn": "8.14.0", + "acorn-walk": "8.3.2", + "exit-hook": "2.2.1", + "glob-to-regexp": "0.4.1", + "sharp": "^0.33.5", + "stoppable": "1.1.0", + "undici": "7.14.0", + "workerd": "1.20251210.0", + "ws": "8.18.0", + "youch": "4.1.0-beta.10", + "zod": "3.22.3" + }, + "bin": { + "miniflare": "bootstrap.js" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/miniflare/node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/mrmime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ndarray": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz", + "integrity": "sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ==", + "license": "MIT", + "dependencies": { + "iota-array": "^1.0.0", + "is-buffer": "^1.0.2" + } + }, + "node_modules/ndarray-ops": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ndarray-ops/-/ndarray-ops-1.2.2.tgz", + "integrity": "sha512-BppWAFRjMYF7N/r6Ie51q6D4fs0iiGmeXIACKY66fLpnwIui3Wc3CXiD/30mgLbDjPpSLrsqcp3Z62+IcHZsDw==", + "license": "MIT", + "dependencies": { + "cwise-compiler": "^1.0.0" + } + }, + "node_modules/ndarray-pixels": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ndarray-pixels/-/ndarray-pixels-4.1.0.tgz", + "integrity": "sha512-xKPI4zXJ2pkUcVX24zIN1AWqqPWvRWWhRuO6PlY4EdB2VNRauNwA6rDdsAQG/ldQp0sU7nTXgPR/io1duy3Zyg==", + "license": "MIT", + "dependencies": { + "@types/ndarray": "^1.0.14", + "ndarray": "^1.0.19", + "ndarray-ops": "^1.2.2", + "sharp": "^0.33.4" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "dev": true, + "license": "MIT", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/nopt": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", + "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^3.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "license": "(MIT AND Zlib)" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-to-regexp": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", + "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/peek-readable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-4.1.0.tgz", + "integrity": "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dev": true, + "license": "MIT", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss-safe-parser": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz", + "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "engines": { + "node": ">=18.0" + }, + "peerDependencies": { + "postcss": "^8.4.31" + } + }, + "node_modules/postcss-scss": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz", + "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-scss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.4.29" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz", + "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-svelte": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-3.4.1.tgz", + "integrity": "sha512-xL49LCloMoZRvSwa6IEdN2GV6cq2IqpYGstYtMT+5wmml1/dClEoI0MZR78MiVPpu6BdQFfN0/y73yO6+br5Pg==", + "dev": true, + "license": "MIT", + "peer": true, + "peerDependencies": { + "prettier": "^3.0.0", + "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" + } + }, + "node_modules/prettier-plugin-tailwindcss": { + "version": "0.6.14", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.14.tgz", + "integrity": "sha512-pi2e/+ZygeIqntN+vC573BcW5Cve8zUB0SSAGxqpB4f96boZF4M3phPVoOFCeypwkpRYdi7+jQ5YJJUwrkGUAg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.21.3" + }, + "peerDependencies": { + "@ianvs/prettier-plugin-sort-imports": "*", + "@prettier/plugin-hermes": "*", + "@prettier/plugin-oxc": "*", + "@prettier/plugin-pug": "*", + "@shopify/prettier-plugin-liquid": "*", + "@trivago/prettier-plugin-sort-imports": "*", + "@zackad/prettier-plugin-twig": "*", + "prettier": "^3.0", + "prettier-plugin-astro": "*", + "prettier-plugin-css-order": "*", + "prettier-plugin-import-sort": "*", + "prettier-plugin-jsdoc": "*", + "prettier-plugin-marko": "*", + "prettier-plugin-multiline-arrays": "*", + "prettier-plugin-organize-attributes": "*", + "prettier-plugin-organize-imports": "*", + "prettier-plugin-sort-imports": "*", + "prettier-plugin-style-order": "*", + "prettier-plugin-svelte": "*" + }, + "peerDependenciesMeta": { + "@ianvs/prettier-plugin-sort-imports": { + "optional": true + }, + "@prettier/plugin-hermes": { + "optional": true + }, + "@prettier/plugin-oxc": { + "optional": true + }, + "@prettier/plugin-pug": { + "optional": true + }, + "@shopify/prettier-plugin-liquid": { + "optional": true + }, + "@trivago/prettier-plugin-sort-imports": { + "optional": true + }, + "@zackad/prettier-plugin-twig": { + "optional": true + }, + "prettier-plugin-astro": { + "optional": true + }, + "prettier-plugin-css-order": { + "optional": true + }, + "prettier-plugin-import-sort": { + "optional": true + }, + "prettier-plugin-jsdoc": { + "optional": true + }, + "prettier-plugin-marko": { + "optional": true + }, + "prettier-plugin-multiline-arrays": { + "optional": true + }, + "prettier-plugin-organize-attributes": { + "optional": true + }, + "prettier-plugin-organize-imports": { + "optional": true + }, + "prettier-plugin-sort-imports": { + "optional": true + }, + "prettier-plugin-style-order": { + "optional": true + }, + "prettier-plugin-svelte": { + "optional": true + } + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.4.tgz", + "integrity": "sha512-9nX56alTf5bwXQ3ZDipHJhusu9NTQJ/CVPtb/XHAJCXihZeitfJvIRS4GqQ/mfIoOE3IelHMrpayVrosdHBuLw==", + "license": "MIT", + "dependencies": { + "readable-stream": "^4.7.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/readable-web-to-node-stream/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/readable-web-to-node-stream/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/readable-web-to-node-stream/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/redis-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/redis-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", + "license": "MIT", + "dependencies": { + "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regexparam": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/regexparam/-/regexparam-3.0.0.tgz", + "integrity": "sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.54.0.tgz", + "integrity": "sha512-3nk8Y3a9Ea8szgKhinMlGMhGMw89mqule3KWczxhIzqudyHdCIOHw8WJlj/r329fACjKLEh13ZSk7oE22kyeIw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.54.0", + "@rollup/rollup-android-arm64": "4.54.0", + "@rollup/rollup-darwin-arm64": "4.54.0", + "@rollup/rollup-darwin-x64": "4.54.0", + "@rollup/rollup-freebsd-arm64": "4.54.0", + "@rollup/rollup-freebsd-x64": "4.54.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.54.0", + "@rollup/rollup-linux-arm-musleabihf": "4.54.0", + "@rollup/rollup-linux-arm64-gnu": "4.54.0", + "@rollup/rollup-linux-arm64-musl": "4.54.0", + "@rollup/rollup-linux-loong64-gnu": "4.54.0", + "@rollup/rollup-linux-ppc64-gnu": "4.54.0", + "@rollup/rollup-linux-riscv64-gnu": "4.54.0", + "@rollup/rollup-linux-riscv64-musl": "4.54.0", + "@rollup/rollup-linux-s390x-gnu": "4.54.0", + "@rollup/rollup-linux-x64-gnu": "4.54.0", + "@rollup/rollup-linux-x64-musl": "4.54.0", + "@rollup/rollup-openharmony-arm64": "4.54.0", + "@rollup/rollup-win32-arm64-msvc": "4.54.0", + "@rollup/rollup-win32-ia32-msvc": "4.54.0", + "@rollup/rollup-win32-x64-gnu": "4.54.0", + "@rollup/rollup-win32-x64-msvc": "4.54.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-cookie-parser": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", + "dev": true, + "license": "MIT" + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "license": "MIT" + }, + "node_modules/shaka-player": { + "version": "4.16.12", + "resolved": "https://registry.npmjs.org/shaka-player/-/shaka-player-4.16.12.tgz", + "integrity": "sha512-bUne2YBbpMId8tU9kPSeZWSJHKbt2t5XyH3all6OsReRrfFYP9apOgohInbaDXNd0T/S8hUgWQT+wqLKH41XJg==", + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/sharp": { + "version": "0.33.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", + "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "color": "^4.2.3", + "detect-libc": "^2.0.3", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.33.5", + "@img/sharp-darwin-x64": "0.33.5", + "@img/sharp-libvips-darwin-arm64": "1.0.4", + "@img/sharp-libvips-darwin-x64": "1.0.4", + "@img/sharp-libvips-linux-arm": "1.0.5", + "@img/sharp-libvips-linux-arm64": "1.0.4", + "@img/sharp-libvips-linux-s390x": "1.0.4", + "@img/sharp-libvips-linux-x64": "1.0.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", + "@img/sharp-libvips-linuxmusl-x64": "1.0.4", + "@img/sharp-linux-arm": "0.33.5", + "@img/sharp-linux-arm64": "0.33.5", + "@img/sharp-linux-s390x": "0.33.5", + "@img/sharp-linux-x64": "0.33.5", + "@img/sharp-linuxmusl-arm64": "0.33.5", + "@img/sharp-linuxmusl-x64": "0.33.5", + "@img/sharp-wasm32": "0.33.5", + "@img/sharp-win32-ia32": "0.33.5", + "@img/sharp-win32-x64": "0.33.5" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/simple-swizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz", + "integrity": "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/sirv": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz", + "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/standard-as-callback": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", + "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==", + "license": "MIT" + }, + "node_modules/stoppable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", + "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4", + "npm": ">=6" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strtok3": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.3.0.tgz", + "integrity": "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^4.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svelte": { + "version": "5.46.1", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.46.1.tgz", + "integrity": "sha512-ynjfCHD3nP2el70kN5Pmg37sSi0EjOm9FgHYQdC4giWG/hzO3AatzXXJJgP305uIhGQxSufJLuYWtkY8uK/8RA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/remapping": "^2.3.4", + "@jridgewell/sourcemap-codec": "^1.5.0", + "@sveltejs/acorn-typescript": "^1.0.5", + "@types/estree": "^1.0.5", + "acorn": "^8.12.1", + "aria-query": "^5.3.1", + "axobject-query": "^4.1.0", + "clsx": "^2.1.1", + "devalue": "^5.5.0", + "esm-env": "^1.2.1", + "esrap": "^2.2.1", + "is-reference": "^3.0.3", + "locate-character": "^3.0.0", + "magic-string": "^0.30.11", + "zimmerframe": "^1.1.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/svelte-check": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.3.5.tgz", + "integrity": "sha512-e4VWZETyXaKGhpkxOXP+B/d0Fp/zKViZoJmneZWe/05Y2aqSKj3YN2nLfYPJBQ87WEiY4BQCQ9hWGu9mPT1a1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "chokidar": "^4.0.1", + "fdir": "^6.2.0", + "picocolors": "^1.0.0", + "sade": "^1.7.4" + }, + "bin": { + "svelte-check": "bin/svelte-check" + }, + "engines": { + "node": ">= 18.0.0" + }, + "peerDependencies": { + "svelte": "^4.0.0 || ^5.0.0-next.0", + "typescript": ">=5.0.0" + } + }, + "node_modules/svelte-eslint-parser": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-1.4.1.tgz", + "integrity": "sha512-1eqkfQ93goAhjAXxZiu1SaKI9+0/sxp4JIWQwUpsz7ybehRE5L8dNuz7Iry7K22R47p5/+s9EM+38nHV2OlgXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.0.0", + "postcss": "^8.4.49", + "postcss-scss": "^4.0.9", + "postcss-selector-parser": "^7.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0", + "pnpm": "10.24.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + }, + "peerDependencies": { + "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "svelte": { + "optional": true + } + } + }, + "node_modules/svelte-eslint-parser/node_modules/postcss-selector-parser": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.1.tgz", + "integrity": "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svelte/node_modules/is-reference": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz", + "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.6" + } + }, + "node_modules/tailwindcss": { + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.18.tgz", + "integrity": "sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/tapable": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tar": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz", + "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/token-types": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz", + "integrity": "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/totalist": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.50.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.50.1.tgz", + "integrity": "sha512-ytTHO+SoYSbhAH9CrYnMhiLx8To6PSSvqnvXyPUgPETCvB6eBKmTI9w6XMPS3HsBRGkwTVBX+urA8dYQx6bHfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.50.1", + "@typescript-eslint/parser": "8.50.1", + "@typescript-eslint/typescript-estree": "8.50.1", + "@typescript-eslint/utils": "8.50.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/undici": { + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.14.0.tgz", + "integrity": "sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unenv": { + "version": "2.0.0-rc.24", + "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz", + "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "pathe": "^2.0.3" + } + }, + "node_modules/uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==", + "license": "MIT" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", + "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/esm/bin/uuid" + } + }, + "node_modules/vite": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.0.tgz", + "integrity": "sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-plugin-devtools-json": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/vite-plugin-devtools-json/-/vite-plugin-devtools-json-1.0.0.tgz", + "integrity": "sha512-MobvwqX76Vqt/O4AbnNMNWoXWGrKUqZbphCUle/J2KXH82yKQiunOeKnz/nqEPosPsoWWPP9FtNuPBSYpiiwkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "uuid": "^11.1.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", + "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", + "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", + "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", + "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", + "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", + "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", + "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", + "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", + "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", + "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", + "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", + "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", + "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", + "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", + "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", + "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", + "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", + "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", + "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", + "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", + "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", + "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", + "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", + "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", + "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", + "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", + "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.2", + "@esbuild/android-arm": "0.27.2", + "@esbuild/android-arm64": "0.27.2", + "@esbuild/android-x64": "0.27.2", + "@esbuild/darwin-arm64": "0.27.2", + "@esbuild/darwin-x64": "0.27.2", + "@esbuild/freebsd-arm64": "0.27.2", + "@esbuild/freebsd-x64": "0.27.2", + "@esbuild/linux-arm": "0.27.2", + "@esbuild/linux-arm64": "0.27.2", + "@esbuild/linux-ia32": "0.27.2", + "@esbuild/linux-loong64": "0.27.2", + "@esbuild/linux-mips64el": "0.27.2", + "@esbuild/linux-ppc64": "0.27.2", + "@esbuild/linux-riscv64": "0.27.2", + "@esbuild/linux-s390x": "0.27.2", + "@esbuild/linux-x64": "0.27.2", + "@esbuild/netbsd-arm64": "0.27.2", + "@esbuild/netbsd-x64": "0.27.2", + "@esbuild/openbsd-arm64": "0.27.2", + "@esbuild/openbsd-x64": "0.27.2", + "@esbuild/openharmony-arm64": "0.27.2", + "@esbuild/sunos-x64": "0.27.2", + "@esbuild/win32-arm64": "0.27.2", + "@esbuild/win32-ia32": "0.27.2", + "@esbuild/win32-x64": "0.27.2" + } + }, + "node_modules/vitefu": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.1.tgz", + "integrity": "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ==", + "dev": true, + "license": "MIT", + "workspaces": [ + "tests/deps/*", + "tests/projects/*", + "tests/projects/workspace/packages/*" + ], + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" + }, + "peerDependenciesMeta": { + "vite": { + "optional": true + } + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerd": { + "version": "1.20251210.0", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20251210.0.tgz", + "integrity": "sha512-9MUUneP1BnRE9XAYi94FXxHmiLGbO75EHQZsgWqSiOXjoXSqJCw8aQbIEPxCy19TclEl/kHUFYce8ST2W+Qpjw==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "workerd": "bin/workerd" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@cloudflare/workerd-darwin-64": "1.20251210.0", + "@cloudflare/workerd-darwin-arm64": "1.20251210.0", + "@cloudflare/workerd-linux-64": "1.20251210.0", + "@cloudflare/workerd-linux-arm64": "1.20251210.0", + "@cloudflare/workerd-windows-64": "1.20251210.0" + } + }, + "node_modules/worktop": { + "version": "0.8.0-next.18", + "resolved": "https://registry.npmjs.org/worktop/-/worktop-0.8.0-next.18.tgz", + "integrity": "sha512-+TvsA6VAVoMC3XDKR5MoC/qlLqDixEfOBysDEKnPIPou/NvoPWCAuXHXMsswwlvmEuvX56lQjvELLyLuzTKvRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mrmime": "^2.0.0", + "regexparam": "^3.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/wrangler": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.54.0.tgz", + "integrity": "sha512-bANFsjDwJLbprYoBK+hUDZsVbUv2SqJd8QvArLIcZk+fPq4h/Ohtj5vkKXD3k0s2bD1DXLk08D+hYmeNH+xC6A==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cloudflare/kv-asset-handler": "0.4.1", + "@cloudflare/unenv-preset": "2.7.13", + "blake3-wasm": "2.1.5", + "esbuild": "0.27.0", + "miniflare": "4.20251210.0", + "path-to-regexp": "6.3.0", + "unenv": "2.0.0-rc.24", + "workerd": "1.20251210.0" + }, + "bin": { + "wrangler": "bin/wrangler.js", + "wrangler2": "bin/wrangler.js" + }, + "engines": { + "node": ">=20.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@cloudflare/workers-types": "^4.20251210.0" + }, + "peerDependenciesMeta": { + "@cloudflare/workers-types": { + "optional": true + } + } + }, + "node_modules/wrangler/node_modules/@esbuild/aix-ppc64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.0.tgz", + "integrity": "sha512-KuZrd2hRjz01y5JK9mEBSD3Vj3mbCvemhT466rSuJYeE/hjuBrHfjjcjMdTm/sz7au+++sdbJZJmuBwQLuw68A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/android-arm": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.0.tgz", + "integrity": "sha512-j67aezrPNYWJEOHUNLPj9maeJte7uSMM6gMoxfPC9hOg8N02JuQi/T7ewumf4tNvJadFkvLZMlAq73b9uwdMyQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/android-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.0.tgz", + "integrity": "sha512-CC3vt4+1xZrs97/PKDkl0yN7w8edvU2vZvAFGD16n9F0Cvniy5qvzRXjfO1l94efczkkQE6g1x0i73Qf5uthOQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/android-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.0.tgz", + "integrity": "sha512-wurMkF1nmQajBO1+0CJmcN17U4BP6GqNSROP8t0X/Jiw2ltYGLHpEksp9MpoBqkrFR3kv2/te6Sha26k3+yZ9Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/darwin-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.0.tgz", + "integrity": "sha512-uJOQKYCcHhg07DL7i8MzjvS2LaP7W7Pn/7uA0B5S1EnqAirJtbyw4yC5jQ5qcFjHK9l6o/MX9QisBg12kNkdHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/darwin-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.0.tgz", + "integrity": "sha512-8mG6arH3yB/4ZXiEnXof5MK72dE6zM9cDvUcPtxhUZsDjESl9JipZYW60C3JGreKCEP+p8P/72r69m4AZGJd5g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.0.tgz", + "integrity": "sha512-9FHtyO988CwNMMOE3YIeci+UV+x5Zy8fI2qHNpsEtSF83YPBmE8UWmfYAQg6Ux7Gsmd4FejZqnEUZCMGaNQHQw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/freebsd-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.0.tgz", + "integrity": "sha512-zCMeMXI4HS/tXvJz8vWGexpZj2YVtRAihHLk1imZj4efx1BQzN76YFeKqlDr3bUWI26wHwLWPd3rwh6pe4EV7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-arm": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.0.tgz", + "integrity": "sha512-t76XLQDpxgmq2cNXKTVEB7O7YMb42atj2Re2Haf45HkaUpjM2J0UuJZDuaGbPbamzZ7bawyGFUkodL+zcE+jvQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.0.tgz", + "integrity": "sha512-AS18v0V+vZiLJyi/4LphvBE+OIX682Pu7ZYNsdUHyUKSoRwdnOsMf6FDekwoAFKej14WAkOef3zAORJgAtXnlQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-ia32": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.0.tgz", + "integrity": "sha512-Mz1jxqm/kfgKkc/KLHC5qIujMvnnarD9ra1cEcrs7qshTUSksPihGrWHVG5+osAIQ68577Zpww7SGapmzSt4Nw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-loong64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.0.tgz", + "integrity": "sha512-QbEREjdJeIreIAbdG2hLU1yXm1uu+LTdzoq1KCo4G4pFOLlvIspBm36QrQOar9LFduavoWX2msNFAAAY9j4BDg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-mips64el": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.0.tgz", + "integrity": "sha512-sJz3zRNe4tO2wxvDpH/HYJilb6+2YJxo/ZNbVdtFiKDufzWq4JmKAiHy9iGoLjAV7r/W32VgaHGkk35cUXlNOg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-ppc64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.0.tgz", + "integrity": "sha512-z9N10FBD0DCS2dmSABDBb5TLAyF1/ydVb+N4pi88T45efQ/w4ohr/F/QYCkxDPnkhkp6AIpIcQKQ8F0ANoA2JA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-riscv64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.0.tgz", + "integrity": "sha512-pQdyAIZ0BWIC5GyvVFn5awDiO14TkT/19FTmFcPdDec94KJ1uZcmFs21Fo8auMXzD4Tt+diXu1LW1gHus9fhFQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-s390x": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.0.tgz", + "integrity": "sha512-hPlRWR4eIDDEci953RI1BLZitgi5uqcsjKMxwYfmi4LcwyWo2IcRP+lThVnKjNtk90pLS8nKdroXYOqW+QQH+w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/linux-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.0.tgz", + "integrity": "sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.0.tgz", + "integrity": "sha512-6m0sfQfxfQfy1qRuecMkJlf1cIzTOgyaeXaiVaaki8/v+WB+U4hc6ik15ZW6TAllRlg/WuQXxWj1jx6C+dfy3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/netbsd-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.0.tgz", + "integrity": "sha512-xbbOdfn06FtcJ9d0ShxxvSn2iUsGd/lgPIO2V3VZIPDbEaIj1/3nBBe1AwuEZKXVXkMmpr6LUAgMkLD/4D2PPA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.0.tgz", + "integrity": "sha512-fWgqR8uNbCQ/GGv0yhzttj6sU/9Z5/Sv/VGU3F5OuXK6J6SlriONKrQ7tNlwBrJZXRYk5jUhuWvF7GYzGguBZQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/openbsd-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.0.tgz", + "integrity": "sha512-aCwlRdSNMNxkGGqQajMUza6uXzR/U0dIl1QmLjPtRbLOx3Gy3otfFu/VjATy4yQzo9yFDGTxYDo1FfAD9oRD2A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.0.tgz", + "integrity": "sha512-nyvsBccxNAsNYz2jVFYwEGuRRomqZ149A39SHWk4hV0jWxKM0hjBPm3AmdxcbHiFLbBSwG6SbpIcUbXjgyECfA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/sunos-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.0.tgz", + "integrity": "sha512-Q1KY1iJafM+UX6CFEL+F4HRTgygmEW568YMqDA5UV97AuZSm21b7SXIrRJDwXWPzr8MGr75fUZPV67FdtMHlHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/win32-arm64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.0.tgz", + "integrity": "sha512-W1eyGNi6d+8kOmZIwi/EDjrL9nxQIQ0MiGqe/AWc6+IaHloxHSGoeRgDRKHFISThLmsewZ5nHFvGFWdBYlgKPg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/win32-ia32": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.0.tgz", + "integrity": "sha512-30z1aKL9h22kQhilnYkORFYt+3wp7yZsHWus+wSKAJR8JtdfI76LJ4SBdMsCopTR3z/ORqVu5L1vtnHZWVj4cQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/@esbuild/win32-x64": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.0.tgz", + "integrity": "sha512-aIitBcjQeyOhMTImhLZmtxfdOcuNRpwlPNmlFKPcHQYPhEssw75Cl1TSXJXpMkzaua9FUetx/4OQKq7eJul5Cg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/wrangler/node_modules/esbuild": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.0.tgz", + "integrity": "sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.0", + "@esbuild/android-arm": "0.27.0", + "@esbuild/android-arm64": "0.27.0", + "@esbuild/android-x64": "0.27.0", + "@esbuild/darwin-arm64": "0.27.0", + "@esbuild/darwin-x64": "0.27.0", + "@esbuild/freebsd-arm64": "0.27.0", + "@esbuild/freebsd-x64": "0.27.0", + "@esbuild/linux-arm": "0.27.0", + "@esbuild/linux-arm64": "0.27.0", + "@esbuild/linux-ia32": "0.27.0", + "@esbuild/linux-loong64": "0.27.0", + "@esbuild/linux-mips64el": "0.27.0", + "@esbuild/linux-ppc64": "0.27.0", + "@esbuild/linux-riscv64": "0.27.0", + "@esbuild/linux-s390x": "0.27.0", + "@esbuild/linux-x64": "0.27.0", + "@esbuild/netbsd-arm64": "0.27.0", + "@esbuild/netbsd-x64": "0.27.0", + "@esbuild/openbsd-arm64": "0.27.0", + "@esbuild/openbsd-x64": "0.27.0", + "@esbuild/openharmony-arm64": "0.27.0", + "@esbuild/sunos-x64": "0.27.0", + "@esbuild/win32-arm64": "0.27.0", + "@esbuild/win32-ia32": "0.27.0", + "@esbuild/win32-x64": "0.27.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/youch": { + "version": "4.1.0-beta.10", + "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz", + "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@poppinss/colors": "^4.1.5", + "@poppinss/dumper": "^0.6.4", + "@speed-highlight/core": "^1.2.7", + "cookie": "^1.0.2", + "youch-core": "^0.3.3" + } + }, + "node_modules/youch-core": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz", + "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@poppinss/exception": "^1.2.2", + "error-stack-parser-es": "^1.0.5" + } + }, + "node_modules/youch/node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/zimmerframe": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.4.tgz", + "integrity": "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==", + "license": "MIT" + }, + "node_modules/zod": { + "version": "3.22.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz", + "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..f1484b9db933e76d5664679489bd1eb62112ab1e --- /dev/null +++ b/package.json @@ -0,0 +1,55 @@ +{ + "name": "tidal-ui", + "private": true, + "version": "3.0.0", + "license": "MPL-2.0", + "type": "module", + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", + "prepare": "svelte-kit sync || echo ''", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "format": "prettier --write .", + "lint": "prettier --check . && eslint ." + }, + "devDependencies": { + "@eslint/compat": "^1.2.5", + "@eslint/js": "^9.22.0", + "@sveltejs/adapter-auto": "^6.0.0", + "@sveltejs/adapter-cloudflare": "^7.2.4", + "@sveltejs/adapter-node": "^5.3.3", + "@sveltejs/adapter-vercel": "^5.10.3", + "@sveltejs/kit": "^2.22.0", + "@sveltejs/vite-plugin-svelte": "^6.0.0", + "@tailwindcss/forms": "^0.5.9", + "@tailwindcss/typography": "^0.5.15", + "@tailwindcss/vite": "^4.0.0", + "@types/colorthief": "^2.6.0", + "@types/node": "^20", + "eslint": "^9.22.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-svelte": "^3.0.0", + "globals": "^16.0.0", + "prettier": "^3.4.2", + "prettier-plugin-svelte": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.11", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", + "tailwindcss": "^4.0.0", + "typescript": "^5.0.0", + "typescript-eslint": "^8.20.0", + "vite": "^7.0.4", + "vite-plugin-devtools-json": "^1.0.0" + }, + "dependencies": { + "@ffmpeg/ffmpeg": "^0.12.6", + "@ffmpeg/util": "^0.12.1", + "colorthief": "^2.6.0", + "ioredis": "^5.4.1", + "jszip": "^3.10.1", + "lucide-svelte": "^0.544.0", + "shaka-player": "^4.11.7" + } +} diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000000000000000000000000000000000000..3b44819b9a118448382618df55e9da6f3f59e6b8 --- /dev/null +++ b/src/app.css @@ -0,0 +1,481 @@ +@import 'tailwindcss'; +@plugin '@tailwindcss/forms'; +@plugin '@tailwindcss/typography'; + +button, +[type='button'], +[type='submit'], +[type='reset'], +a, +[role='button'], +summary { + cursor: pointer; +} + +button:disabled, +[type='button']:disabled, +[type='submit']:disabled, +[type='reset']:disabled, +[role='button'][aria-disabled='true'], +a[aria-disabled='true'] { + cursor: not-allowed; +} + +/* ============================================ + DESIGN SYSTEM TOKENS + ============================================ */ + +/* Performance-optimized blur and effects */ +:root[data-performance='medium'] { + --perf-blur-high: 22px; + --perf-blur-medium: 18px; + --perf-blur-low: 14px; + --perf-saturate: 125%; +} + +:root[data-performance='low'] { + --perf-blur-high: 0px; + --perf-blur-medium: 0px; + --perf-blur-low: 0px; + --perf-saturate: 100%; +} + +:root[data-performance='low'] * { + backdrop-filter: none !important; + -webkit-backdrop-filter: none !important; +} + +:root[data-performance='low'] .glass-panel, +:root[data-performance='low'] .glass-toolbar, +:root[data-performance='low'] .settings-menu, +:root[data-performance='low'] .toolbar-button, +:root[data-performance='low'] .glass-option, +:root[data-performance='low'] .glass-action, +:root[data-performance='low'] .glass-option__chip, +:root[data-performance='low'] .glass-panel__footer, +:root[data-performance='low'] .navigation-overlay, +:root[data-performance='low'] .navigation-overlay__progress { + background-color: rgba(15, 23, 42, 0.92) !important; + border-color: rgba(148, 163, 184, 0.2) !important; + box-shadow: none !important; +} + +:root[data-performance='low'] .toolbar-button, +:root[data-performance='low'] .glass-option, +:root[data-performance='low'] .glass-action { + transition: none; +} + +:root:not([data-performance='medium']):not([data-performance='low']) { + --perf-blur-high: 32px; + --perf-blur-medium: 28px; + --perf-blur-low: 24px; + --perf-saturate: 160%; +} + +/* Enhanced Color Palette */ +:root { + /* Primary Blues */ + --color-primary-50: #eff6ff; + --color-primary-100: #dbeafe; + --color-primary-200: #bfdbfe; + --color-primary-300: #93c5fd; + --color-primary-400: #60a5fa; + --color-primary-500: #3b82f6; + --color-primary-600: #2563eb; + --color-primary-700: #1d4ed8; + --color-primary-800: #1e40af; + --color-primary-900: #1e3a8a; + + /* Accent Purples */ + --color-accent-400: #a78bfa; + --color-accent-500: #8b5cf6; + --color-accent-600: #7c3aed; + + /* Neutrals (Slate) */ + --color-neutral-50: #f8fafc; + --color-neutral-100: #f1f5f9; + --color-neutral-200: #e2e8f0; + --color-neutral-300: #cbd5e1; + --color-neutral-400: #94a3b8; + --color-neutral-500: #64748b; + --color-neutral-600: #475569; + --color-neutral-700: #334155; + --color-neutral-800: #1e293b; + --color-neutral-900: #0f172a; + --color-neutral-950: #020617; + + /* Semantic Colors */ + --color-success-500: #22c55e; + --color-warning-500: #f59e0b; + --color-error-500: #ef4444; + + /* Spacing Scale */ + --space-1: 0.25rem; + --space-2: 0.5rem; + --space-3: 0.75rem; + --space-4: 1rem; + --space-5: 1.25rem; + --space-6: 1.5rem; + --space-8: 2rem; + --space-10: 2.5rem; + --space-12: 3rem; + --space-16: 4rem; + + /* Border Radius */ + --radius-sm: 0.375rem; + --radius-md: 0.5rem; + --radius-lg: 0.75rem; + --radius-xl: 1rem; + --radius-2xl: 1.25rem; + --radius-full: 9999px; + + /* Shadows */ + --shadow-glow-sm: 0 0 10px rgba(59, 130, 246, 0.15); + --shadow-glow-md: 0 0 20px rgba(59, 130, 246, 0.2); + --shadow-glow-lg: 0 0 40px rgba(59, 130, 246, 0.25); + + /* Transitions */ + --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); + --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1); + --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1); + --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1); +} + +/* Gradient Definitions */ +.gradient-primary { + background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-accent-500) 100%); +} + +.gradient-text-primary { + background: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-accent-400) 100%); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} + +.gradient-text-hero { + background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); + background-size: 200% 200%; + -webkit-background-clip: text; + background-clip: text; + color: transparent; + animation: gradient-shift 8s ease infinite; +} + +@keyframes gradient-shift { + 0%, 100% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } +} + +/* Glass Effect Utilities */ +.glass-subtle { + background: rgba(15, 23, 42, 0.4); + backdrop-filter: blur(var(--perf-blur-low, 24px)) saturate(var(--perf-saturate, 160%)); + -webkit-backdrop-filter: blur(var(--perf-blur-low, 24px)) saturate(var(--perf-saturate, 160%)); + border: 1px solid rgba(148, 163, 184, 0.12); +} + +.glass-medium { + background: rgba(15, 23, 42, 0.55); + backdrop-filter: blur(var(--perf-blur-medium, 28px)) saturate(var(--perf-saturate, 160%)); + -webkit-backdrop-filter: blur(var(--perf-blur-medium, 28px)) saturate(var(--perf-saturate, 160%)); + border: 1px solid rgba(148, 163, 184, 0.15); +} + +.glass-strong { + background: rgba(15, 23, 42, 0.7); + backdrop-filter: blur(var(--perf-blur-high, 32px)) saturate(var(--perf-saturate, 160%)); + -webkit-backdrop-filter: blur(var(--perf-blur-high, 32px)) saturate(var(--perf-saturate, 160%)); + border: 1px solid rgba(148, 163, 184, 0.18); +} + +/* Hover Lift Effect */ +.hover-lift { + transition: transform var(--transition-base), box-shadow var(--transition-base); +} + +.hover-lift:hover { + transform: translateY(-2px); + box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); +} + +/* Glow on Focus/Hover */ +.glow-on-hover { + transition: box-shadow var(--transition-base); +} + +.glow-on-hover:hover { + box-shadow: var(--shadow-glow-md); +} + +/* Card Styles */ +.card-interactive { + transition: + transform var(--transition-base), + box-shadow var(--transition-base), + border-color var(--transition-slow); +} + +.card-interactive:hover { + transform: translateY(-2px) scale(1.01); + box-shadow: + 0 20px 50px rgba(2, 6, 23, 0.4), + var(--shadow-glow-sm); + border-color: rgba(148, 163, 184, 0.25); +} + +/* ============================================ + MOBILE PERFORMANCE OPTIMIZATIONS + ============================================ */ + +/* Mobile-specific blur reduction (major GPU savings) */ +@media (max-width: 768px) { + :root:not([data-performance='low']) { + --perf-blur-high: 16px; + --perf-blur-medium: 12px; + --perf-blur-low: 8px; + --perf-saturate: 130%; + } + + :root[data-performance='medium'] { + --perf-blur-high: 12px; + --perf-blur-medium: 8px; + --perf-blur-low: 6px; + --perf-saturate: 120%; + } +} + +/* Touch device optimizations */ +@media (pointer: coarse) { + /* Disable hover effects that cause sticky states on touch */ + .hover-lift:hover { + transform: none; + } + + /* Active state for touch feedback */ + .hover-lift:active { + transform: scale(0.98); + } + + .card-interactive:hover { + transform: none; + box-shadow: none; + } + + .card-interactive:active { + transform: scale(0.99); + background: rgba(148, 163, 184, 0.08); + } +} + +/* GPU acceleration for animated elements */ +.gpu-accelerated { + transform: translateZ(0); + will-change: transform; + backface-visibility: hidden; +} + +/* CSS Containment for performance */ +.contain-layout { + contain: layout; +} + +.contain-paint { + contain: paint; +} + +.contain-strict { + contain: strict; +} + +.contain-content { + contain: content; +} + +/* Off-screen content optimization */ +.content-visibility-auto { + content-visibility: auto; + contain-intrinsic-size: auto 300px; +} + +/* ============================================ + TOUCH-FRIENDLY DEFAULTS + ============================================ */ + +/* Minimum touch target size (44px as per Apple/Google guidelines) */ +.touch-target { + min-height: 44px; + min-width: 44px; +} + +.touch-target-lg { + min-height: 48px; + min-width: 48px; +} + +/* Remove tap highlight on mobile */ +* { + -webkit-tap-highlight-color: transparent; +} + +/* Safe area padding for notched devices */ +.safe-area-top { + padding-top: env(safe-area-inset-top, 0); +} + +.safe-area-bottom { + padding-bottom: env(safe-area-inset-bottom, 0); +} + +.safe-area-left { + padding-left: env(safe-area-inset-left, 0); +} + +.safe-area-right { + padding-right: env(safe-area-inset-right, 0); +} + +.safe-area-x { + padding-left: env(safe-area-inset-left, 0); + padding-right: env(safe-area-inset-right, 0); +} + +.safe-area-y { + padding-top: env(safe-area-inset-top, 0); + padding-bottom: env(safe-area-inset-bottom, 0); +} + +/* ============================================ + REDUCED MOTION PREFERENCES + ============================================ */ + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + } + + .gradient-text-hero { + animation: none; + background-size: 100% 100%; + } +} + +/* ============================================ + EFFICIENT MOBILE ANIMATIONS + ============================================ */ + +/* Simple fade for mobile (no transforms = cheaper) */ +@keyframes fade-in { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes fade-out { + from { opacity: 1; } + to { opacity: 0; } +} + +/* Slide animations using transform (GPU-accelerated) */ +@keyframes slide-up { + from { + opacity: 0; + transform: translateY(10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes slide-down { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* Pulse for loading states */ +@keyframes pulse-subtle { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.6; } +} + +.animate-pulse-subtle { + animation: pulse-subtle 2s ease-in-out infinite; +} + +/* ============================================ + SCROLLBAR STYLING + ============================================ */ + +/* Custom scrollbar for webkit browsers */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: rgba(15, 23, 42, 0.3); + border-radius: 4px; +} + +::-webkit-scrollbar-thumb { + background: rgba(148, 163, 184, 0.3); + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: rgba(148, 163, 184, 0.5); +} + +/* Firefox scrollbar */ +* { + scrollbar-width: thin; + scrollbar-color: rgba(148, 163, 184, 0.3) rgba(15, 23, 42, 0.3); +} + +/* figtree-regular - latin_latin-ext */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Figtree'; + font-style: normal; + font-weight: 400; + src: url('/fonts/figtree-v9-latin_latin-ext-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ + url('/fonts/figtree-v9-latin_latin-ext-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ +} +/* figtree-italic - latin_latin-ext */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Figtree'; + font-style: italic; + font-weight: 400; + src: url('/fonts/figtree-v9-latin_latin-ext-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ + url('/fonts/figtree-v9-latin_latin-ext-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ +} +/* figtree-700 - latin_latin-ext */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Figtree'; + font-style: normal; + font-weight: 700; + src: url('/fonts/figtree-v9-latin_latin-ext-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ + url('/fonts/figtree-v9-latin_latin-ext-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ +} +/* figtree-700italic - latin_latin-ext */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Figtree'; + font-style: italic; + font-weight: 700; + src: url('/fonts/figtree-v9-latin_latin-ext-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ + url('/fonts/figtree-v9-latin_latin-ext-700italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ +} \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2b2747ccef9a6993e9e8fbb0c224fe4dd51936f1 --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,32 @@ +// See https://svelte.dev/docs/kit/types#app.d.ts +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } +} + + declare module 'shaka-player/dist/shaka-player.compiled.js' { + const shaka: { + Player: new (mediaElement: HTMLMediaElement) => { + load(uri: string): Promise; + unload(): Promise; + destroy(): Promise; + getNetworkingEngine?: () => { + registerRequestFilter: ( + callback: (type: unknown, request: { method: string; uris: string[] }) => void + ) => void; + }; + }; + polyfill?: { + installAll?: () => void; + }; + }; + export default shaka; + } + +export {}; diff --git a/src/app.html b/src/app.html new file mode 100644 index 0000000000000000000000000000000000000000..1d303f9c851593656e838fd87dec075227872fe9 --- /dev/null +++ b/src/app.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/src/lib/api.ts b/src/lib/api.ts new file mode 100644 index 0000000000000000000000000000000000000000..82500fd64aff66ee33354173e09002f32120a994 --- /dev/null +++ b/src/lib/api.ts @@ -0,0 +1,2568 @@ +// API service for HIFI API +import { API_CONFIG, fetchWithCORS, selectApiTargetForRegion } from './config'; +import type { RegionOption } from '$lib/stores/region'; +import { deriveTrackQuality } from '$lib/utils/audioQuality'; +import { parseTidalUrl, type TidalUrlParseResult } from '$lib/utils/urlParser'; +import { formatArtistsForMetadata } from '$lib/utils'; +import type { + Track, + Artist, + Album, + Playlist, + SearchResponse, + AudioQuality, + StreamData, + CoverImage, + Lyrics, + TrackInfo, + TrackLookup, + ArtistDetails, + TrackRecommendationsResponse +} from './types'; + +const API_BASE = API_CONFIG.baseUrl; +const RATE_LIMIT_ERROR_MESSAGE = 'Too Many Requests. Please wait a moment and try again.'; +export const DASH_MANIFEST_UNAVAILABLE_CODE = 'DASH_MANIFEST_UNAVAILABLE'; + +type CodedError = Error & { code?: string }; + +export type TrackDownloadProgress = + | { stage: 'downloading'; receivedBytes: number; totalBytes?: number } + | { stage: 'embedding'; progress: number }; + +export type DashManifestResult = + | { + kind: 'dash'; + manifest: string; + contentType: string | null; + } + | { + kind: 'flac'; + manifestText: string; + urls: string[]; + contentType: string | null; + }; + +export interface DashManifestWithMetadata { + result: DashManifestResult; + trackInfo: { + sampleRate: number | null; + bitDepth: number | null; + replayGain: number | null; + }; +} + +export interface DownloadTrackOptions { + signal?: AbortSignal; + onProgress?: (progress: TrackDownloadProgress) => void; + onFfmpegCountdown?: (options: { totalBytes?: number; autoTriggered: boolean }) => void; + onFfmpegStart?: () => void; + onFfmpegProgress?: (progress: number) => void; + onFfmpegComplete?: () => void; + onFfmpegError?: (error: unknown) => void; + ffmpegAutoTriggered?: boolean; + convertAacToMp3?: boolean; + downloadCoverSeperately?: boolean; +} + +class LosslessAPI { + public baseUrl: string; + private metadataQueue: Promise = Promise.resolve(); + + constructor(baseUrl: string = API_BASE) { + this.baseUrl = baseUrl; + } + + private resolveRegionalBase(region: RegionOption = 'auto'): string { + try { + const target = selectApiTargetForRegion(region); + if (target?.baseUrl) { + return target.baseUrl; + } + } catch (error) { + console.warn('Falling back to default API base URL for region selection', { region, error }); + } + return this.baseUrl; + } + + private buildRegionalUrl(path: string, region: RegionOption = 'auto'): string { + const base = this.resolveRegionalBase(region).replace(/\/+$/, ''); + const normalizedPath = path.startsWith('/') ? path : `/${path}`; + return `${base}${normalizedPath}`; + } + + private normalizeSearchResponse( + data: unknown, + key: 'tracks' | 'albums' | 'artists' | 'playlists' + ): SearchResponse { + const section = this.findSearchSection(data, key, new Set()); + return this.buildSearchResponse(section); + } + + private buildSearchResponse( + section: Partial> | undefined + ): SearchResponse { + const items = section?.items; + const list = Array.isArray(items) ? (items as T[]) : []; + const limit = typeof section?.limit === 'number' ? section.limit : list.length; + const offset = typeof section?.offset === 'number' ? section.offset : 0; + const total = + typeof section?.totalNumberOfItems === 'number' ? section.totalNumberOfItems : list.length; + + return { + items: list, + limit, + offset, + totalNumberOfItems: total + }; + } + + private findSearchSection( + source: unknown, + key: 'tracks' | 'albums' | 'artists' | 'playlists', + visited: Set + ): Partial> | undefined { + if (!source) { + return undefined; + } + + if (Array.isArray(source)) { + for (const entry of source) { + const found = this.findSearchSection(entry, key, visited); + if (found) { + return found; + } + } + return undefined; + } + + if (typeof source !== 'object') { + return undefined; + } + + const objectRef = source as Record; + if (visited.has(objectRef)) { + return undefined; + } + visited.add(objectRef); + + if (!Array.isArray(source) && 'items' in objectRef && Array.isArray(objectRef.items)) { + return objectRef as Partial>; + } + + if (key in objectRef) { + const nested = objectRef[key]; + const fromKey = this.findSearchSection(nested, key, visited); + if (fromKey) { + return fromKey; + } + } + + for (const value of Object.values(objectRef)) { + const found = this.findSearchSection(value, key, visited); + if (found) { + return found; + } + } + + return undefined; + } + + private prepareTrack(track: Track): Track { + let normalized = track; + if (!track.artist && Array.isArray(track.artists) && track.artists.length > 0) { + normalized = { ...track, artist: track.artists[0]! }; + } + + const derivedQuality = deriveTrackQuality(normalized); + if (derivedQuality && normalized.audioQuality !== derivedQuality) { + normalized = { ...normalized, audioQuality: derivedQuality }; + } + + return normalized; + } + + private prepareAlbum(album: Album): Album { + if (!album.artist && Array.isArray(album.artists) && album.artists.length > 0) { + return { ...album, artist: album.artists[0]! }; + } + return album; + } + + private prepareArtist(artist: Artist): Artist { + if (!artist.type && Array.isArray(artist.artistTypes) && artist.artistTypes.length > 0) { + return { ...artist, type: artist.artistTypes[0]! } as Artist; + } + return artist; + } + + private ensureNotRateLimited(response: Response): void { + if (response.status === 429) { + throw new Error(RATE_LIMIT_ERROR_MESSAGE); + } + } + + private async delay(ms: number): Promise { + await new Promise((resolve) => setTimeout(resolve, ms)); + } + + private parseTrackLookup(data: unknown): TrackLookup { + const entries = Array.isArray(data) ? data : [data]; + let track: Track | undefined; + let info: TrackInfo | undefined; + let originalTrackUrl: string | undefined; + + for (const entry of entries) { + if (!entry || typeof entry !== 'object') continue; + if (!track && 'album' in entry && 'artist' in entry && 'duration' in entry) { + track = entry as Track; + continue; + } + if (!info && 'manifest' in entry) { + info = entry as TrackInfo; + continue; + } + if (!originalTrackUrl && 'OriginalTrackUrl' in entry) { + const candidate = (entry as { OriginalTrackUrl?: unknown }).OriginalTrackUrl; + if (typeof candidate === 'string') { + originalTrackUrl = candidate; + } + } + } + + if (!track || !info) { + throw new Error('Malformed track response'); + } + + return { track, info, originalTrackUrl }; + } + + private extractStreamUrlFromManifest(manifest: string): string | null { + try { + const decoded = this.decodeBase64Manifest(manifest); + try { + const parsed = JSON.parse(decoded) as { urls?: string[] }; + if (parsed && Array.isArray(parsed.urls) && parsed.urls.length > 0) { + return parsed.urls[0] ?? null; + } + } catch (jsonError) { + // Ignore JSON parse failure and fall back to regex/XML search + console.debug('Manifest JSON parse failed, falling back to pattern match', jsonError); + } + + // If this is a segmented DASH manifest, don't extract a URL - let it fall through to segment download + if (this.isSegmentedDashManifest(decoded)) { + return null; + } + + const mpdUrl = this.parseFlacUrlFromMpd(decoded); + if (mpdUrl) { + return mpdUrl; + } + + // Match all URLs and filter out schema/namespace URLs and segment URLs + const urlRegex = /https?:\/\/[\w\-.~:?#[\]@!$&'()*+,;=%/]+/g; + let match: RegExpExecArray | null; + while ((match = urlRegex.exec(decoded)) !== null) { + const url = match[0]; + // Skip segment template URLs and initialization segments + if (url.includes('$Number$')) continue; + if (/\/\d+\.mp4/.test(url)) continue; // Skip segment files like /0.mp4, /1.mp4, etc. + if (this.isValidMediaUrl(url)) { + return url; + } + } + return null; + } catch (error) { + console.error('Failed to decode manifest:', error); + return null; + } + } + + private isSegmentedDashManifest(decoded: string): boolean { + // Check if manifest contains SegmentTemplate which indicates segmented content + return /]/i.test(trimmed) || /^<\w+/i.test(trimmed); + } + + private parseJsonSafely(payload: string): T | null { + try { + return JSON.parse(payload) as T; + } catch (error) { + console.debug('Failed to parse JSON payload from DASH response', error); + return null; + } + } + + private createDashUnavailableError(message: string): CodedError { + const error = new Error(message) as CodedError; + error.code = DASH_MANIFEST_UNAVAILABLE_CODE; + return error; + } + + private isXmlContentType(contentType: string | null): boolean { + if (!contentType) return false; + return ( + /(application|text)\/(?:.+\+)?xml/i.test(contentType) || /dash\+xml|mpd/i.test(contentType) + ); + } + + private isJsonContentType(contentType: string | null): boolean { + if (!contentType) return false; + return /json/i.test(contentType) || /application\/vnd\.tidal\.bts/i.test(contentType); + } + + private extractUrlsFromDashJsonPayload(payload: unknown): string[] { + if (!payload || typeof payload !== 'object') { + return []; + } + + const candidate = (payload as { urls?: unknown }).urls; + if (!Array.isArray(candidate)) { + return []; + } + + return candidate + .map((entry) => (typeof entry === 'string' ? entry.trim() : '')) + .filter((entry) => entry.length > 0); + } + + private isHiResQuality(quality: AudioQuality | string): boolean { + return String(quality).toUpperCase() === 'HI_RES_LOSSLESS'; + } + + private isV2ApiContainer(payload: unknown): payload is { version?: unknown; data?: unknown } { + return Boolean( + payload && + typeof payload === 'object' && + 'version' in (payload as Record) && + String((payload as { version?: unknown }).version).startsWith('2.') + ); + } + + private decodeBase64Manifest(manifest: string): string { + if (typeof manifest !== 'string') return ''; + const trimmed = manifest.trim(); + if (!trimmed) return ''; + try { + // Support URL-safe base64 and missing padding + const normalized = (() => { + let value = trimmed.replace(/-/g, '+').replace(/_/g, '/'); + const pad = value.length % 4; + if (pad === 2) value += '=='; + if (pad === 3) value += '='; + return value; + })(); + const decoded = atob(normalized); + return decoded || trimmed; + } catch { + return trimmed; + } + } + + private extractTrackFromPayload(payload: unknown): Track | undefined { + const candidates: unknown[] = []; + if (!payload) return undefined; + if (Array.isArray(payload)) { + candidates.push(...payload); + } else if (typeof payload === 'object') { + candidates.push(payload); + for (const value of Object.values(payload as Record)) { + if (value && (typeof value === 'object' || Array.isArray(value))) { + candidates.push(value); + } + } + } + + const isTrackLike = (entry: unknown): entry is Track => { + if (!entry || typeof entry !== 'object') return false; + const record = entry as Record; + return ( + typeof record.id === 'number' && + typeof record.title === 'string' && + typeof record.duration === 'number' + ); + }; + + for (const candidate of candidates) { + if (isTrackLike(candidate)) { + return candidate as Track; + } + } + return undefined; + } + + private async fetchTrackMetadata( + trackId: number, + apiVersion: 'v1' | 'v2' = 'v2' + ): Promise { + const response = await this.fetch(`${this.baseUrl}/info/?id=${trackId}`, { apiVersion }); + this.ensureNotRateLimited(response); + if (!response.ok) { + throw new Error('Failed to fetch track metadata'); + } + const payload = await response.json(); + const data = this.isV2ApiContainer(payload) ? payload.data : payload; + const track = this.extractTrackFromPayload(data); + if (!track) { + throw new Error('Track metadata not found'); + } + return this.prepareTrack(track); + } + + private buildTrackInfoFromV2(data: Record, fallbackTrackId: number): TrackInfo { + const manifestMimeType = + typeof data.manifestMimeType === 'string' && data.manifestMimeType.trim().length > 0 + ? data.manifestMimeType + : 'application/dash+xml'; + + return { + trackId: typeof data.trackId === 'number' ? data.trackId : fallbackTrackId, + audioMode: typeof data.audioMode === 'string' ? data.audioMode : 'STEREO', + audioQuality: typeof data.audioQuality === 'string' ? data.audioQuality : 'LOSSLESS', + manifest: typeof data.manifest === 'string' ? data.manifest : '', + manifestMimeType, + manifestHash: typeof data.manifestHash === 'string' ? data.manifestHash : undefined, + assetPresentation: + typeof data.assetPresentation === 'string' ? data.assetPresentation : 'FULL', + albumReplayGain: typeof data.albumReplayGain === 'number' ? data.albumReplayGain : undefined, + albumPeakAmplitude: + typeof data.albumPeakAmplitude === 'number' ? data.albumPeakAmplitude : undefined, + trackReplayGain: typeof data.trackReplayGain === 'number' ? data.trackReplayGain : undefined, + trackPeakAmplitude: + typeof data.trackPeakAmplitude === 'number' ? data.trackPeakAmplitude : undefined, + bitDepth: typeof data.bitDepth === 'number' ? data.bitDepth : undefined, + sampleRate: typeof data.sampleRate === 'number' ? data.sampleRate : undefined + }; + } + + private extractOriginalTrackUrl(payload: Record): string | undefined { + const originalUrl = + typeof payload.OriginalTrackUrl === 'string' + ? payload.OriginalTrackUrl + : typeof payload.originalTrackUrl === 'string' + ? payload.originalTrackUrl + : undefined; + return originalUrl; + } + + private async parseTrackLookupV2( + trackId: number, + payload: { data?: unknown }, + apiVersion: 'v1' | 'v2' = 'v2' + ): Promise { + const container = (payload?.data ?? payload) as Record; + const trackInfo = this.buildTrackInfoFromV2(container, trackId); + let track = this.extractTrackFromPayload(container) ?? null; + if (!track) { + track = await this.fetchTrackMetadata(trackId, apiVersion); + } + + return { + track: this.prepareTrack(track), + info: trackInfo, + originalTrackUrl: this.extractOriginalTrackUrl(container) + }; + } + + private buildDashManifestResult(payload: string, contentType: string | null): DashManifestResult { + const manifestText = this.decodeBase64Manifest(payload); + + if ( + this.isXmlContentType(contentType) || + this.isDashManifestPayload(manifestText, contentType) + ) { + return { kind: 'dash', manifest: manifestText, contentType }; + } + + const trimmed = manifestText.trim(); + if (this.isJsonContentType(contentType) || trimmed.startsWith('{') || trimmed.startsWith('[')) { + const parsed = this.parseJsonSafely<{ detail?: unknown; urls?: unknown }>(manifestText); + if ( + parsed && + typeof parsed === 'object' && + parsed.detail && + typeof parsed.detail === 'string' && + parsed.detail.toLowerCase() === 'not found' + ) { + throw this.createDashUnavailableError('Dash manifest not found for track'); + } + const urls = this.extractUrlsFromDashJsonPayload(parsed); + if (urls.length > 0) { + return { kind: 'flac', manifestText, urls, contentType }; + } + } + + if (this.isDashManifestPayload(manifestText, contentType)) { + return { kind: 'dash', manifest: manifestText, contentType }; + } + + const parsed = this.parseJsonSafely(manifestText); + const urls = this.extractUrlsFromDashJsonPayload(parsed); + if (urls.length > 0) { + return { kind: 'flac', manifestText, urls, contentType }; + } + + throw this.createDashUnavailableError('Received unexpected payload from dash endpoint.'); + } + + private isValidMediaUrl(url: string): boolean { + if (!url) return false; + const normalized = url.toLowerCase(); + // Filter out XML schema/namespace URLs + if (normalized.includes('w3.org')) return false; + if (normalized.includes('xmlschema')) return false; + if (normalized.includes('xmlns')) return false; + // Must look like a media URL (has extension or query params suggesting media) + if ( + normalized.includes('.flac') || + normalized.includes('.mp4') || + normalized.includes('.m4a') || + normalized.includes('.aac') || + normalized.includes('token=') || + normalized.includes('/audio/') + ) { + return true; + } + // If it has a file-like path segment, it's likely valid + if (/\/[^/]+\.[a-z0-9]{2,5}(\?|$)/i.test(url)) return true; + // If it's a relative path starting with a segment name, likely valid + if (/^[a-z0-9_-]+\//i.test(url)) return true; + // If it ends with a path segment that could be a file + if (/\/[a-z0-9_-]+$/i.test(url)) return true; + return false; + } + + private parseFlacUrlFromMpd(manifestText: string): string | null { + const trimmed = manifestText.trim(); + if (!trimmed) return null; + + const isValidMediaUrl = this.isValidMediaUrl.bind(this); + + const scoreUrl = (url: string | undefined | null): number => { + if (!url) return -1; + const normalized = url.toLowerCase(); + let score = 0; + if (normalized.includes('flac')) score += 3; + if (normalized.includes('hires')) score += 1; + if (normalized.endsWith('.flac')) score += 4; + if (normalized.includes('token=')) score += 1; + return score; + }; + + const pickBest = (urls: Array): string | null => { + const candidates = urls + .map((u) => (typeof u === 'string' ? u.trim() : '')) + .filter((u) => u.length > 0 && isValidMediaUrl(u)); + if (candidates.length === 0) return null; + return candidates.sort((a, b) => scoreUrl(b) - scoreUrl(a))[0] ?? null; + }; + + // Prefer DOMParser when available (browser side) + if (typeof DOMParser !== 'undefined') { + try { + const doc = new DOMParser().parseFromString(trimmed, 'application/xml'); + const baseUrls = Array.from(doc.getElementsByTagName('BaseURL')).map( + (n) => n.textContent?.trim() ?? '' + ); + if (baseUrls.length > 0) { + const best = pickBest(baseUrls); + if (best) return best; + } + + const reps = Array.from(doc.getElementsByTagName('Representation')); + for (const rep of reps) { + const codecs = rep.getAttribute('codecs')?.toLowerCase() ?? ''; + const base = Array.from(rep.getElementsByTagName('BaseURL')).map( + (n) => n.textContent?.trim() ?? '' + ); + if (base.length > 0 && codecs.includes('flac')) { + const best = pickBest(base); + if (best) return best; + } + } + } catch (error) { + console.debug('Failed to parse MPD manifest via DOMParser', error); + } + } + + // Regex fallback for SSR / non-browser + const baseUrlMatch = trimmed.match(/]*>([^<]+)<\/BaseURL>/i); + if (baseUrlMatch?.[1]) { + const candidate = baseUrlMatch[1].trim(); + if (isValidMediaUrl(candidate)) { + return candidate; + } + } + + return null; + } + + private parseMpdSegmentTemplate(manifestText: string): { + initializationUrl: string; + mediaUrlTemplate: string; + startNumber: number; + segmentTimeline: Array<{ duration: number; repeat: number }>; + baseUrl?: string; + codec?: string; + } | null { + const trimmed = manifestText.trim(); + if (!trimmed) return null; + + const parseWithDom = () => { + if (typeof DOMParser === 'undefined') return null; + try { + const doc = new DOMParser().parseFromString(trimmed, 'application/xml'); + const rawBaseUrl = doc.getElementsByTagName('BaseURL')[0]?.textContent?.trim(); + // Filter out schema/namespace URLs + const baseUrl = rawBaseUrl && this.isValidMediaUrl(rawBaseUrl) ? rawBaseUrl : undefined; + + let template: Element | null = null; + let codec: string | undefined; + + const representations = Array.from(doc.getElementsByTagName('Representation')); + for (const rep of representations) { + const candidateTemplate = rep.getElementsByTagName('SegmentTemplate')[0]; + if (!candidateTemplate) continue; + const codecsAttr = rep.getAttribute('codecs')?.toLowerCase() ?? ''; + if (!template || codecsAttr.includes('flac')) { + template = candidateTemplate; + codec = codecsAttr || undefined; + if (codecsAttr.includes('flac')) break; + } + } + + if (!template) { + template = doc.getElementsByTagName('SegmentTemplate')[0] ?? null; + } + + if (!template) return null; + + const initializationUrl = template.getAttribute('initialization')?.trim(); + const mediaUrlTemplate = template.getAttribute('media')?.trim(); + if (!initializationUrl || !mediaUrlTemplate) return null; + + const startNumber = Number.parseInt(template.getAttribute('startNumber') ?? '1', 10); + const timelineParent = template.getElementsByTagName('SegmentTimeline')[0]; + const segmentTimeline: Array<{ duration: number; repeat: number }> = []; + if (timelineParent) { + const segments = timelineParent.getElementsByTagName('S'); + for (const seg of Array.from(segments)) { + const duration = Number.parseInt(seg.getAttribute('d') ?? '0', 10); + if (!Number.isFinite(duration) || duration <= 0) continue; + const repeat = Number.parseInt(seg.getAttribute('r') ?? '0', 10); + segmentTimeline.push({ duration, repeat: Number.isFinite(repeat) ? repeat : 0 }); + } + } + + return { + initializationUrl, + mediaUrlTemplate, + startNumber: Number.isFinite(startNumber) && startNumber > 0 ? startNumber : 1, + segmentTimeline, + baseUrl, + codec + }; + } catch (error) { + console.debug('Failed to parse MPD manifest with DOMParser', error); + return null; + } + }; + + const parseWithRegex = () => { + const initializationUrl = /initialization="([^"]+)"/i.exec(trimmed)?.[1]?.trim(); + const mediaUrlTemplate = /media="([^"]+)"/i.exec(trimmed)?.[1]?.trim(); + if (!initializationUrl || !mediaUrlTemplate) return null; + const startNumberMatch = /startNumber="(\d+)"/i.exec(trimmed); + const startNumber = startNumberMatch ? Number.parseInt(startNumberMatch[1]!, 10) : 1; + const segmentTimeline: Array<{ duration: number; repeat: number }> = []; + // Match elements with d attribute, r attribute is optional + const timelineRegex = /]*\sd="(\d+)"(?:[^>]*\sr="(-?\d+)")?[^>]*\/?>/gi; + let match: RegExpExecArray | null; + while ((match = timelineRegex.exec(trimmed)) !== null) { + const duration = Number.parseInt(match[1]!, 10); + const repeat = match[2] ? Number.parseInt(match[2], 10) : 0; + if (Number.isFinite(duration) && duration > 0) { + segmentTimeline.push({ duration, repeat: Number.isFinite(repeat) ? repeat : 0 }); + } + } + + return { + initializationUrl, + mediaUrlTemplate, + startNumber: Number.isFinite(startNumber) && startNumber > 0 ? startNumber : 1, + segmentTimeline + }; + }; + + return parseWithDom() ?? parseWithRegex(); + } + + private buildMpdSegmentUrls( + template: { + initializationUrl: string; + mediaUrlTemplate: string; + startNumber: number; + segmentTimeline: Array<{ duration: number; repeat: number }>; + baseUrl?: string; + codec?: string; + } | null + ): { initializationUrl: string; segmentUrls: string[] } | null { + if (!template) return null; + + const resolveUrl = (url: string): string => { + if (/^https?:\/\//i.test(url)) return url; + if (template.baseUrl) { + try { + return new URL(url, template.baseUrl).toString(); + } catch { + return `${template.baseUrl.replace(/\/+$/, '')}/${url.replace(/^\/+/, '')}`; + } + } + return url; + }; + + const initializationUrl = resolveUrl(template.initializationUrl); + const segmentUrls: string[] = []; + let segmentNumber = template.startNumber; + const timeline = + template.segmentTimeline.length > 0 ? template.segmentTimeline : [{ duration: 0, repeat: 0 }]; + + for (const entry of timeline) { + const repeat = Number.isFinite(entry.repeat) ? entry.repeat : 0; + const count = Math.max(1, repeat + 1); + for (let i = 0; i < count; i += 1) { + const url = template.mediaUrlTemplate.replace('$Number$', `${segmentNumber}`); + segmentUrls.push(resolveUrl(url)); + segmentNumber += 1; + } + } + + return { initializationUrl, segmentUrls }; + } + + private async downloadFlacFromMpd( + manifestText: string, + options?: DownloadTrackOptions + ): Promise<{ blob: Blob; mimeType: string } | null> { + const template = this.parseMpdSegmentTemplate(manifestText); + const segments = this.buildMpdSegmentUrls(template); + if (!segments) return null; + + const urls = [segments.initializationUrl, ...segments.segmentUrls]; + const chunks: Uint8Array[] = []; + let receivedBytes = 0; + + for (const url of urls) { + const response = await this.fetch(url, { signal: options?.signal }); + if (!response.ok) { + throw new Error(`Failed to fetch DASH segment (status ${response.status})`); + } + const buffer = await response.arrayBuffer(); + const chunk = new Uint8Array(buffer); + receivedBytes += chunk.byteLength; + chunks.push(chunk); + options?.onProgress?.({ stage: 'downloading', receivedBytes, totalBytes: undefined }); + } + + const totalBytes = chunks.reduce((total, current) => total + current.byteLength, 0); + const merged = new Uint8Array(totalBytes); + let offset = 0; + for (const chunk of chunks) { + merged.set(chunk, offset); + offset += chunk.byteLength; + } + + return { blob: new Blob([merged], { type: 'audio/flac' }), mimeType: 'audio/flac' }; + } + + private async resolveHiResStreamFromDash(trackId: number): Promise { + const manifest = await this.getDashManifest(trackId, 'HI_RES_LOSSLESS'); + if (manifest.kind === 'flac') { + const url = manifest.urls.find( + (candidate) => typeof candidate === 'string' && candidate.length > 0 + ); + if (url) { + return url; + } + throw new Error('DASH manifest did not include any FLAC URLs.'); + } + const directUrl = this.parseFlacUrlFromMpd(manifest.manifest); + if (directUrl) { + return directUrl; + } + throw new Error('Hi-res DASH manifest does not expose a direct FLAC URL.'); + } + + /** + * Fetch wrapper with CORS handling + */ + private async fetch( + url: string, + options?: RequestInit & { + apiVersion?: 'v1' | 'v2'; + preferredQuality?: string; + validateResponse?: (res: Response) => Promise; + } + ): Promise { + return fetchWithCORS(url, options); + } + + /** + * Search for tracks + */ + async searchTracks(query: string, region: RegionOption = 'auto'): Promise> { + const response = await this.fetch( + this.buildRegionalUrl(`/search/?s=${encodeURIComponent(query)}`, region) + ); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to search tracks'); + const data = await response.json(); + const normalized = this.normalizeSearchResponse(data, 'tracks'); + return { + ...normalized, + items: normalized.items.map((track) => this.prepareTrack(track)) + }; + } + + /** + * Search for artists + */ + async searchArtists( + query: string, + region: RegionOption = 'auto' + ): Promise> { + const response = await this.fetch( + this.buildRegionalUrl(`/search/?a=${encodeURIComponent(query)}`, region) + ); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to search artists'); + const data = await response.json(); + const normalized = this.normalizeSearchResponse(data, 'artists'); + return { + ...normalized, + items: normalized.items.map((artist) => this.prepareArtist(artist)) + }; + } + + /** + * Search for albums + */ + async searchAlbums(query: string, region: RegionOption = 'auto'): Promise> { + const response = await this.fetch( + this.buildRegionalUrl(`/search/?al=${encodeURIComponent(query)}`, region) + ); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to search albums'); + const data = await response.json(); + const normalized = this.normalizeSearchResponse(data, 'albums'); + return { + ...normalized, + items: normalized.items.map((album) => this.prepareAlbum(album)) + }; + } + + /** + * Search for playlists + */ + async searchPlaylists( + query: string, + region: RegionOption = 'auto' + ): Promise> { + const response = await this.fetch( + this.buildRegionalUrl(`/search/?p=${encodeURIComponent(query)}`, region) + ); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to search playlists'); + const data = await response.json(); + return this.normalizeSearchResponse(data, 'playlists'); + } + + /** + * Import content from a Tidal URL + * Supports track, album, artist, and playlist URLs + */ + async importFromUrl(url: string): Promise<{ + type: 'track' | 'album' | 'artist' | 'playlist'; + data: Track | Album | Artist | { playlist: Playlist; tracks: Track[] }; + }> { + const parsed = parseTidalUrl(url); + + if (parsed.type === 'unknown') { + throw new Error( + 'Invalid Tidal URL. Please provide a valid track, album, artist, or playlist URL.' + ); + } + + switch (parsed.type) { + case 'track': { + if (!parsed.trackId) { + throw new Error('Could not extract track ID from URL'); + } + const lookup = await this.getTrack(parsed.trackId); + return { + type: 'track', + data: this.prepareTrack(lookup.track) + }; + } + + case 'album': { + if (!parsed.albumId) { + throw new Error('Could not extract album ID from URL'); + } + const { album } = await this.getAlbum(parsed.albumId); + return { + type: 'album', + data: this.prepareAlbum(album) + }; + } + + case 'artist': { + if (!parsed.artistId) { + throw new Error('Could not extract artist ID from URL'); + } + const artist = await this.getArtist(parsed.artistId); + return { + type: 'artist', + data: this.prepareArtist(artist) + }; + } + + case 'playlist': { + if (!parsed.playlistId) { + throw new Error('Could not extract playlist ID from URL'); + } + const { playlist, items } = await this.getPlaylist(parsed.playlistId); + const tracks = items.map((item) => this.prepareTrack(item.item)); + return { + type: 'playlist', + data: { playlist, tracks } + }; + } + + default: + throw new Error('Unsupported URL type'); + } + } + + /** + * Get track info and stream URL (with retries for quality fallback) + */ + async getTrack(id: number, quality: AudioQuality = 'LOSSLESS'): Promise { + const url = `${this.baseUrl}/track/?id=${id}&quality=${quality}`; + let lastError: Error | null = null; + + for (let attempt = 1; attempt <= 3; attempt += 1) { + const response = await this.fetch(url, { + apiVersion: 'v2', + validateResponse: async (res) => { + try { + const data = await res.json(); + const container = (data?.data ?? data) as Record; + return container?.assetPresentation !== 'PREVIEW'; + } catch { + return true; + } + } + }); + this.ensureNotRateLimited(response); + if (response.ok) { + const data = await response.json(); + if (this.isV2ApiContainer(data)) { + return await this.parseTrackLookupV2(id, data, 'v2'); + } + return this.parseTrackLookup(data); + } + + let detail: string | undefined; + let userMessage: string | undefined; + let subStatus: number | undefined; + try { + const errorData = (await response.json()) as { + detail?: unknown; + subStatus?: unknown; + userMessage?: unknown; + }; + if (typeof errorData?.detail === 'string') { + detail = errorData.detail; + } + if (typeof errorData?.userMessage === 'string') { + userMessage = errorData.userMessage; + if (!detail) { + detail = errorData.userMessage; + } + } + if (typeof errorData?.subStatus === 'number') { + subStatus = errorData.subStatus; + } + } catch { + // Ignore JSON parse errors + } + + const isTokenRetry = response.status === 401 && subStatus === 11002; + const message = detail ?? `Failed to get track (status ${response.status})`; + lastError = new Error(isTokenRetry ? (userMessage ?? message) : message); + const shouldRetry = + isTokenRetry || (detail ? /quality not found/i.test(detail) : response.status >= 500); + + if (attempt === 3 || !shouldRetry) { + throw lastError; + } + + await this.delay(200 * attempt); + } + + throw lastError ?? new Error('Failed to get track'); + } + + async getRecommendations(trackId: number): Promise { + const response = await this.fetch(`${this.baseUrl}/recommendations/?id=${trackId}`); + this.ensureNotRateLimited(response); + if (!response.ok) { + throw new Error('Failed to fetch track recommendations'); + } + const payload: TrackRecommendationsResponse = await response.json(); + if (!payload.data.items) { + throw new Error('No recommendations found'); + } + return payload.data.items.map(item => item.track); + } + + async getDashManifest( + trackId: number, + quality: AudioQuality = 'HI_RES_LOSSLESS' + ): Promise { + const { result } = await this.getDashManifestWithMetadata(trackId, quality); + return result; + } + + async getDashManifestWithMetadata( + trackId: number, + quality: AudioQuality = 'HI_RES_LOSSLESS' + ): Promise { + let lastError: Error | null = null; + + for (let attempt = 1; attempt <= 3; attempt += 1) { + try { + const lookup = await this.getTrack(trackId, quality); + const manifestPayload = lookup.info?.manifest ?? ''; + const contentType = lookup.info?.manifestMimeType ?? null; + const result = this.buildDashManifestResult(manifestPayload, contentType); + const trackInfo = { + sampleRate: lookup.info?.sampleRate ?? null, + bitDepth: lookup.info?.bitDepth ?? null, + replayGain: lookup.info?.trackReplayGain ?? null + }; + return { result, trackInfo }; + } catch (error) { + lastError = error instanceof Error ? error : new Error(String(error)); + } + + if (attempt < 3) { + await this.delay(200 * attempt); + } + } + + throw lastError ?? this.createDashUnavailableError('Unable to load dash manifest for track'); + } + + /** + * Get song with stream info + */ + async getSong(query: string, quality: AudioQuality = 'LOSSLESS'): Promise { + const response = await this.fetch( + `${this.baseUrl}/song/?q=${encodeURIComponent(query)}&quality=${quality}` + ); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get song'); + return response.json(); + } + + /** + * Get album details with track listing + */ + async getAlbum(id: number): Promise<{ album: Album; tracks: Track[] }> { + const response = await this.fetch(`${this.baseUrl}/album/?id=${id}`); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get album'); + const data = await response.json(); + + // Handle v2/new API structure where response is { version, data: { items: [...] } } + if (data && typeof data === 'object' && 'data' in data && 'items' in data.data) { + const items = data.data.items; + if (Array.isArray(items) && items.length > 0) { + const firstItem = items[0]; + const firstTrack = firstItem.item || firstItem; + + if (firstTrack && firstTrack.album) { + let albumEntry = this.prepareAlbum(firstTrack.album); + + // If album doesn't have artist info, try to get it from the track + if (!albumEntry.artist && firstTrack.artist) { + albumEntry = { ...albumEntry, artist: firstTrack.artist }; + } + + const tracks = items + .map((i: unknown) => { + if (!i || typeof i !== 'object') return null; + const itemObj = i as { item?: unknown }; + const t = (itemObj.item || itemObj) as Track; + + if (!t) return null; + // Ensure track has album reference + return this.prepareTrack({ ...t, album: albumEntry }); + }) + .filter((t): t is Track => t !== null); + + return { album: albumEntry, tracks }; + } + } + } + + const entries = Array.isArray(data) ? data : [data]; + + let albumEntry: Album | undefined; + let trackCollection: { items?: unknown[] } | undefined; + + for (const entry of entries) { + if (!entry || typeof entry !== 'object') continue; + + if (!albumEntry && 'title' in entry && 'id' in entry && 'cover' in entry) { + albumEntry = this.prepareAlbum(entry as Album); + continue; + } + + if ( + !trackCollection && + 'items' in entry && + Array.isArray((entry as { items?: unknown[] }).items) + ) { + trackCollection = entry as { items?: unknown[] }; + } + } + + if (!albumEntry) { + throw new Error('Album not found'); + } + + const tracks: Track[] = []; + if (trackCollection?.items) { + for (const rawItem of trackCollection.items) { + if (!rawItem || typeof rawItem !== 'object') continue; + + let trackCandidate: Track | undefined; + if ('item' in rawItem && rawItem.item && typeof rawItem.item === 'object') { + trackCandidate = rawItem.item as Track; + } else { + trackCandidate = rawItem as Track; + } + + if (!trackCandidate) continue; + + const candidateWithAlbum = trackCandidate.album + ? trackCandidate + : ({ ...trackCandidate, album: albumEntry } as Track); + tracks.push(this.prepareTrack(candidateWithAlbum)); + } + } + + return { album: albumEntry, tracks }; + } + + /** + * Get playlist details + */ + async getPlaylist(uuid: string): Promise<{ playlist: Playlist; items: Array<{ item: Track }> }> { + const response = await this.fetch(`${this.baseUrl}/playlist/?id=${uuid}`); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get playlist'); + const data = await response.json(); + + // Handle v2 structure (object with playlist and items keys) + if (data && typeof data === 'object' && 'playlist' in data && 'items' in data) { + return { + playlist: data.playlist, + items: data.items + }; + } + + return { + playlist: Array.isArray(data) ? data[0] : data, + items: Array.isArray(data) && data[1] ? data[1].items : [] + }; + } + + /** + * Get artist overview, including discography modules and top tracks + */ + async getArtist(id: number): Promise { + const response = await this.fetch(`${this.baseUrl}/artist/?f=${id}`); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get artist'); + const data = await response.json(); + const entries = Array.isArray(data) ? data : [data]; + + const visited = new Set(); + const albumMap = new Map(); + const trackMap = new Map(); + let artist: Artist | undefined; + + const isTrackLike = (value: unknown): value is Track => { + if (!value || typeof value !== 'object') return false; + const candidate = value as Record; + const albumCandidate = candidate.album as unknown; + return ( + typeof candidate.id === 'number' && + typeof candidate.title === 'string' && + typeof candidate.duration === 'number' && + 'trackNumber' in candidate && + albumCandidate !== undefined && + albumCandidate !== null && + typeof albumCandidate === 'object' + ); + }; + + const isAlbumLike = (value: unknown): value is Album => { + if (!value || typeof value !== 'object') return false; + const candidate = value as Record; + return ( + typeof candidate.id === 'number' && + typeof candidate.title === 'string' && + 'cover' in candidate + ); + }; + + const isArtistLike = (value: unknown): value is Artist => { + if (!value || typeof value !== 'object') return false; + const candidate = value as Record; + return ( + typeof candidate.id === 'number' && + typeof candidate.name === 'string' && + typeof candidate.type === 'string' && + ('artistRoles' in candidate || 'artistTypes' in candidate || 'url' in candidate) + ); + }; + + const recordArtist = (candidate: Artist | undefined) => { + if (!candidate) return; + const normalized = this.prepareArtist(candidate); + if (!artist || artist.id === normalized.id) { + artist = normalized; + } + }; + + const addAlbum = (candidate: Album | undefined) => { + if (!candidate || typeof candidate.id !== 'number') return; + const normalized = this.prepareAlbum({ ...candidate }); + albumMap.set(normalized.id, normalized); + recordArtist(normalized.artist ?? normalized.artists?.[0]); + }; + + const addTrack = (candidate: Track | undefined) => { + if (!candidate || typeof candidate.id !== 'number') return; + const normalized = this.prepareTrack({ ...candidate }); + if (!normalized.album) { + return; + } + addAlbum(normalized.album); + const knownAlbum = albumMap.get(normalized.album.id); + if (knownAlbum) { + normalized.album = knownAlbum; + } + trackMap.set(normalized.id, normalized); + recordArtist(normalized.artist); + }; + + const parseModuleItems = (items: unknown) => { + if (!Array.isArray(items)) return; + for (const entry of items) { + if (!entry || typeof entry !== 'object') { + continue; + } + + const candidate = 'item' in entry ? (entry as { item?: unknown }).item : entry; + if (isAlbumLike(candidate)) { + addAlbum(candidate as Album); + const normalizedAlbum = albumMap.get((candidate as Album).id); + recordArtist(normalizedAlbum?.artist ?? normalizedAlbum?.artists?.[0]); + continue; + } + if (isTrackLike(candidate)) { + addTrack(candidate as Track); + continue; + } + + scanValue(candidate); + } + }; + + const scanValue = (value: unknown) => { + if (!value) return; + if (Array.isArray(value)) { + const trackCandidates = value.filter(isTrackLike); + if (trackCandidates.length > 0) { + for (const track of trackCandidates) { + addTrack(track); + } + return; + } + for (const entry of value) { + scanValue(entry); + } + return; + } + + if (typeof value !== 'object') { + return; + } + + const objectRef = value as Record; + if (visited.has(objectRef)) { + return; + } + visited.add(objectRef); + + if (isArtistLike(objectRef)) { + recordArtist(objectRef as Artist); + } + + if ('modules' in objectRef && Array.isArray(objectRef.modules)) { + for (const moduleEntry of objectRef.modules) { + scanValue(moduleEntry); + } + } + + if ( + 'pagedList' in objectRef && + objectRef.pagedList && + typeof objectRef.pagedList === 'object' + ) { + const pagedList = objectRef.pagedList as { items?: unknown }; + parseModuleItems(pagedList.items); + } + + if ('items' in objectRef && Array.isArray(objectRef.items)) { + parseModuleItems(objectRef.items); + } + + if ('rows' in objectRef && Array.isArray(objectRef.rows)) { + parseModuleItems(objectRef.rows); + } + + if ('listItems' in objectRef && Array.isArray(objectRef.listItems)) { + parseModuleItems(objectRef.listItems); + } + + for (const nested of Object.values(objectRef)) { + scanValue(nested); + } + }; + + for (const entry of entries) { + scanValue(entry); + } + + if (!artist) { + const trackPrimaryArtist = Array.from(trackMap.values()) + .map((track) => track.artist ?? track.artists?.[0]) + .find(Boolean); + const albumPrimaryArtist = Array.from(albumMap.values()) + .map((album) => album.artist ?? album.artists?.[0]) + .find(Boolean); + recordArtist(trackPrimaryArtist ?? albumPrimaryArtist); + } + + if (!artist) { + try { + const fallbackResponse = await this.fetch(`${this.baseUrl}/artist/?id=${id}`); + this.ensureNotRateLimited(fallbackResponse); + if (fallbackResponse.ok) { + const fallbackData = await fallbackResponse.json(); + const baseArtist = Array.isArray(fallbackData) ? fallbackData[0] : fallbackData; + if (baseArtist && typeof baseArtist === 'object') { + recordArtist(baseArtist as Artist); + } + } + } catch (fallbackError) { + console.warn('Failed to fetch base artist details:', fallbackError); + } + } + + if (!artist) { + throw new Error('Artist not found'); + } + + const albums = Array.from(albumMap.values()).map((album) => { + if (!album.artist && artist) { + return { ...album, artist }; + } + return album; + }); + + const albumById = new Map(albums.map((album) => [album.id, album] as const)); + + const tracks = Array.from(trackMap.values()).map((track) => { + const enrichedArtist = track.artist ?? artist; + const album = track.album; + const enrichedAlbum = album + ? (albumById.get(album.id) ?? (artist && !album.artist ? { ...album, artist } : album)) + : undefined; + return { + ...track, + artist: enrichedArtist ?? track.artist, + album: enrichedAlbum ?? album + }; + }); + + const parseDate = (value?: string): number => { + if (!value) return Number.NaN; + const timestamp = Date.parse(value); + return Number.isFinite(timestamp) ? timestamp : Number.NaN; + }; + + const sortedAlbums = albums.sort((a, b) => { + const timeA = parseDate(a.releaseDate); + const timeB = parseDate(b.releaseDate); + if (Number.isNaN(timeA) && Number.isNaN(timeB)) { + return (b.popularity ?? 0) - (a.popularity ?? 0); + } + if (Number.isNaN(timeA)) return 1; + if (Number.isNaN(timeB)) return -1; + return timeB - timeA; + }); + + const sortedTracks = tracks + .sort((a, b) => (b.popularity ?? 0) - (a.popularity ?? 0)) + .slice(0, 100); + + return { + ...artist, + albums: sortedAlbums, + tracks: sortedTracks + }; + } + + /** + * Get cover image + */ + async getCover(id?: number, query?: string): Promise { + let url = `${this.baseUrl}/cover/?`; + if (id) url += `id=${id}`; + if (query) url += `q=${encodeURIComponent(query)}`; + const response = await this.fetch(url); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get cover'); + return response.json(); + } + + /** + * Get lyrics for a track + */ + async getLyrics(id: number): Promise { + const response = await this.fetch(`${this.baseUrl}/lyrics/?id=${id}`); + this.ensureNotRateLimited(response); + if (!response.ok) throw new Error('Failed to get lyrics'); + const data = await response.json(); + return Array.isArray(data) ? data[0] : data; + } + + /** + * Get stream data including URL and replay gain + */ + async getStreamData( + trackId: number, + quality: AudioQuality = 'LOSSLESS' + ): Promise<{ + url: string; + replayGain: number | null; + sampleRate: number | null; + bitDepth: number | null; + }> { + let replayGain: number | null = null; + let sampleRate: number | null = null; + let bitDepth: number | null = null; + + if (this.isHiResQuality(quality)) { + try { + // Try to fetch metadata for replay gain, but don't fail if it fails + try { + const lookup = await this.getTrack(trackId, quality); + replayGain = lookup.info.trackReplayGain ?? null; + sampleRate = lookup.info.sampleRate ?? null; + bitDepth = lookup.info.bitDepth ?? null; + } catch { + // Ignore metadata fetch failure for HiRes + } + + const url = await this.resolveHiResStreamFromDash(trackId); + return { url, replayGain, sampleRate, bitDepth }; + } catch (error) { + console.warn('Failed to resolve hi-res stream via DASH manifest', error); + quality = 'LOSSLESS'; + } + } + + let lastError: Error | null = null; + + for (let attempt = 1; attempt <= 3; attempt += 1) { + try { + const lookup = await this.getTrack(trackId, quality); + replayGain = lookup.info.trackReplayGain ?? null; + sampleRate = lookup.info.sampleRate ?? null; + bitDepth = lookup.info.bitDepth ?? null; + + if (lookup.originalTrackUrl) { + return { url: lookup.originalTrackUrl, replayGain, sampleRate, bitDepth }; + } + + const manifestUrl = this.extractStreamUrlFromManifest(lookup.info.manifest); + if (manifestUrl) { + return { url: manifestUrl, replayGain, sampleRate, bitDepth }; + } + + lastError = new Error('Unable to resolve stream URL for track'); + } catch (error) { + lastError = error instanceof Error ? error : new Error(String(error)); + } + + if (attempt < 3) { + await this.delay(200 * attempt); + } + } + + throw lastError ?? new Error('Unable to resolve stream URL for track'); + } + + /** + * Get stream URL for a track + */ + async getStreamUrl(trackId: number, quality: AudioQuality = 'LOSSLESS'): Promise { + const data = await this.getStreamData(trackId, quality); + return data.url; + } + + /** + * Attempt to embed metadata into a downloaded track using FFmpeg WASM + */ + private async embedMetadataIntoBlob( + blob: Blob, + lookup: TrackLookup, + filename: string, + contentType: string | null, + options: DownloadTrackOptions | undefined, + quality: AudioQuality, + convertToMp3: boolean + ): Promise { + const job = this.metadataQueue.then(() => + this.runMetadataEmbedding( + blob, + lookup, + filename, + contentType ?? undefined, + options, + quality, + convertToMp3 + ) + ); + this.metadataQueue = job.then( + () => undefined, + () => undefined + ); + + try { + return await job; + } catch (error) { + console.warn('Metadata embedding failed', error); + return null; + } + } + + private inferExtensionFromFilename(filename: string): string | null { + const match = /\.([a-z0-9]+)(?:\?.*)?$/i.exec(filename); + return match ? match[1]!.toLowerCase() : null; + } + + private inferExtensionFromMime(mime?: string | null): string | null { + if (!mime) return null; + const normalized = mime.split(';')[0]?.trim().toLowerCase(); + switch (normalized) { + case 'audio/flac': + return 'flac'; + case 'audio/x-flac': + return 'flac'; + case 'audio/mpeg': + return 'mp3'; + case 'audio/mp3': + return 'mp3'; + case 'audio/mp4': + case 'audio/aac': + case 'audio/x-m4a': + return 'm4a'; + case 'audio/wav': + case 'audio/x-wav': + return 'wav'; + case 'audio/ogg': + return 'ogg'; + default: + return null; + } + } + + private inferMimeFromExtension( + ext: string | null | undefined, + fallbackType?: string + ): string | undefined { + switch (ext) { + case 'flac': + return 'audio/flac'; + case 'mp3': + return 'audio/mpeg'; + case 'm4a': + case 'aac': + return 'audio/mp4'; + case 'wav': + return 'audio/wav'; + case 'ogg': + return 'audio/ogg'; + default: + return fallbackType; + } + } + + private validateImageData(data: Uint8Array): boolean { + // Check if data is long enough to contain magic bytes + if (!data || data.length < 4) { + return false; + } + + // Check for JPEG magic bytes (FF D8 FF) + if (data[0] === 0xff && data[1] === 0xd8 && data[2] === 0xff) { + return true; + } + + // Check for PNG magic bytes (89 50 4E 47) + if (data[0] === 0x89 && data[1] === 0x50 && data[2] === 0x4e && data[3] === 0x47) { + return true; + } + + // Check for WebP magic bytes (52 49 46 46 ... 57 45 42 50) + if ( + data.length >= 12 && + data[0] === 0x52 && + data[1] === 0x49 && + data[2] === 0x46 && + data[3] === 0x46 && + data[8] === 0x57 && + data[9] === 0x45 && + data[10] === 0x42 && + data[11] === 0x50 + ) { + return true; + } + + return false; + } + + private detectImageFormat(data: Uint8Array): { extension: string; mimeType: string } | null { + if (!data || data.length < 4) { + return null; + } + + // Check for JPEG magic bytes (FF D8 FF) + if (data[0] === 0xff && data[1] === 0xd8 && data[2] === 0xff) { + return { extension: 'jpg', mimeType: 'image/jpeg' }; + } + + // Check for PNG magic bytes (89 50 4E 47) + if (data[0] === 0x89 && data[1] === 0x50 && data[2] === 0x4e && data[3] === 0x47) { + return { extension: 'png', mimeType: 'image/png' }; + } + + // Check for WebP magic bytes (52 49 46 46 ... 57 45 42 50) + if ( + data.length >= 12 && + data[0] === 0x52 && + data[1] === 0x49 && + data[2] === 0x46 && + data[3] === 0x46 && + data[8] === 0x57 && + data[9] === 0x45 && + data[10] === 0x42 && + data[11] === 0x50 + ) { + return { extension: 'webp', mimeType: 'image/webp' }; + } + + return null; + } + + private buildMetadataEntries(lookup: TrackLookup): Array<[string, string]> { + const entries: Array<[string, string]> = []; + const { track } = lookup; + const album = track.album; + const mainArtist = formatArtistsForMetadata(track.artists); + const albumArtist = + album?.artist?.name ?? + (album?.artists && album.artists.length > 0 ? album.artists[0]?.name : undefined) ?? + track.artists?.[0]?.name; + + if (track.title) entries.push(['title', track.title]); + if (mainArtist) entries.push(['artist', mainArtist]); + if (albumArtist) entries.push(['album_artist', albumArtist]); + if (album?.title) entries.push(['album', album.title]); + + const trackNumber = Number(track.trackNumber); + const totalTracks = Number(album?.numberOfTracks); + if (Number.isFinite(trackNumber) && trackNumber > 0) { + const value = + Number.isFinite(totalTracks) && totalTracks > 0 + ? `${trackNumber}/${totalTracks}` + : `${trackNumber}`; + entries.push(['track', value]); + } + + const discNumber = Number(track.volumeNumber); + const totalDiscs = Number(album?.numberOfVolumes); + if (Number.isFinite(discNumber) && discNumber > 0) { + const value = + Number.isFinite(totalDiscs) && totalDiscs > 0 + ? `${discNumber}/${totalDiscs}` + : `${discNumber}`; + entries.push(['disc', value]); + } + + const releaseDate = album?.releaseDate ?? track.streamStartDate; + if (releaseDate) { + const yearMatch = /^(\d{4})/.exec(releaseDate); + if (yearMatch?.[1]) { + entries.push(['date', yearMatch[1]]); + entries.push(['year', yearMatch[1]]); + } + } + + // API does not include genre + /* + const tags = track.mediaMetadata?.tags ?? album?.mediaMetadata?.tags; + if (tags && tags.length > 0) { + entries.push(['genre', tags.join('; ')]); + } + */ + + if (track.isrc) { + entries.push(['ISRC', track.isrc]); + } + + if (album?.copyright) { + entries.push(['copyright', album.copyright]); + } + + // ReplayGain + if (lookup.info) { + const { trackReplayGain, trackPeakAmplitude, albumReplayGain, albumPeakAmplitude } = + lookup.info; + + if (trackReplayGain !== undefined && trackReplayGain !== null) { + entries.push(['REPLAYGAIN_TRACK_GAIN', `${trackReplayGain} dB`]); + } + if (trackPeakAmplitude !== undefined && trackPeakAmplitude !== null) { + entries.push(['REPLAYGAIN_TRACK_PEAK', `${trackPeakAmplitude}`]); + } + if (albumReplayGain !== undefined && albumReplayGain !== null) { + entries.push(['REPLAYGAIN_ALBUM_GAIN', `${albumReplayGain} dB`]); + } + if (albumPeakAmplitude !== undefined && albumPeakAmplitude !== null) { + entries.push(['REPLAYGAIN_ALBUM_PEAK', `${albumPeakAmplitude}`]); + } + } else if (track.replayGain) { + entries.push(['REPLAYGAIN_TRACK_GAIN', `${track.replayGain} dB`]); + if (track.peak) { + entries.push(['REPLAYGAIN_TRACK_PEAK', `${track.peak}`]); + } + } + + entries.push(['comment', 'Downloaded from music.binimum.org/tidal.squid.wtf']); + + return entries; + } + + private async runMetadataEmbedding( + blob: Blob, + lookup: TrackLookup, + filename: string, + contentType: string | undefined, + options: DownloadTrackOptions | undefined, + quality: AudioQuality, + convertToMp3: boolean + ): Promise { + if (typeof window === 'undefined') { + return null; + } + + const extensionFromMime = this.inferExtensionFromMime(contentType); + const extensionFromFilename = this.inferExtensionFromFilename(filename); + const extension = extensionFromMime ?? extensionFromFilename; + + if (!extension) { + return null; + } + + const supportedExtensions = new Set(['flac', 'mp3', 'm4a', 'aac', 'wav', 'ogg']); + if (!supportedExtensions.has(extension)) { + return null; + } + + const convertibleExtensions = new Set(['m4a', 'aac', 'mp4']); + const shouldConvertToMp3 = convertToMp3 && convertibleExtensions.has(extension); + const outputExtension = shouldConvertToMp3 ? 'mp3' : extension; + const targetBitrate = quality === 'LOW' ? '96k' : '320k'; + + let ffmpegModule: typeof import('./ffmpegClient') | null = null; + try { + ffmpegModule = await import('./ffmpegClient'); + } catch (error) { + console.warn('Unable to load FFmpeg client module', error); + options?.onFfmpegError?.(error); + return null; + } + + if (!ffmpegModule.isFFmpegSupported()) { + return null; + } + + if (options?.onFfmpegCountdown) { + try { + const estimatedBytes = await ffmpegModule.estimateFfmpegDownloadSize?.(); + options.onFfmpegCountdown({ + totalBytes: estimatedBytes, + autoTriggered: options.ffmpegAutoTriggered ?? false + }); + } catch (estimateError) { + console.debug('Failed to estimate FFmpeg size', estimateError); + options.onFfmpegCountdown({ + totalBytes: undefined, + autoTriggered: options.ffmpegAutoTriggered ?? false + }); + } + } + + options?.onFfmpegStart?.(); + + let ffmpeg: Awaited>; + let progressHandler: ((data: { progress: number }) => void) | null = null; + + try { + const loadOptions: Parameters[0] = { + signal: options?.signal, + onProgress: ({ + receivedBytes, + totalBytes + }: { + receivedBytes: number; + totalBytes?: number; + }) => { + if (totalBytes && totalBytes > 0) { + options?.onFfmpegProgress?.(Math.max(0, Math.min(1, receivedBytes / totalBytes))); + } else if (receivedBytes > 0) { + options?.onFfmpegProgress?.(0); + } + } + }; + ffmpeg = await ffmpegModule.getFFmpeg(loadOptions); + + // Set up progress tracking for this specific job + progressHandler = ({ progress }: { progress: number }) => { + if (options?.onProgress && progress >= 0) { + options.onProgress({ stage: 'embedding', progress: Math.min(1, progress) }); + } + }; + ffmpeg.on('progress', progressHandler); + + options?.onFfmpegProgress?.(1); + options?.onFfmpegComplete?.(); + } catch (loadError) { + options?.onFfmpegError?.(loadError); + throw loadError; + } + const uniqueSuffix = + typeof crypto !== 'undefined' && 'randomUUID' in crypto + ? crypto.randomUUID() + : `${Date.now()}-${Math.random().toString(16).slice(2, 10)}`; + const inputName = `source-${uniqueSuffix}.${extension}`; + const outputName = `output-${uniqueSuffix}.${outputExtension}`; + + let coverWritten = false; + let coverExtension = 'jpg'; + + try { + if (options?.onProgress) { + options.onProgress({ stage: 'embedding', progress: 0 }); + } + + // Convert blob to Uint8Array to ensure proper memory handling + const arrayBuffer = await blob.arrayBuffer(); + const uint8Array = new Uint8Array(arrayBuffer); + + await ffmpeg.writeFile(inputName, uint8Array); + + const artworkId = lookup.track.album?.cover; + + if (artworkId) { + // Try multiple sizes as fallback + const coverSizes: Array<'1280' | '640' | '320'> = ['1280', '640', '320']; + let coverFetchSuccess = false; + + for (const size of coverSizes) { + if (coverFetchSuccess) break; + + const coverUrl = this.getCoverUrl(artworkId, size); + + // Try two fetch strategies: with headers, then without + const fetchStrategies = [ + { + name: 'with-headers', + options: { + method: 'GET' as const, + headers: { + Accept: 'image/jpeg,image/jpg,image/png,image/*', + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' + }, + signal: AbortSignal.timeout(10000) + } + }, + { + name: 'simple', + options: { + method: 'GET' as const, + signal: AbortSignal.timeout(10000) + } + } + ]; + + for (const strategy of fetchStrategies) { + if (coverFetchSuccess) break; + + try { + const coverResponse = await fetch(coverUrl, strategy.options); + + if (!coverResponse.ok) { + continue; // Try next size + } + + const contentType = coverResponse.headers.get('Content-Type'); + const contentLength = coverResponse.headers.get('Content-Length'); + + // Check if Content-Length indicates empty response + if (contentLength && parseInt(contentLength, 10) === 0) { + continue; // Try next size + } + + if (contentType && !contentType.startsWith('image/')) { + continue; // Try next size + } + + // Try arrayBuffer directly instead of blob first (more reliable) + let coverArrayBuffer: ArrayBuffer; + + try { + coverArrayBuffer = await coverResponse.arrayBuffer(); + } catch { + continue; // Try next size + } + + if (!coverArrayBuffer || coverArrayBuffer.byteLength === 0) { + continue; // Try next size + } + + const coverUint8Array = new Uint8Array(coverArrayBuffer); + + // Detect image format from magic bytes + const imageFormat = this.detectImageFormat(coverUint8Array); + if (!imageFormat) { + continue; // Try next size + } + + coverExtension = imageFormat.extension; + const finalCoverName = `cover-${uniqueSuffix}.${coverExtension}`; + + await ffmpeg.writeFile(finalCoverName, coverUint8Array); + coverWritten = true; + coverFetchSuccess = true; + break; // Success, exit strategy loop + } catch { + // Continue to next strategy + } + } // End strategy loop + } // End size loop + } + + const args: string[] = ['-i', inputName]; + if (coverWritten) { + const finalCoverName = `cover-${uniqueSuffix}.${coverExtension}`; + args.push('-i', finalCoverName); + } + + // Map streams FIRST (matching working command pattern) + // Working command: -map 0:a -map 1 -codec copy + if (coverWritten) { + args.push('-map', '0:a'); // Map audio stream from first input + args.push('-map', '1'); // Map entire second input (cover image) + } else { + args.push('-map', '0:a'); + } + + // Codec settings + if (shouldConvertToMp3) { + args.push('-codec:a', 'libmp3lame'); + args.push('-b:a', targetBitrate); + } else { + args.push('-codec', 'copy'); + } + + // Track metadata (title, artist, album, etc.) + for (const [key, value] of this.buildMetadataEntries(lookup)) { + args.push('-metadata', `${key}=${value}`); + } + + // Cover-specific metadata and disposition (matching working command) + if (coverWritten) { + args.push('-metadata:s:v', 'title=Album cover'); + args.push('-metadata:s:v', 'comment=Cover (front)'); + args.push('-disposition:v', 'attached_pic'); + } + + // MP3-specific settings + if (shouldConvertToMp3) { + args.push('-id3v2_version', '3'); + args.push('-write_xing', '0'); + } + + args.push(outputName); + + // Execute FFmpeg with timeout protection (3 minutes for large files) + const timeoutMs = 180000; // 3 minutes + const execPromise = ffmpeg.exec(args); + const timeoutPromise = new Promise((_, reject) => { + setTimeout(() => { + reject( + new Error( + `FFmpeg execution timeout - processing took longer than 3 minutes. Try using "Download covers separately" option instead.` + ) + ); + }, timeoutMs); + }); + + try { + await Promise.race([execPromise, timeoutPromise]); + } catch (execError) { + // Check if it's a timeout + const errorMessage = execError instanceof Error ? execError.message : String(execError); + if (errorMessage.includes('timeout')) { + throw new Error( + 'FFmpeg timeout: Processing took too long. Enable "Download covers separately" option for FLAC files.' + ); + } + + // Check if it's a memory error + if ( + errorMessage.includes('memory access out of bounds') || + errorMessage.includes('RuntimeError') || + errorMessage.includes('out of memory') + ) { + throw new Error( + 'FFmpeg memory error: File may be too large for browser processing. Try a smaller file or download without metadata embedding.' + ); + } + + throw execError; + } + + const outputData = await ffmpeg.readFile(outputName); + if (options?.onProgress) { + options.onProgress({ stage: 'embedding', progress: 1 }); + } + let outputArray: Uint8Array; + if (outputData instanceof Uint8Array) { + outputArray = outputData; + } else if (typeof outputData === 'string') { + outputArray = new TextEncoder().encode(outputData); + } else { + outputArray = new Uint8Array((outputData as unknown as ArrayBuffer) ?? new ArrayBuffer(0)); + } + const blobArray = new Uint8Array(outputArray); + const mimeType = this.inferMimeFromExtension( + outputExtension, + contentType ?? (blob.type && blob.type.length > 0 ? blob.type : undefined) + ); + const resultBlob = new Blob([blobArray], { type: mimeType }); + return resultBlob; + } catch (error) { + // Check if it's a memory error and provide helpful message + const errorMessage = error instanceof Error ? error.message : String(error); + if ( + errorMessage.includes('memory access out of bounds') || + errorMessage.includes('RuntimeError') || + errorMessage.includes('out of memory') || + errorMessage.includes('memory error') + ) { + options?.onFfmpegError?.( + new Error('Memory error: File processed without metadata due to browser limitations') + ); + } else { + options?.onFfmpegError?.(error); + } + + // Return null to fallback to original blob (handled by caller) + return null; + } finally { + // Remove progress handler + if (progressHandler && ffmpeg) { + ffmpeg.off('progress', progressHandler); + } + + // Clean up temporary files + if (ffmpeg) { + try { + await ffmpeg.deleteFile(inputName); + } catch (cleanupErr) { + console.debug('Failed to delete FFmpeg input file', cleanupErr); + } + try { + await ffmpeg.deleteFile(outputName); + } catch (cleanupErr) { + console.debug('Failed to delete FFmpeg output file', cleanupErr); + } + if (coverWritten) { + try { + const finalCoverName = `cover-${uniqueSuffix}.${coverExtension}`; + await ffmpeg.deleteFile(finalCoverName); + } catch (cleanupErr) { + console.debug('Failed to delete FFmpeg cover file', cleanupErr); + } + } + } + } + } + + private async resolveTrackLookups( + trackId: number, + quality: AudioQuality + ): Promise<{ + manifestLookup: TrackLookup; + metadataLookup: TrackLookup; + manifestQuality: AudioQuality; + }> { + const manifestLookup = await this.getTrack(trackId, quality); + const metadataLookup = manifestLookup; + return { manifestLookup, metadataLookup, manifestQuality: quality }; + } + + async getPreferredTrackMetadata( + trackId: number, + quality: AudioQuality = 'LOSSLESS' + ): Promise { + const { metadataLookup } = await this.resolveTrackLookups(trackId, quality); + return metadataLookup; + } + + async fetchTrackBlob( + trackId: number, + quality: AudioQuality = 'LOSSLESS', + filename: string, + options?: DownloadTrackOptions + ): Promise<{ blob: Blob; mimeType?: string }> { + try { + const { + manifestLookup, + metadataLookup: initialMetadataLookup, + manifestQuality + } = await this.resolveTrackLookups(trackId, quality); + let metadataLookup = initialMetadataLookup; + let response: Response | null = null; + let streamUrl: string | null = null; + let downloadBlob: Blob | null = null; + let contentType: string | null = null; + let receivedBytes = 0; + let totalBytes: number | undefined; + + streamUrl = manifestLookup.originalTrackUrl || null; + if (streamUrl) { + response = await fetch(streamUrl, { signal: options?.signal }); + if (response.status === 429) { + throw new Error(RATE_LIMIT_ERROR_MESSAGE); + } + if (!response.ok) { + console.warn('OriginalTrackUrl download failed, falling back to manifest', { + status: response.status + }); + response = null; + } + } + + if (!response) { + let manifestSource = manifestLookup; + const decodedManifest = this.decodeBase64Manifest(manifestSource.info.manifest); + + // For segmented DASH manifests, go directly to segment download + if (this.isSegmentedDashManifest(decodedManifest)) { + try { + const mpdResult = await this.downloadFlacFromMpd(decodedManifest, options); + if (mpdResult) { + downloadBlob = mpdResult.blob; + contentType = mpdResult.mimeType; + receivedBytes = downloadBlob.size; + totalBytes = downloadBlob.size; + metadataLookup = manifestSource; + } + } catch (mpdError) { + console.warn('Failed to download FLAC from MPD manifest', mpdError); + } + + if (!downloadBlob) { + throw new Error('Could not download segmented DASH content'); + } + } else { + // Try to extract a direct stream URL + let fallbackUrl = this.extractStreamUrlFromManifest(manifestSource.info.manifest); + if (!fallbackUrl && manifestQuality !== 'LOSSLESS') { + try { + const losslessLookup = await this.getTrack(trackId, 'LOSSLESS'); + const candidateUrl = this.extractStreamUrlFromManifest(losslessLookup.info.manifest); + if (candidateUrl) { + fallbackUrl = candidateUrl; + manifestSource = losslessLookup; + } + } catch (manifestError) { + console.warn( + 'Failed to fetch lossless manifest for download fallback', + manifestError + ); + } + } + + if (fallbackUrl) { + streamUrl = fallbackUrl; + response = await fetch(fallbackUrl, { signal: options?.signal }); + if (response.status === 429) { + throw new Error(RATE_LIMIT_ERROR_MESSAGE); + } + if (!response.ok) { + throw new Error('Failed to fetch audio stream'); + } + metadataLookup = manifestSource; + } else { + throw new Error('Could not extract stream URL from manifest'); + } + } + } + + if (response) { + const totalHeader = Number(response.headers.get('Content-Length') ?? '0'); + totalBytes = Number.isFinite(totalHeader) && totalHeader > 0 ? totalHeader : undefined; + + if (!response.body) { + downloadBlob = await response.blob(); + receivedBytes = downloadBlob.size; + if (!totalBytes && receivedBytes > 0) { + options?.onProgress?.({ + stage: 'downloading', + receivedBytes, + totalBytes: receivedBytes + }); + } + } else { + const reader = response.body.getReader(); + const chunks: Uint8Array[] = []; + while (true) { + const { done, value } = await reader.read(); + if (done) break; + if (value) { + receivedBytes += value.byteLength; + chunks.push(value); + options?.onProgress?.({ + stage: 'downloading', + receivedBytes, + totalBytes + }); + } + } + downloadBlob = new Blob(chunks as BlobPart[], { + type: response.headers.get('Content-Type') ?? 'application/octet-stream' + }); + if (receivedBytes === 0) { + receivedBytes = downloadBlob.size; + } + } + + contentType = response.headers.get('Content-Type'); + } + + options?.onProgress?.({ + stage: 'downloading', + receivedBytes, + totalBytes: totalBytes ?? downloadBlob?.size + }); + + if (!downloadBlob) { + throw new Error('Download failed to produce audio payload'); + } + + const shouldConvertToMp3 = + options?.convertAacToMp3 === true && (quality === 'HIGH' || quality === 'LOW'); + const processedBlob = await this.embedMetadataIntoBlob( + downloadBlob, + metadataLookup, + filename, + contentType, + options, + quality, + shouldConvertToMp3 + ); + const finalBlob = processedBlob ?? downloadBlob; + return { blob: finalBlob, mimeType: contentType ?? undefined }; + } catch (error) { + if (error instanceof DOMException && error.name === 'AbortError') { + throw error; + } + if (error instanceof Error && error.message === RATE_LIMIT_ERROR_MESSAGE) { + throw error; + } + throw new Error( + 'Download failed. The stream URL may require a proxy. Please try streaming instead.' + ); + } + } + + async getTrackStreamUrl(trackId: number, quality: AudioQuality = 'LOSSLESS'): Promise { + if (this.isHiResQuality(quality)) { + quality = 'LOSSLESS'; + } + + const lookup = await this.getTrack(trackId, quality); + if (lookup.originalTrackUrl) { + return lookup.originalTrackUrl; + } + const fallback = this.extractStreamUrlFromManifest(lookup.info.manifest); + if (!fallback) { + throw new Error('Could not resolve stream URL for track'); + } + return fallback; + } + + /** + * Download a track + * Fetches the audio stream and triggers a download + */ + async downloadTrack( + trackId: number, + quality: AudioQuality = 'LOSSLESS', + filename: string, + options?: DownloadTrackOptions + ): Promise { + try { + const { blob } = await this.fetchTrackBlob(trackId, quality, filename, options); + const url = URL.createObjectURL(blob); + + // Trigger download + const a = document.createElement('a'); + a.href = url; + a.download = filename; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + + // Download cover separately if enabled + if (options?.downloadCoverSeperately) { + try { + const metadata = await this.getPreferredTrackMetadata(trackId, quality); + const coverId = metadata.track.album?.cover; + if (coverId) { + console.log('[Cover Download] Fetching cover for separate download...'); + + // Try multiple sizes as fallback + const coverSizes: Array<'1280' | '640' | '320'> = ['1280', '640', '320']; + let coverDownloadSuccess = false; + + for (const size of coverSizes) { + if (coverDownloadSuccess) break; + + const coverUrl = this.getCoverUrl(coverId, size); + console.log(`[Cover Download] Attempting size ${size}:`, coverUrl); + + // Try two fetch strategies: with headers, then without + const fetchStrategies = [ + { + name: 'with-headers', + options: { + method: 'GET' as const, + headers: { + Accept: 'image/jpeg,image/jpg,image/png,image/*', + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' + }, + signal: AbortSignal.timeout(10000) + } + }, + { + name: 'simple', + options: { + method: 'GET' as const, + signal: AbortSignal.timeout(10000) + } + } + ]; + + for (const strategy of fetchStrategies) { + if (coverDownloadSuccess) break; + + console.log(`[Cover Download] Trying strategy: ${strategy.name}`); + + try { + const coverResponse = await fetch(coverUrl, strategy.options); + + console.log( + `[Cover Download] Response status: ${coverResponse.status}, Content-Length: ${coverResponse.headers.get('Content-Length')}` + ); + + if (!coverResponse.ok) { + console.warn( + `[Cover Download] Failed with status ${coverResponse.status} for size ${size}` + ); + continue; + } + + const contentType = coverResponse.headers.get('Content-Type'); + const contentLength = coverResponse.headers.get('Content-Length'); + + if (contentLength && parseInt(contentLength, 10) === 0) { + console.warn(`[Cover Download] Content-Length is 0 for size ${size}`); + continue; + } + + if (contentType && !contentType.startsWith('image/')) { + console.warn(`[Cover Download] Invalid content type: ${contentType}`); + continue; + } + + // Use arrayBuffer directly for more reliable data retrieval + const arrayBuffer = await coverResponse.arrayBuffer(); + + if (!arrayBuffer || arrayBuffer.byteLength === 0) { + console.warn(`[Cover Download] Empty array buffer for size ${size}`); + continue; + } + + const uint8Array = new Uint8Array(arrayBuffer); + console.log(`[Cover Download] Received ${uint8Array.length} bytes`); + console.log( + `[Cover Download] First 16 bytes:`, + Array.from(uint8Array.slice(0, 16)) + .map((b) => b.toString(16).padStart(2, '0')) + .join(' ') + ); + + // Validate image data + if (!this.validateImageData(uint8Array)) { + console.warn(`[Cover Download] Invalid image data for size ${size}`); + continue; + } + + // Detect image format + const imageFormat = this.detectImageFormat(uint8Array); + if (!imageFormat) { + console.warn(`[Cover Download] Unknown image format for size ${size}`); + continue; + } + + // Create blob with correct MIME type + const coverBlob = new Blob([uint8Array], { type: imageFormat.mimeType }); + + const coverObjectUrl = URL.createObjectURL(coverBlob); + const coverLink = document.createElement('a'); + coverLink.href = coverObjectUrl; + coverLink.download = `cover.${imageFormat.extension}`; + document.body.appendChild(coverLink); + coverLink.click(); + document.body.removeChild(coverLink); + URL.revokeObjectURL(coverObjectUrl); + + coverDownloadSuccess = true; + console.log( + `[Cover Download] Successfully downloaded (${size}x${size}, format: ${imageFormat.extension}, strategy: ${strategy.name})` + ); + break; + } catch (sizeError) { + console.warn( + `[Cover Download] Failed at size ${size} with strategy ${strategy.name}:`, + sizeError + ); + } + } // End strategy loop + } // End size loop + + if (!coverDownloadSuccess) { + console.warn('[Cover Download] All attempts failed'); + } + } + } catch (coverError) { + console.warn('Failed to download cover separately:', coverError); + } + } + } catch (error) { + if (error instanceof DOMException && error.name === 'AbortError') { + throw error; + } + console.error('Download failed:', error); + if (error instanceof Error && error.message === RATE_LIMIT_ERROR_MESSAGE) { + throw error; + } + throw new Error( + 'Download failed. The stream URL may require a proxy. Please try streaming instead.' + ); + } + } + + /** + * Format duration from seconds to MM:SS + */ + formatDuration(seconds: number): string { + const mins = Math.floor(seconds / 60); + const secs = seconds % 60; + return `${mins}:${secs.toString().padStart(2, '0')}`; + } + + /** + * Get cover URL + */ + getCoverUrl(coverId: string, size: '1280' | '640' | '320' | '160' | '80' = '640'): string { + return `https://resources.tidal.com/images/${coverId.replace(/-/g, '/')}/${size}x${size}.jpg`; + } + + /** + * Get video cover URL + */ + getVideoCoverUrl( + videoCoverId: string, + size: '1280' | '640' | '320' | '160' | '80' = '640' + ): string { + return `https://resources.tidal.com/videos/${videoCoverId.replace(/-/g, '/')}/${size}x${size}.mp4`; + } + + /** + * Get artist picture URL + */ + getArtistPictureUrl(pictureId: string, size: '750' = '750'): string { + return `https://resources.tidal.com/images/${pictureId.replace(/-/g, '/')}/${size}x${size}.jpg`; + } +} + +export const losslessAPI = new LosslessAPI(); diff --git a/src/lib/assets/favicon.svg b/src/lib/assets/favicon.svg new file mode 100644 index 0000000000000000000000000000000000000000..cc5dc66a3a524f4167cc097452cbe3c3883a684c --- /dev/null +++ b/src/lib/assets/favicon.svg @@ -0,0 +1 @@ +svelte-logo \ No newline at end of file diff --git a/src/lib/components/AudioPlayer.svelte b/src/lib/components/AudioPlayer.svelte new file mode 100644 index 0000000000000000000000000000000000000000..6a6cda36ba63826eb4d35bfa583ac5b0b665628c --- /dev/null +++ b/src/lib/components/AudioPlayer.svelte @@ -0,0 +1,1975 @@ + + + + +{#if !headless} +
+
+ {#if $ffmpegBanner.phase !== 'idle' || $activeTrackDownloads.length > 0} +
+
+ {#if $ffmpegBanner.phase !== 'idle'} +
+
+
+

+ Downloading FFmpeg + {#if formatMegabytes($ffmpegBanner.totalBytes)} + + ({formatMegabytes($ffmpegBanner.totalBytes)}) + {/if} +

+ {#if $ffmpegBanner.phase === 'countdown'} +

+ Starting in {$ffmpegBanner.countdownSeconds} seconds… +

+ {:else if $ffmpegBanner.phase === 'loading'} +

+ Preparing encoder… {formatPercent($ffmpegBanner.progress)} +

+ {:else if $ffmpegBanner.phase === 'ready'} +

FFmpeg is ready to use.

+ {:else if $ffmpegBanner.phase === 'error'} +

+ {$ffmpegBanner.error ?? 'Failed to load FFmpeg.'} +

+ {/if} +
+ {#if $ffmpegBanner.dismissible} + + {/if} +
+ {#if $ffmpegBanner.phase === 'loading'} +
+
+
+ {/if} +
+ {/if} + + {#each $activeTrackDownloads as task (task.id)} +
+
+
+

+ {#if task.progress < 0.02} + + {:else} + + {/if} + {task.title} +

+ {#if task.subtitle} +

{task.subtitle}

+ {/if} +
+ {formatTransferStatus(task.receivedBytes, task.totalBytes)} + + {formatPercent(task.progress)} +
+
+ +
+
+
+
+
+ {/each} +
+
+ {/if} +
+
+ {#if $playerStore.currentTrack} + +
+ +
+ {formatTime($playerStore.currentTime)} + {formatTime($playerStore.duration)} +
+
+ +
+ + {#if $playerStore.currentTrack} +
+ {#if !isSonglinkTrack($playerStore.currentTrack)} + + {#if asTrack($playerStore.currentTrack).album.videoCover} + + {:else if asTrack($playerStore.currentTrack).album.cover} + {$playerStore.currentTrack.title} + {/if} + {/if} +
+

+ {$playerStore.currentTrack.title}{!isSonglinkTrack($playerStore.currentTrack) && asTrack($playerStore.currentTrack).version ? ` (${asTrack($playerStore.currentTrack).version})` : ''} +

+ {#if isSonglinkTrack($playerStore.currentTrack)} + +

+ {$playerStore.currentTrack.artistName} +

+ {:else} + + + {formatArtists(asTrack($playerStore.currentTrack).artists)} + +

+ + {asTrack($playerStore.currentTrack).album.title} + + {#if currentPlaybackQuality} + + {formatQualityLabel(currentPlaybackQuality)} + {/if} + {#if currentPlaybackQuality && asTrack($playerStore.currentTrack).audioQuality && currentPlaybackQuality !== asTrack($playerStore.currentTrack).audioQuality} + + + ({formatQualityLabel(asTrack($playerStore.currentTrack).audioQuality)} available) + + {/if} + {#if bitDepthLabel} + + {bitDepthLabel} + {/if} + {#if sampleRateLabel} + + {sampleRateLabel} + {/if} +

+ {/if} +
+
+ {/if} + +
+ +
+ + + + + +
+ + +
+ + + +
+ + + +
+
+ + {#if showQueuePanel} +
+
+
+ + Playback Queue + + {$playerStore.queue.length} + +
+
+ + + +
+
+ + {#if $playerStore.queue.length > 0} +
    + {#each $playerStore.queue as queuedTrack, index} +
  • +
    playFromQueue(index)} + onkeydown={(event) => { + if (event.key === 'Enter' || event.key === ' ') { + event.preventDefault(); + playFromQueue(index); + } + }} + tabindex="0" + role="button" + class="group flex w-full cursor-pointer items-center gap-3 rounded-xl px-3 py-2 text-left transition-colors {index === + $playerStore.queueIndex + ? 'bg-blue-500/10 text-white' + : 'text-gray-200 hover:bg-gray-800/70'}" + > + + {index + 1} + +
    +

    + {queuedTrack.title}{!isSonglinkTrack(queuedTrack) && asTrack(queuedTrack).version ? ` (${asTrack(queuedTrack).version})` : ''} +

    + {#if isSonglinkTrack(queuedTrack)} +

    + {queuedTrack.artistName} +

    + {:else} + e.stopPropagation()} + class="truncate text-xs text-gray-400 hover:text-blue-400 hover:underline inline-block" + data-sveltekit-preload-data + > + {formatArtists(asTrack(queuedTrack).artists)} + + {/if} +
    + +
    +
  • + {/each} +
+ {:else} +

+ Queue is empty +

+ {/if} +
+ {/if} + + {#if $playerStore.currentTrack && $playerStore.isLoading} +
+ +

Loading track…

+
+ {/if} + {:else} +
+ Nothing is playing +
+ {/if} +
+
+
+
+{/if} + + diff --git a/src/lib/components/DynamicBackground.svelte b/src/lib/components/DynamicBackground.svelte new file mode 100644 index 0000000000000000000000000000000000000000..4e490d6f4dec39ca26959bad3095451854f2993b --- /dev/null +++ b/src/lib/components/DynamicBackground.svelte @@ -0,0 +1,904 @@ + + + + + diff --git a/src/lib/components/DynamicBackgroundWebGL.svelte b/src/lib/components/DynamicBackgroundWebGL.svelte new file mode 100644 index 0000000000000000000000000000000000000000..2a85f8f3d3dce70662222889f7a68cf3e5bb2f59 --- /dev/null +++ b/src/lib/components/DynamicBackgroundWebGL.svelte @@ -0,0 +1,573 @@ + + +
+ +
+ + diff --git a/src/lib/components/LyricsPopup.svelte b/src/lib/components/LyricsPopup.svelte new file mode 100644 index 0000000000000000000000000000000000000000..b9b2f81ea1692e4ee9dc8791b16b080668919cc7 --- /dev/null +++ b/src/lib/components/LyricsPopup.svelte @@ -0,0 +1,830 @@ + + +{#if $lyricsStore.open} + +{/if} + + diff --git a/src/lib/components/QualitySelector.svelte b/src/lib/components/QualitySelector.svelte new file mode 100644 index 0000000000000000000000000000000000000000..df87d7777aa120c183c2a2637f2b3d118d1320b4 --- /dev/null +++ b/src/lib/components/QualitySelector.svelte @@ -0,0 +1,98 @@ + + + + + + +
+ + + {#if isOpen} +
+
+

Audio Quality

+
+
+ {#each qualities as quality} + + {/each} +
+
+ {/if} +
diff --git a/src/lib/components/SearchInterface.svelte b/src/lib/components/SearchInterface.svelte new file mode 100644 index 0000000000000000000000000000000000000000..062f5efb33c805aa56b8ca683ed28f91f6bc9f55 --- /dev/null +++ b/src/lib/components/SearchInterface.svelte @@ -0,0 +1,1760 @@ + + +
+ +
+
+
+
+ +
+
+ {#if false} +
+ + + + + + +
+ {/if} + +
+
+
+
+ + + {#if !isQueryAUrl} +
+ + + + +
+ {/if} + + + {#if searchStore.isLoading} + {#if searchStore.activeTab === 'tracks'} +
+ {#each trackSkeletons as _} +
+
+
+
+
+
+
+
+
+ {/each} +
+ {:else if searchStore.activeTab === 'albums' || searchStore.activeTab === 'playlists'} +
+ {#each gridSkeletons as _} +
+
+
+
+
+ {/each} +
+ {:else if searchStore.activeTab === 'artists'} +
+ {#each gridSkeletons as _} +
+
+
+
+
+ {/each} +
+ {:else} +
+
+
+ {/if} + {/if} + + + {#if searchStore.error} +
+ {searchStore.error} +
+ {/if} + + + {#if searchStore.playlistLoadingMessage} +
+ + {searchStore.playlistLoadingMessage} +
+ {/if} + + + {#if (!searchStore.isLoading && !searchStore.error) || (searchStore.isPlaylistConversionMode && searchStore.tracks.length > 0)} + {#if searchStore.activeTab === 'tracks' && searchStore.tracks.length > 0} + + {#if searchStore.isPlaylistConversionMode} +
+ + + +
+ {searchStore.tracks.length} of {searchStore.playlistConversionTotal} tracks +
+
+ {/if} + +
+ {#each searchStore.tracks as track} +
{ + if (e.target instanceof Element && (e.target.closest('a') || e.target.closest('button'))) return; + handleTrackActivation(track); + }} + onkeydown={(event) => handleTrackKeydown(event, track)} + class="track-glass group flex w-full cursor-pointer items-center gap-3 rounded-lg p-3 transition-colors hover:brightness-110 focus:ring-2 focus:ring-blue-500 focus:outline-none {activeMenuId === track.id ? 'z-20 relative' : ''}" + > + {#if isSonglinkTrack(track)} + + {`${track.title} +
+

+ {track.title} +

+

+ {track.artistName} +

+

+ {formatQualityLabel(track.audioQuality)} +

+
+ +
+
+ + + {#if activeMenuId === track.id} +
+ + +
+ + + +
+ {/if} +
+
+ {:else} + + {#if asTrack(track).album.cover} + {track.title} + {/if} +
+

+ {track.title}{asTrack(track).version ? ` (${asTrack(track).version})` : ''} + {#if asTrack(track).explicit} + + {/if} +

+ + {formatArtists(asTrack(track).artists)} + +

+ + {asTrack(track).album.title} + + • {formatQualityLabel(track.audioQuality)} +

+
+
+ +
+ + {#if activeMenuId === track.id} +
+ + +
+ + + +
+ {/if} +
+
+ {/if} + {#if !('isSonglinkTrack' in track && track.isSonglinkTrack)} + {losslessAPI.formatDuration(track.duration)} + {/if} +
+ {/each} +
+ {:else if searchStore.activeTab === 'albums' && searchStore.albums.length > 0} +
+ {#each searchStore.albums as album} +
+ + +
+ {#if album.videoCover} + + {:else if album.cover} + {album.title} + {:else} +
+ No artwork +
+ {/if} +
+

+ {album.title} + {#if album.explicit} + + {/if} +

+ {#if album.artist} +

{album.artist.name}

+ {/if} + {#if album.releaseDate} +

{album.releaseDate.split('-')[0]}

+ {/if} +
+ {#if albumDownloadStates[album.id]?.downloading} +

+ Downloading + {#if albumDownloadStates[album.id]?.total} + {albumDownloadStates[album.id]?.completed ?? 0}/{displayTrackTotal( + albumDownloadStates[album.id]?.total ?? 0 + )} + {:else} + {albumDownloadStates[album.id]?.completed ?? 0} + {/if} + tracks… +

+ {:else if albumDownloadStates[album.id]?.error} + + {/if} +
+ {/each} +
+ {:else if searchStore.activeTab === 'artists' && searchStore.artists.length > 0} + + {:else if searchStore.activeTab === 'playlists' && searchStore.playlists.length > 0} + + + {:else if !searchStore.query.trim()} +
+

News

+
+ {#each newsItems as item} +
+
+
+ +
+

{item.title}

+
+

{item.description}

+
+ {/each} +
+
+ {:else if isQueryATidalUrl && !searchStore.isLoading} +
+
+ +

Tidal URL detected

+

Press Enter or click Import to load this content

+
+
+ {:else if searchStore.query.trim() && !searchStore.isLoading && !isQueryATidalUrl} +
+

No results found...

+
+ {/if} + {/if} +
+ + diff --git a/src/lib/components/ShareButton.svelte b/src/lib/components/ShareButton.svelte new file mode 100644 index 0000000000000000000000000000000000000000..75655a6215c01b3433b4a3182f1978558627f673 --- /dev/null +++ b/src/lib/components/ShareButton.svelte @@ -0,0 +1,170 @@ + + +
+ + + {#if showMenu} +
+ + + +
+ {/if} +
diff --git a/src/lib/components/TopTracksGrid.svelte b/src/lib/components/TopTracksGrid.svelte new file mode 100644 index 0000000000000000000000000000000000000000..01ef1796aea28607cd8834cb500f9775e39b7c3d --- /dev/null +++ b/src/lib/components/TopTracksGrid.svelte @@ -0,0 +1,298 @@ + + +
+ {#if displayedTracks.length === 0} +
+

No tracks available

+
+ {:else} + {#each displayedTracks as track, index (track.id)} +
handlePlayTrack(track, index)} + onkeydown={(event) => handleCardKeydown(event, track, index)} + class="group flex h-full cursor-pointer flex-col gap-4 rounded-xl border border-gray-800 bg-gray-900/50 p-4 transition-colors hover:border-blue-700 hover:bg-gray-900/70 focus:ring-2 focus:ring-blue-500 focus:outline-none" + > +
+ + + {#if track.album?.cover} + {track.title} + {/if} + +
+

+ {track.title} + {#if track.explicit} + [E] + {/if} +

+
+

{formatArtists(track.artists)}

+ {#if track.album} +

{track.album.title}

+ {/if} +
+ {#if getDisplayTags(track.mediaMetadata?.tags).length > 0} +

+ {getDisplayTags(track.mediaMetadata?.tags).join(', ')} +

+ {/if} +
+
+ +
+
+ + + +
+
+ + {losslessAPI.formatDuration(track.duration)} +
+
+
+ {/each} + {/if} +
diff --git a/src/lib/components/TrackList.svelte b/src/lib/components/TrackList.svelte new file mode 100644 index 0000000000000000000000000000000000000000..7c04ae8d75ed7b682761443c9abdd3df6971075f --- /dev/null +++ b/src/lib/components/TrackList.svelte @@ -0,0 +1,572 @@ + + +
+ {#if tracks.length === 0} +
+

No tracks available

+
+ {:else} +
+ {#each tracks as track, index} +
+ + + + + {#if showCover && track.album.cover} + {track.title} + {/if} + + +
+ +
+ {#if showArtist} + {formatArtists(track.artists)} + {/if} + {#if showAlbum && showArtist} + • + {/if} + {#if showAlbum} + {track.album.title} + {/if} +
+ {#if getDisplayTags(track.mediaMetadata?.tags).length > 0} +
+ • {getDisplayTags(track.mediaMetadata?.tags).join(', ')} +
+ {/if} +
+ + +
+ + + +
+ +
+ + + + +
+ + {losslessAPI.formatDuration(track.duration)} +
+
+
+ {/each} +
+ {/if} +
+ + + diff --git a/src/lib/config.ts b/src/lib/config.ts new file mode 100644 index 0000000000000000000000000000000000000000..a67e3f6752c937c6f0e9554b662a9833998725cb --- /dev/null +++ b/src/lib/config.ts @@ -0,0 +1,578 @@ +import { APP_VERSION } from '$lib/version'; + +// CORS Proxy Configuration +// If you're experiencing CORS issues with the HIFI API, you can set up a proxy + +type RegionPreference = 'auto' | 'us' | 'eu'; + +export interface ApiClusterTarget { + name: string; + baseUrl: string; + weight: number; + requiresProxy: boolean; + category: 'auto-only'; +} + +const V2_API_TARGETS = [ + { + name: 'veltrix', + baseUrl: 'https://veltrixcode-loddless.hf.space', + weight: 100, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'squid-api', + baseUrl: 'https://triton.squid.wtf', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'spotisaver-1', + baseUrl: 'https://hifi-one.spotisaver.net', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'spotisaver-2', + baseUrl: 'https://hifi-two.spotisaver.net', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'kinoplus', + baseUrl: 'https://tidal.kinoplus.online', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'hund', + baseUrl: 'https://hund.qqdl.site', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'katze', + baseUrl: 'https://katze.qqdl.site', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'maus', + baseUrl: 'https://maus.qqdl.site', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'vogel', + baseUrl: 'https://vogel.qqdl.site', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'wolf', + baseUrl: 'https://wolf.qqdl.site', + weight: 15, + requiresProxy: false, + category: 'auto-only' + }, + { + name: 'monochrome', + baseUrl: 'https://arran.monochrome.tf', + weight: 15, + requiresProxy: false, + category: 'auto-only' + } +] satisfies ApiClusterTarget[]; + +const ALL_API_TARGETS = [...V2_API_TARGETS] satisfies ApiClusterTarget[]; +const US_API_TARGETS = [] satisfies ApiClusterTarget[]; +const TARGET_COLLECTIONS: Record = { + auto: [...ALL_API_TARGETS], + eu: [], + us: [...US_API_TARGETS] +}; + +const TARGETS = TARGET_COLLECTIONS.auto; + +export const API_CONFIG = { + // Cluster of target endpoints for load distribution and redundancy + targets: TARGETS, + baseUrl: TARGETS[0]?.baseUrl ?? 'https://tidal.401658.xyz', + // Proxy configuration for endpoints that need it + useProxy: true, + proxyUrl: '/api/proxy' +}; + +type WeightedTarget = ApiClusterTarget & { cumulativeWeight: number }; + +let v1WeightedTargets: WeightedTarget[] | null = null; +let v2WeightedTargets: WeightedTarget[] | null = null; + +function buildWeightedTargets(targets: ApiClusterTarget[]): WeightedTarget[] { + const validTargets = targets.filter((target) => { + if (!target?.baseUrl || typeof target.baseUrl !== 'string') { + return false; + } + if (target.weight <= 0) { + return false; + } + try { + new URL(target.baseUrl); + return true; + } catch (error) { + console.error(`Invalid API target URL for ${target.name}:`, error); + return false; + } + }); + + if (validTargets.length === 0) { + throw new Error('No valid API targets configured'); + } + + let cumulative = 0; + const collected: WeightedTarget[] = []; + for (const target of validTargets) { + cumulative += target.weight; + collected.push({ ...target, cumulativeWeight: cumulative }); + } + return collected; +} + +function ensureWeightedTargets(apiVersion: 'v1' | 'v2' = 'v2'): WeightedTarget[] { + if (apiVersion === 'v2') { + if (!v2WeightedTargets) { + v2WeightedTargets = buildWeightedTargets(V2_API_TARGETS); + } + return v2WeightedTargets; + } else { + if (!v1WeightedTargets) { + // v1 includes ALL_API_TARGETS (v1) + V2_API_TARGETS (fallback with low weight) + const v2Fallback = V2_API_TARGETS.map((t) => ({ ...t, weight: 1 })); + v1WeightedTargets = buildWeightedTargets([...ALL_API_TARGETS, ...v2Fallback]); + } + return v1WeightedTargets; + } +} + +export function selectApiTarget(apiVersion: 'v1' | 'v2' = 'v2'): ApiClusterTarget { + const targets = ensureWeightedTargets(apiVersion); + return selectFromWeightedTargets(targets); +} + +export function getPrimaryTarget(apiVersion: 'v1' | 'v2' = 'v2'): ApiClusterTarget { + return ensureWeightedTargets(apiVersion)[0]; +} + +function selectFromWeightedTargets(weighted: WeightedTarget[]): ApiClusterTarget { + if (weighted.length === 0) { + throw new Error('No weighted targets available for selection'); + } + + const totalWeight = weighted[weighted.length - 1]?.cumulativeWeight ?? 0; + if (totalWeight <= 0) { + return weighted[0]; + } + + const random = Math.random() * totalWeight; + for (const target of weighted) { + if (random < target.cumulativeWeight) { + return target; + } + } + + return weighted[0]; +} + +export function getTargetsForRegion(region: RegionPreference = 'auto'): ApiClusterTarget[] { + const targets = TARGET_COLLECTIONS[region]; + return Array.isArray(targets) ? targets : []; +} + +export function selectApiTargetForRegion(region: RegionPreference): ApiClusterTarget { + if (region === 'auto') { + return selectApiTarget(); + } + + const targets = getTargetsForRegion(region); + if (targets.length === 0) { + return selectApiTarget(); + } + + const weighted = buildWeightedTargets(targets); + return selectFromWeightedTargets(weighted); +} + +export function hasRegionTargets(region: RegionPreference): boolean { + if (region === 'auto') { + return TARGET_COLLECTIONS.auto.length > 0; + } + + return getTargetsForRegion(region).length > 0; +} + +function parseTargetBase(target: ApiClusterTarget): URL | null { + try { + return new URL(target.baseUrl); + } catch (error) { + console.error(`Invalid API target base URL for ${target.name}:`, error); + return null; + } +} + +function getBaseApiUrl(target?: ApiClusterTarget): URL | null { + const chosen = target ?? getPrimaryTarget(); + return parseTargetBase(chosen); +} + +function stripTrailingSlash(path: string): string { + if (path === '/') return path; + return path.replace(/\/+$/, '') || '/'; +} + +function combinePaths(basePath: string, relativePath: string): string { + const trimmedBase = stripTrailingSlash(basePath || '/'); + const normalizedRelative = relativePath.startsWith('/') ? relativePath : `/${relativePath}`; + if (trimmedBase === '/' || trimmedBase === '') { + return normalizedRelative; + } + if (normalizedRelative === '/') { + return `${trimmedBase}/`; + } + return `${trimmedBase}${normalizedRelative}`; +} + +function getRelativePath(url: URL, targetBase: URL): string { + const basePath = stripTrailingSlash(targetBase.pathname || '/'); + const currentPath = url.pathname || '/'; + if (basePath === '/' || basePath === '') { + return currentPath.startsWith('/') ? currentPath : `/${currentPath}`; + } + if (!currentPath.startsWith(basePath)) { + return currentPath; + } + const relative = currentPath.slice(basePath.length); + if (!relative) { + return '/'; + } + return relative.startsWith('/') ? relative : `/${relative}`; +} + +function matchesTarget(url: URL, target: ApiClusterTarget): boolean { + const base = parseTargetBase(target); + if (!base) { + return false; + } + + if (url.origin !== base.origin) { + return false; + } + + const basePath = stripTrailingSlash(base.pathname || '/'); + if (basePath === '/' || basePath === '') { + return true; + } + + const targetPath = stripTrailingSlash(url.pathname || '/'); + return targetPath === basePath || targetPath.startsWith(`${basePath}/`); +} + +function findTargetForUrl(url: URL): ApiClusterTarget | null { + for (const target of API_CONFIG.targets) { + if (matchesTarget(url, target)) { + return target; + } + } + return null; +} + +export function isProxyTarget(url: URL): boolean { + const target = findTargetForUrl(url); + return target?.requiresProxy === true; +} + +function shouldPreferPrimaryTarget(url: URL): boolean { + const path = url.pathname.toLowerCase(); + + // Prefer the proxied primary target for endpoints that routinely require the legacy domain + if (path.includes('/album/') || path.includes('/artist/') || path.includes('/playlist/')) { + return true; + } + + if (path.includes('/search/')) { + const params = url.searchParams; + if (params.has('a') || params.has('al') || params.has('p')) { + return true; + } + } + + return false; +} + +function resolveUrl(url: string): URL | null { + try { + return new URL(url); + } catch { + const baseApiUrl = getBaseApiUrl(); + if (!baseApiUrl) { + return null; + } + + try { + return new URL(url, baseApiUrl); + } catch { + return null; + } + } +} + +/** + * Create a proxied URL if needed + */ +export function getProxiedUrl(url: string): string { + if (!API_CONFIG.useProxy || !API_CONFIG.proxyUrl) { + return url; + } + + const targetUrl = resolveUrl(url); + if (!targetUrl) { + return url; + } + + if (!isProxyTarget(targetUrl)) { + return url; + } + + return `${API_CONFIG.proxyUrl}?url=${encodeURIComponent(targetUrl.toString())}`; +} + +function isLikelyProxyErrorEntry(entry: unknown): boolean { + if (!entry || typeof entry !== 'object') { + return false; + } + + const record = entry as Record; + const status = typeof record.status === 'number' ? record.status : undefined; + const subStatus = typeof record.subStatus === 'number' ? record.subStatus : undefined; + const userMessage = typeof record.userMessage === 'string' ? record.userMessage : undefined; + const detail = typeof record.detail === 'string' ? record.detail : undefined; + + if (typeof status === 'number' && status >= 400) { + return true; + } + + if (typeof subStatus === 'number' && subStatus >= 400) { + return true; + } + + const tokenPattern = /(token|invalid|unauthorized)/i; + if (userMessage && tokenPattern.test(userMessage)) { + return true; + } + + if (detail && tokenPattern.test(detail)) { + return true; + } + + return false; +} + +function isLikelyProxyErrorPayload(payload: unknown): boolean { + if (Array.isArray(payload)) { + return payload.some((entry) => isLikelyProxyErrorEntry(entry)); + } + + if (payload && typeof payload === 'object') { + return isLikelyProxyErrorEntry(payload); + } + + return false; +} + +async function isUnexpectedProxyResponse(response: Response): Promise { + if (!response.ok) { + return false; + } + + const contentType = response.headers.get('content-type'); + if (!contentType || !contentType.toLowerCase().includes('application/json')) { + return false; + } + + try { + const payload = await response.clone().json(); + return isLikelyProxyErrorPayload(payload); + } catch { + return false; + } +} + +function isV2Target(target: ApiClusterTarget): boolean { + return V2_API_TARGETS.some((t) => t.name === target.name); +} + +/** + * Fetch with CORS handling + */ +export async function fetchWithCORS( + url: string, + options?: RequestInit & { + apiVersion?: 'v1' | 'v2'; + preferredQuality?: string; + validateResponse?: (res: Response) => Promise; + } +): Promise { + const resolvedUrl = resolveUrl(url); + if (!resolvedUrl) { + throw new Error(`Unable to resolve URL: ${url}`); + } + + const originTarget = findTargetForUrl(resolvedUrl); + if (!originTarget) { + return fetch(getProxiedUrl(resolvedUrl.toString()), { + ...options + }); + } + + const apiVersion = options?.apiVersion ?? 'v2'; + const weightedTargets = ensureWeightedTargets(apiVersion); + const attemptOrder: ApiClusterTarget[] = []; + if (shouldPreferPrimaryTarget(resolvedUrl)) { + const primary = getPrimaryTarget(apiVersion); + if (!attemptOrder.some((candidate) => candidate.name === primary.name)) { + attemptOrder.push(primary); + } + } + + const selected = selectApiTarget(apiVersion); + if (!attemptOrder.some((candidate) => candidate.name === selected.name)) { + attemptOrder.push(selected); + } + + for (const target of weightedTargets) { + if (!attemptOrder.some((candidate) => candidate.name === target.name)) { + attemptOrder.push(target); + } + } + + let uniqueTargets = attemptOrder.filter( + (target, index, array) => array.findIndex((entry) => entry.name === target.name) === index + ); + + if (uniqueTargets.length === 0) { + uniqueTargets = [getPrimaryTarget(apiVersion)]; + } + + const originBase = parseTargetBase(originTarget); + if (!originBase) { + throw new Error('Invalid origin target configuration.'); + } + + const totalAttempts = Math.max(3, uniqueTargets.length); + let lastError: unknown = null; + let lastResponse: Response | null = null; + let lastUnexpectedResponse: Response | null = null; + let lastValidButRejectedResponse: Response | null = null; + + for (let attempt = 0; attempt < totalAttempts; attempt += 1) { + const target = uniqueTargets[attempt % uniqueTargets.length]; + const targetBase = parseTargetBase(target); + if (!targetBase) { + continue; + } + + const relativePath = getRelativePath(resolvedUrl, originBase); + const rewrittenPath = combinePaths(targetBase.pathname || '/', relativePath); + const rewrittenUrl = new URL( + rewrittenPath + resolvedUrl.search + resolvedUrl.hash, + targetBase.origin + ); + + // If we are falling back to a v2 target and have a preferred quality (e.g. HI_RES_LOSSLESS), + // upgrade the quality parameter in the URL. + if ( + isV2Target(target) && + options?.preferredQuality && + rewrittenUrl.searchParams.has('quality') + ) { + rewrittenUrl.searchParams.set('quality', options.preferredQuality); + } + + const finalUrl = getProxiedUrl(rewrittenUrl.toString()); + + const headers = new Headers(options?.headers); + const isCustom = + [...V2_API_TARGETS].some((t) => t.name === target.name) && + !target.baseUrl.includes('tidal.com') && + !target.baseUrl.includes('api.tidal.com') && + !target.baseUrl.includes('monochrome.tf'); + + if (isCustom) { + headers.set('X-Client', `BiniLossless/${APP_VERSION}`); + } + + try { + const response = await fetch(finalUrl, { + ...options, + headers + }); + if (response.ok) { + const unexpected = await isUnexpectedProxyResponse(response); + if (!unexpected) { + if (options?.validateResponse) { + const isValid = await options.validateResponse(response.clone()); + if (!isValid) { + lastValidButRejectedResponse = response; + continue; + } + } + return response; + } + lastUnexpectedResponse = response; + continue; + } + + lastResponse = response; + } catch (error) { + lastError = error; + if (error instanceof TypeError && error.message.includes('CORS')) { + continue; + } + } + } + + if (lastValidButRejectedResponse) { + return lastValidButRejectedResponse; + } + + if (lastUnexpectedResponse) { + return lastUnexpectedResponse; + } + + if (lastResponse) { + return lastResponse; + } + + if (lastError) { + if ( + lastError instanceof TypeError && + typeof lastError.message === 'string' && + lastError.message.includes('CORS') + ) { + throw new Error( + 'CORS error detected. Please configure a proxy in src/lib/config.ts or enable CORS on your backend.' + ); + } + throw lastError; + } + + throw new Error('All API targets failed without response.'); +} diff --git a/src/lib/downloads.ts b/src/lib/downloads.ts new file mode 100644 index 0000000000000000000000000000000000000000..65fe67454262dd775d66e231882285e76287ae4a --- /dev/null +++ b/src/lib/downloads.ts @@ -0,0 +1,538 @@ +import { losslessAPI } from '$lib/api'; +import type { Album, Track, AudioQuality } from '$lib/types'; +import type { DownloadMode } from '$lib/stores/downloadPreferences'; +import { formatArtists } from '$lib/utils'; +import JSZip from 'jszip'; + +function detectImageFormat(data: Uint8Array): { extension: string; mimeType: string } | null { + if (!data || data.length < 4) { + return null; + } + + // Check for JPEG magic bytes (FF D8 FF) + if (data[0] === 0xff && data[1] === 0xd8 && data[2] === 0xff) { + return { extension: 'jpg', mimeType: 'image/jpeg' }; + } + + // Check for PNG magic bytes (89 50 4E 47) + if (data[0] === 0x89 && data[1] === 0x50 && data[2] === 0x4e && data[3] === 0x47) { + return { extension: 'png', mimeType: 'image/png' }; + } + + // Check for WebP magic bytes (52 49 46 46 ... 57 45 42 50) + if (data.length >= 12 && + data[0] === 0x52 && data[1] === 0x49 && data[2] === 0x46 && data[3] === 0x46 && + data[8] === 0x57 && data[9] === 0x45 && data[10] === 0x42 && data[11] === 0x50) { + return { extension: 'webp', mimeType: 'image/webp' }; + } + + return null; +} + +export function sanitizeForFilename(value: string | null | undefined): string { + if (!value) return 'Unknown'; + return value + .replace(/[\\/:*?"<>|]/g, '_') + .replace(/\s+/g, ' ') + .trim(); +} + +export function getExtensionForQuality(quality: AudioQuality, convertAacToMp3 = false): string { + switch (quality) { + case 'LOW': + case 'HIGH': + return convertAacToMp3 ? 'mp3' : 'm4a'; + default: + return 'flac'; + } +} + +export function buildTrackFilename( + album: Album, + track: Track, + quality: AudioQuality, + artistName?: string, + convertAacToMp3 = false +): string { + const extension = getExtensionForQuality(quality, convertAacToMp3); + const volumeNumber = Number(track.volumeNumber); + const trackNumber = Number(track.trackNumber); + + // Check if this is a multi-volume album by checking: + // 1. numberOfVolumes > 1, or + // 2. volumeNumber is set and finite (indicating multi-volume structure) + const isMultiVolume = (album.numberOfVolumes && album.numberOfVolumes > 1) || + Number.isFinite(volumeNumber); + + let trackPart: string; + if (isMultiVolume) { + const volumePadded = Number.isFinite(volumeNumber) && volumeNumber > 0 ? `${volumeNumber}`.padStart(2, '0') : '01'; + const trackPadded = Number.isFinite(trackNumber) && trackNumber > 0 ? `${trackNumber}`.padStart(2, '0') : '00'; + trackPart = `${volumePadded}-${trackPadded}`; + } else { + const trackPadded = Number.isFinite(trackNumber) && trackNumber > 0 ? `${trackNumber}`.padStart(2, '0') : '00'; + trackPart = trackPadded; + } + + let title = track.title; + if (track.version) { + title = `${title} (${track.version})`; + } + + const parts = [ + sanitizeForFilename(artistName ?? formatArtists(track.artists)), + sanitizeForFilename(album.title ?? 'Unknown Album'), + `${trackPart} ${sanitizeForFilename(title)}` + ]; + return `${parts.join(' - ')}.${extension}`; +} + +export interface AlbumDownloadCallbacks { + onTotalResolved?(total: number): void; + onTrackDownloaded?(completed: number, total: number, track: Track): void; + onTrackFailed?(track: Track, error: Error, attempt: number): void; +} + +function escapeCsvValue(value: string): string { + const normalized = value.replace(/\r?\n|\r/g, ' '); + if (/[",]/.test(normalized)) { + return `"${normalized.replace(/"/g, '""')}"`; + } + return normalized; +} + +export async function buildTrackLinksCsv(tracks: Track[], quality: AudioQuality): Promise { + const header = ['Index', 'Title', 'Artist', 'Album', 'Duration', 'FLAC URL']; + const rows: string[][] = []; + + for (const [index, track] of tracks.entries()) { + const streamUrl = await losslessAPI.getTrackStreamUrl(track.id, quality); + rows.push([ + `${index + 1}`, + track.title ?? '', + formatArtists(track.artists), + track.album?.title ?? '', + losslessAPI.formatDuration(track.duration ?? 0), + streamUrl + ]); + } + + return [header, ...rows] + .map((row) => row.map((value) => escapeCsvValue(String(value ?? ''))).join(',')) + .join('\n'); +} + +interface DownloadTrackResult { + success: boolean; + blob?: Blob; + error?: Error; +} + +async function downloadTrackWithRetry( + trackId: number, + quality: AudioQuality, + filename: string, + track: Track, + callbacks?: AlbumDownloadCallbacks, + options?: { convertAacToMp3?: boolean; downloadCoverSeperately?: boolean } +): Promise { + const maxAttempts = 3; + const baseDelay = 1000; // 1 second + const trackTitle = track.title ?? 'Unknown Track'; + const artistName = formatArtists(track.artists); + + console.log(`[Track Download] Starting download: "${trackTitle}" by ${artistName} (ID: ${trackId}, Quality: ${quality})`); + + for (let attempt = 1; attempt <= maxAttempts; attempt++) { + try { + if (attempt > 1) { + console.log(`[Track Download] Retry attempt ${attempt}/${maxAttempts} for "${trackTitle}"`); + } + + const { blob } = await losslessAPI.fetchTrackBlob(trackId, quality, filename, { + ffmpegAutoTriggered: false, + convertAacToMp3: options?.convertAacToMp3 + }); + + console.log(`[Track Download] ✓ Success: "${trackTitle}" (${(blob.size / 1024 / 1024).toFixed(2)} MB)${attempt > 1 ? ` - succeeded on attempt ${attempt}` : ''}`); + return { success: true, blob }; + } catch (error) { + const errorObj = error instanceof Error ? error : new Error(String(error)); + console.warn( + `[Track Download] ✗ Attempt ${attempt}/${maxAttempts} failed for "${trackTitle}": ${errorObj.message}` + ); + + callbacks?.onTrackFailed?.(track, errorObj, attempt); + + if (attempt < maxAttempts) { + // Exponential backoff: 1s, 2s, 4s + const delay = baseDelay * Math.pow(2, attempt - 1); + console.log(`[Track Download] Waiting ${delay}ms before retry...`); + await new Promise((resolve) => setTimeout(resolve, delay)); + } else { + console.error( + `[Track Download] ✗✗✗ All ${maxAttempts} attempts failed for "${trackTitle}" - giving up` + ); + return { success: false, error: errorObj }; + } + } + } + + return { success: false, error: new Error('Download failed after all retry attempts') }; +} + +function triggerFileDownload(blob: Blob, filename: string): void { + const url = URL.createObjectURL(blob); + const link = document.createElement('a'); + link.href = url; + link.download = filename; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + URL.revokeObjectURL(url); +} + +export async function downloadAlbum( + album: Album, + quality: AudioQuality, + callbacks?: AlbumDownloadCallbacks, + preferredArtistName?: string, + options?: { mode?: DownloadMode; convertAacToMp3?: boolean; downloadCoverSeperately?: boolean } +): Promise { + const { album: fetchedAlbum, tracks } = await losslessAPI.getAlbum(album.id); + const canonicalAlbum = fetchedAlbum ?? album; + const total = tracks.length; + callbacks?.onTotalResolved?.(total); + const mode = options?.mode ?? 'individual'; + const shouldZip = mode === 'zip' && total > 1; + const useCsv = mode === 'csv'; + const convertAacToMp3 = options?.convertAacToMp3 ?? false; + const downloadCoverSeperately = options?.downloadCoverSeperately ?? false; + const artistName = sanitizeForFilename( + preferredArtistName ?? canonicalAlbum.artist?.name ?? 'Unknown Artist' + ); + const albumTitle = sanitizeForFilename(canonicalAlbum.title ?? 'Unknown Album'); + + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); + console.log(`[Album Download] Starting: "${albumTitle}" by ${artistName}`); + console.log(`[Album Download] Tracks: ${total} | Quality: ${quality} | Mode: ${mode}`); + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); + + + if (useCsv) { + let completed = 0; + for (const track of tracks) { + completed += 1; + callbacks?.onTrackDownloaded?.(completed, total, track); + } + const csvContent = await buildTrackLinksCsv(tracks, quality); + const csvBlob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' }); + triggerFileDownload(csvBlob, `${artistName} - ${albumTitle}.csv`); + return; + } + + if (shouldZip) { + const zip = new JSZip(); + let completed = 0; + const failedTracks: Array<{ track: Track; error: Error }> = []; + + // Download cover separately for ZIP if requested + if (downloadCoverSeperately && canonicalAlbum.cover) { + try { + console.log('[ZIP Cover Download] Fetching cover for album...'); + + // Try multiple sizes as fallback + const coverSizes: Array<'1280' | '640' | '320'> = ['1280', '640', '320']; + let coverDownloadSuccess = false; + + for (const size of coverSizes) { + if (coverDownloadSuccess) break; + + const coverUrl = losslessAPI.getCoverUrl(canonicalAlbum.cover, size); + console.log(`[ZIP Cover Download] Attempting size ${size}:`, coverUrl); + + // Try two fetch strategies: with headers, then without + const fetchStrategies = [ + { + name: 'with-headers', + options: { + method: 'GET' as const, + headers: { + 'Accept': 'image/jpeg,image/jpg,image/png,image/*', + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' + }, + signal: AbortSignal.timeout(10000) + } + }, + { + name: 'simple', + options: { + method: 'GET' as const, + signal: AbortSignal.timeout(10000) + } + } + ]; + + for (const strategy of fetchStrategies) { + if (coverDownloadSuccess) break; + + console.log(`[ZIP Cover Download] Trying strategy: ${strategy.name}`); + + try { + const coverResponse = await fetch(coverUrl, strategy.options); + + console.log(`[ZIP Cover Download] Response status: ${coverResponse.status}, Content-Length: ${coverResponse.headers.get('Content-Length')}`); + + if (!coverResponse.ok) { + console.warn(`[ZIP Cover Download] Failed with status ${coverResponse.status} for size ${size}`); + continue; + } + + const contentType = coverResponse.headers.get('Content-Type'); + const contentLength = coverResponse.headers.get('Content-Length'); + + if (contentLength && parseInt(contentLength, 10) === 0) { + console.warn(`[ZIP Cover Download] Content-Length is 0 for size ${size}`); + continue; + } + + if (contentType && !contentType.startsWith('image/')) { + console.warn(`[ZIP Cover Download] Invalid content type: ${contentType}`); + continue; + } + + // Use arrayBuffer directly for more reliable data retrieval + const arrayBuffer = await coverResponse.arrayBuffer(); + + if (!arrayBuffer || arrayBuffer.byteLength === 0) { + console.warn(`[ZIP Cover Download] Empty array buffer for size ${size}`); + continue; + } + + const uint8Array = new Uint8Array(arrayBuffer); + console.log(`[ZIP Cover Download] Received ${uint8Array.length} bytes`); + + // Detect image format + const imageFormat = detectImageFormat(uint8Array); + if (!imageFormat) { + console.warn(`[ZIP Cover Download] Unknown image format for size ${size}`); + continue; + } + + // Add cover to ZIP with appropriate filename + const coverFilename = `cover.${imageFormat.extension}`; + zip.file(coverFilename, uint8Array, { + binary: true, + compression: 'DEFLATE', + compressionOptions: { level: 6 } + }); + + coverDownloadSuccess = true; + console.log(`[ZIP Cover Download] Successfully added cover to ZIP (${size}x${size}, format: ${imageFormat.extension}, strategy: ${strategy.name})`); + break; + } catch (sizeError) { + console.warn(`[ZIP Cover Download] Failed at size ${size} with strategy ${strategy.name}:`, sizeError); + } + } // End strategy loop + } // End size loop + + if (!coverDownloadSuccess) { + console.warn('[ZIP Cover Download] All attempts failed'); + } + } catch (coverError) { + console.warn('Failed to download cover for ZIP:', coverError); + } + } + + for (const track of tracks) { + const filename = buildTrackFilename( + canonicalAlbum, + track, + quality, + preferredArtistName, + convertAacToMp3 + ); + + const result = await downloadTrackWithRetry( + track.id, + quality, + filename, + track, + callbacks, + { convertAacToMp3 } + ); + + if (result.success && result.blob) { + zip.file(filename, result.blob); + } else { + console.error(`[ZIP Download] Track failed: ${track.title}`, result.error); + failedTracks.push({ track, error: result.error ?? new Error('Unknown error') }); + } + + completed += 1; + callbacks?.onTrackDownloaded?.(completed, total, track); + } + + // Add error report file if there were failures + if (failedTracks.length > 0) { + let errorReport = 'DOWNLOAD ERRORS\n'; + errorReport += '===============\n\n'; + errorReport += 'The following tracks failed to download after 3 attempts:\n\n'; + + failedTracks.forEach((item, index) => { + const { track, error } = item; + const trackTitle = track.title ?? 'Unknown Track'; + const artistName = formatArtists(track.artists); + errorReport += `${index + 1}. ${trackTitle} - ${artistName}\n`; + errorReport += ` Error: ${error.message}\n\n`; + }); + + zip.file('_DOWNLOAD_ERRORS.txt', errorReport); + console.log(`[ZIP Download] Added error report with ${failedTracks.length} failed track(s)`); + } + + const zipBlob = await zip.generateAsync({ + type: 'blob', + compression: 'DEFLATE', + compressionOptions: { level: 6 } + }); + + const successCount = completed - failedTracks.length; + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); + console.log(`[Album Download] ZIP Complete: "${albumTitle}"`); + console.log(`[Album Download] ✓ Success: ${successCount}/${total} tracks | ZIP size: ${(zipBlob.size / 1024 / 1024).toFixed(2)} MB`); + if (failedTracks.length > 0) { + console.log(`[Album Download] ✗ Failed: ${failedTracks.length} track(s) - see _DOWNLOAD_ERRORS.txt in ZIP`); + } + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); + + triggerFileDownload(zipBlob, `${artistName} - ${albumTitle}.zip`); + return; + } + + let completed = 0; + let failedCount = 0; + + for (const track of tracks) { + const filename = buildTrackFilename( + canonicalAlbum, + track, + quality, + preferredArtistName, + convertAacToMp3 + ); + + const result = await downloadTrackWithRetry( + track.id, + quality, + filename, + track, + callbacks, + { convertAacToMp3, downloadCoverSeperately } + ); + + if (result.success && result.blob) { + // Trigger individual download + const url = URL.createObjectURL(result.blob); + const a = document.createElement('a'); + a.href = url; + a.download = filename; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + + // Download cover separately if enabled + if (downloadCoverSeperately && track.album?.cover) { + try { + const coverId = track.album.cover; + const coverSizes: Array<'1280' | '640' | '320'> = ['1280', '640', '320']; + let coverDownloadSuccess = false; + + for (const size of coverSizes) { + if (coverDownloadSuccess) break; + + const coverUrl = losslessAPI.getCoverUrl(coverId, size); + const fetchStrategies = [ + { + name: 'with-headers', + options: { + method: 'GET' as const, + headers: { + 'Accept': 'image/jpeg,image/jpg,image/png,image/*', + 'User-Agent': + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' + }, + signal: AbortSignal.timeout(10000) + } + }, + { + name: 'simple', + options: { + method: 'GET' as const, + signal: AbortSignal.timeout(10000) + } + } + ]; + + for (const strategy of fetchStrategies) { + if (coverDownloadSuccess) break; + + try { + const coverResponse = await fetch(coverUrl, strategy.options); + + if (!coverResponse.ok) continue; + + const contentType = coverResponse.headers.get('Content-Type'); + const contentLength = coverResponse.headers.get('Content-Length'); + + if (contentLength && parseInt(contentLength, 10) === 0) continue; + if (contentType && !contentType.startsWith('image/')) continue; + + const arrayBuffer = await coverResponse.arrayBuffer(); + if (!arrayBuffer || arrayBuffer.byteLength === 0) continue; + + const uint8Array = new Uint8Array(arrayBuffer); + const imageFormat = detectImageFormat(uint8Array); + if (!imageFormat) continue; + + const coverBlob = new Blob([uint8Array], { type: imageFormat.mimeType }); + const coverObjectUrl = URL.createObjectURL(coverBlob); + const coverLink = document.createElement('a'); + coverLink.href = coverObjectUrl; + coverLink.download = `cover.${imageFormat.extension}`; + document.body.appendChild(coverLink); + coverLink.click(); + document.body.removeChild(coverLink); + URL.revokeObjectURL(coverObjectUrl); + + coverDownloadSuccess = true; + break; + } catch { + // Continue to next strategy + } + } + } + } catch (coverError) { + console.warn('Failed to download cover separately:', coverError); + } + } + } else { + console.error(`[Individual Download] Track failed: ${track.title}`, result.error); + failedCount++; + } + + completed += 1; + callbacks?.onTrackDownloaded?.(completed, total, track); + } + + // Summary logging + const successCount = total - failedCount; + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); + console.log(`[Album Download] Individual Downloads Complete: "${albumTitle}"`); + console.log(`[Album Download] ✓ Success: ${successCount}/${total} tracks`); + if (failedCount > 0) { + console.log(`[Album Download] ✗ Failed: ${failedCount} track(s)`); + } + console.log(`[Album Download] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`); +} diff --git a/src/lib/ffmpegClient.ts b/src/lib/ffmpegClient.ts new file mode 100644 index 0000000000000000000000000000000000000000..9248275a2bd5d346ea1fa1dbd8f64ee7b3a9a0a2 --- /dev/null +++ b/src/lib/ffmpegClient.ts @@ -0,0 +1,212 @@ +import { browser } from '$app/environment'; + +const CORE_BASE_URL = `https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm`; + +type FFmpegClass = (typeof import('@ffmpeg/ffmpeg'))['FFmpeg']; +type FFmpegInstance = InstanceType; +type FetchFileFn = (typeof import('@ffmpeg/util'))['fetchFile']; + +const CORE_JS_NAME = 'ffmpeg-core.js'; +const CORE_WASM_NAME = 'ffmpeg-core.wasm'; + +export interface FfmpegLoadProgress { + receivedBytes: number; + totalBytes?: number; +} + +export interface FfmpegLoadOptions { + signal?: AbortSignal; + onProgress?: (progress: FfmpegLoadProgress) => void; +} + +let ffmpegInstance: FFmpegInstance | null = null; +let loadPromise: Promise | null = null; +let fetchFileFn: FetchFileFn | null = null; +let assetsPromise: Promise<{ coreUrl: string; wasmUrl: string; totalBytes?: number }> | null = null; +let estimatedSizePromise: Promise | null = null; + +async function ensureFFmpegClass(): Promise { + const module = await import('@ffmpeg/ffmpeg'); + return module.FFmpeg; +} + +async function ensureFetchFile(): Promise { + if (fetchFileFn) return fetchFileFn; + const module = await import('@ffmpeg/util'); + fetchFileFn = module.fetchFile; + return fetchFileFn; +} + +async function fetchHeadSize(path: string): Promise { + try { + const response = await fetch(`${CORE_BASE_URL}/${path}`, { method: 'HEAD' }); + if (!response.ok) return undefined; + const length = response.headers.get('Content-Length'); + if (!length) return undefined; + const numeric = Number(length); + return Number.isFinite(numeric) ? numeric : undefined; + } catch (error) { + console.debug('Failed to probe FFmpeg asset size', error); + return undefined; + } +} + +async function streamAsset( + path: string, + options?: FfmpegLoadOptions, + context?: { + zTotalKnown?: number; + onChunk?: (bytes: number) => void; + } +): Promise<{ url: string; size: number | undefined }> { + const response = await fetch(`${CORE_BASE_URL}/${path}`, { + signal: options?.signal + }); + if (!response.ok) { + throw new Error(`Failed to fetch ${path} (${response.status})`); + } + + const totalBytes = Number(response.headers.get('Content-Length') ?? '0'); + const resolvedTotal = + Number.isFinite(totalBytes) && totalBytes > 0 ? totalBytes : context?.zTotalKnown; + + if (!response.body) { + const blob = await response.blob(); + const size = blob.size > 0 ? blob.size : resolvedTotal; + return { + url: URL.createObjectURL(blob), + size + }; + } + + const reader = response.body.getReader(); + const chunks: Uint8Array[] = []; + + while (true) { + const { done, value } = await reader.read(); + if (done) break; + if (value) { + chunks.push(value); + context?.onChunk?.(value.byteLength); + } + } + + const blob = new Blob(chunks as BlobPart[], { + type: response.headers.get('Content-Type') ?? 'application/octet-stream' + }); + return { + url: URL.createObjectURL(blob), + size: blob.size > 0 ? blob.size : resolvedTotal + }; +} + +async function ensureAssets(options?: FfmpegLoadOptions) { + if (assetsPromise) { + return assetsPromise; + } + + assetsPromise = (async () => { + const [jsSize, wasmSize] = await Promise.all([ + fetchHeadSize(CORE_JS_NAME), + fetchHeadSize(CORE_WASM_NAME) + ]); + const totalKnown = [jsSize, wasmSize] + .map((value) => (Number.isFinite(value ?? NaN) ? Number(value) : 0)) + .reduce((sum, value) => sum + value, 0); + + let cumulative = 0; + const notify = (bytes: number) => { + cumulative += bytes; + if (options?.onProgress) { + options.onProgress({ + receivedBytes: cumulative, + totalBytes: totalKnown > 0 ? totalKnown : undefined + }); + } + }; + + const { url: coreUrl, size: fetchedJsSize } = await streamAsset(CORE_JS_NAME, options, { + zTotalKnown: totalKnown > 0 ? totalKnown : undefined, + onChunk: notify + }); + const { url: wasmUrl, size: fetchedWasmSize } = await streamAsset(CORE_WASM_NAME, options, { + zTotalKnown: totalKnown > 0 ? totalKnown : undefined, + onChunk: notify + }); + + const totalBytes = [jsSize ?? fetchedJsSize, wasmSize ?? fetchedWasmSize] + .filter((value): value is number => Number.isFinite(value ?? NaN)) + .reduce((sum, value) => sum + value, 0); + + return { + coreUrl, + wasmUrl, + totalBytes: totalBytes > 0 ? totalBytes : undefined + }; + })().catch((error) => { + assetsPromise = null; + throw error; + }); + + return assetsPromise; +} + +export async function estimateFfmpegDownloadSize(): Promise { + if (!estimatedSizePromise) { + estimatedSizePromise = (async () => { + const [jsSize, wasmSize] = await Promise.all([ + fetchHeadSize(CORE_JS_NAME), + fetchHeadSize(CORE_WASM_NAME) + ]); + const total = [jsSize, wasmSize] + .filter((value): value is number => Number.isFinite(value ?? NaN)) + .reduce((sum, value) => sum + value, 0); + return total > 0 ? total : undefined; + })(); + } + return estimatedSizePromise ?? Promise.resolve(undefined); +} + +export function isFFmpegSupported(): boolean { + return browser && typeof ReadableStream !== 'undefined' && typeof WebAssembly !== 'undefined'; +} + +export async function getFFmpeg(options?: FfmpegLoadOptions): Promise { + if (!isFFmpegSupported()) { + throw new Error('FFmpeg is not supported in this environment.'); + } + + if (ffmpegInstance) { + return ffmpegInstance; + } + + if (!loadPromise) { + loadPromise = (async () => { + const FFmpegConstructor = await ensureFFmpegClass(); + const instance = new FFmpegConstructor(); + + const assets = await ensureAssets(options); + + // Load with memory optimization for WebAssembly + await instance.load({ + coreURL: assets.coreUrl, + wasmURL: assets.wasmUrl + }); + + ffmpegInstance = instance; + URL.revokeObjectURL(assets.coreUrl); + URL.revokeObjectURL(assets.wasmUrl); + return instance; + })().catch((error) => { + loadPromise = null; + throw error; + }); + } + + return loadPromise; +} + +export async function fetchFile(input: Parameters[0]) { + const fn = await ensureFetchFile(); + return fn(input); +} diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..40e800a2ab29f84b9c541505aabef18b2b0a4e3f --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1,29 @@ +// place files you want to import through the `$lib` alias in this folder. + +// Export API and types +export { losslessAPI as tidalAPI } from './api'; +export * from './types'; + +// Export stores +export { + playerStore, + currentTrack, + isPlaying, + currentTime, + duration, + volume, + progress +} from './stores/player'; +export { + downloadUiStore, + ffmpegBanner, + activeTrackDownloads, + completedTrackDownloads, + erroredTrackDownloads +} from './stores/downloadUi'; + +// Export components +export { default as AudioPlayer } from './components/AudioPlayer.svelte'; +export { default as SearchInterface } from './components/SearchInterface.svelte'; +export { default as TrackList } from './components/TrackList.svelte'; +export { default as QualitySelector } from './components/QualitySelector.svelte'; diff --git a/src/lib/server/redis.ts b/src/lib/server/redis.ts new file mode 100644 index 0000000000000000000000000000000000000000..75927bd657e9f121ae5d0563b8b04eeb642916fd --- /dev/null +++ b/src/lib/server/redis.ts @@ -0,0 +1,67 @@ +import Redis, { type RedisOptions } from 'ioredis'; +import { env } from '$env/dynamic/private'; + +let client: Redis | null | undefined; +let hasLoggedError = false; + +function logRedisError(error: unknown): void { + if (hasLoggedError) return; + hasLoggedError = true; + console.error('Redis connection error:', error); +} + +function buildOptions(): RedisOptions | string | null { + const url = env.REDIS_URL || env.REDIS_CONNECTION_STRING; + if (url) { + return url; + } + + const host = env.REDIS_HOST; + if (!host) { + return null; + } + + const port = env.REDIS_PORT ? Number.parseInt(env.REDIS_PORT, 10) : 6379; + const tlsEnabled = (env.REDIS_TLS || '').toLowerCase() === 'true'; + + const options: RedisOptions = { + host, + port, + password: env.REDIS_PASSWORD, + username: env.REDIS_USERNAME, + lazyConnect: true + }; + + if (tlsEnabled) { + options.tls = {}; + } + + return options; +} + +export function getRedisClient(): Redis | null { + if (client !== undefined) { + return client; + } + + const options = buildOptions(); + if (!options) { + client = null; + return client; + } + + try { + client = + typeof options === 'string' ? new Redis(options, { lazyConnect: true }) : new Redis(options); + client.on('error', logRedisError); + return client; + } catch (error) { + logRedisError(error); + client = null; + return client; + } +} + +export function isRedisEnabled(): boolean { + return getRedisClient() !== null; +} diff --git a/src/lib/stores/downloadPreferences.ts b/src/lib/stores/downloadPreferences.ts new file mode 100644 index 0000000000000000000000000000000000000000..82dd6dcea14a2208beeaaf742e821c890e510e7d --- /dev/null +++ b/src/lib/stores/downloadPreferences.ts @@ -0,0 +1,56 @@ +import { browser } from '$app/environment'; +import { writable } from 'svelte/store'; + +export type DownloadMode = 'individual' | 'zip' | 'csv'; + +interface DownloadPreferencesState { + mode: DownloadMode; +} + +const createDownloadPreferencesStore = () => { + const STORAGE_KEY = 'tidal-ui.downloadMode'; + + const readInitialMode = (): DownloadMode => { + if (!browser) { + return 'individual'; + } + + const stored = localStorage.getItem(STORAGE_KEY); + if (stored === 'individual' || stored === 'zip' || stored === 'csv') { + return stored; + } + return 'individual'; + }; + + const { subscribe, set, update } = writable({ + mode: readInitialMode() + }); + + if (browser) { + window.addEventListener('storage', (event) => { + if (event.key !== STORAGE_KEY) return; + const value = event.newValue; + if (value === 'individual' || value === 'zip' || value === 'csv') { + set({ mode: value }); + } + }); + } + + return { + subscribe, + setMode(mode: DownloadMode) { + update(() => { + if (browser) { + try { + localStorage.setItem(STORAGE_KEY, mode); + } catch (error) { + console.warn('Failed to persist download mode preference', error); + } + } + return { mode }; + }); + } + }; +}; + +export const downloadPreferencesStore = createDownloadPreferencesStore(); diff --git a/src/lib/stores/downloadUi.ts b/src/lib/stores/downloadUi.ts new file mode 100644 index 0000000000000000000000000000000000000000..10c92b8af549768473ce389ab94028f452035ef2 --- /dev/null +++ b/src/lib/stores/downloadUi.ts @@ -0,0 +1,381 @@ +import { derived, get, writable } from 'svelte/store'; +import type { Track, PlayableTrack } from '$lib/types'; +import { isSonglinkTrack } from '$lib/types'; +import { formatArtists } from '$lib/utils'; + +export type FfmpegPhase = 'idle' | 'countdown' | 'loading' | 'ready' | 'error'; + +export interface FfmpegBannerState { + phase: FfmpegPhase; + countdownSeconds: number; + totalBytes?: number; + progress: number; + dismissible: boolean; + autoTriggered: boolean; + error?: string; + startedAt?: number; + updatedAt?: number; +} + +export type TrackDownloadStatus = 'pending' | 'running' | 'completed' | 'error' | 'cancelled'; + +export interface TrackDownloadTask { + id: string; + trackId: number | string; + title: string; + subtitle?: string; + filename: string; + status: TrackDownloadStatus; + receivedBytes: number; + totalBytes?: number; + progress: number; + error?: string; + startedAt: number; + updatedAt: number; + cancellable: boolean; +} + +interface DownloadUiState { + ffmpeg: FfmpegBannerState; + tasks: TrackDownloadTask[]; +} + +const MAX_VISIBLE_TASKS = 4; +const COUNTDOWN_DEFAULT_SECONDS = 5; + +const initialState: DownloadUiState = { + ffmpeg: { + phase: 'idle', + countdownSeconds: COUNTDOWN_DEFAULT_SECONDS, + totalBytes: undefined, + progress: 0, + dismissible: true, + autoTriggered: true, + startedAt: undefined, + updatedAt: undefined + }, + tasks: [] +}; + +const store = writable(initialState); + +const taskControllers = new Map(); +let countdownInterval: ReturnType | null = null; + +function nextTaskId(prefix: string): string { + return `${prefix}-${Date.now()}-${Math.random().toString(16).slice(2, 8)}`; +} + +function clampProgress(value: number | null | undefined): number { + if (!Number.isFinite(value ?? NaN)) return 0; + return Math.max(0, Math.min(1, Number(value))); +} + +function stopCountdownTicker() { + if (countdownInterval) { + clearInterval(countdownInterval); + countdownInterval = null; + } +} + +function updateCountdownTicker() { + stopCountdownTicker(); + countdownInterval = setInterval(() => { + store.update((state) => { + if (state.ffmpeg.phase !== 'countdown') { + stopCountdownTicker(); + return state; + } + + const nextSeconds = Math.max(0, state.ffmpeg.countdownSeconds - 1); + const nextPhase: FfmpegPhase = nextSeconds === 0 ? 'loading' : 'countdown'; + return { + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: nextPhase, + countdownSeconds: nextSeconds, + progress: 0, + updatedAt: Date.now(), + dismissible: nextPhase !== 'loading' + } + }; + }); + }, 1000); +} + +function upsertTask(task: TrackDownloadTask): void { + store.update((state) => { + const existingIndex = state.tasks.findIndex((entry) => entry.id === task.id); + const tasks = state.tasks.slice(); + if (existingIndex >= 0) { + tasks[existingIndex] = { ...tasks[existingIndex]!, ...task, updatedAt: Date.now() }; + } else { + tasks.unshift({ ...task, updatedAt: Date.now() }); + } + return { + ...state, + tasks: tasks.slice(0, MAX_VISIBLE_TASKS) + }; + }); +} + +function mutateTask(id: string, updater: (task: TrackDownloadTask) => TrackDownloadTask): void { + store.update((state) => { + const index = state.tasks.findIndex((entry) => entry.id === id); + if (index === -1) { + return state; + } + const tasks = state.tasks.slice(); + const nextTask = updater({ ...tasks[index]! }); + tasks[index] = { ...nextTask, updatedAt: Date.now() }; + return { ...state, tasks }; + }); +} + +function removeTask(id: string): void { + store.update((state) => ({ + ...state, + tasks: state.tasks.filter((task) => task.id !== id) + })); + const controller = taskControllers.get(id); + if (controller) { + taskControllers.delete(id); + } +} + +export const downloadUiStore = { + subscribe: store.subscribe, + reset(): void { + stopCountdownTicker(); + store.set(initialState); + taskControllers.clear(); + }, + beginTrackDownload( + track: PlayableTrack, + filename: string, + options?: { subtitle?: string } + ): { + taskId: string; + controller: AbortController; + } { + const id = nextTaskId('track'); + const controller = new AbortController(); + taskControllers.set(id, controller); + + let subtitle = options?.subtitle; + if (!subtitle) { + if (isSonglinkTrack(track)) { + subtitle = track.artistName; + } else { + subtitle = formatArtists(track.artists); + } + } + + upsertTask({ + id, + trackId: track.id, + title: track.title, + subtitle, + filename, + status: 'running', + receivedBytes: 0, + totalBytes: undefined, + progress: 0, + error: undefined, + startedAt: Date.now(), + updatedAt: Date.now(), + cancellable: true + }); + return { taskId: id, controller }; + }, + updateTrackProgress(taskId: string, received: number, total?: number): void { + mutateTask(taskId, (task) => ({ + ...task, + receivedBytes: received, + totalBytes: total, + progress: total ? clampProgress(received / total) : task.progress + })); + }, + updateTrackStage(taskId: string, progress: number): void { + mutateTask(taskId, (task) => ({ + ...task, + progress: clampProgress(progress) + })); + }, + completeTrackDownload(taskId: string): void { + const controller = taskControllers.get(taskId); + if (controller) { + taskControllers.delete(taskId); + } + mutateTask(taskId, (task) => ({ + ...task, + status: task.status === 'cancelled' ? 'cancelled' : 'completed', + progress: task.status === 'cancelled' ? task.progress : 1, + cancellable: false + })); + }, + errorTrackDownload(taskId: string, error: unknown): void { + const controller = taskControllers.get(taskId); + if (controller) { + taskControllers.delete(taskId); + } + mutateTask(taskId, (task) => ({ + ...task, + status: 'error', + error: + error instanceof Error + ? error.message + : typeof error === 'string' + ? error + : 'Download failed', + cancellable: false + })); + }, + cancelTrackDownload(taskId: string): void { + const controller = taskControllers.get(taskId); + if (controller) { + controller.abort(); + } + mutateTask(taskId, (task) => ({ + ...task, + status: 'cancelled', + error: undefined, + cancellable: false + })); + }, + dismissTrackTask(taskId: string): void { + removeTask(taskId); + }, + startFfmpegCountdown(totalBytes: number, options?: { autoTriggered?: boolean }): void { + const autoTriggered = options?.autoTriggered ?? true; + store.set({ + ...get(store), + ffmpeg: { + phase: autoTriggered ? 'countdown' : 'loading', + countdownSeconds: autoTriggered ? COUNTDOWN_DEFAULT_SECONDS : 0, + totalBytes: totalBytes > 0 ? totalBytes : undefined, + progress: 0, + dismissible: autoTriggered, + autoTriggered, + error: undefined, + startedAt: Date.now(), + updatedAt: Date.now() + } + }); + if (autoTriggered) { + updateCountdownTicker(); + } else { + stopCountdownTicker(); + } + }, + skipFfmpegCountdown(): void { + store.update((state) => { + if (state.ffmpeg.phase !== 'countdown') { + return state; + } + stopCountdownTicker(); + return { + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: 'loading', + countdownSeconds: 0, + progress: 0, + dismissible: false, + updatedAt: Date.now() + } + }; + }); + }, + startFfmpegLoading(): void { + stopCountdownTicker(); + store.update((state) => ({ + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: 'loading', + countdownSeconds: 0, + progress: 0, + dismissible: false, + updatedAt: Date.now() + } + })); + }, + updateFfmpegProgress(progress: number): void { + store.update((state) => ({ + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: 'loading', + progress: clampProgress(progress), + dismissible: false, + updatedAt: Date.now() + } + })); + }, + completeFfmpeg(): void { + stopCountdownTicker(); + store.update((state) => ({ + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: 'ready', + progress: 1, + countdownSeconds: 0, + dismissible: true, + updatedAt: Date.now() + } + })); + }, + errorFfmpeg(error: unknown): void { + stopCountdownTicker(); + store.update((state) => ({ + ...state, + ffmpeg: { + ...state.ffmpeg, + phase: 'error', + progress: 0, + dismissible: true, + error: + error instanceof Error + ? error.message + : typeof error === 'string' + ? error + : 'Failed to load FFmpeg', + updatedAt: Date.now() + } + })); + }, + dismissFfmpeg(): void { + stopCountdownTicker(); + store.update((state) => ({ + ...state, + ffmpeg: { + phase: 'idle', + countdownSeconds: COUNTDOWN_DEFAULT_SECONDS, + totalBytes: undefined, + progress: 0, + dismissible: true, + autoTriggered: true, + error: undefined, + startedAt: undefined, + updatedAt: Date.now() + } + })); + } +}; + +export const activeTrackDownloads = derived(store, ($state) => + $state.tasks.filter((task) => task.status === 'running') +); + +export const completedTrackDownloads = derived(store, ($state) => + $state.tasks.filter((task) => task.status === 'completed') +); + +export const erroredTrackDownloads = derived(store, ($state) => + $state.tasks.filter((task) => task.status === 'error') +); + +export const ffmpegBanner = derived(store, ($state) => $state.ffmpeg); diff --git a/src/lib/stores/lyrics.ts b/src/lib/stores/lyrics.ts new file mode 100644 index 0000000000000000000000000000000000000000..242c32794580177f97b023831288cea43c6c34cb --- /dev/null +++ b/src/lib/stores/lyrics.ts @@ -0,0 +1,91 @@ +import { browser } from '$app/environment'; +import { get, writable } from 'svelte/store'; +import type { Track, PlayableTrack } from '$lib/types'; +import { currentTrack as currentTrackStore } from '$lib/stores/player'; + +export interface LyricsState { + open: boolean; + maximized: boolean; + track: PlayableTrack | null; + refreshToken: number; +} + +const initialState: LyricsState = { + open: false, + maximized: false, + track: null, + refreshToken: 0 +}; + +function createLyricsStore() { + const store = writable({ ...initialState }); + + let currentTrack: PlayableTrack | null = null; + + currentTrackStore.subscribe((track) => { + currentTrack = track ?? null; + store.update((state) => { + const trackChanged = state.track?.id !== currentTrack?.id; + return { + ...state, + track: currentTrack, + refreshToken: trackChanged ? state.refreshToken + 1 : state.refreshToken + }; + }); + }); + + function open(targetTrack?: PlayableTrack | null) { + const nextTrack = targetTrack ?? currentTrack; + store.update((state) => ({ + ...state, + open: true, + track: nextTrack ?? state.track, + maximized: + browser && window.matchMedia('(max-width: 640px)').matches ? true : state.maximized, + refreshToken: + nextTrack && state.track?.id !== nextTrack.id ? state.refreshToken + 1 : state.refreshToken + })); + } + + function close() { + store.update((state) => ({ + ...state, + open: false, + maximized: false + })); + } + + function toggle() { + const state = get(store); + if (state.open) { + close(); + } else { + open(); + } + } + + function toggleMaximize() { + store.update((state) => ({ + ...state, + maximized: !state.maximized + })); + } + + function refresh() { + store.update((state) => ({ + ...state, + refreshToken: state.refreshToken + 1 + })); + } + + return { + subscribe: store.subscribe, + open, + close, + toggle, + toggleMaximize, + refresh + }; +} + +export const lyricsStore = createLyricsStore(); diff --git a/src/lib/stores/performance.ts b/src/lib/stores/performance.ts new file mode 100644 index 0000000000000000000000000000000000000000..f495df61fe794841593cf62b18b1ae98918ceffa --- /dev/null +++ b/src/lib/stores/performance.ts @@ -0,0 +1,52 @@ +import { derived, readable } from 'svelte/store'; +import { browser } from '$app/environment'; +import { userPreferencesStore } from './userPreferences'; +import { type PerformanceLevel } from '$lib/utils/performance'; + +/** + * Derived store that provides the effective performance level + * based on user preferences. + */ +export const effectivePerformanceLevel = derived( + userPreferencesStore, + ($prefs): PerformanceLevel => { + return $prefs.performanceMode as PerformanceLevel; + } +); + +/** + * Store that tracks if user prefers reduced motion + */ +export const reducedMotion = readable(false, (set) => { + if (!browser) { + return; + } + + const mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)'); + + set(mediaQuery.matches); + + const handler = (e: MediaQueryListEvent) => { + set(e.matches); + }; + + mediaQuery.addEventListener('change', handler); + + return () => { + mediaQuery.removeEventListener('change', handler); + }; +}); + +/** + * Derived store that determines if animations should be enabled + */ +export const animationsEnabled = derived( + [effectivePerformanceLevel, reducedMotion], + ([$perfLevel, $reducedMotion]) => { + if ($reducedMotion) { + return false; + } + + return $perfLevel !== 'low'; + } +); diff --git a/src/lib/stores/player.ts b/src/lib/stores/player.ts new file mode 100644 index 0000000000000000000000000000000000000000..d748f62a79d66c00277dd4227952625a35ac34a6 --- /dev/null +++ b/src/lib/stores/player.ts @@ -0,0 +1,473 @@ +// Audio player store for managing playback state +import { writable, derived, get } from 'svelte/store'; +import { browser } from '$app/environment'; +import type { Track, AudioQuality, PlayableTrack } from '$lib/types'; +import { deriveTrackQuality } from '$lib/utils/audioQuality'; +import { userPreferencesStore } from '$lib/stores/userPreferences'; + +interface PlayerState { + currentTrack: PlayableTrack | null; + isPlaying: boolean; + currentTime: number; + duration: number; + volume: number; + quality: AudioQuality; + qualitySource: 'auto' | 'manual'; + isLoading: boolean; + queue: PlayableTrack[]; + queueIndex: number; + sampleRate: number | null; + bitDepth: number | null; + replayGain: number | null; +} + +const initialPreferences = get(userPreferencesStore); + +const initialState: PlayerState = { + currentTrack: null, + isPlaying: false, + currentTime: 0, + duration: 0, + volume: 0.8, + quality: initialPreferences.playbackQuality, + qualitySource: 'manual', + isLoading: false, + queue: [], + queueIndex: -1, + sampleRate: null, + bitDepth: null, + replayGain: null +}; + +function createPlayerStore() { + let startState = initialState; + if (browser) { + try { + const stored = sessionStorage.getItem('tidal-player-store'); + if (stored) { + const parsed = JSON.parse(stored); + startState = { + ...initialState, + ...parsed, + isPlaying: false, + isLoading: false + }; + } + } catch (e) { + console.warn('Failed to restore player state', e); + } + } + + const { subscribe, set, update } = writable(startState); + + if (browser) { + subscribe((state) => { + try { + const toSave = { + currentTrack: state.currentTrack, + queue: state.queue, + queueIndex: state.queueIndex, + volume: state.volume, + quality: state.quality, + qualitySource: state.qualitySource, + currentTime: state.currentTime, + duration: state.duration, + sampleRate: state.sampleRate, + bitDepth: state.bitDepth, + replayGain: state.replayGain + }; + sessionStorage.setItem('tidal-player-store', JSON.stringify(toSave)); + } catch (e) { + console.warn('Failed to save player state', e); + } + }); + } + + const applyAutoQuality = (state: PlayerState, track: PlayableTrack | null): PlayerState => { + if (state.qualitySource === 'manual') { + return state; + } + // SonglinkTrack will be converted to Track before playing, so use LOSSLESS for now + if (track && 'isSonglinkTrack' in track && track.isSonglinkTrack) { + const nextQuality: AudioQuality = 'LOSSLESS'; + if (state.quality === nextQuality) { + return state; + } + return { ...state, quality: nextQuality }; + } + const derived = deriveTrackQuality(track as Track | null); + const nextQuality: AudioQuality = derived ?? 'LOSSLESS'; + if (state.quality === nextQuality) { + return state; + } + return { ...state, quality: nextQuality }; + }; + + const resolveSampleRate = (state: PlayerState, track: PlayableTrack | null): number | null => { + // SonglinkTrack doesn't have sampleRate, return null + if (track && 'isSonglinkTrack' in track && track.isSonglinkTrack) { + return null; + } + if (state.currentTrack && track && 'id' in state.currentTrack && 'id' in track && state.currentTrack.id === track.id) { + return state.sampleRate; + } + return null; + }; + + return { + subscribe, + setTrack: (track: PlayableTrack) => + update((state) => { + const next: PlayerState = { + ...state, + currentTrack: track, + duration: track.duration, + currentTime: 0, + isLoading: true, + sampleRate: resolveSampleRate(state, track), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(next, track); + }), + play: () => update((state) => ({ ...state, isPlaying: true })), + pause: () => update((state) => ({ ...state, isPlaying: false })), + togglePlay: () => update((state) => ({ ...state, isPlaying: !state.isPlaying })), + setCurrentTime: (time: number) => update((state) => ({ ...state, currentTime: time })), + setDuration: (duration: number) => update((state) => ({ ...state, duration })), + setSampleRate: (sampleRate: number | null) => update((state) => ({ ...state, sampleRate })), + setBitDepth: (bitDepth: number | null) => update((state) => ({ ...state, bitDepth })), + setReplayGain: (replayGain: number | null) => update((state) => ({ ...state, replayGain })), + setVolume: (volume: number) => update((state) => ({ ...state, volume })), + setQuality: (quality: AudioQuality) => + update((state) => { + userPreferencesStore.setPlaybackQuality(quality); + return { ...state, quality, qualitySource: 'manual' }; + }), + setLoading: (isLoading: boolean) => update((state) => ({ ...state, isLoading })), + setQueue: (queue: PlayableTrack[], startIndex: number = 0) => + update((state) => { + const hasTracks = queue.length > 0; + const clampedIndex = hasTracks + ? Math.min(Math.max(startIndex, 0), queue.length - 1) + : -1; + const nextTrack = hasTracks ? queue[clampedIndex]! : null; + + // Check if we are staying on the same track (prevent reload if so) + const isSameTrack = state.currentTrack && nextTrack && state.currentTrack.id === nextTrack.id; + + let next: PlayerState = { + ...state, + queue, + queueIndex: clampedIndex, + currentTrack: nextTrack, + isPlaying: hasTracks ? state.isPlaying : false, + isLoading: isSameTrack ? state.isLoading : hasTracks, + currentTime: isSameTrack ? state.currentTime : 0, + duration: isSameTrack ? state.duration : (nextTrack?.duration ?? 0), + sampleRate: isSameTrack ? state.sampleRate : resolveSampleRate(state, nextTrack), + bitDepth: isSameTrack ? state.bitDepth : null, + replayGain: isSameTrack ? state.replayGain : null + }; + + if (!hasTracks) { + next = { + ...next, + queueIndex: -1, + currentTrack: null, + isPlaying: false, + isLoading: false, + currentTime: 0, + duration: 0, + sampleRate: null, + bitDepth: null, + replayGain: null + }; + } + + return applyAutoQuality(next, next.currentTrack); + }), + enqueue: (track: PlayableTrack) => + update((state) => { + const queue = state.queue.slice(); + if (queue.length === 0) { + const next: PlayerState = { + ...state, + queue: [track], + queueIndex: 0, + currentTrack: track, + isPlaying: true, + isLoading: true, + currentTime: 0, + duration: track.duration, + sampleRate: resolveSampleRate(state, track), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(next, track); + } + + queue.push(track); + return { + ...state, + queue + }; + }), + enqueueNext: (track: PlayableTrack) => + update((state) => { + const queue = state.queue.slice(); + let queueIndex = state.queueIndex; + if (queue.length === 0 || queueIndex === -1) { + const next: PlayerState = { + ...state, + queue: [track], + queueIndex: 0, + currentTrack: track, + isPlaying: true, + isLoading: true, + currentTime: 0, + duration: track.duration, + sampleRate: resolveSampleRate(state, track), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(next, track); + } + + const insertIndex = Math.min(queueIndex + 1, queue.length); + queue.splice(insertIndex, 0, track); + if (insertIndex <= queueIndex) { + queueIndex += 1; + } + return { + ...state, + queue, + queueIndex + }; + }), + next: () => + update((state) => { + if (state.queueIndex < state.queue.length - 1) { + const newIndex = state.queueIndex + 1; + const nextTrack = state.queue[newIndex] ?? null; + const nextState: PlayerState = { + ...state, + queueIndex: newIndex, + currentTrack: nextTrack, + currentTime: 0, + duration: nextTrack?.duration ?? 0, + sampleRate: resolveSampleRate(state, nextTrack), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(nextState, nextTrack); + } + return state; + }), + previous: () => + update((state) => { + if (state.queueIndex > 0) { + const newIndex = state.queueIndex - 1; + const nextTrack = state.queue[newIndex] ?? null; + const nextState: PlayerState = { + ...state, + queueIndex: newIndex, + currentTrack: nextTrack, + currentTime: 0, + duration: nextTrack?.duration ?? 0, + sampleRate: resolveSampleRate(state, nextTrack), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(nextState, nextTrack); + } + return state; + }), + shuffleQueue: () => + update((state) => { + const { + queue: originalQueue, + queueIndex: originalIndex, + currentTrack: originalCurrent + } = state; + + if (originalQueue.length <= 1) { + return state; + } + + const queue = originalQueue.slice(); + let pinnedTrack: PlayableTrack | null = null; + + if (originalCurrent) { + const locatedIndex = queue.findIndex((track) => track.id === originalCurrent.id); + if (locatedIndex >= 0) { + pinnedTrack = queue.splice(locatedIndex, 1)[0] ?? null; + } + } + + if (!pinnedTrack && originalIndex >= 0 && originalIndex < queue.length) { + pinnedTrack = queue.splice(originalIndex, 1)[0] ?? null; + } + + if (!pinnedTrack && originalCurrent) { + pinnedTrack = originalCurrent; + } + + for (let i = queue.length - 1; i > 0; i -= 1) { + const j = Math.floor(Math.random() * (i + 1)); + [queue[i], queue[j]] = [queue[j]!, queue[i]!]; + } + + if (pinnedTrack) { + queue.unshift(pinnedTrack); + } + + const nextQueueIndex = queue.length > 0 ? 0 : -1; + const nextCurrentTrack = queue.length > 0 ? (queue[0] ?? null) : null; + + let nextState: PlayerState = { + ...state, + queue, + queueIndex: nextQueueIndex, + currentTrack: nextCurrentTrack, + currentTime: 0, + duration: nextCurrentTrack?.duration ?? 0, + sampleRate: resolveSampleRate(state, nextCurrentTrack), + bitDepth: null, + replayGain: null + }; + + if (nextQueueIndex === -1) { + nextState = { + ...nextState, + currentTrack: null, + currentTime: 0, + duration: 0, + sampleRate: null, + bitDepth: null, + replayGain: null + }; + } + + return applyAutoQuality(nextState, nextState.currentTrack); + }), + playAtIndex: (index: number) => + update((state) => { + if (index < 0 || index >= state.queue.length) { + return state; + } + + const nextTrack = state.queue[index] ?? null; + const nextState: PlayerState = { + ...state, + queueIndex: index, + currentTrack: nextTrack, + currentTime: 0, + isPlaying: true, + isLoading: true, + duration: nextTrack?.duration ?? 0, + sampleRate: resolveSampleRate(state, nextTrack), + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(nextState, nextTrack); + }), + removeFromQueue: (index: number) => + update((state) => { + if (index < 0 || index >= state.queue.length) { + return state; + } + + const queue = state.queue.slice(); + queue.splice(index, 1); + let queueIndex = state.queueIndex; + let currentTrack = state.currentTrack; + let isPlaying = state.isPlaying; + let currentTime = state.currentTime; + let duration = state.duration; + let isLoading = state.isLoading; + + if (queue.length === 0) { + const nextState: PlayerState = { + ...state, + queue, + queueIndex: -1, + currentTrack: null, + isPlaying: false, + isLoading: false, + currentTime: 0, + duration: 0, + sampleRate: null, + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(nextState, null); + } + + if (index < queueIndex) { + queueIndex -= 1; + } else if (index === queueIndex) { + if (queueIndex >= queue.length) { + queueIndex = queue.length - 1; + } + currentTrack = queue[queueIndex] ?? null; + currentTime = 0; + duration = currentTrack?.duration ?? 0; + if (!currentTrack) { + isPlaying = false; + isLoading = false; + } else { + isLoading = true; + } + } + const nextSampleRate = + state.currentTrack && currentTrack && state.currentTrack.id === currentTrack.id + ? state.sampleRate + : null; + + const nextState: PlayerState = { + ...state, + queue, + queueIndex, + currentTrack, + isPlaying, + isLoading, + currentTime, + duration, + sampleRate: nextSampleRate, + replayGain: state.replayGain + }; + return applyAutoQuality(nextState, currentTrack); + }), + clearQueue: () => + update((state) => { + const nextState: PlayerState = { + ...state, + queue: [], + queueIndex: -1, + currentTrack: null, + isPlaying: false, + isLoading: false, + currentTime: 0, + duration: 0, + sampleRate: null, + bitDepth: null, + replayGain: null + }; + return applyAutoQuality(nextState, null); + }), + reset: () => set(initialState) + }; +} + +export const playerStore = createPlayerStore(); + +// Derived stores for convenience +export const currentTrack = derived(playerStore, ($store) => $store.currentTrack); +export const isPlaying = derived(playerStore, ($store) => $store.isPlaying); +export const currentTime = derived(playerStore, ($store) => $store.currentTime); +export const duration = derived(playerStore, ($store) => $store.duration); +export const volume = derived(playerStore, ($store) => $store.volume); +export const progress = derived(playerStore, ($store) => + $store.duration > 0 ? ($store.currentTime / $store.duration) * 100 : 0 +); diff --git a/src/lib/stores/region.ts b/src/lib/stores/region.ts new file mode 100644 index 0000000000000000000000000000000000000000..968d312c4575f61f5680b0def4718670ba370463 --- /dev/null +++ b/src/lib/stores/region.ts @@ -0,0 +1,50 @@ +import { browser } from '$app/environment'; +import { writable } from 'svelte/store'; + +export type RegionOption = 'auto' | 'us' | 'eu'; + +const STORAGE_KEY = 'tidal-ui.region'; + +const readInitialRegion = (): RegionOption => { + if (!browser) { + return 'auto'; + } + + const stored = localStorage.getItem(STORAGE_KEY); + if (stored === 'us' || stored === 'eu' || stored === 'auto') { + return stored; + } + + return 'auto'; +}; + +const createRegionStore = () => { + const { subscribe, set, update } = writable(readInitialRegion()); + + if (browser) { + subscribe((value) => { + try { + localStorage.setItem(STORAGE_KEY, value); + } catch (error) { + console.warn('Failed to persist region preference', error); + } + }); + + window.addEventListener('storage', (event) => { + if (event.key !== STORAGE_KEY) return; + const value = event.newValue; + if (value === 'us' || value === 'eu' || value === 'auto') { + set(value); + } + }); + } + + return { + subscribe, + setRegion(value: RegionOption) { + update(() => value); + } + }; +}; + +export const regionStore = createRegionStore(); diff --git a/src/lib/stores/searchStore.svelte.ts b/src/lib/stores/searchStore.svelte.ts new file mode 100644 index 0000000000000000000000000000000000000000..5d06b53b1ffc14baf84c68a4edca65740be9aff9 --- /dev/null +++ b/src/lib/stores/searchStore.svelte.ts @@ -0,0 +1,77 @@ +import { browser } from '$app/environment'; +import type { Track, Album, Artist, Playlist, SonglinkTrack } from '$lib/types'; + +export type SearchTab = 'tracks' | 'albums' | 'artists' | 'playlists'; + +class SearchStore { + query = $state(''); + activeTab = $state('tracks'); + isLoading = $state(false); + tracks = $state<(Track | SonglinkTrack)[]>([]); + albums = $state([]); + artists = $state([]); + playlists = $state([]); + error = $state(null); + + // Playlist conversion state + isPlaylistConversionMode = $state(false); + playlistConversionTotal = $state(0); + playlistLoadingMessage = $state(null); + + constructor() { + if (browser) { + const stored = sessionStorage.getItem('tidal-ui-search-store'); + if (stored) { + try { + const data = JSON.parse(stored); + this.query = data.query ?? ''; + this.activeTab = data.activeTab ?? 'tracks'; + this.tracks = data.tracks ?? []; + this.albums = data.albums ?? []; + this.artists = data.artists ?? []; + this.playlists = data.playlists ?? []; + this.isPlaylistConversionMode = data.isPlaylistConversionMode ?? false; + this.playlistConversionTotal = data.playlistConversionTotal ?? 0; + } catch (e) { + console.error('Failed to restore search state:', e); + } + } + + $effect.root(() => { + $effect(() => { + const data = { + query: this.query, + activeTab: this.activeTab, + tracks: this.tracks, + albums: this.albums, + artists: this.artists, + playlists: this.playlists, + isPlaylistConversionMode: this.isPlaylistConversionMode, + playlistConversionTotal: this.playlistConversionTotal + }; + try { + sessionStorage.setItem('tidal-ui-search-store', JSON.stringify(data)); + } catch (e) { + console.warn('Failed to save search state to sessionStorage:', e); + } + }); + }); + } + } + + reset() { + this.query = ''; + this.activeTab = 'tracks'; + this.isLoading = false; + this.tracks = []; + this.albums = []; + this.artists = []; + this.playlists = []; + this.error = null; + this.isPlaylistConversionMode = false; + this.playlistConversionTotal = 0; + this.playlistLoadingMessage = null; + } +} + +export const searchStore = new SearchStore(); diff --git a/src/lib/stores/userPreferences.ts b/src/lib/stores/userPreferences.ts new file mode 100644 index 0000000000000000000000000000000000000000..7361e88e1219f0ca26bfa06b993e69f943cb76e4 --- /dev/null +++ b/src/lib/stores/userPreferences.ts @@ -0,0 +1,181 @@ +import { browser } from '$app/environment'; +import { writable } from 'svelte/store'; +import type { AudioQuality } from '$lib/types'; +import { type PerformanceLevel } from '$lib/utils/performance'; + +export type PerformanceMode = 'medium' | 'low'; + +export interface UserPreferencesState { + playbackQuality: AudioQuality; + convertAacToMp3: boolean; + downloadCoversSeperately: boolean; + performanceMode: PerformanceMode; +} + +const STORAGE_KEY = 'tidal-ui.userPreferences'; + +const DEFAULT_STATE: UserPreferencesState = { + playbackQuality: 'HI_RES_LOSSLESS', + convertAacToMp3: false, + downloadCoversSeperately: false, + performanceMode: 'medium' +}; + +/** + * Detect if the user is on a mobile/touch device for initial performance setting + */ +function detectIsMobileDevice(): boolean { + if (!browser) return false; + + // Check for touch capability + const hasTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0; + + // Check screen size (typical mobile breakpoint) + const isSmallScreen = window.innerWidth <= 768; + + // Check for mobile user agent patterns + const mobileUA = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + navigator.userAgent + ); + + return hasTouch && (isSmallScreen || mobileUA); +} + +function parseStoredPreferences(raw: string | null): UserPreferencesState { + if (!raw) { + return DEFAULT_STATE; + } + + try { + const parsed = JSON.parse(raw) as Partial; + const quality = parsed?.playbackQuality; + const convertFlag = parsed?.convertAacToMp3; + const downloadCoversFlag = parsed?.downloadCoversSeperately; + const perfMode = parsed?.performanceMode; + return { + playbackQuality: + quality === 'HI_RES_LOSSLESS' || + quality === 'LOSSLESS' || + quality === 'HIGH' || + quality === 'LOW' + ? quality + : DEFAULT_STATE.playbackQuality, + convertAacToMp3: + typeof convertFlag === 'boolean' ? convertFlag : DEFAULT_STATE.convertAacToMp3, + downloadCoversSeperately: + typeof downloadCoversFlag === 'boolean' + ? downloadCoversFlag + : DEFAULT_STATE.downloadCoversSeperately, + performanceMode: + perfMode === 'medium' || perfMode === 'low' ? perfMode : DEFAULT_STATE.performanceMode + }; + } catch (error) { + console.warn('Failed to parse stored user preferences', error); + return DEFAULT_STATE; + } +} + +const readInitialPreferences = (): UserPreferencesState => { + if (!browser) { + return DEFAULT_STATE; + } + + try { + const storedRaw = localStorage.getItem(STORAGE_KEY); + + // If no stored preferences, detect mobile and set appropriate defaults + if (!storedRaw) { + const isMobile = detectIsMobileDevice(); + const initialState: UserPreferencesState = { + ...DEFAULT_STATE, + // Mobile devices default to 'medium' performance (already default) + // Could set to 'low' for very resource-constrained devices if needed + performanceMode: isMobile ? 'medium' : 'medium' + }; + + // Persist the initial preferences so this detection only runs once + try { + localStorage.setItem(STORAGE_KEY, JSON.stringify(initialState)); + } catch { + // Ignore storage errors + } + + return initialState; + } + + return parseStoredPreferences(storedRaw); + } catch (error) { + console.warn('Unable to read user preferences from storage', error); + return DEFAULT_STATE; + } +}; + +const createUserPreferencesStore = () => { + const { subscribe, set, update } = writable(readInitialPreferences()); + + if (browser) { + subscribe((state) => { + try { + localStorage.setItem(STORAGE_KEY, JSON.stringify(state)); + } catch (error) { + console.warn('Failed to persist user preferences', error); + } + }); + + window.addEventListener('storage', (event) => { + if (event.key !== STORAGE_KEY) return; + set(parseStoredPreferences(event.newValue)); + }); + } + + return { + subscribe, + setPlaybackQuality(quality: AudioQuality) { + update((state) => { + if (state.playbackQuality === quality) { + return state; + } + return { ...state, playbackQuality: quality }; + }); + }, + setConvertAacToMp3(value: boolean) { + update((state) => { + if (state.convertAacToMp3 === value) { + return state; + } + return { ...state, convertAacToMp3: value }; + }); + }, + toggleConvertAacToMp3() { + update((state) => ({ ...state, convertAacToMp3: !state.convertAacToMp3 })); + }, + setDownloadCoversSeperately(value: boolean) { + update((state) => { + if (state.downloadCoversSeperately === value) { + return state; + } + return { ...state, downloadCoversSeperately: value }; + }); + }, + toggleDownloadCoversSeperately() { + update((state) => ({ ...state, downloadCoversSeperately: !state.downloadCoversSeperately })); + }, + setPerformanceMode(mode: PerformanceMode) { + update((state) => { + if (state.performanceMode === mode) { + return state; + } + return { ...state, performanceMode: mode }; + }); + }, + getEffectivePerformanceLevel(): PerformanceLevel { + const state = readInitialPreferences(); + return state.performanceMode as PerformanceLevel; + }, + reset() { + set(DEFAULT_STATE); + } + }; +}; + +export const userPreferencesStore = createUserPreferencesStore(); diff --git a/src/lib/types.ts b/src/lib/types.ts new file mode 100644 index 0000000000000000000000000000000000000000..7f1a259bd23a6c239bab57015b9f2692bfa8e455 --- /dev/null +++ b/src/lib/types.ts @@ -0,0 +1,237 @@ +// Type definitions based on HIFI API + +export interface Track { + id: number; + title: string; + duration: number; + replayGain?: number; + peak?: number; + allowStreaming: boolean; + streamReady: boolean; + streamStartDate?: string; + premiumStreamingOnly: boolean; + trackNumber: number; + volumeNumber: number; + version: string | null; + popularity: number; + copyright?: string; + url: string; + isrc?: string; + editable: boolean; + explicit: boolean; + audioQuality: string; + audioModes: string[]; + artist: Artist; + artists: Artist[]; + album: Album; + mixes?: Record; + mediaMetadata?: { + tags: string[]; + }; +} + +export interface Artist { + id: number; + name: string; + type: string; + picture?: string; + url?: string; + popularity?: number; + artistTypes?: string[]; + artistRoles?: Array<{ + category: string; + categoryId: number; + }>; + mixes?: Record; +} + +export interface ArtistDetails extends Artist { + albums: Album[]; + tracks: Track[]; +} + +export interface Album { + id: number; + title: string; + cover: string; + videoCover: string | null; + releaseDate?: string; + duration?: number; + numberOfTracks?: number; + numberOfVideos?: number; + numberOfVolumes?: number; + explicit?: boolean; + popularity?: number; + type?: string; + upc?: string; + copyright?: string; + artist?: Artist; + artists?: Artist[]; + audioQuality?: string; + audioModes?: string[]; + url?: string; + vibrantColor?: string; + streamReady?: boolean; + allowStreaming?: boolean; + mediaMetadata?: { + tags: string[]; + }; +} + +export interface Playlist { + uuid: string; + title: string; + description: string; + image: string; + squareImage?: string; + duration: number; + numberOfTracks: number; + numberOfVideos: number; + creator: { + id: number; + name: string; + picture: string | null; + }; + created: string; + lastUpdated: string; + type: string; + publicPlaylist: boolean; + url: string; + popularity: number; + promotedArtists?: Artist[]; +} + +export interface TrackInfo { + trackId: number; + audioQuality: string; + audioMode: string; + manifest: string; + manifestMimeType: string; + manifestHash?: string; + assetPresentation: string; + albumReplayGain?: number; + albumPeakAmplitude?: number; + trackReplayGain?: number; + trackPeakAmplitude?: number; + bitDepth?: number; + sampleRate?: number; +} + +export interface SearchResponse { + limit: number; + offset: number; + totalNumberOfItems: number; + items: T[]; +} + +export interface CoverImage { + id: number; + name: string; + '1280': string; + '640': string; + '80': string; +} + +export interface Lyrics { + trackId: number; + lyricsProvider: string; + providerCommontrackId: string; + providerLyricsId: string; + lyrics: string; + subtitles: string; + isRightToLeft: boolean; +} + +export type AudioQuality = 'HI_RES_LOSSLESS' | 'LOSSLESS' | 'HIGH' | 'LOW'; + +export interface StreamData { + originalTrack: string; + trackInfo: TrackInfo; + songInfo: Track; +} + +export interface TrackLookup { + track: Track; + info: TrackInfo; + originalTrackUrl?: string; +} + +export interface TrackRecommendationsResponse { + version: string, + data: { + limit: number; + offset: number; + totalNumberOfItems: number, + items: { + track: Track; + sources: string[] + }[] + } +} + +/** + * Songlink API response types (copied to avoid circular dependency) + */ +export interface SonglinkEntity { + id: string; + type: 'song' | 'album'; + title?: string; + artistName?: string; + thumbnailUrl?: string; + thumbnailWidth?: number; + thumbnailHeight?: number; + apiProvider: string; + platforms: string[]; +} + +export interface SonglinkPlatformLink { + country: string; + url: string; + nativeAppUriMobile?: string; + nativeAppUriDesktop?: string; + entityUniqueId: string; +} + +export interface SonglinkResponse { + entityUniqueId: string; + userCountry: string; + pageUrl: string; + entitiesByUniqueId: Record; + linksByPlatform: Record; +} + +/** + * Represents a track from Songlink API that hasn't been converted to a full TIDAL track yet + * Used to defer expensive TIDAL API calls until the track is actually played + */ +export interface SonglinkTrack { + // Unique identifier (e.g., "spotify:track:3RiPr603aXAoi4GHyXx0uy") + id: string; + title: string; + artistName: string; + // Duration is unknown from Songlink, use placeholder + duration: number; + thumbnailUrl: string; + // Store the original URL for later conversion + sourceUrl: string; + // Store Songlink response data + songlinkData: SonglinkResponse; + // Flag to identify this as a Songlink track + isSonglinkTrack: true; + // Optional Tidal ID if available + tidalId?: number; + // Assume CD quality for display purposes + audioQuality: 'LOSSLESS'; +} + +/** + * Union type for tracks that can be played + */ +export type PlayableTrack = Track | SonglinkTrack; + +/** + * Type guard to check if a track is a SonglinkTrack + */ +export function isSonglinkTrack(track: PlayableTrack): track is SonglinkTrack { + return 'isSonglinkTrack' in track && track.isSonglinkTrack === true; +} diff --git a/src/lib/utils.ts b/src/lib/utils.ts new file mode 100644 index 0000000000000000000000000000000000000000..38f807711104f5ce65f2a05b90cceae7229a69f6 --- /dev/null +++ b/src/lib/utils.ts @@ -0,0 +1,45 @@ +import type { Artist } from './types'; + +/** + * Formats an array of artists into a readable string for UI display. + * For single artist: "Artist Name" + * For multiple artists: "Artist1, Artist2 & Artist3" + * + * @param artists - Array of artists + * @returns Formatted artist string + */ +export function formatArtists(artists: Artist[] | undefined): string { + if (!artists || artists.length === 0) { + return 'Unknown Artist'; + } + + if (artists.length === 1) { + return artists[0].name; + } + + if (artists.length === 2) { + return `${artists[0].name} & ${artists[1].name}`; + } + + // For 3 or more artists: "Artist1, Artist2 & Artist3" + const allButLast = artists.slice(0, -1).map(a => a.name).join(', '); + const last = artists[artists.length - 1].name; + return `${allButLast} & ${last}`; +} + +/** + * Formats an array of artists for metadata tags (ID3, etc.). + * Uses semicolons as the standard delimiter. + * For single artist: "Artist Name" + * For multiple artists: "Artist1; Artist2; Artist3" + * + * @param artists - Array of artists + * @returns Formatted artist string for metadata + */ +export function formatArtistsForMetadata(artists: Artist[] | undefined): string { + if (!artists || artists.length === 0) { + return 'Unknown Artist'; + } + + return artists.map(a => a.name).join('; '); +} diff --git a/src/lib/utils/audioQuality.ts b/src/lib/utils/audioQuality.ts new file mode 100644 index 0000000000000000000000000000000000000000..2968d609668f628106d1234dd2a16e1f0f165275 --- /dev/null +++ b/src/lib/utils/audioQuality.ts @@ -0,0 +1,107 @@ +import type { AudioQuality, Track } from '$lib/types'; + +const QUALITY_PRIORITY: readonly AudioQuality[] = [ + 'HI_RES_LOSSLESS', + 'LOSSLESS', + 'HIGH', + 'LOW' +]; + +const QUALITY_TOKENS: Record = { + HI_RES_LOSSLESS: [ + 'HI_RES_LOSSLESS', + 'HIRES_LOSSLESS', + 'HIRESLOSSLESS', + 'HIFI_PLUS', + 'HI_RES_FLAC', + 'HI_RES', + 'HIRES', + 'MASTER', + 'MASTER_QUALITY', + 'MQA' + ], + LOSSLESS: ['LOSSLESS', 'HIFI'], + HIGH: ['HIGH', 'HIGH_QUALITY'], + LOW: ['LOW', 'LOW_QUALITY'] +}; + +const QUALITY_RANK = new Map( + QUALITY_PRIORITY.map((quality, index) => [quality, index]) +); + +const sanitizeToken = (value: string): string => value.trim().toUpperCase().replace(/[^A-Z0-9]+/g, '_'); + +export function normalizeQualityToken(value?: string | null): AudioQuality | null { + if (!value) { + return null; + } + + const token = sanitizeToken(value); + + for (const [quality, aliases] of Object.entries(QUALITY_TOKENS) as Array<[ + AudioQuality, + readonly string[] + ]>) { + if (aliases.includes(token)) { + return quality; + } + } + + return null; +} + +export function deriveQualityFromTags(rawTags?: unknown): AudioQuality | null { + if (!Array.isArray(rawTags)) { + return null; + } + + const candidates: AudioQuality[] = []; + for (const tag of rawTags) { + if (typeof tag !== 'string') { + continue; + } + const normalized = normalizeQualityToken(tag); + if (normalized && !candidates.includes(normalized)) { + candidates.push(normalized); + } + } + + return pickBestQuality(candidates); +} + +export function pickBestQuality( + candidates: Array +): AudioQuality | null { + let best: AudioQuality | null = null; + + for (const candidate of candidates) { + if (!candidate) { + continue; + } + if (!best) { + best = candidate; + continue; + } + const currentRank = QUALITY_RANK.get(candidate) ?? Number.POSITIVE_INFINITY; + const bestRank = QUALITY_RANK.get(best) ?? Number.POSITIVE_INFINITY; + if (currentRank < bestRank) { + best = candidate; + } + } + + return best; +} + +export function deriveTrackQuality(track?: Track | null): AudioQuality | null { + if (!track) { + return null; + } + + const candidates: Array = [ + deriveQualityFromTags(track.mediaMetadata?.tags), + deriveQualityFromTags(track.album?.mediaMetadata?.tags), + normalizeQualityToken(track.audioQuality) + ]; + + return pickBestQuality(candidates); +} diff --git a/src/lib/utils/colorExtraction.ts b/src/lib/utils/colorExtraction.ts new file mode 100644 index 0000000000000000000000000000000000000000..9484c0a3a37d79a70fd7f264d3f56d0be9f7d77f --- /dev/null +++ b/src/lib/utils/colorExtraction.ts @@ -0,0 +1,305 @@ +/** + * Color extraction and vibrancy calculation utilities for dynamic backgrounds + */ + +export interface Color { + r: number; + g: number; + b: number; + a: number; + saturation?: number; + luminance?: number; + vibrancy?: number; +} + +/** + * Calculate HSV saturation for a color + */ +export function calculateSaturation(color: Color): number { + const r_norm = color.r / 255; + const g_norm = color.g / 255; + const b_norm = color.b / 255; + const max = Math.max(r_norm, g_norm, b_norm); + const min = Math.min(r_norm, g_norm, b_norm); + const delta = max - min; + + if (delta < 0.00001 || max < 0.00001) return 0; + return delta / max; // HSV saturation +} + +/** + * Calculate relative luminance (ITU-R BT.709) + */ +export function calculateLuminance(color: Color): number { + // Convert to linear RGB + const linearize = (v: number) => { + v /= 255; + return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); + }; + + const r = linearize(color.r); + const g = linearize(color.g); + const b = linearize(color.b); + + // ITU-R BT.709 weights + return 0.2126 * r + 0.7152 * g + 0.0722 * b; +} + +/** + * Calculate vibrancy score (favors mid-luminance and high saturation) + */ +export function calculateVibrancy(color: Color): number { + const saturation = color.saturation ?? calculateSaturation(color); + const luminance = color.luminance ?? calculateLuminance(color); + + // Vibrancy formula: favor mid-luminance and high saturation + const lumFactor = 1.0 - Math.abs(luminance - 0.5) * 1.8; + return saturation * 0.5 + Math.max(0, lumFactor) * 0.5; +} + +/** + * Get average color from a canvas region, selecting most vibrant sample if significantly better + */ +export function getAverageColor( + ctx: CanvasRenderingContext2D, + x: number, + y: number, + w: number, + h: number +): Color { + const imageData = ctx.getImageData(x, y, w, h); + const data = imageData.data; + const samples: Color[] = []; + + let totalR = 0, + totalG = 0, + totalB = 0, + totalA = 0; + let count = 0; + + // Sample every pixel + for (let i = 0; i < data.length; i += 4) { + const r = data[i]!; + const g = data[i + 1]!; + const b = data[i + 2]!; + const a = data[i + 3]!; + + totalR += r; + totalG += g; + totalB += b; + totalA += a; + count++; + + const color: Color = { r, g, b, a }; + color.saturation = calculateSaturation(color); + color.luminance = calculateLuminance(color); + color.vibrancy = calculateVibrancy(color); + + samples.push(color); + } + + // Calculate average color + const avgColor: Color = { + r: Math.round(totalR / count), + g: Math.round(totalG / count), + b: Math.round(totalB / count), + a: Math.round(totalA / count) + }; + avgColor.saturation = calculateSaturation(avgColor); + avgColor.luminance = calculateLuminance(avgColor); + avgColor.vibrancy = calculateVibrancy(avgColor); + + // Select most vibrant sample if 20% better than average + let best = avgColor; + for (const sample of samples) { + if (sample.vibrancy! > best.vibrancy! * 1.2) { + best = sample; + } + } + + return best; +} + +/** + * Extract color palette from image in a grid pattern + */ +export async function extractPaletteFromImage( + imageUrl: string, + gridWidth: number = 8, + gridHeight: number = 5, + stretchedWidth: number = 32, + stretchedHeight: number = 18 +): Promise { + return new Promise((resolve, reject) => { + const tempCanvas = document.createElement('canvas'); + tempCanvas.width = stretchedWidth; + tempCanvas.height = stretchedHeight; + const tempCtx = tempCanvas.getContext('2d', { willReadFrequently: true }); + + if (!tempCtx) { + reject(new Error('Failed to get canvas context')); + return; + } + + // Try CORS fetch first + fetch(imageUrl, { mode: 'cors' }) + .then((response) => response.blob()) + .then((blob) => { + const img = new Image(); + img.onload = () => { + tempCtx.drawImage(img, 0, 0, stretchedWidth, stretchedHeight); + const palette = extractPaletteFromCanvas( + tempCtx, + gridWidth, + gridHeight, + stretchedWidth, + stretchedHeight + ); + resolve(palette); + URL.revokeObjectURL(img.src); + }; + img.onerror = () => { + reject(new Error('Failed to load image')); + URL.revokeObjectURL(img.src); + }; + img.src = URL.createObjectURL(blob); + }) + .catch(() => { + // Fallback to img.crossOrigin + const img = new Image(); + img.crossOrigin = 'anonymous'; + img.onload = () => { + tempCtx.drawImage(img, 0, 0, stretchedWidth, stretchedHeight); + const palette = extractPaletteFromCanvas( + tempCtx, + gridWidth, + gridHeight, + stretchedWidth, + stretchedHeight + ); + resolve(palette); + }; + img.onerror = () => reject(new Error('Failed to load image with CORS')); + img.src = imageUrl; + }); + }); +} + +/** + * Extract palette from canvas context + */ +function extractPaletteFromCanvas( + ctx: CanvasRenderingContext2D, + gridWidth: number, + gridHeight: number, + canvasWidth: number, + canvasHeight: number +): Color[] { + const palette: Color[] = []; + const cellW = canvasWidth / gridWidth; + const cellH = canvasHeight / gridHeight; + + for (let j = 0; j < gridHeight; j++) { + for (let i = 0; i < gridWidth; i++) { + const x = Math.floor(i * cellW); + const y = Math.floor(j * cellH); + const color = getAverageColor(ctx, x, y, Math.ceil(cellW), Math.ceil(cellH)); + palette.push(color); + } + } + + return palette; +} + +/** + * RGB to HSL conversion + */ +export function rgbToHsl(r: number, g: number, b: number): [number, number, number] { + r /= 255; + g /= 255; + b /= 255; + + const max = Math.max(r, g, b); + const min = Math.min(r, g, b); + const delta = max - min; + + let h = 0; + let s = 0; + const l = (max + min) / 2; + + if (delta !== 0) { + s = l > 0.5 ? delta / (2 - max - min) : delta / (max + min); + + if (max === r) { + h = ((g - b) / delta + (g < b ? 6 : 0)) / 6; + } else if (max === g) { + h = ((b - r) / delta + 2) / 6; + } else { + h = ((r - g) / delta + 4) / 6; + } + } + + return [h, s, l]; +} + +/** + * HSL to RGB conversion + */ +export function hslToRgb(h: number, s: number, l: number): [number, number, number] { + const hue2rgb = (p: number, q: number, t: number) => { + if (t < 0) t += 1; + if (t > 1) t -= 1; + if (t < 1 / 6) return p + (q - p) * 6 * t; + if (t < 1 / 2) return q; + if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6; + return p; + }; + + let r, g, b; + + if (s === 0) { + r = g = b = l; + } else { + const q = l < 0.5 ? l * (1 + s) : l + s - l * s; + const p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + + return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)]; +} + +/** + * Get most vibrant color from palette for lyrics highlighting + */ +export function getMostVibrantColor( + palette: Color[], + minLuminanceThreshold: number = 0.15 +): Color { + // Filter out very dark colors + const filteredPalette = palette.filter( + (color) => calculateLuminance(color) > minLuminanceThreshold + ); + + if (filteredPalette.length === 0) { + // Fallback to brightest color if all are too dark + return palette.reduce((prev, curr) => + calculateLuminance(curr) > calculateLuminance(prev) ? curr : prev + ); + } + + // Sort by vibrancy and select best + const selectedColor = filteredPalette.reduce((prev, curr) => { + const prevVibrancy = prev.vibrancy ?? calculateVibrancy(prev); + const currVibrancy = curr.vibrancy ?? calculateVibrancy(curr); + return currVibrancy > prevVibrancy ? curr : prev; + }); + + // Convert to HSL and boost saturation by 20% + const [h, s, l] = rgbToHsl(selectedColor.r, selectedColor.g, selectedColor.b); + const increasedSaturation = Math.min(1.0, s * 1.2); + const [r, g, b] = hslToRgb(h, increasedSaturation, l); + + return { r, g, b, a: selectedColor.a }; +} diff --git a/src/lib/utils/colorPalette.ts b/src/lib/utils/colorPalette.ts new file mode 100644 index 0000000000000000000000000000000000000000..71713ef3f353daa512623f42178a568271ff1428 --- /dev/null +++ b/src/lib/utils/colorPalette.ts @@ -0,0 +1,411 @@ +import { browser } from '$app/environment'; +type ColorThiefModule = typeof import('colorthief'); + type ColorThiefConstructor = ColorThiefModule extends { default: infer D } + ? D extends new (...args: unknown[]) => unknown + ? D + : ColorThiefModule extends new (...args: unknown[]) => unknown + ? ColorThiefModule + : never + : ColorThiefModule extends new (...args: unknown[]) => unknown + ? ColorThiefModule + : never; +type ColorThiefInstance = InstanceType; + +export interface RGBColor { + red: number; + green: number; + blue: number; +} + +export interface PaletteResult { + dominant: RGBColor; + accent: RGBColor; + palette: RGBColor[]; +} + +const DEFAULT_COLOR: RGBColor = { red: 15, green: 23, blue: 42 }; + +const clamp = (value: number, min = 0, max = 255) => Math.min(max, Math.max(min, value)); + +const mix = (color: RGBColor, target: RGBColor, factor: number): RGBColor => ({ + red: clamp(Math.round(color.red + (target.red - color.red) * factor)), + green: clamp(Math.round(color.green + (target.green - color.green) * factor)), + blue: clamp(Math.round(color.blue + (target.blue - color.blue) * factor)) +}); + +const distance = (a: RGBColor, b: RGBColor): number => { + const dr = a.red - b.red; + const dg = a.green - b.green; + const db = a.blue - b.blue; + return Math.sqrt(dr * dr + dg * dg + db * db); +}; + +const saturation = ({ red, green, blue }: RGBColor): number => { + const r = red / 255; + const g = green / 255; + const b = blue / 255; + const max = Math.max(r, g, b); + const min = Math.min(r, g, b); + if (max === min) return 0; + const l = (max + min) / 2; + const d = max - min; + return l > 0.5 ? d / (2 - max - min) : d / (max + min); +}; + +export const rgbToCss = ({ red, green, blue }: RGBColor, alpha?: number): string => { + const r = Math.round(clamp(red)); + const g = Math.round(clamp(green)); + const b = Math.round(clamp(blue)); + + if (alpha === undefined) { + return `rgb(${r}, ${g}, ${b})`; + } + + const normalizedAlpha = Math.min(Math.max(alpha, 0), 1); + return `rgba(${r}, ${g}, ${b}, ${normalizedAlpha.toFixed(3)})`; +}; + +export const lighten = (color: RGBColor, amount: number): RGBColor => mix(color, { red: 255, green: 255, blue: 255 }, amount); +export const darken = (color: RGBColor, amount: number): RGBColor => mix(color, { red: 0, green: 0, blue: 0 }, amount); + +/** + * Calculate relative luminance of a color (WCAG standard) + * Returns a value between 0 (black) and 1 (white) + */ +const getLuminance = ({ red, green, blue }: RGBColor): number => { + // Convert to sRGB + const rsRGB = red / 255; + const gsRGB = green / 255; + const bsRGB = blue / 255; + + // Apply gamma correction + const r = rsRGB <= 0.03928 ? rsRGB / 12.92 : Math.pow((rsRGB + 0.055) / 1.055, 2.4); + const g = gsRGB <= 0.03928 ? gsRGB / 12.92 : Math.pow((gsRGB + 0.055) / 1.055, 2.4); + const b = bsRGB <= 0.03928 ? bsRGB / 12.92 : Math.pow((bsRGB + 0.055) / 1.055, 2.4); + + // Calculate luminance + return 0.2126 * r + 0.7152 * g + 0.0722 * b; +}; + +/** + * Calculate contrast ratio between two colors (WCAG standard) + * Returns a value between 1 and 21 + */ +const getContrastRatio = (color1: RGBColor, color2: RGBColor): number => { + const lum1 = getLuminance(color1); + const lum2 = getLuminance(color2); + const lighter = Math.max(lum1, lum2); + const darker = Math.min(lum1, lum2); + return (lighter + 0.05) / (darker + 0.05); +}; + +/** + * Ensure a color has sufficient contrast against white and grey text + * Darkens the color if necessary to meet minimum contrast requirements + */ +export const ensureTextContrast = (color: RGBColor): RGBColor => { + const WHITE: RGBColor = { red: 255, green: 255, blue: 255 }; + const GREY: RGBColor = { red: 156, green: 163, blue: 175 }; // ~gray-400 + + const MIN_CONTRAST_WHITE = 4.5; // WCAG AA standard for normal text + const MIN_CONTRAST_GREY = 3.0; // Slightly lower for grey text + + let adjustedColor = { ...color }; + let contrastWhite = getContrastRatio(adjustedColor, WHITE); + let contrastGrey = getContrastRatio(adjustedColor, GREY); + let attempts = 0; + const MAX_ATTEMPTS = 20; + + // Darken the color until it meets contrast requirements + while ((contrastWhite < MIN_CONTRAST_WHITE || contrastGrey < MIN_CONTRAST_GREY) && attempts < MAX_ATTEMPTS) { + adjustedColor = darken(adjustedColor, 0.08); + contrastWhite = getContrastRatio(adjustedColor, WHITE); + contrastGrey = getContrastRatio(adjustedColor, GREY); + attempts++; + } + + return adjustedColor; +}; + +const FALLBACK_RESULT: PaletteResult = { + dominant: DEFAULT_COLOR, + accent: { red: 30, green: 64, blue: 175 }, + palette: [DEFAULT_COLOR] +}; + +const toRgbColor = (value: number[] | undefined | null): RGBColor => ({ + red: clamp(Math.round(value?.[0] ?? DEFAULT_COLOR.red)), + green: clamp(Math.round(value?.[1] ?? DEFAULT_COLOR.green)), + blue: clamp(Math.round(value?.[2] ?? DEFAULT_COLOR.blue)) +}); + +const selectAccentColor = (dominant: RGBColor, candidates: RGBColor[]): RGBColor => { + if (candidates.length === 0) { + return dominant; + } + + const vivid = candidates.filter((color) => saturation(color) > 0.2); + const ranking = (vivid.length > 0 ? vivid : candidates).slice().sort((a, b) => distance(dominant, b) - distance(dominant, a)); + return ranking[0] ?? dominant; +}; + +let colorThiefPromise: Promise | null = null; + +const loadColorThief = async (): Promise => { + if (!browser) return null; + if (!colorThiefPromise) { + colorThiefPromise = (import('colorthief') as Promise) + .then((module) => { + const ctor = (module as { default?: ColorThiefConstructor }).default ?? (module as ColorThiefConstructor); + return new ctor(); + }) + .catch((error) => { + console.warn('Failed to load Color Thief', error); + return null; + }) as Promise; + } + return colorThiefPromise; +}; + +export async function extractPaletteFromImage(url: string, precision = 32): Promise { + if (!browser) { + return FALLBACK_RESULT; + } + + const colorThief = await loadColorThief(); + if (!colorThief) { + return FALLBACK_RESULT; + } + + const image = new Image(); + image.crossOrigin = 'anonymous'; + image.decoding = 'async'; + + const loadPromise = new Promise((resolve, reject) => { + image.onload = () => resolve(image); + image.onerror = (event) => reject(event); + }); + + image.src = url; + + let loadedImage: HTMLImageElement; + try { + loadedImage = await loadPromise; + } catch (error) { + console.warn('Failed to load image for palette extraction', error); + return FALLBACK_RESULT; + } + + let paletteValues: number[][] = []; + let dominantValue: number[] | undefined; + const colorCount = 6; + const quality = Math.max(1, Math.round(precision / 4)); + try { + paletteValues = colorThief.getPalette(loadedImage, colorCount, quality) ?? []; + dominantValue = paletteValues[0] ?? colorThief.getColor(loadedImage, quality); + } catch (error) { + console.warn('Color Thief failed to extract palette', error); + return FALLBACK_RESULT; + } + + const paletteColors = paletteValues.map((value) => toRgbColor(value)); + const dominant = toRgbColor(dominantValue); + const accent = selectAccentColor(dominant, paletteColors.slice(1)); + + return { + dominant, + accent, + palette: paletteColors.length > 0 ? paletteColors : [dominant] + }; +} + +/** + * WebGL-specific palette extraction that follows the YouLyPlus specification: + * - Extracts exactly 40 colors from an 8x5 grid + * - Calculates vibrancy (saturation + luminance weighting) + * - Returns the most vibrant color for lyrics highlighting + */ +export async function extractPaletteFromImageWebGL(url: string): Promise<{ palette: RGBColor[], mostVibrant: RGBColor }> { + if (!browser) { + const defaultPalette = Array(40).fill(DEFAULT_COLOR); + return { palette: defaultPalette, mostVibrant: DEFAULT_COLOR }; + } + + // Constants from specification + const STRETCHED_GRID_WIDTH = 32; + const STRETCHED_GRID_HEIGHT = 18; + const MASTER_PALETTE_TEX_WIDTH = 8; + const MASTER_PALETTE_TEX_HEIGHT = 5; + const MIN_LUMINANCE_THRESHOLD = 0.15; + + // Load image + const image = new Image(); + image.crossOrigin = 'anonymous'; + image.decoding = 'async'; + + const loadPromise = new Promise((resolve, reject) => { + image.onload = () => resolve(image); + image.onerror = (event) => reject(event); + }); + + image.src = url; + + let loadedImage: HTMLImageElement; + try { + loadedImage = await loadPromise; + } catch (error) { + console.warn('Failed to load image for WebGL palette extraction', error); + const defaultPalette = Array(40).fill(DEFAULT_COLOR); + return { palette: defaultPalette, mostVibrant: DEFAULT_COLOR }; + } + + // Create temporary canvas for color extraction + const tempCanvas = document.createElement('canvas'); + tempCanvas.width = STRETCHED_GRID_WIDTH; + tempCanvas.height = STRETCHED_GRID_HEIGHT; + const tempCtx = tempCanvas.getContext('2d'); + + if (!tempCtx) { + const defaultPalette = Array(40).fill(DEFAULT_COLOR); + return { palette: defaultPalette, mostVibrant: DEFAULT_COLOR }; + } + + // Draw image to canvas + tempCtx.drawImage(loadedImage, 0, 0, STRETCHED_GRID_WIDTH, STRETCHED_GRID_HEIGHT); + + // Extract colors from 8x5 grid + const cellW = STRETCHED_GRID_WIDTH / MASTER_PALETTE_TEX_WIDTH; + const cellH = STRETCHED_GRID_HEIGHT / MASTER_PALETTE_TEX_HEIGHT; + const palette: RGBColor[] = []; + + for (let j = 0; j < MASTER_PALETTE_TEX_HEIGHT; j++) { + for (let i = 0; i < MASTER_PALETTE_TEX_WIDTH; i++) { + const x = Math.floor(i * cellW); + const y = Math.floor(j * cellH); + let color = getAverageColorWithVibrancy(tempCtx, x, y, Math.ceil(cellW), Math.ceil(cellH)); + + // Very aggressively tone down bright colors for better contrast + const lum = calculateLuminance(color); + if (lum > 0.3) { + // Reduce by up to 65% for very bright colors + const darkenAmount = (lum - 0.3) * 0.93; + const darkened = darken(color, darkenAmount); + color = { ...darkened, vibrancy: color.vibrancy } as RGBColor & { vibrancy: number }; + } + + palette.push(color); + } + } + + // Find most vibrant color for lyrics (filtering out very dark colors) + const filteredPalette = palette.filter(color => calculateLuminance(color) > MIN_LUMINANCE_THRESHOLD); + let mostVibrant = filteredPalette.length > 0 ? filteredPalette[0] : palette[0]; + + for (const color of filteredPalette) { + if ((color as any).vibrancy > (mostVibrant as any).vibrancy) { + mostVibrant = color; + } + } + + return { palette, mostVibrant }; +} + +/** + * Calculate saturation using HSV model (as per specification) + */ +const calculateSaturationHSV = (color: RGBColor): number => { + const r_norm = color.red / 255; + const g_norm = color.green / 255; + const b_norm = color.blue / 255; + const max = Math.max(r_norm, g_norm, b_norm); + const min = Math.min(r_norm, g_norm, b_norm); + const delta = max - min; + + if (delta < 0.00001 || max < 0.00001) return 0; + return delta / max; // HSV saturation +}; + +/** + * Calculate relative luminance (ITU-R BT.709) + */ +const calculateLuminance = (color: RGBColor): number => { + const linearize = (v: number) => { + v /= 255; + return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); + }; + + const r = linearize(color.red); + const g = linearize(color.green); + const b = linearize(color.blue); + + // ITU-R BT.709 weights + return 0.2126 * r + 0.7152 * g + 0.0722 * b; +}; + +/** + * Calculate vibrancy: combination of saturation and mid-luminance preference + */ +const calculateVibrancy = (color: RGBColor): number => { + const sat = calculateSaturationHSV(color); + const lum = calculateLuminance(color); + + // Favor mid-luminance colors (around 0.5) + const lumFactor = 1.0 - Math.abs(lum - 0.5) * 1.8; + + // Vibrancy formula from specification + return (sat * 0.5) + (Math.max(0, lumFactor) * 0.5); +}; + +/** + * Extract average color from a region, with vibrancy-based selection + */ +const getAverageColorWithVibrancy = (ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number): RGBColor & { vibrancy: number } => { + const imageData = ctx.getImageData(x, y, w, h); + const data = imageData.data; + const samples: Array = []; + + let avgR = 0, avgG = 0, avgB = 0; + let count = 0; + + // Sample pixels and calculate average + for (let i = 0; i < data.length; i += 4) { + const color = { + red: data[i], + green: data[i + 1], + blue: data[i + 2] + }; + + avgR += color.red; + avgG += color.green; + avgB += color.blue; + count++; + + // Store some samples for vibrancy comparison + if (i % 16 === 0) { // Sample every 4th pixel + const saturation = calculateSaturationHSV(color); + const luminance = calculateLuminance(color); + const vibrancy = calculateVibrancy(color); + + samples.push({ ...color, saturation, luminance, vibrancy }); + } + } + + const avgColor: RGBColor & { vibrancy: number } = { + red: Math.round(avgR / count), + green: Math.round(avgG / count), + blue: Math.round(avgB / count), + vibrancy: 0 + }; + + avgColor.vibrancy = calculateVibrancy(avgColor); + + // Select most vibrant sample if it's significantly better (20% threshold) + let best = avgColor; + for (const sample of samples) { + if (sample.vibrancy > best.vibrancy * 1.2) { + best = { ...sample }; + } + } + + return best; +}; diff --git a/src/lib/utils/performance.ts b/src/lib/utils/performance.ts new file mode 100644 index 0000000000000000000000000000000000000000..4a1fb09ae83241dbed9fe5befb296e33e5ebbdb2 --- /dev/null +++ b/src/lib/utils/performance.ts @@ -0,0 +1,642 @@ +/** + * Performance detection and optimization utilities + */ + +export type PerformanceLevel = 'high' | 'medium' | 'low'; + +type PerformanceListener = (level: PerformanceLevel) => void; + +interface PerformanceMetrics { + cpuCores: number; + memory?: number; // GB + connection?: string; + gpu?: string; +} + +const PERFORMANCE_PRIORITY: Record = { + high: 3, + medium: 2, + low: 1 +}; + +const DEBUG_NAMESPACE = '[tidal-ui] performance'; + +function debugLog(message: string, details?: unknown): void { + if (typeof console === 'undefined') { + return; + } + + if (typeof details !== 'undefined') { + console.info(DEBUG_NAMESPACE, message, details); + } else { + console.info(DEBUG_NAMESPACE, message); + } +} + +type GraphicsTier = 'advanced' | 'standard' | 'limited' | 'software' | 'none'; + +interface GraphicsAssessment { + tier: GraphicsTier; + renderer?: string; + maxTextureSize?: number | null; + shadingLanguage?: string | null; + contextType?: 'webgl2' | 'webgl' | 'experimental-webgl'; + reason?: string; +} + +const SOFTWARE_RENDERER_KEYWORDS = [ + 'swiftshader', + 'llvmpipe', + 'softpipe', + 'software', + 'basic render driver', + 'angle (software', + 'mesa llvmpipe', + 'd3d11warp', + 'gdi generic' +]; + +function levelFromScore(score: number): PerformanceLevel { + if (score >= 4) { + return 'high'; + } + + if (score >= 1) { + return 'medium'; + } + + return 'low'; +} + +function graphicsTierToLevel(tier: GraphicsTier): PerformanceLevel { + switch (tier) { + case 'advanced': + return 'high'; + case 'standard': + return 'medium'; + default: + return 'low'; + } +} + +function safeGetNumberParameter( + context: WebGLRenderingContext | WebGL2RenderingContext, + parameter: number +): number | null { + try { + const value = context.getParameter(parameter); + if (typeof value === 'number' && Number.isFinite(value)) { + return value; + } + } catch (error) { + debugLog('Failed to read WebGL numeric parameter', { parameter, error }); + } + + return null; +} + +function extractGraphicsAssessment( + context: WebGLRenderingContext | WebGL2RenderingContext, + contextType: 'webgl2' | 'webgl' | 'experimental-webgl', + usedFallback: boolean +): GraphicsAssessment { + let renderer: string | undefined; + let shadingLanguage: string | undefined; + + try { + const debugInfo = context.getExtension('WEBGL_debug_renderer_info'); + if (debugInfo) { + renderer = context.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) as string | undefined; + } else { + renderer = context.getParameter(context.RENDERER) as string | undefined; + } + } catch (error) { + debugLog('Failed to read WebGL renderer info', error); + } + + try { + shadingLanguage = context.getParameter(context.SHADING_LANGUAGE_VERSION) as string | undefined; + } catch (error) { + debugLog('Failed to read WebGL shading language version', error); + } + + const maxTextureSize = safeGetNumberParameter(context, context.MAX_TEXTURE_SIZE); + const normalizedRenderer = renderer?.toLowerCase() ?? ''; + const isSoftwareRenderer = SOFTWARE_RENDERER_KEYWORDS.some((keyword) => + normalizedRenderer.includes(keyword) + ); + + let tier: GraphicsTier; + let reason: string; + + if (isSoftwareRenderer) { + tier = 'software'; + reason = 'Software renderer detected'; + } else if (usedFallback) { + tier = 'limited'; + reason = 'WebGL context only available with major performance caveat'; + } else if (maxTextureSize !== null && maxTextureSize < 4096) { + tier = 'limited'; + reason = 'Low max texture size'; + } else if (contextType === 'webgl2') { + tier = 'advanced'; + reason = 'WebGL2 context available'; + } else { + tier = 'standard'; + reason = 'WebGL context available'; + } + + const loseContextExt = context.getExtension('WEBGL_lose_context'); + loseContextExt?.loseContext(); + + return { + tier, + reason, + renderer, + maxTextureSize, + shadingLanguage, + contextType + }; +} + +const listeners = new Set(); +let cachedPerformanceLevel: PerformanceLevel | null = null; +let benchmarkInFlight: Promise | null = null; +let pendingVisibilityBenchmark = false; + +const DEFAULT_LEVEL: PerformanceLevel = 'medium'; + +function rank(level: PerformanceLevel): number { + return PERFORMANCE_PRIORITY[level]; +} + +function pickConservativeLevel(a: PerformanceLevel, b: PerformanceLevel): PerformanceLevel { + return rank(a) <= rank(b) ? a : b; +} + +function notifyPerformanceLevel(level: PerformanceLevel): void { + cachedPerformanceLevel = level; + debugLog('Performance level updated', { level }); + + for (const listener of listeners) { + try { + listener(level); + } catch (error) { + console.warn('Performance listener threw an error', error); + } + } + + if (typeof window !== 'undefined') { + window.dispatchEvent(new CustomEvent('tidal:performance-detected', { detail: level })); + } +} + +/** + * Detect device performance capabilities + */ +export function detectPerformance(): PerformanceLevel { + if (cachedPerformanceLevel) { + debugLog('Using cached performance level', { level: cachedPerformanceLevel }); + scheduleBenchmark(); + return cachedPerformanceLevel; + } + + const baseline = evaluateHardwareBaseline(); + debugLog('Baseline performance estimated', { baseline }); + notifyPerformanceLevel(baseline); + scheduleBenchmark(); + return baseline; +} + +export function subscribeToPerformanceChanges(listener: PerformanceListener): () => void { + if (cachedPerformanceLevel) { + listener(cachedPerformanceLevel); + } + + listeners.add(listener); + + return () => { + listeners.delete(listener); + }; +} + +function evaluateHardwareBaseline(): PerformanceLevel { + if (typeof window === 'undefined') { + return DEFAULT_LEVEL; + } + + const metrics: PerformanceMetrics = { + cpuCores: navigator.hardwareConcurrency || 4 + }; + + if ('deviceMemory' in navigator) { + metrics.memory = (navigator as { deviceMemory?: number }).deviceMemory; + } + + if ('connection' in navigator) { + const conn = (navigator as { connection?: { effectiveType?: string } }).connection; + metrics.connection = conn?.effectiveType; + } + + let score = 0; + + if (metrics.cpuCores >= 10) { + score += 3; + } else if (metrics.cpuCores >= 6) { + score += 2; + } else if (metrics.cpuCores >= 4) { + score += 1; + } else { + score -= 1; + } + + if (metrics.memory) { + if (metrics.memory >= 12) { + score += 3; + } else if (metrics.memory >= 8) { + score += 2; + } else if (metrics.memory >= 4) { + score += 1; + } else if (metrics.memory < 3) { + score -= 2; + } + } else { + score += 1; + } + + if (metrics.connection) { + if (metrics.connection === '4g' || metrics.connection === '5g') { + score += 1; + } else if (metrics.connection === '2g') { + score -= 2; + } else if (metrics.connection === '3g') { + score -= 1; + } + } + + if (metrics.cpuCores <= 2) { + score -= 1.5; + } + + const cpuLevel = levelFromScore(score); + const graphics = assessGraphicsSupport(); + + if (graphics.tier === 'none' || graphics.tier === 'software') { + debugLog('Hardware baseline forced to low due to insufficient graphics support', { + metrics, + cpuScore: score, + cpuLevel, + graphics + }); + return 'low'; + } + + const gpuLevel = graphicsTierToLevel(graphics.tier); + const baseline = cpuLevel === 'low' || gpuLevel !== 'high' ? 'medium' : 'high'; + + debugLog('Hardware baseline scored', { + metrics, + cpuScore: score, + cpuLevel, + gpuLevel, + graphics, + baseline + }); + + return baseline; +} + +function scheduleBenchmark(): void { + if (benchmarkInFlight) { + debugLog('Graphics benchmark already running; skipping new request'); + return; + } + + if (typeof window === 'undefined') { + return; + } + + if (typeof document !== 'undefined' && document.visibilityState === 'hidden') { + if (!pendingVisibilityBenchmark) { + pendingVisibilityBenchmark = true; + debugLog('Deferring graphics benchmark until tab becomes visible'); + document.addEventListener( + 'visibilitychange', + () => { + pendingVisibilityBenchmark = false; + debugLog('Tab visible; retrying deferred graphics benchmark'); + scheduleBenchmark(); + }, + { once: true } + ); + } + return; + } + + debugLog('Launching graphics benchmark to refine performance level'); + benchmarkInFlight = runGraphicsBenchmark() + .then((result: PerformanceLevel | null) => { + benchmarkInFlight = null; + if (!result) { + debugLog('Graphics benchmark produced no result; keeping current level'); + return; + } + + const current = cachedPerformanceLevel ?? result; + const finalLevel = pickConservativeLevel(current, result); + if (cachedPerformanceLevel !== finalLevel) { + notifyPerformanceLevel(finalLevel); + debugLog('Performance level adjusted after benchmark', { + initial: current, + benchmark: result, + final: finalLevel + }); + } else { + debugLog('Benchmark confirmed existing performance level', { + initial: current, + benchmark: result + }); + } + }) + .catch((error: unknown) => { + benchmarkInFlight = null; + debugLog('Graphics benchmark failed to run', error); + }); +} + +function assessGraphicsSupport(): GraphicsAssessment { + if (typeof document === 'undefined') { + const assessment: GraphicsAssessment = { + tier: 'limited', + reason: 'Document unavailable for graphics probe' + }; + debugLog('Graphics capability detected', assessment); + return assessment; + } + + let assessment: GraphicsAssessment = { tier: 'none', reason: 'Unable to acquire any WebGL context' }; + + try { + const canvas = document.createElement('canvas'); + const highPerfAttrs: WebGLContextAttributes = { + powerPreference: 'high-performance', + antialias: false + }; + + const gl2 = canvas.getContext('webgl2', highPerfAttrs) as WebGL2RenderingContext | null; + if (gl2) { + assessment = extractGraphicsAssessment(gl2, 'webgl2', false); + } else { + const strictAttrs: WebGLContextAttributes = { + powerPreference: 'high-performance', + antialias: false, + failIfMajorPerformanceCaveat: true + }; + const glStrict = canvas.getContext('webgl', strictAttrs) as WebGLRenderingContext | null; + if (glStrict) { + assessment = extractGraphicsAssessment(glStrict, 'webgl', false); + } else { + const fallback = + (canvas.getContext('webgl', highPerfAttrs) as WebGLRenderingContext | null) || + (canvas.getContext('experimental-webgl', highPerfAttrs) as WebGLRenderingContext | null); + if (fallback) { + const contextType = fallback instanceof WebGL2RenderingContext ? 'webgl2' : 'webgl'; + assessment = extractGraphicsAssessment(fallback, contextType, true); + } + } + } + } catch (error) { + debugLog('Graphics probing failed', { error }); + assessment = { + tier: 'limited', + reason: 'Exception while probing graphics capabilities' + }; + } + + debugLog('Graphics capability detected', assessment); + return assessment; +} + +function runGraphicsBenchmark(): Promise { + if (typeof window === 'undefined' || typeof document === 'undefined') { + debugLog('Skipping graphics benchmark: window or document unavailable'); + return Promise.resolve(null); + } + + if (!('requestAnimationFrame' in window)) { + debugLog('Skipping graphics benchmark: requestAnimationFrame unsupported'); + return Promise.resolve(null); + } + + if (document.visibilityState === 'hidden') { + debugLog('Skipping graphics benchmark: document hidden'); + return Promise.resolve(null); + } + + return new Promise((resolve) => { + let isResolved = false; + let summary: { + averageFrame: number; + worstFrame: number; + averageWorkload: number; + stutterRatio: number; + } | null = null; + const cleanup = (canvas?: HTMLCanvasElement) => { + if (canvas && canvas.parentNode) { + canvas.parentNode.removeChild(canvas); + } + }; + + const failSafe = window.setTimeout(() => { + if (!isResolved) { + isResolved = true; + debugLog('Graphics benchmark timed out; falling back to cached level'); + cleanup(); + resolve(null); + } + }, 1500); + + try { + debugLog('Beginning graphics benchmark workload'); + const canvas = document.createElement('canvas'); + canvas.width = 640; + canvas.height = 640; + canvas.style.position = 'fixed'; + canvas.style.left = '-9999px'; + canvas.style.pointerEvents = 'none'; + canvas.style.opacity = '0'; + document.body.appendChild(canvas); + + const context = canvas.getContext('2d', { + willReadFrequently: false, + alpha: false + }); + + if (!context) { + window.clearTimeout(failSafe); + cleanup(canvas); + debugLog('Canvas context unavailable; forcing low performance mode'); + resolve('low'); + return; + } + + let seed = 7; + const palette = ['#0f172a', '#1e293b', '#1d4ed8', '#2563eb', '#38bdf8']; + + const random = () => { + seed = (seed * 1664525 + 1013904223) % 4294967296; + return seed / 4294967296; + }; + + const frameTimes: number[] = []; + const workloadTimes: number[] = []; + const totalFrames = 60; + let frameCount = 0; + let lastTimestamp = 0; + + const renderWorkload = () => { + const start = performance.now(); + context.globalCompositeOperation = 'lighter'; + context.clearRect(0, 0, canvas.width, canvas.height); + for (let i = 0; i < 220; i += 1) { + const size = 10 + ((i + frameCount) % 18) * 7; + const x = random() * (canvas.width + size) - size; + const y = random() * (canvas.height + size) - size; + context.globalAlpha = 0.14 + ((i % 8) * 0.1); + context.fillStyle = palette[i % palette.length]!; + context.fillRect(x, y, size, size); + } + context.globalCompositeOperation = 'source-over'; + workloadTimes.push(performance.now() - start); + }; + + const finish = (result: PerformanceLevel | null) => { + if (isResolved) return; + isResolved = true; + window.clearTimeout(failSafe); + cleanup(canvas); + debugLog('Graphics benchmark completed', { result, summary }); + resolve(result); + }; + + const step = (timestamp: number) => { + if (frameCount > 0) { + frameTimes.push(timestamp - lastTimestamp); + } + lastTimestamp = timestamp; + + renderWorkload(); + + frameCount += 1; + if (frameCount >= totalFrames) { + const trimmedFrames = frameTimes.slice(5); + if (!trimmedFrames.length) { + finish(null); + return; + } + + const averageFrame = trimmedFrames.reduce((sum, value) => sum + value, 0) / trimmedFrames.length; + const worstFrame = Math.max(...trimmedFrames); + const averageWorkload = workloadTimes.reduce((sum, value) => sum + value, 0) / workloadTimes.length; + const stutterRatio = trimmedFrames.filter((value) => value > 24).length / trimmedFrames.length; + + summary = { + averageFrame, + worstFrame, + averageWorkload, + stutterRatio + }; + + let benchmarkLevel: PerformanceLevel = 'high'; + if (averageFrame > 32 || worstFrame > 52 || averageWorkload > 16 || stutterRatio > 0.35) { + benchmarkLevel = 'low'; + } else if (averageFrame > 24 || worstFrame > 40 || averageWorkload > 10 || stutterRatio > 0.22) { + benchmarkLevel = 'medium'; + } + + finish(benchmarkLevel); + return; + } + + window.requestAnimationFrame(step); + }; + + window.requestAnimationFrame((initialTimestamp) => { + lastTimestamp = initialTimestamp; + window.requestAnimationFrame(step); + }); + } catch (error) { + console.warn('Graphics benchmark failed', error); + window.clearTimeout(failSafe); + cleanup(); + resolve(null); + } + }); +} + +/** + * Check if user prefers reduced motion + */ +export function prefersReducedMotion(): boolean { + if (typeof window === 'undefined') { + return false; + } + + return window.matchMedia('(prefers-reduced-motion: reduce)').matches; +} + +/** + * Get optimal blur value based on performance level + */ +export function getOptimalBlur(defaultBlur: number, performanceLevel: PerformanceLevel): number { + switch (performanceLevel) { + case 'high': + return defaultBlur; + case 'medium': + return Math.round(defaultBlur * 0.6); + case 'low': + return Math.round(defaultBlur * 0.3); + } +} + +/** + * Get optimal saturation value based on performance level + */ +export function getOptimalSaturate( + defaultSaturate: number, + performanceLevel: PerformanceLevel +): number { + switch (performanceLevel) { + case 'high': + return defaultSaturate; + case 'medium': + return Math.min(defaultSaturate, 130); + case 'low': + return 100; // No saturation boost + } +} + +/** + * Check if animations should be enabled + */ +export function shouldEnableAnimations(performanceLevel: PerformanceLevel): boolean { + if (prefersReducedMotion()) { + return false; + } + + return performanceLevel !== 'low'; +} + +/** + * Get optimal number of gradient colors based on performance + */ +export function getOptimalGradientColors(performanceLevel: PerformanceLevel): number { + switch (performanceLevel) { + case 'high': + return 5; + case 'medium': + return 3; + case 'low': + return 2; + } +} diff --git a/src/lib/utils/songlink.ts b/src/lib/utils/songlink.ts new file mode 100644 index 0000000000000000000000000000000000000000..b6084f6e497c616d10b2d4b26b1cb063041aea51 --- /dev/null +++ b/src/lib/utils/songlink.ts @@ -0,0 +1,242 @@ +/** + * Songlink API utilities for converting streaming links between platforms + */ + +export interface SonglinkResponse { + entityUniqueId: string; + userCountry: string; + pageUrl: string; + entitiesByUniqueId: Record; + linksByPlatform: Record; +} + +export interface SonglinkEntity { + id: string; + type: 'song' | 'album'; + title?: string; + artistName?: string; + thumbnailUrl?: string; + thumbnailWidth?: number; + thumbnailHeight?: number; + apiProvider: string; + platforms: string[]; +} + +export interface SonglinkPlatformLink { + country: string; + url: string; + nativeAppUriMobile?: string; + nativeAppUriDesktop?: string; + entityUniqueId: string; +} + +export interface TidalInfo { + type: 'track' | 'album' | 'playlist'; + id: string; + url: string; +} + +/** + * Supported streaming platforms + */ +export const SUPPORTED_PLATFORMS = [ + { id: 'spotify', name: 'Spotify', pattern: /spotify\.com\/(track|album|playlist)/ }, + { id: 'appleMusic', name: 'Apple Music', pattern: /music\.apple\.com/ }, + { id: 'youtubeMusic', name: 'YouTube Music', pattern: /music\.youtube\.com/ }, + { id: 'deezer', name: 'Deezer', pattern: /deezer\.com\/(track|album|playlist)/ }, + { id: 'soundcloud', name: 'SoundCloud', pattern: /soundcloud\.com/ }, + { id: 'tidal', name: 'TIDAL', pattern: /tidal\.com\/(browse\/)?(track|album|playlist)/ }, + { id: 'amazon', name: 'Amazon Music', pattern: /music\.amazon\.com/ }, + { id: 'pandora', name: 'Pandora', pattern: /pandora\.com/ } +] as const; + +/** + * Detect if URL is from a supported streaming platform + */ +export function isSupportedStreamingUrl(url: string): boolean { + try { + const parsedUrl = new URL(url); + return SUPPORTED_PLATFORMS.some((platform) => platform.pattern.test(parsedUrl.href)); + } catch { + return false; + } +} + +/** + * Detect if URL is a Spotify playlist + */ +export function isSpotifyPlaylistUrl(url: string): boolean { + try { + const parsedUrl = new URL(url); + return /spotify\.com\/playlist/.test(parsedUrl.href); + } catch { + return false; + } +} + +/** + * Extract TIDAL information from Songlink response + */ +export function extractTidalInfo(response: SonglinkResponse): TidalInfo | null { + // Find TIDAL link in linksByPlatform + const tidalLink = response.linksByPlatform.tidal; + if (!tidalLink?.url) { + return null; + } + + // Parse TIDAL URL to extract type and ID + const url = tidalLink.url; + const match = url.match(/tidal\.com\/(?:browse\/)?(\w+)\/(\d+)/); + + if (!match) { + return null; + } + + const [, type, id] = match; + + // Map Songlink types to our types + let tidalType: 'track' | 'album' | 'playlist'; + if (type === 'track' || type === 'song') { + tidalType = 'track'; + } else if (type === 'album') { + tidalType = 'album'; + } else if (type === 'playlist') { + tidalType = 'playlist'; + } else { + return null; + } + + // Validate that the ID is numeric + const numericId = Number(id); + if (!Number.isFinite(numericId) || numericId <= 0) { + console.warn('TIDAL ID is not a valid number:', id); + return null; + } + + return { + type: tidalType, + id, + url + }; +} + +/** + * Fetch Songlink data for a given URL + */ +export async function fetchSonglinkData( + url: string, + options?: { + userCountry?: string; + songIfSingle?: boolean; + } +): Promise { + const params = new URLSearchParams(); + params.set('url', url); + + if (options?.userCountry) { + params.set('userCountry', options.userCountry); + } + + if (options?.songIfSingle !== undefined) { + params.set('songIfSingle', options.songIfSingle.toString()); + } + + // Randomly prefer backup API 50% of the time for load balancing + const preferBackup = Math.random() < 0.5; + if (preferBackup) { + params.set('preferBackup', 'true'); + } + + const apiUrl = `/api/songlink?${params.toString()}`; + + const response = await fetch(apiUrl); + + if (!response.ok) { + const error = await response.json().catch(() => ({ error: 'Unknown error' })); + throw new Error(error.error || `Failed to fetch Songlink data: ${response.status}`); + } + + return response.json(); +} + +/** + * Convert a streaming platform URL to TIDAL information + */ +export async function convertToTidal( + url: string, + options?: { + userCountry?: string; + songIfSingle?: boolean; + } +): Promise { + try { + const songlinkData = await fetchSonglinkData(url, options); + return extractTidalInfo(songlinkData); + } catch (error) { + console.error('Failed to convert URL to TIDAL:', error); + return null; + } +} + +/** + * Get platform name from URL + */ +export function getPlatformName(url: string): string | null { + try { + const parsedUrl = new URL(url); + const platform = SUPPORTED_PLATFORMS.find((p) => p.pattern.test(parsedUrl.href)); + return platform?.name || null; + } catch { + return null; + } +} + +/** + * Convert a Spotify playlist to an array of track URLs for Songlink conversion + */ +export async function convertSpotifyPlaylist(playlistUrl: string): Promise { + // Strip query parameters from the URL + let cleanUrl = playlistUrl; + try { + const url = new URL(playlistUrl); + cleanUrl = `${url.origin}${url.pathname}`; + } catch (e) { + // If URL parsing fails, use original URL + console.warn('Failed to parse playlist URL, using as-is:', e); + } + + const response = await fetch('/api/spotify-playlist', { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ playlistUrl: cleanUrl }) + }); + + if (!response.ok) { + const error = await response.json().catch(() => ({ error: 'Unknown error' })); + throw new Error(error.error || `Failed to fetch Spotify playlist: ${response.status}`); + } + + const data = await response.json(); + return data.songLinks; +} + +/** + * Extract TIDAL song entity from Songlink response for display + * Prioritizes the entityUniqueId, then falls back to any TIDAL_SONG entity + */ +export function extractTidalSongEntity(response: SonglinkResponse): SonglinkEntity | null { + // First try the primary entity if it's a TIDAL song + const primaryEntity = response.entitiesByUniqueId[response.entityUniqueId]; + if (primaryEntity?.apiProvider === 'tidal') { + return primaryEntity; + } + + // Fallback: find any TIDAL_SONG entity + const tidalKey = Object.keys(response.entitiesByUniqueId).find((key) => + key.startsWith('TIDAL_SONG::') + ); + + return tidalKey ? response.entitiesByUniqueId[tidalKey] || null : null; +} diff --git a/src/lib/utils/urlParser.ts b/src/lib/utils/urlParser.ts new file mode 100644 index 0000000000000000000000000000000000000000..a8cd8e80959e05311eaed36f57613a5c4acb6a7f --- /dev/null +++ b/src/lib/utils/urlParser.ts @@ -0,0 +1,120 @@ +/** + * Utility functions for parsing Tidal URLs + */ + +export type TidalUrlType = 'track' | 'album' | 'artist' | 'playlist' | 'unknown'; + +export interface TidalUrlParseResult { + type: TidalUrlType; + trackId?: number; + albumId?: number; + artistId?: number; + playlistId?: string; +} + +/** + * Parse a Tidal URL and extract the relevant IDs + * + * Supported URL formats: + * - Track: https://tidal.com/album/{albumId}/track/{trackId} + * - Album: https://tidal.com/album/{albumId} + * - Artist: https://tidal.com/artist/{artistId} + * - Playlist: https://tidal.com/playlist/{playlistId} + * + * Also supports: + * - listen.tidal.com domain + * - browse/ prefix (e.g., https://tidal.com/browse/track/{trackId}) + */ +export function parseTidalUrl(url: string): TidalUrlParseResult { + try { + // Clean up the URL - remove whitespace + const cleanUrl = url.trim(); + + // Parse the URL + let urlObj: URL; + try { + urlObj = new URL(cleanUrl); + } catch { + // If it's not a valid URL, try adding https:// + urlObj = new URL(`https://${cleanUrl}`); + } + + // Check if it's a Tidal domain + const hostname = urlObj.hostname.toLowerCase(); + if (!hostname.includes('tidal.com')) { + return { type: 'unknown' }; + } + + const pathname = urlObj.pathname; + + // Track URL patterns: + // /album/{albumId}/track/{trackId} + // /browse/track/{trackId} + const trackMatch = pathname.match(/\/(?:album\/\d+\/)?track\/(\d+)/); + if (trackMatch) { + const trackId = parseInt(trackMatch[1]!, 10); + if (!isNaN(trackId)) { + // Also try to extract album ID if present + const albumMatch = pathname.match(/\/album\/(\d+)\//); + const albumId = albumMatch ? parseInt(albumMatch[1]!, 10) : undefined; + + return { + type: 'track', + trackId, + albumId: albumId && !isNaN(albumId) ? albumId : undefined + }; + } + } + + // Album URL pattern: /album/{albumId} + const albumMatch = pathname.match(/\/album\/(\d+)(?:\/|$)/); + if (albumMatch) { + const albumId = parseInt(albumMatch[1]!, 10); + if (!isNaN(albumId)) { + return { + type: 'album', + albumId + }; + } + } + + // Artist URL pattern: /artist/{artistId} + const artistMatch = pathname.match(/\/artist\/(\d+)/); + if (artistMatch) { + const artistId = parseInt(artistMatch[1]!, 10); + if (!isNaN(artistId)) { + return { + type: 'artist', + artistId + }; + } + } + + // Playlist URL pattern: /playlist/{playlistId} + // Note: Playlist IDs are UUIDs (strings), not numbers + const playlistMatch = pathname.match(/\/playlist\/([a-f0-9-]+)/i); + if (playlistMatch) { + return { + type: 'playlist', + playlistId: playlistMatch[1]! + }; + } + + return { type: 'unknown' }; + } catch (error) { + console.error('Failed to parse Tidal URL:', error); + return { type: 'unknown' }; + } +} + +/** + * Validate if a string looks like a Tidal URL + */ +export function isTidalUrl(url: string): boolean { + const cleaned = url.trim().toLowerCase(); + return cleaned.includes('tidal.com') && + (cleaned.startsWith('http://') || + cleaned.startsWith('https://') || + cleaned.startsWith('tidal.com') || + cleaned.startsWith('listen.tidal.com')); +} diff --git a/src/lib/utils/webglShaders.ts b/src/lib/utils/webglShaders.ts new file mode 100644 index 0000000000000000000000000000000000000000..b8cc479ca024f67b619c98370c800139fa5dfd2c --- /dev/null +++ b/src/lib/utils/webglShaders.ts @@ -0,0 +1,271 @@ +/** + * WebGL shader programs for dynamic background rendering + */ + +// Vertex shader (shared by all passes) +export const vertexShaderSource = ` +attribute vec2 a_position; +attribute vec2 a_texCoord; +varying vec2 v_uv; + +void main() { + gl_Position = vec4(a_position, 0.0, 1.0); + v_uv = a_texCoord; +} +`; + +// Pass 1: Cell State Update (GPGPU) +// Updates animation state for each of the 40 cells +export const updateStateShaderSource = ` +precision highp float; + +uniform sampler2D u_currentStateTexture; +uniform float u_deltaTime; +uniform float u_time; +varying vec2 v_uv; + +// Simple pseudo-random function +float random(vec2 co) { + return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453); +} + +void main() { + vec4 currentState = texture2D(u_currentStateTexture, v_uv); + float sourceIdx_norm = currentState.r; + float targetIdx_norm = currentState.g; + float progress = currentState.b; + float speed = currentState.a * 10.0; + + // Advance transition progress + progress += speed * u_deltaTime; + + if (progress >= 1.0) { + // Transition complete - pick new target color + progress = fract(progress); + sourceIdx_norm = targetIdx_norm; + + // Generate new random target index (0-39 mapped to 0.0-1.0) + vec2 seed = v_uv + vec2(u_time * 0.001, progress); + float newTargetIdx = floor(random(seed) * 40.0); + targetIdx_norm = newTargetIdx / 39.0; + + // Generate new random speed + seed = v_uv + vec2(u_time * 0.002, progress * 2.0); + speed = (random(seed) * 0.5 + 0.5) * 0.48; + } + + gl_FragColor = vec4(sourceIdx_norm, targetIdx_norm, progress, speed / 10.0); +} +`; + +// Pass 2: Color Rendering +// Renders the 8x5 grid with smooth color transitions +export const colorRenderShaderSource = ` +precision highp float; + +uniform sampler2D u_paletteTexture; +uniform sampler2D u_cellStateTexture; +uniform float u_songPaletteTransitionProgress; +uniform float u_scrollOffset; +varying vec2 v_uv; + +// Get color from master palette (8x10 texture) +// y_offset = 0.0 for previous palette, 5.0 for target palette +vec4 getColorFromMasterPalette(int index, float y_offset) { + float texY_row = floor(float(index) / 8.0); + float texX_col = mod(float(index), 8.0); + float u = (texX_col + 0.5) / 8.0; + float v = (texY_row + y_offset + 0.5) / 10.0; + return texture2D(u_paletteTexture, vec2(u, v)); +} + +// Get interpolated color for a cell +vec4 getCellColor(vec2 uv) { + vec4 cellState = texture2D(u_cellStateTexture, uv); + int sourceColorIndex = int(cellState.r * 39.0 + 0.5); + int targetColorIndex = int(cellState.g * 39.0 + 0.5); + float fadeProgress = cellState.b; + + // Get colors from both palette layers + vec4 prevPalette_source = getColorFromMasterPalette(sourceColorIndex, 0.0); + vec4 targetPalette_source = getColorFromMasterPalette(sourceColorIndex, 5.0); + vec4 colorA = mix(prevPalette_source, targetPalette_source, u_songPaletteTransitionProgress); + + vec4 prevPalette_target = getColorFromMasterPalette(targetColorIndex, 0.0); + vec4 targetPalette_target = getColorFromMasterPalette(targetColorIndex, 5.0); + vec4 colorB = mix(prevPalette_target, targetPalette_target, u_songPaletteTransitionProgress); + + return mix(colorA, colorB, fadeProgress); +} + +void main() { + float scrolledX = v_uv.x - u_scrollOffset; + + // Wrap around for seamless horizontal scrolling + scrolledX = fract(scrolledX); + + float cellX = scrolledX * 8.0; + float cellXFrac = fract(cellX); + + // Sample adjacent cells and interpolate for smoothness + vec2 cell1UV = vec2(scrolledX, v_uv.y); + vec2 cell2UV = vec2(fract(scrolledX + 1.0/8.0), v_uv.y); + + vec4 color1 = getCellColor(cell1UV); + vec4 color2 = getCellColor(cell2UV); + + gl_FragColor = mix(color1, color2, cellXFrac); +} +`; + +// Pass 3 & 4: Gaussian Blur +// Separable 9-tap Gaussian blur (horizontal and vertical) +export const blurFragmentShaderSource = ` +precision highp float; + +uniform sampler2D u_image; +uniform vec2 u_resolution; +uniform vec2 u_direction; +varying vec2 v_uv; + +void main() { + vec2 texelSize = 1.0 / u_resolution; + vec3 result = texture2D(u_image, v_uv).rgb * 0.227027; + + // 9-tap Gaussian kernel + result += texture2D(u_image, v_uv + texelSize * u_direction * 1.0).rgb * 0.1945946; + result += texture2D(u_image, v_uv - texelSize * u_direction * 1.0).rgb * 0.1945946; + result += texture2D(u_image, v_uv + texelSize * u_direction * 2.0).rgb * 0.1216216; + result += texture2D(u_image, v_uv - texelSize * u_direction * 2.0).rgb * 0.1216216; + result += texture2D(u_image, v_uv + texelSize * u_direction * 3.0).rgb * 0.05405405; + result += texture2D(u_image, v_uv - texelSize * u_direction * 3.0).rgb * 0.05405405; + result += texture2D(u_image, v_uv + texelSize * u_direction * 4.0).rgb * 0.01621621; + result += texture2D(u_image, v_uv - texelSize * u_direction * 4.0).rgb * 0.01621621; + + gl_FragColor = vec4(result, 1.0); +} +`; + +/** + * Create and compile a shader + */ +export function createShader( + gl: WebGLRenderingContext, + type: number, + source: string +): WebGLShader | null { + const shader = gl.createShader(type); + if (!shader) return null; + + gl.shaderSource(shader, source); + gl.compileShader(shader); + + if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) { + console.error('Shader compilation error:', gl.getShaderInfoLog(shader)); + gl.deleteShader(shader); + return null; + } + + return shader; +} + +/** + * Create and link a shader program + */ +export function createProgram( + gl: WebGLRenderingContext, + vertexShader: WebGLShader, + fragmentShader: WebGLShader +): WebGLProgram | null { + const program = gl.createProgram(); + if (!program) return null; + + gl.attachShader(program, vertexShader); + gl.attachShader(program, fragmentShader); + gl.linkProgram(program); + + if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { + console.error('Program linking error:', gl.getProgramInfoLog(program)); + gl.deleteProgram(program); + return null; + } + + return program; +} + +/** + * Set up a full-screen quad (two triangles) + */ +export function setupQuad(gl: WebGLRenderingContext): void { + const positions = new Float32Array([ + -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0 + ]); + + const texCoords = new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0]); + + const positionBuffer = gl.createBuffer(); + gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer); + gl.bufferData(gl.ARRAY_BUFFER, positions, gl.STATIC_DRAW); + + const texCoordBuffer = gl.createBuffer(); + gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer); + gl.bufferData(gl.ARRAY_BUFFER, texCoords, gl.STATIC_DRAW); +} + +/** + * Create a texture + */ +export function createTexture( + gl: WebGLRenderingContext, + width: number, + height: number, + data: Uint8Array | null = null +): WebGLTexture | null { + const texture = gl.createTexture(); + if (!texture) return null; + + gl.bindTexture(gl.TEXTURE_2D, texture); + gl.texImage2D( + gl.TEXTURE_2D, + 0, + gl.RGBA, + width, + height, + 0, + gl.RGBA, + gl.UNSIGNED_BYTE, + data + ); + + // Use nearest neighbor filtering for palette and state textures + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); + + return texture; +} + +/** + * Create a framebuffer with attached texture + */ +export function createFramebuffer( + gl: WebGLRenderingContext, + texture: WebGLTexture +): WebGLFramebuffer | null { + const framebuffer = gl.createFramebuffer(); + if (!framebuffer) return null; + + gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer); + gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0); + + const status = gl.checkFramebufferStatus(gl.FRAMEBUFFER); + if (status !== gl.FRAMEBUFFER_COMPLETE) { + console.error('Framebuffer incomplete:', status); + gl.deleteFramebuffer(framebuffer); + return null; + } + + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + return framebuffer; +} diff --git a/src/lib/version.ts b/src/lib/version.ts new file mode 100644 index 0000000000000000000000000000000000000000..82b20256dd683a2824d0213076f2c85b7061cc54 --- /dev/null +++ b/src/lib/version.ts @@ -0,0 +1 @@ +export const APP_VERSION = 'v3.4'; diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts new file mode 100644 index 0000000000000000000000000000000000000000..a1b1cdb9df090f54d7a548a76091e5b5005bde32 --- /dev/null +++ b/src/routes/+layout.server.ts @@ -0,0 +1,8 @@ +import type { LayoutServerLoad } from './$types'; +import { env } from '$env/dynamic/private'; + +export const load: LayoutServerLoad = () => { + return { + title: env.TITLE ?? 'BiniLossless' + }; +}; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000000000000000000000000000000000000..3b2050626f5e88b177317407e9965e9353dc0140 --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,1362 @@ + + + + {pageTitle} + + + + + + + + +{#if isEmbed} + {@render children?.()} + +{:else} +
+ +
+
+
+ +
+

{data.title}

+

sailing on PCM tidal waves

+
+
+ +
+
+ + {#if showSettingsMenu} +
+
+
+

Streaming & Downloads

+
+ {#each QUALITY_OPTIONS as option} + + {/each} +
+
+
+

Conversions

+ + +
+
+

Queue exports

+
+ + + +
+
+
+

Performance Mode

+
+ {#each PERFORMANCE_OPTIONS as option} + + {/each} +
+
+
+

Queue actions

+
+ + +
+

+ Queue actions follow your selection above. ZIP bundles require at least two tracks, + while CSV exports capture the track links without downloading audio. +

+
+
+
+ {/if} +
+ + + +
+
+
+ +
+
+ {@render children?.()} +
+
+ + +
+
+ + +{/if} + + + + diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts new file mode 100644 index 0000000000000000000000000000000000000000..159c6148fa1852db631e20c7fad75865bc92d839 --- /dev/null +++ b/src/routes/+page.server.ts @@ -0,0 +1,9 @@ +import type { LayoutServerLoad } from './$types'; +import { env } from '$env/dynamic/private'; + +export const load: LayoutServerLoad = () => { + return { + title: env.TITLE ?? 'BiniLossless', + slogan: env.SLOGAN ?? 'The easiest way to stream Hi-Res lossless FLACs.' + }; +}; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..e454d00b658c97df19039f528ed2c1b13810d1d9 --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,140 @@ + + + + {data.title} + + + +
+ +
+
+
+

{data.title}

+ {APP_VERSION} +
+

{data.slogan}

+
+
+ + +
+ +
+
+ + + diff --git a/src/routes/album/[id]/+page.svelte b/src/routes/album/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..8c4cf1182923475039e29dc70dace4e75bc99439 --- /dev/null +++ b/src/routes/album/[id]/+page.svelte @@ -0,0 +1,567 @@ + + + + {album?.title || 'Album'} - TIDAL UI + + +{#if isLoading} +
+ +
+{:else if error} +
+
+

Error Loading Album

+

{error}

+ + Go Home + +
+
+{:else if album} +
+ + + + +
+ + {#if album.videoCover || album.cover} +
+ {#if album.videoCover} + + {:else} + {album.title} + {/if} +
+ {/if} + + +
+ ALBUM +

{album.title}

+
+ {#if album.explicit} + + {/if} + {#if album.artist} + + {album.artist.name} + + {/if} +
+ +
+ {#if album.releaseDate} +
+ + {new Date(album.releaseDate).getFullYear()} +
+ {/if} + {#if tracks.length > 0 || album.numberOfTracks} +
+ + {tracks.length || album.numberOfTracks} tracks +
+ {/if} + {#if totalDuration > 0} +
+ + {losslessAPI.formatDuration(totalDuration)} total +
+ {/if} + {#if album.mediaMetadata?.tags} + {#each album.mediaMetadata.tags as tag} + {tag} + {/each} + {/if} +
+ + {#if tracks.length > 0} +
+ + + + +
+ {#if downloadError} +

{downloadError}

+ {/if} + {/if} +
+
+ + +
+

Tracks

+ + {#if tracks.length === 0} +
+

+ We couldn't find tracks for this album. Try refreshing or searching for individual + songs. +

+
+ {/if} + {#if album.copyright} + + {/if} +
+
+{/if} + + + diff --git a/src/routes/api/artwork/[type]/[id]/[size]/+server.ts b/src/routes/api/artwork/[type]/[id]/[size]/+server.ts new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/routes/api/proxy/+server.ts b/src/routes/api/proxy/+server.ts new file mode 100644 index 0000000000000000000000000000000000000000..d9e58b87d9ee99c8b3d0af1921138affb9e2b99a --- /dev/null +++ b/src/routes/api/proxy/+server.ts @@ -0,0 +1,411 @@ +import { env } from '$env/dynamic/private'; +import { Buffer } from 'node:buffer'; +import { createHash } from 'node:crypto'; +import type Redis from 'ioredis'; +import type { RequestHandler } from './$types'; +import { isProxyTarget } from '$lib/config'; +import { getRedisClient } from '$lib/server/redis'; + +const allowOrigin = (origin?: string | null): boolean => { + void origin; + return true; +}; + +const hopByHopHeaders = new Set([ + 'connection', + 'keep-alive', + 'proxy-authenticate', + 'proxy-authorization', + 'te', + 'trailer', + 'transfer-encoding', + 'upgrade' +]); + +const CACHE_NAMESPACE = 'tidal:proxy:v2:'; + +const DEFAULT_CACHE_TTL_SECONDS = getEnvNumber('REDIS_CACHE_TTL_SECONDS', 300); +const SEARCH_CACHE_TTL_SECONDS = getEnvNumber('REDIS_CACHE_TTL_SEARCH_SECONDS', 300); +const TRACK_CACHE_TTL_SECONDS = getEnvNumber('REDIS_CACHE_TTL_TRACK_SECONDS', 120); +const MAX_CACHE_BODY_BYTES = getEnvNumber('REDIS_CACHE_MAX_BODY_BYTES', 200_000); + +interface CachedProxyEntry { + status: number; + statusText: string; + headers: [string, string][]; + bodyBase64: string; +} + +function getEnvNumber(name: string, fallback: number): number { + const raw = env[name]; + if (!raw) return fallback; + const parsed = Number.parseInt(raw, 10); + return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback; +} + +function sanitizeHeaderEntries(entries: Array<[string, string]>): Array<[string, string]> { + const blocklist = new Set(['content-encoding', 'content-length', 'transfer-encoding']); + return entries.filter(([key]) => !blocklist.has(key.toLowerCase())); +} + +function isCacheableContentType(contentType: string | null): boolean { + if (!contentType) return false; + const normalized = contentType.split(';')[0]?.trim().toLowerCase() ?? ''; + return normalized.includes('json') || normalized.startsWith('text/'); +} + +function hasDisqualifyingCacheControl(cacheControl: string | null): boolean { + if (!cacheControl) return false; + const normalized = cacheControl.toLowerCase(); + return normalized.includes('no-store') || normalized.includes('private'); +} + +function getCacheTtlSeconds(url: URL): number { + const path = url.pathname.toLowerCase(); + if (path.includes('/track/') || path.includes('/song/')) { + return TRACK_CACHE_TTL_SECONDS; + } + if (path.includes('/search/')) { + return SEARCH_CACHE_TTL_SECONDS; + } + if (path.includes('/album/') || path.includes('/artist/') || path.includes('/playlist/')) { + return DEFAULT_CACHE_TTL_SECONDS; + } + return DEFAULT_CACHE_TTL_SECONDS; +} + +function createCacheKey(url: URL, headers: Headers): string { + const accept = headers.get('accept') ?? ''; + const range = headers.get('range') ?? ''; + const keyMaterial = `${url.toString()}|accept=${accept}|range=${range}`; + const hash = createHash('sha256').update(keyMaterial).digest('hex'); + return `${CACHE_NAMESPACE}${hash}`; +} + +function applyProxyHeaders(sourceHeaders: Array<[string, string]>, origin: string | null): Headers { + const headers = new Headers(); + const sanitized = sanitizeHeaderEntries(sourceHeaders); + for (const [key, value] of sanitized) { + headers.append(key, value); + } + headers.set('Access-Control-Allow-Origin', origin ?? '*'); + headers.set('Access-Control-Allow-Methods', 'GET, OPTIONS'); + headers.set('Access-Control-Allow-Headers', 'Content-Type, Range'); + headers.set('Vary', ensureVaryIncludesOrigin(headers.get('vary'))); + if (!headers.has('Cache-Control')) { + headers.set('Cache-Control', 'public, max-age=300'); + } + return headers; +} + +function isCachedProxyEntry(value: unknown): value is CachedProxyEntry { + if (!value || typeof value !== 'object') return false; + const candidate = value as Partial; + return ( + typeof candidate.status === 'number' && + typeof candidate.statusText === 'string' && + Array.isArray(candidate.headers) && + typeof candidate.bodyBase64 === 'string' + ); +} + +function base64ToUint8Array(base64: string): Uint8Array { + return Uint8Array.from(Buffer.from(base64, 'base64')); +} + +function uint8ArrayToBase64(bytes: Uint8Array): string { + return Buffer.from(bytes).toString('base64'); +} + +function toArrayBuffer(bytes: Uint8Array): ArrayBuffer { + const copy = new Uint8Array(bytes.byteLength); + copy.set(bytes); + return copy.buffer; +} + +async function readCachedResponse(redis: Redis, key: string): Promise { + try { + const raw = await redis.get(key); + if (!raw) { + return null; + } + const parsed = JSON.parse(raw) as unknown; + return isCachedProxyEntry(parsed) ? (parsed as CachedProxyEntry) : null; + } catch (error) { + console.error('Failed to read proxy cache entry:', error); + return null; + } +} + +async function writeCachedResponse( + redis: Redis, + key: string, + entry: CachedProxyEntry, + ttlSeconds: number +): Promise { + if (ttlSeconds <= 0) return; + try { + await redis.set(key, JSON.stringify(entry), 'EX', ttlSeconds); + } catch (error) { + console.error('Failed to store proxy cache entry:', error); + } +} + +const ensureVaryIncludesOrigin = (value: string | null): string => { + const entries = value + ? value + .split(',') + .map((v) => v.trim()) + .filter(Boolean) + : []; + if (!entries.includes('Origin')) { + entries.push('Origin'); + } + return entries.join(', '); +}; + +const RETRYABLE_PATH_SEGMENTS = ['/track/', '/search/']; + +const TOKEN_INVALID_MESSAGE = 'token has invalid payload'; + +const MAX_RETRY_ATTEMPTS = 2; + +function isRetryEligibleTarget(url: URL): boolean { + const path = url.pathname.toLowerCase(); + return RETRYABLE_PATH_SEGMENTS.some((segment) => path.includes(segment)); +} + +async function shouldRetryInvalidToken(response: Response, targetUrl: URL): Promise { + if (response.status !== 401) { + return false; + } + + if (!isRetryEligibleTarget(targetUrl)) { + return false; + } + + const contentType = response.headers.get('content-type'); + if (!contentType || !contentType.toLowerCase().includes('application/json')) { + return false; + } + + try { + const payload = (await response.clone().json()) as { + subStatus?: unknown; + userMessage?: unknown; + detail?: unknown; + }; + const rawSubStatus = + typeof payload?.subStatus === 'number' + ? payload.subStatus + : typeof payload?.subStatus === 'string' + ? Number.parseInt(payload.subStatus, 10) + : undefined; + const subStatus = + typeof rawSubStatus === 'number' && Number.isFinite(rawSubStatus) ? rawSubStatus : undefined; + const combinedMessage = [payload?.userMessage, payload?.detail] + .filter((value): value is string => typeof value === 'string') + .join(' ') + .toLowerCase(); + + if (subStatus === 11002) { + return true; + } + + if (combinedMessage.includes(TOKEN_INVALID_MESSAGE)) { + return true; + } + } catch (error) { + console.debug('Proxy retry check failed to parse response', error); + } + + return false; +} + +async function fetchWithRetry( + url: URL, + options: RequestInit, + fetchFn: typeof fetch +): Promise { + let response: Response | null = null; + + for (let attempt = 1; attempt <= MAX_RETRY_ATTEMPTS; attempt += 1) { + response = await fetchFn(url.toString(), options); + if (attempt < MAX_RETRY_ATTEMPTS && (await shouldRetryInvalidToken(response, url))) { + // Cancel the body if it exists to free resources before retrying + try { + if (response.body && typeof response.body.cancel === 'function') { + await response.body.cancel(); + } + } catch (error) { + console.debug('Failed to cancel upstream response body before retry', error); + } + continue; + } + return response; + } + + // Fallback: return the last response if all attempts exhausted without early return + if (response) { + return response; + } + + return fetchFn(url.toString(), options); +} + +export const GET: RequestHandler = async ({ url, request, fetch }) => { + const target = url.searchParams.get('url'); + const origin = request.headers.get('origin'); + + if (!allowOrigin(origin)) { + return new Response('Forbidden', { status: 403 }); + } + + if (!target) { + return new Response(JSON.stringify({ error: 'Missing url parameter' }), { + status: 400, + headers: { 'Content-Type': 'application/json' } + }); + } + + let parsedTarget: URL; + + try { + parsedTarget = new URL(target); + } catch { + return new Response(JSON.stringify({ error: 'Invalid target URL' }), { + status: 400, + headers: { 'Content-Type': 'application/json' } + }); + } + + if (!isProxyTarget(parsedTarget)) { + return new Response(JSON.stringify({ error: 'Invalid target host' }), { + status: 400, + headers: { 'Content-Type': 'application/json' } + }); + } + + const upstreamHeaders = new Headers(); + let hasRangeRequest = false; + let hasAuthorizationHeader = false; + let hasCookieHeader = false; + + request.headers.forEach((value, key) => { + const lowerKey = key.toLowerCase(); + if (hopByHopHeaders.has(lowerKey) || lowerKey === 'host') { + return; + } + if (lowerKey === 'range') { + hasRangeRequest = true; + } + if (lowerKey === 'authorization') { + hasAuthorizationHeader = true; + } + if (lowerKey === 'cookie') { + hasCookieHeader = true; + } + upstreamHeaders.set(key, value); + }); + + if (!upstreamHeaders.has('User-Agent')) { + upstreamHeaders.set('User-Agent', 'Mozilla/5.0 (compatible; TIDAL-UI/1.0)'); + } + + // Force identity encoding so the upstream sends plain data that Node can forward without zstd artifacts. + upstreamHeaders.set('Accept-Encoding', 'identity'); + + const shouldUseCache = !hasRangeRequest && !hasAuthorizationHeader && !hasCookieHeader; + const redis = shouldUseCache ? getRedisClient() : null; + const cacheKey = redis ? createCacheKey(parsedTarget, upstreamHeaders) : null; + + if (redis && cacheKey) { + const cached = await readCachedResponse(redis, cacheKey); + if (cached) { + const headers = applyProxyHeaders(cached.headers, origin); + const bodyBytes = base64ToUint8Array(cached.bodyBase64); + return new Response(toArrayBuffer(bodyBytes), { + status: cached.status, + statusText: cached.statusText, + headers + }); + } + } + + try { + const upstream = await fetchWithRetry( + parsedTarget, + { + headers: upstreamHeaders, + redirect: 'follow' + }, + fetch + ); + const upstreamHeaderEntries = Array.from(upstream.headers.entries()); + const sanitizedHeaderEntries = sanitizeHeaderEntries(upstreamHeaderEntries); + const headers = applyProxyHeaders(sanitizedHeaderEntries, origin); + const bodyArrayBuffer = await upstream.arrayBuffer(); + const bodyBytes = new Uint8Array(bodyArrayBuffer); + + if (redis && cacheKey) { + const ttlSeconds = getCacheTtlSeconds(parsedTarget); + const contentType = upstream.headers.get('content-type'); + const cacheControl = upstream.headers.get('cache-control'); + const byteLength = bodyBytes.byteLength; + const cacheable = + upstream.status === 200 && + ttlSeconds > 0 && + !hasDisqualifyingCacheControl(cacheControl) && + isCacheableContentType(contentType) && + byteLength <= MAX_CACHE_BODY_BYTES; + + if (cacheable) { + const entry: CachedProxyEntry = { + status: upstream.status, + statusText: upstream.statusText, + headers: sanitizedHeaderEntries, + bodyBase64: uint8ArrayToBase64(bodyBytes) + }; + await writeCachedResponse(redis, cacheKey, entry, ttlSeconds); + } + } + + return new Response(bodyArrayBuffer, { + status: upstream.status, + statusText: upstream.statusText, + headers + }); + } catch (error) { + console.error('Proxy error:', error); + return new Response( + JSON.stringify({ + error: 'Proxy request failed', + message: error instanceof Error ? error.message : 'Unknown error' + }), + { + status: 500, + headers: { 'Content-Type': 'application/json' } + } + ); + } +}; + +export const OPTIONS: RequestHandler = async ({ request }) => { + const origin = request.headers.get('origin'); + + if (!allowOrigin(origin)) { + return new Response(null, { status: 403 }); + } + + const headers = new Headers(); + headers.set('Access-Control-Allow-Origin', origin ?? '*'); + headers.set('Vary', 'Origin'); + headers.set('Access-Control-Allow-Methods', 'GET, OPTIONS'); + headers.set('Access-Control-Allow-Headers', 'Content-Type, Range'); + headers.set('Access-Control-Max-Age', '86400'); + + return new Response(null, { + status: 204, + headers + }); +}; diff --git a/src/routes/api/songlink/+server.ts b/src/routes/api/songlink/+server.ts new file mode 100644 index 0000000000000000000000000000000000000000..eb3072c12311d28d1d4b6b82e83fa80e22ff0f93 --- /dev/null +++ b/src/routes/api/songlink/+server.ts @@ -0,0 +1,220 @@ +import { json, type RequestHandler } from '@sveltejs/kit'; + +const SONGLINK_API_BASE = 'https://api.song.link/v1-alpha.1/links'; +const SONGLINK_BACKUP_API_BASE = 'https://tracks.monochrome.tf/api/links'; + +// We keep the browser cache high (30 days) to reduce load on your server +// since we no longer have a server-side Redis cache. +const BROWSER_CACHE_TTL = 2_592_000; + +interface SonglinkQuery { + url: string; + userCountry?: string; + songIfSingle?: boolean; + platform?: string; + type?: string; + id?: string; + key?: string; + preferBackup?: boolean; +} + +function buildSonglinkUrl(params: SonglinkQuery, useBackup: boolean = false): string { + const url = new URL(useBackup ? SONGLINK_BACKUP_API_BASE : SONGLINK_API_BASE); + url.searchParams.set('url', params.url); + + if (params.userCountry) { + url.searchParams.set('userCountry', params.userCountry); + } + if (params.songIfSingle !== undefined) { + url.searchParams.set('songIfSingle', params.songIfSingle.toString()); + } + if (params.platform) { + url.searchParams.set('platform', params.platform); + } + if (params.type) { + url.searchParams.set('type', params.type); + } + if (params.id) { + url.searchParams.set('id', params.id); + } + if (params.key) { + url.searchParams.set('key', params.key); + } + + return url.toString(); +} + +export const GET: RequestHandler = async ({ url, request, fetch }) => { + const origin = request.headers.get('origin'); + + // Build query params + const params: SonglinkQuery = { + url: url.searchParams.get('url') || '', + userCountry: url.searchParams.get('userCountry') || undefined, + songIfSingle: url.searchParams.get('songIfSingle') === 'true' ? true : undefined, + platform: url.searchParams.get('platform') || undefined, + type: url.searchParams.get('type') || undefined, + id: url.searchParams.get('id') || undefined, + key: url.searchParams.get('key') || undefined, + preferBackup: url.searchParams.get('preferBackup') === 'true' ? true : undefined + }; + + // Validate required parameter + if (!params.url) { + return json( + { error: 'Missing required parameter: url' }, + { + status: 400, + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': 'no-cache' + } + } + ); + } + + // Fetch from Songlink API + // Default to 50/50 split for load balancing if no preference is specified + const useRandomBackup = Math.random() < 0.5; + + // If preferBackup is explicitly true, try backup first. + // Otherwise, rely on the 50/50 random split. + const shouldTryBackupFirst = params.preferBackup === true ? true : useRandomBackup; + + const primaryUrl = buildSonglinkUrl(params, false); + const backupUrl = buildSonglinkUrl(params, true); + + try { + const firstUrl = shouldTryBackupFirst ? backupUrl : primaryUrl; + const firstSource = shouldTryBackupFirst ? 'backup' : 'primary'; + + const response = await fetch(firstUrl, { + headers: { + 'User-Agent': 'BiniLossless/3.0', + Accept: 'application/json' + } + }); + + if (!response.ok) { + const errorText = await response.text(); + console.warn(`${firstSource} Songlink API failed:`, response.status, errorText); + + // Try the other API + const secondUrl = shouldTryBackupFirst ? primaryUrl : backupUrl; + const secondSource = shouldTryBackupFirst ? 'primary' : 'backup'; + console.log(`Attempting ${secondSource} Songlink API...`); + + const backupResponse = await fetch(secondUrl, { + headers: { + 'User-Agent': 'BiniLossless/3.0', + Accept: 'application/json' + } + }); + + if (!backupResponse.ok) { + const backupErrorText = await backupResponse.text(); + console.error( + `${secondSource} Songlink API also failed:`, + backupResponse.status, + backupErrorText + ); + + return json( + { + error: 'Both Songlink APIs failed', + primaryStatus: shouldTryBackupFirst ? backupResponse.status : response.status, + backupStatus: shouldTryBackupFirst ? response.status : backupResponse.status, + message: backupErrorText + }, + { + status: backupResponse.status, + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': 'no-cache' + } + } + ); + } + + const backupData = await backupResponse.json(); + + return json(backupData, { + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': `public, max-age=${BROWSER_CACHE_TTL}`, + 'X-Songlink-Source': secondSource + } + }); + } + + const data = await response.json(); + + return json(data, { + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': `public, max-age=${BROWSER_CACHE_TTL}`, + 'X-Songlink-Source': firstSource + } + }); + } catch (error) { + console.error('Songlink API fetch error:', error); + + // Try backup API as last resort + try { + console.log('Primary API threw exception, trying backup...'); + const backupUrl = buildSonglinkUrl(params, true); + + const backupResponse = await fetch(backupUrl, { + headers: { + 'User-Agent': 'BiniLossless/3.0', + Accept: 'application/json' + } + }); + + if (!backupResponse.ok) { + throw new Error(`Backup API returned ${backupResponse.status}`); + } + + const backupData = await backupResponse.json(); + + return json(backupData, { + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': `public, max-age=${BROWSER_CACHE_TTL}`, + 'X-Songlink-Source': 'backup-fallback' + } + }); + } catch (backupError) { + console.error('Backup Songlink API also failed:', backupError); + + return json( + { + error: 'Failed to fetch from both Songlink APIs', + primaryError: error instanceof Error ? error.message : 'Unknown error', + backupError: backupError instanceof Error ? backupError.message : 'Unknown error' + }, + { + status: 502, + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Cache-Control': 'no-cache' + } + } + ); + } + } +}; + +export const OPTIONS: RequestHandler = async ({ request }) => { + const origin = request.headers.get('origin'); + + return new Response(null, { + status: 204, + headers: { + 'Access-Control-Allow-Origin': origin || '*', + 'Access-Control-Allow-Methods': 'GET, OPTIONS', + 'Access-Control-Allow-Headers': 'Content-Type', + 'Access-Control-Max-Age': '86400' + } + }); +}; diff --git a/src/routes/api/spotify-playlist/+server.ts b/src/routes/api/spotify-playlist/+server.ts new file mode 100644 index 0000000000000000000000000000000000000000..78203a5c0fdbc057e2800c24854747c2eaedd67f --- /dev/null +++ b/src/routes/api/spotify-playlist/+server.ts @@ -0,0 +1,377 @@ +import { json } from '@sveltejs/kit'; +import type { RequestHandler } from './$types'; +import crypto from 'crypto'; + +// Browser version for headers +const BROWSER_VERSION = '131'; + +// Common headers for Spotify requests +const COMMON_HEADERS = { + 'Content-Type': 'application/json', + 'User-Agent': `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${BROWSER_VERSION}.0.0.0 Safari/537.36`, + 'Sec-Ch-Ua': `"Chromium";v="${BROWSER_VERSION}", "Not(A:Brand";v="24", "Google Chrome";v="${BROWSER_VERSION}"` +}; + +// Fallback secret (from SpotAPI code) +const FALLBACK_SECRET = [ + 44, 55, 47, 42, 70, 40, 34, 114, 76, 74, 50, 111, 120, 97, 75, 76, 94, 102, 43, 69, 49, 120, 118, + 80, 64, 78 +]; + +// Function to fetch latest secret +async function getLatestTotpSecret() { + return { version: 61, secret: FALLBACK_SECRET }; +} + +// Generate TOTP +function generateTotp(secret: number[]) { + const transformed = secret.map((e, t) => e ^ ((t % 33) + 9)); + const joined = transformed.map((num) => num.toString()).join(''); + const hexStr = Buffer.from(joined, 'ascii').toString('hex'); + const base32Secret = Buffer.from(hexStr, 'hex').toString('base64').replace(/=/g, ''); + + // Simple TOTP generation (using crypto for HMAC) + const timeStep = Math.floor(Date.now() / 1000 / 30); + const timeHex = timeStep.toString(16).padStart(16, '0'); + const hmac = crypto.createHmac('sha1', Buffer.from(base32Secret, 'base64')); + hmac.update(Buffer.from(timeHex, 'hex')); + const digest = hmac.digest(); + const offset = digest[19] & 0xf; + const code = (digest.readUInt32BE(offset) & 0x7fffffff) % 1000000; + return code.toString().padStart(6, '0'); +} + +// Extract all JavaScript links from HTML +function extractJsLinks(html: string): string[] { + const jsLinks: string[] = []; + const scriptTagRegex = /]+src="([^"]+\.js)"[^>]*>/g; + let match; + + while ((match = scriptTagRegex.exec(html)) !== null) { + jsLinks.push(match[1]); + } + + return jsLinks; +} + +// Get session and extract data +async function getSessionData() { + const response = await fetch('https://open.spotify.com', { + headers: COMMON_HEADERS + }); + const html = await response.text(); + const cookie = response.headers.get('set-cookie')?.match(/sp_t=([^;]+)/)?.[1] || ''; + + // Extract base64-encoded appServerConfig + const appServerConfigMatch = html.match( + / + + + {artist?.name || 'Artist'} - TIDAL UI + + +{#if isLoading} +
+ +
+{:else if error} +
+
+

Error Loading Artist

+

{error}

+ + Go Home + +
+
+{:else if artist} +
+ + + + +
+ +
+ {#if artistImage} + {artist.name} + {:else} +
+ +
+ {/if} +
+ + +
+

ARTIST

+

{artist.name}

+ +
+ +
+ +
+ {#if artist.popularity} +
+ Popularity: {artist.popularity} +
+ {/if} + {#if artist.artistTypes && artist.artistTypes.length > 0} + {#each artist.artistTypes as type} +
+ {type} +
+ {/each} + {/if} +
+ + {#if artist.artistRoles && artist.artistRoles.length > 0} +
+

Roles

+
+ {#each artist.artistRoles as role} +
+ {role.category} +
+ {/each} +
+
+ {/if} +
+
+ + +
+
+
+
+

Top Tracks

+

Best songs from {artist.name}.

+
+
+ {#if topTracks.length > 0} +
+ +
+ {:else} +
+

No top tracks available for this artist yet.

+
+ {/if} +
+ +
+
+
+

Discography

+

Albums, EPs, and more from {artist.name}.

+
+
+ +
+
+ {#if discographyError} + + {/if} + {#if discography.length > 0} +
+ {#each discography as album (album.id)} +
+ + +
+ {#if album.cover} + {album.title} + {:else} +
+ No artwork +
+ {/if} +
+
+

+ {album.title} +

+ {#if formatAlbumMeta(album)} +

{formatAlbumMeta(album)}

+ {/if} +
+
+ {#if albumDownloadStates[album.id]?.downloading} +

+ Downloading + {#if albumDownloadStates[album.id]?.total} + {albumDownloadStates[album.id]?.completed ?? 0}/{displayTrackTotal( + albumDownloadStates[album.id]?.total ?? 0 + )} + {:else} + {albumDownloadStates[album.id]?.completed ?? 0} + {/if} + tracks… +

+ {:else if albumDownloadStates[album.id]?.error} + + {/if} +
+ {/each} +
+ {:else} +
+

Discography information isn't available right now.

+
+ {/if} +
+
+ + {#if artist.url} + + View profile → + + {/if} +
+{/if} diff --git a/src/routes/embed/album/[id]/+page.svelte b/src/routes/embed/album/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..eb21ed331d156d8522754b48fa84a424c1025c18 --- /dev/null +++ b/src/routes/embed/album/[id]/+page.svelte @@ -0,0 +1,441 @@ + + +
+ {#if isLoading} +
+ +
+ {:else if error} +
+

{error}

+
+ {:else if album} +
+
+ {album.title} + +
+
+

{album.title}

+

{album.artist.name}

+ + Open Album in BiniLossless + + +
+
+ +
+ {#each tracks as track, i} + + {/each} +
+ + +
+ + + {#if isCurrentContext} +
+
+
+ {/if} + + {#if $playerStore.currentTrack} +
+ {$playerStore.currentTrack.title} +
+
{$playerStore.currentTrack.title}
+
+ + {$playerStore.quality === 'HI_RES_LOSSLESS' ? 'Hi-Res' : + $playerStore.quality === 'LOSSLESS' ? 'CD' : $playerStore.quality} + +
+
+ +
+ {/if} + {/if} +
+ + \ No newline at end of file diff --git a/src/routes/embed/artist/[id]/+page.svelte b/src/routes/embed/artist/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..401eef1ff342946eb8ecd5ad8f1d0eca13db9a1b --- /dev/null +++ b/src/routes/embed/artist/[id]/+page.svelte @@ -0,0 +1,451 @@ + + +
+ {#if isLoading} +
+ +
+ {:else if error} +
+

{error}

+
+ {:else if artist} +
+
+ {#if artist.picture} + {artist.name} + {:else} +
+ {/if} + +
+
+

{artist.name}

+

Top Tracks

+ + Open Artist in BiniLossless + + +
+
+ +
+ {#each tracks as track, i} + + {/each} +
+ + + {#if artist.picture} +
+ {:else} +
+ {/if} + + + {#if isCurrentContext} +
+
+
+ {/if} + + {#if $playerStore.currentTrack} +
+ {$playerStore.currentTrack.title} +
+
{$playerStore.currentTrack.title}
+
+ + {$playerStore.quality === 'HI_RES_LOSSLESS' ? 'Hi-Res' : + $playerStore.quality === 'LOSSLESS' ? 'CD' : $playerStore.quality} + +
+
+ +
+ {/if} + {/if} +
+ + diff --git a/src/routes/embed/playlist/[id]/+page.svelte b/src/routes/embed/playlist/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..1ccd56f22a359e23e7744013ac71c240765ae5c9 --- /dev/null +++ b/src/routes/embed/playlist/[id]/+page.svelte @@ -0,0 +1,455 @@ + + +
+ {#if isLoading} +
+ +
+ {:else if error} +
+

{error}

+
+ {:else if playlist} +
+
+ {#if playlist.image} + {playlist.title} + {:else} +
+ {/if} + +
+
+

{playlist.title}

+

{playlist.description || 'Playlist'}

+ + Open Playlist in BiniLossless + + +
+
+ +
+ {#each tracks as track, i} + + {/each} +
+ + + {#if playlist.image} +
+ {:else} +
+ {/if} + + + {#if isCurrentContext} +
+
+
+ {/if} + + {#if $playerStore.currentTrack} +
+ {$playerStore.currentTrack.title} +
+
{$playerStore.currentTrack.title}
+
+ + {$playerStore.quality === 'HI_RES_LOSSLESS' ? 'Hi-Res' : + $playerStore.quality === 'LOSSLESS' ? 'CD' : $playerStore.quality} + +
+
+ +
+ {/if} + {/if} +
+ + \ No newline at end of file diff --git a/src/routes/embed/track/[id]/+page.svelte b/src/routes/embed/track/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..e3a4d6a8f8ea87a5ae2ce096ae8c8668920b80d4 --- /dev/null +++ b/src/routes/embed/track/[id]/+page.svelte @@ -0,0 +1,280 @@ + + +
+ {#if isLoading} +
+ +
+ {:else if error} +
+

{error}

+
+ {:else if track} +
+
+ {track.album.title} + +
+
+

{track.title}

+

{formatArtists(track.artists)}

+ + {#if trackInfo} + {@const qualityText = formatQuality(trackInfo)} + {#if qualityText} +
{qualityText}
+ {/if} + {/if} + + + Open in BiniLossless + + +
+
+ + +
+ + + {#if isCurrentTrack} +
+
+
+ {/if} + {/if} +
+ + \ No newline at end of file diff --git a/src/routes/playlist/[id]/+page.svelte b/src/routes/playlist/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..235563406c578e2d55c93d1fc9c382a16eea2204 --- /dev/null +++ b/src/routes/playlist/[id]/+page.svelte @@ -0,0 +1,197 @@ + + + + {playlist?.title || 'Playlist'} - TIDAL UI + + +{#if isLoading} +
+ +
+{:else if error} +
+
+

Error Loading Playlist

+

{error}

+ + Go Home + +
+
+{:else if playlist} +
+ + + + +
+ + {#if playlist.squareImage || playlist.image} +
+ {playlist.title} +
+ {/if} + + +
+

PLAYLIST

+

{playlist.title}

+ + {#if playlist.description} +

{playlist.description}

+ {/if} + +
+ {#if playlist.creator.picture} + {playlist.creator.name} + {:else} +
+ +
+ {/if} + {playlist.creator.name} +
+ +
+
{playlist.numberOfTracks} tracks
+ {#if playlist.duration} +
+ + {formatDuration(playlist.duration)} +
+ {/if} + {#if playlist.type} +
+ {playlist.type} +
+ {/if} +
+ + {#if tracks.length > 0} +
+ + +
+ {/if} +
+
+ + + {#if playlist.promotedArtists && playlist.promotedArtists.length > 0} +
+

Featured Artists

+
+ {#each playlist.promotedArtists as artist} + + {artist.name} + + {/each} +
+
+ {/if} + + + {#if tracks.length > 0} +
+

Tracks

+ +
+ {:else} +
+

No tracks in this playlist.

+
+ {/if} + + +
+ {#if playlist.created} +

Created: {new Date(playlist.created).toLocaleDateString()}

+ {/if} + {#if playlist.lastUpdated} +

Last updated: {new Date(playlist.lastUpdated).toLocaleDateString()}

+ {/if} +
+
+{/if} diff --git a/src/routes/track/[id]/+page.svelte b/src/routes/track/[id]/+page.svelte new file mode 100644 index 0000000000000000000000000000000000000000..4dccfc43471f5663ea57ba15323d079f01f18ca7 --- /dev/null +++ b/src/routes/track/[id]/+page.svelte @@ -0,0 +1,494 @@ + + + + {track ? `${track.title} - ${formatArtists(track.artists)}` : 'Track'} - TIDAL UI + + +{#if isLoading} +
+ +
+{:else if error} +
+
+

Error Loading Track

+

{error}

+ + Go Home + +
+
+{:else if track} +
+ + + +
+ +
+ {#if track.album.cover} + {track.album.title} + {:else} +
+ +
+ {/if} +
+ + +
+

{track.title}

+ {#if track.version} + {track.version} + {/if} + +
+ + +
+ + {formatDuration(track.duration)} +
+
+ +
+ + + {#if isDownloading} + + {:else if isCancelled} + + {:else} + + {/if} + + +
+
+
+
+{/if} + + + diff --git a/src/service-worker.ts b/src/service-worker.ts new file mode 100644 index 0000000000000000000000000000000000000000..eb6034bdc604bef818053c7ba9dcf0efab040afb --- /dev/null +++ b/src/service-worker.ts @@ -0,0 +1,111 @@ +/// + +import { build, files, version } from '$service-worker'; + +declare const self: ServiceWorkerGlobalScope; + +const CACHE_PREFIX = 'binitidal'; +const CACHE_NAME = `${CACHE_PREFIX}-v${version}`; +const ASSETS = [...build, ...files, '/offline.html']; + +self.addEventListener('install', (event) => { + self.skipWaiting(); + event.waitUntil( + caches.open(CACHE_NAME).then((cache) => { + return cache.addAll(ASSETS); + }) + ); +}); + +self.addEventListener('activate', (event) => { + event.waitUntil( + (async () => { + const cacheNames = await caches.keys(); + await Promise.all( + cacheNames + .filter((name) => name.startsWith(CACHE_PREFIX) && name !== CACHE_NAME) + .map((name) => caches.delete(name)) + ); + await self.clients.claim(); + })() + ); +}); + +self.addEventListener('message', (event) => { + if (event.data?.type === 'SKIP_WAITING') { + self.skipWaiting(); + } +}); + +self.addEventListener('fetch', (event) => { + const request = event.request; + if (request.method !== 'GET') { + return; + } + + const url = new URL(request.url); + + // Only handle same-origin requests + if (url.origin !== self.location.origin) { + return; + } + + if (ASSETS.includes(url.pathname)) { + event.respondWith(cacheFirst(request)); + return; + } + + if (request.mode === 'navigate') { + event.respondWith(networkFirst(request)); + return; + } + + event.respondWith(staleWhileRevalidate(request)); +}); + +async function cacheFirst(request: Request) { + const cache = await caches.open(CACHE_NAME); + const cachedResponse = await cache.match(request); + if (cachedResponse) { + return cachedResponse; + } + const response = await fetch(request); + if (response && response.ok) { + cache.put(request, response.clone()); + } + return response; +} + +async function networkFirst(request: Request) { + const cache = await caches.open(CACHE_NAME); + try { + const response = await fetch(request); + cache.put(request, response.clone()); + return response; + } catch (error) { + const cached = await cache.match(request); + if (cached) { + return cached; + } + const fallback = await cache.match('/offline.html'); + if (fallback) { + return fallback; + } + throw error; + } +} + +async function staleWhileRevalidate(request: Request) { + const cache = await caches.open(CACHE_NAME); + const cached = await cache.match(request); + const fetchPromise = fetch(request) + .then((response) => { + if (response && response.ok) { + cache.put(request, response.clone()); + } + return response; + }) + .catch(() => undefined); + + return cached ?? (await fetchPromise) ?? (await networkFirst(request)); +} diff --git a/static/fonts/figtree-v9-latin_latin-ext-700.ttf b/static/fonts/figtree-v9-latin_latin-ext-700.ttf new file mode 100644 index 0000000000000000000000000000000000000000..cece615e6594147cb38b64a303194dd6de919b3d Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-700.ttf differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-700.woff2 b/static/fonts/figtree-v9-latin_latin-ext-700.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..a4dc6ca37f6d38cbc898153035582145dafdbec4 Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-700.woff2 differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-700italic.ttf b/static/fonts/figtree-v9-latin_latin-ext-700italic.ttf new file mode 100644 index 0000000000000000000000000000000000000000..4685af1ab18ba665efd42ff5d982c4cfdf6cceb1 Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-700italic.ttf differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-700italic.woff2 b/static/fonts/figtree-v9-latin_latin-ext-700italic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..a25d9f55f18872a644c8eebad99ad65da1ea5ff3 Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-700italic.woff2 differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-italic.ttf b/static/fonts/figtree-v9-latin_latin-ext-italic.ttf new file mode 100644 index 0000000000000000000000000000000000000000..f7e71b65e6f3fc9d69e16a23a0e2e53bd8e5107e Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-italic.ttf differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-italic.woff2 b/static/fonts/figtree-v9-latin_latin-ext-italic.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4fda59e378084e6945154c728b65c0312d7d2850 Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-italic.woff2 differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-regular.ttf b/static/fonts/figtree-v9-latin_latin-ext-regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..8f06574025224c9c4e310bc6a4fbb0ccb0ddd9ce Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-regular.ttf differ diff --git a/static/fonts/figtree-v9-latin_latin-ext-regular.woff2 b/static/fonts/figtree-v9-latin_latin-ext-regular.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..857341f7c678b1c5d85729ff9ea8d486fe2b7a04 Binary files /dev/null and b/static/fonts/figtree-v9-latin_latin-ext-regular.woff2 differ diff --git a/static/icons/apple-touch-icon.png b/static/icons/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..fff0f44ebb9450010898c8f4666ddb17cc19f7df Binary files /dev/null and b/static/icons/apple-touch-icon.png differ diff --git a/static/icons/favicon-96x96.png b/static/icons/favicon-96x96.png new file mode 100644 index 0000000000000000000000000000000000000000..251fb318ecc42bdc29df4cf5fa4214bbbb90ac62 Binary files /dev/null and b/static/icons/favicon-96x96.png differ diff --git a/static/icons/favicon.ico b/static/icons/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..e4d4e204cb679f9fe2e95271d43e5e7e40ac2675 Binary files /dev/null and b/static/icons/favicon.ico differ diff --git a/static/icons/favicon.svg b/static/icons/favicon.svg new file mode 100644 index 0000000000000000000000000000000000000000..db50bf259919f38b772dd33a2cd5408dc5002ff3 --- /dev/null +++ b/static/icons/favicon.svg @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/static/icons/web-app-manifest-192x192.png b/static/icons/web-app-manifest-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..14ffb299bab86f230a53ca3af33649572e5100d3 Binary files /dev/null and b/static/icons/web-app-manifest-192x192.png differ diff --git a/static/icons/web-app-manifest-512x512.png b/static/icons/web-app-manifest-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..980046dba92d662458f731ca685b796d4636f0f7 Binary files /dev/null and b/static/icons/web-app-manifest-512x512.png differ diff --git a/static/offline.html b/static/offline.html new file mode 100644 index 0000000000000000000000000000000000000000..2dc65b513413486c350b614334c615889fd5da2f --- /dev/null +++ b/static/offline.html @@ -0,0 +1,52 @@ + + + + + Offline | BiniLossless + + + + +
+

You\'re offline

+

+ I can\'t reach the network right now. When you\'re back online, refresh this page to + resume your groove. +

+

Return home

+
+ + diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..b6dd6670cbb07772618c4449c41f90d72edb8a74 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,3 @@ +# allow crawling everything by default +User-agent: * +Disallow: diff --git a/static/site.webmanifest b/static/site.webmanifest new file mode 100644 index 0000000000000000000000000000000000000000..7d7ddc6345b3c4f447f897c44f42361bf69638d9 --- /dev/null +++ b/static/site.webmanifest @@ -0,0 +1,24 @@ +{ + "name": "BiniLossless", + "short_name": "BiniL", + "start_url": "/", + "display": "standalone", + "background_color": "#111827", + "theme_color": "#0f172a", + "lang": "en-US", + "scope": "/", + "icons": [ + { + "src": "/icons/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/icons/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], +} \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000000000000000000000000000000000000..bef71ecbb884e906085bb64dc219b7430db324ed --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,36 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import vercel from '@sveltejs/adapter-vercel'; +import node from '@sveltejs/adapter-node'; +import cloudflare from '@sveltejs/adapter-cloudflare'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + preprocess: vitePreprocess(), + + kit: { + adapter: selectAdapter() + } +}; + +function selectAdapter() { + // Vercel automatically sets this + if (process.env.VERCEL) { + console.log('Using Vercel adapter'); + return vercel(); + } + + // Cloudflare Workers environment + if (process.env.CF_PAGES || process.env.CF_WORKER) { + console.log('Using Cloudflare adapter'); + return cloudflare(); + } + + // Docker / local / default + console.log('Using Node adapter (Docker/local)'); + return node({ + out: 'build', + precompress: true + }); +} + +export default config; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..a5567ee6bbeff262a3605b4c0e58a8c7c1443e40 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "moduleResolution": "bundler" + } + // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias + // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files + // + // To make changes to top-level options such as include and exclude, we recommend extending + // the generated config; see https://svelte.dev/docs/kit/configuration#typescript +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..fbd991a0a2b9c8c58f0fea6551acdb8c66d4debf --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,26 @@ +import devtoolsJson from 'vite-plugin-devtools-json'; +import tailwindcss from '@tailwindcss/vite'; +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig, loadEnv } from 'vite'; + +export default defineConfig(({ mode }) => { + const env = loadEnv(mode, process.cwd(), ''); + process.env = { ...process.env, ...env }; + + const parsedPort = env.PORT ? Number.parseInt(env.PORT, 10) : undefined; + + return { + plugins: [tailwindcss(), sveltekit(), devtoolsJson()], + server: { + watch: { usePolling: true }, + host: '0.0.0.0', + port: Number.isFinite(parsedPort) ? parsedPort : undefined + }, + optimizeDeps: { + exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'] + }, + ssr: { + external: ['@ffmpeg/ffmpeg', '@ffmpeg/util'] + } + }; +}); diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000000000000000000000000000000000000..92c85b5311be61ad561d29ad730f79f5bf7df6cd --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,12 @@ +{ + "name": "tidal-ui", + "main": ".svelte-kit/cloudflare/_worker.js", + "assets": { + "binding": "ASSETS", + "directory": ".svelte-kit/cloudflare" + }, + "compatibility_flags": [ + "nodejs_compat" + ], + "compatibility_date": "2024-09-23" +}