From e82c28d425e8a9fa7d6d3cc89fba48346f757430 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 08:55:46 +0000 Subject: [PATCH 01/11] Move Pling to Cloudflare Workers with PartyServer Replace the Phoenix LiveView app on Fly.io with a Cloudflare Worker: one Durable Object per room via PartyServer, and a React client served as static assets from the same Worker. Playback no longer uses the Spotify embed or the playlist-fetcher service. The host taps a plain open.spotify.com link and the song plays in their own Spotify app; other phones are buzzers. Decks are built in, pasted, or imported from a Spotify data export. Game rules are now pure functions, which fixes the old room bugs by design: - one alarm per room instead of a tick chain that could double up - presence derived from live connections; no manual room shutdown - each event sent once per connection (was subscribed twice) - one typed state shape; empty decks and the first track handled - host handed over when the host leaves Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MNqoqrQ66ouAMK8rxVyQqM --- .dockerignore | 45 - .formatter.exs | 6 - .github/workflows/ci.yml | 41 + .github/workflows/fly-deploy.yml | 18 - .gitignore | 57 +- Dockerfile | 97 - README.md | 86 +- assets/css/app.css | 232 - assets/js/app.js | 131 - assets/tailwind.colors.json | 35 - assets/tailwind.config.js | 75 - assets/vendor/tailwindcss-animate.js | 188 - assets/vendor/topbar.js | 165 - config/config.exs | 75 - config/dev.exs | 88 - config/prod.exs | 20 - config/runtime.exs | 114 - config/test.exs | 30 - fly.toml | 38 - index.html | 18 + lib/pling.ex | 9 - lib/pling/application.ex | 48 - lib/pling/mailer.ex | 3 - lib/pling/playlists.ex | 187 - lib/pling/playlists/music_library.ex | 195 - lib/pling/playlists/playlist.ex | 26 - lib/pling/playlists/track.ex | 26 - lib/pling/presence.ex | 35 - lib/pling/release.ex | 34 - lib/pling/repo.ex | 5 - lib/pling/rooms.ex | 89 - lib/pling/rooms/presence.ex | 45 - lib/pling/rooms/room/impl.ex | 180 - lib/pling/rooms/room/server.ex | 108 - lib/pling/rooms/room_state.ex | 62 - lib/pling/services/names_service.ex | 408 - lib/pling/services/ndjson_stream.ex | 94 - lib/pling/services/spotify.ex | 49 - lib/pling_web.ex | 117 - lib/pling_web/channels/presence.ex | 18 - lib/pling_web/components/component.ex | 27 - lib/pling_web/components/core_components.ex | 675 - lib/pling_web/components/helpers.ex | 343 - lib/pling_web/components/layouts.ex | 5 - .../components/layouts/app.html.heex | 6 - .../components/layouts/root.html.heex | 40 - lib/pling_web/controllers/error_html.ex | 19 - lib/pling_web/controllers/error_json.ex | 15 - lib/pling_web/controllers/login_controller.ex | 25 - lib/pling_web/controllers/page_html.ex | 5 - lib/pling_web/endpoint.ex | 55 - lib/pling_web/gettext.ex | 24 - lib/pling_web/live/home_live.ex | 31 - lib/pling_web/live/home_live.html.heex | 72 - lib/pling_web/live/room_live.ex | 512 - lib/pling_web/live/room_live.html.heex | 53 - lib/pling_web/router.ex | 85 - lib/pling_web/telemetry.ex | 92 - makefile | 56 - mix.exs | 91 - mix.lock | 71 - package-lock.json | 4675 +++++ package.json | 35 + priv/gettext/default.pot | 226 - priv/gettext/en/LC_MESSAGES/default.po | 226 - priv/gettext/en/LC_MESSAGES/errors.po | 112 - priv/gettext/errors.pot | 109 - priv/gettext/nb/LC_MESSAGES/default.po | 218 - priv/gettext/nb/LC_MESSAGES/errors.po | 102 - priv/gettext/sv/LC_MESSAGES/default.po | 226 - priv/gettext/sv/LC_MESSAGES/errors.po | 102 - priv/repo/migrations/.formatter.exs | 4 - ...250104194553_track_playlist_join_table.exs | 53 - priv/repo/seeds.exs | 28 - priv/static/audio/bell.mp3 | Bin 17179 -> 0 bytes priv/static/robots.txt | 5 - {assets/static => public/audio}/bell.mp3 | Bin {priv/static => public}/favicon.ico | Bin {priv/static/images => public}/logo.svg | 0 rel/overlays/bin/migrate | 5 - rel/overlays/bin/migrate.bat | 1 - rel/overlays/bin/server | 5 - rel/overlays/bin/server.bat | 2 - src/client/App.tsx | 38 + src/client/Home.tsx | 85 + src/client/Room.tsx | 102 + src/client/components/Countdown.tsx | 15 + src/client/components/DeckPicker.tsx | 129 + src/client/components/HostPanel.tsx | 121 + src/client/components/PlayerPanel.tsx | 83 + src/client/components/Scoreboard.tsx | 73 + src/client/components/SettingsModal.tsx | 138 + src/client/components/ShareModal.tsx | 37 + src/client/components/TrackCard.tsx | 11 + src/client/components/ui.tsx | 98 + src/client/format.ts | 18 + src/client/identity.ts | 45 + src/client/main.tsx | 10 + src/client/styles.css | 90 + src/client/useRoom.ts | 95 + src/server/index.ts | 209 + src/shared/decks.ts | 175 + src/shared/game.ts | 455 + src/shared/names.ts | 392 + src/shared/spotify.ts | 120 + src/shared/view.ts | 61 + test/game.test.ts | 259 + test/pling/playlists/music_library_test.exs | 84 - test/pling/rooms/presence_test.exs | 0 test/pling/rooms/room_state_test.exs | 49 - test/pling/services/ndjson_stream_test.exs | 73 - .../pling_web/controllers/error_html_test.exs | 14 - .../pling_web/controllers/error_json_test.exs | 12 - test/pling_web/smoke_test.exs | 9 - test/spotify.test.ts | 70 + test/support/conn_case.ex | 38 - test/support/data_case.ex | 58 - test/test_helper.exs | 2 - tsconfig.app.json | 17 + tsconfig.json | 4 + tsconfig.worker.json | 15 + vite.config.ts | 8 + vitest.config.ts | 7 + worker-configuration.d.ts | 16951 ++++++++++++++++ wrangler.jsonc | 17 + 125 files changed, 24795 insertions(+), 7225 deletions(-) delete mode 100644 .dockerignore delete mode 100644 .formatter.exs create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/fly-deploy.yml delete mode 100644 Dockerfile delete mode 100644 assets/css/app.css delete mode 100644 assets/js/app.js delete mode 100644 assets/tailwind.colors.json delete mode 100644 assets/tailwind.config.js delete mode 100644 assets/vendor/tailwindcss-animate.js delete mode 100644 assets/vendor/topbar.js delete mode 100644 config/config.exs delete mode 100644 config/dev.exs delete mode 100644 config/prod.exs delete mode 100644 config/runtime.exs delete mode 100644 config/test.exs delete mode 100644 fly.toml create mode 100644 index.html delete mode 100644 lib/pling.ex delete mode 100644 lib/pling/application.ex delete mode 100644 lib/pling/mailer.ex delete mode 100644 lib/pling/playlists.ex delete mode 100644 lib/pling/playlists/music_library.ex delete mode 100644 lib/pling/playlists/playlist.ex delete mode 100644 lib/pling/playlists/track.ex delete mode 100644 lib/pling/presence.ex delete mode 100644 lib/pling/release.ex delete mode 100644 lib/pling/repo.ex delete mode 100644 lib/pling/rooms.ex delete mode 100644 lib/pling/rooms/presence.ex delete mode 100644 lib/pling/rooms/room/impl.ex delete mode 100644 lib/pling/rooms/room/server.ex delete mode 100644 lib/pling/rooms/room_state.ex delete mode 100644 lib/pling/services/names_service.ex delete mode 100644 lib/pling/services/ndjson_stream.ex delete mode 100644 lib/pling/services/spotify.ex delete mode 100644 lib/pling_web.ex delete mode 100644 lib/pling_web/channels/presence.ex delete mode 100644 lib/pling_web/components/component.ex delete mode 100644 lib/pling_web/components/core_components.ex delete mode 100644 lib/pling_web/components/helpers.ex delete mode 100644 lib/pling_web/components/layouts.ex delete mode 100644 lib/pling_web/components/layouts/app.html.heex delete mode 100644 lib/pling_web/components/layouts/root.html.heex delete mode 100644 lib/pling_web/controllers/error_html.ex delete mode 100644 lib/pling_web/controllers/error_json.ex delete mode 100644 lib/pling_web/controllers/login_controller.ex delete mode 100644 lib/pling_web/controllers/page_html.ex delete mode 100644 lib/pling_web/endpoint.ex delete mode 100644 lib/pling_web/gettext.ex delete mode 100644 lib/pling_web/live/home_live.ex delete mode 100644 lib/pling_web/live/home_live.html.heex delete mode 100644 lib/pling_web/live/room_live.ex delete mode 100644 lib/pling_web/live/room_live.html.heex delete mode 100644 lib/pling_web/router.ex delete mode 100644 lib/pling_web/telemetry.ex delete mode 100644 makefile delete mode 100644 mix.exs delete mode 100644 mix.lock create mode 100644 package-lock.json create mode 100644 package.json delete mode 100644 priv/gettext/default.pot delete mode 100644 priv/gettext/en/LC_MESSAGES/default.po delete mode 100644 priv/gettext/en/LC_MESSAGES/errors.po delete mode 100644 priv/gettext/errors.pot delete mode 100644 priv/gettext/nb/LC_MESSAGES/default.po delete mode 100644 priv/gettext/nb/LC_MESSAGES/errors.po delete mode 100644 priv/gettext/sv/LC_MESSAGES/default.po delete mode 100644 priv/gettext/sv/LC_MESSAGES/errors.po delete mode 100644 priv/repo/migrations/.formatter.exs delete mode 100644 priv/repo/migrations/20250104194553_track_playlist_join_table.exs delete mode 100644 priv/repo/seeds.exs delete mode 100644 priv/static/audio/bell.mp3 delete mode 100644 priv/static/robots.txt rename {assets/static => public/audio}/bell.mp3 (100%) rename {priv/static => public}/favicon.ico (100%) rename {priv/static/images => public}/logo.svg (100%) delete mode 100755 rel/overlays/bin/migrate delete mode 100755 rel/overlays/bin/migrate.bat delete mode 100755 rel/overlays/bin/server delete mode 100755 rel/overlays/bin/server.bat create mode 100644 src/client/App.tsx create mode 100644 src/client/Home.tsx create mode 100644 src/client/Room.tsx create mode 100644 src/client/components/Countdown.tsx create mode 100644 src/client/components/DeckPicker.tsx create mode 100644 src/client/components/HostPanel.tsx create mode 100644 src/client/components/PlayerPanel.tsx create mode 100644 src/client/components/Scoreboard.tsx create mode 100644 src/client/components/SettingsModal.tsx create mode 100644 src/client/components/ShareModal.tsx create mode 100644 src/client/components/TrackCard.tsx create mode 100644 src/client/components/ui.tsx create mode 100644 src/client/format.ts create mode 100644 src/client/identity.ts create mode 100644 src/client/main.tsx create mode 100644 src/client/styles.css create mode 100644 src/client/useRoom.ts create mode 100644 src/server/index.ts create mode 100644 src/shared/decks.ts create mode 100644 src/shared/game.ts create mode 100644 src/shared/names.ts create mode 100644 src/shared/spotify.ts create mode 100644 src/shared/view.ts create mode 100644 test/game.test.ts delete mode 100644 test/pling/playlists/music_library_test.exs delete mode 100644 test/pling/rooms/presence_test.exs delete mode 100644 test/pling/rooms/room_state_test.exs delete mode 100644 test/pling/services/ndjson_stream_test.exs delete mode 100644 test/pling_web/controllers/error_html_test.exs delete mode 100644 test/pling_web/controllers/error_json_test.exs delete mode 100644 test/pling_web/smoke_test.exs create mode 100644 test/spotify.test.ts delete mode 100644 test/support/conn_case.ex delete mode 100644 test/support/data_case.ex delete mode 100644 test/test_helper.exs create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json create mode 100644 tsconfig.worker.json create mode 100644 vite.config.ts create mode 100644 vitest.config.ts create mode 100644 worker-configuration.d.ts create mode 100644 wrangler.jsonc diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 61a7393..0000000 --- a/.dockerignore +++ /dev/null @@ -1,45 +0,0 @@ -# This file excludes paths from the Docker build context. -# -# By default, Docker's build context includes all files (and folders) in the -# current directory. Even if a file isn't copied into the container it is still sent to -# the Docker daemon. -# -# There are multiple reasons to exclude files from the build context: -# -# 1. Prevent nested folders from being copied into the container (ex: exclude -# /assets/node_modules when copying /assets) -# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc) -# 3. Avoid sending files containing sensitive information -# -# More information on using .dockerignore is available here: -# https://docs.docker.com/engine/reference/builder/#dockerignore-file - -.dockerignore - -# Ignore git, but keep git HEAD and refs to access current commit hash if needed: -# -# $ cat .git/HEAD | awk '{print ".git/"$2}' | xargs cat -# d0b8727759e1e0e7aa3d41707d12376e373d5ecc -.git -!.git/HEAD -!.git/refs - -# Common development/test artifacts -/cover/ -/doc/ -/test/ -/tmp/ -.elixir_ls - -# Mix artifacts -/_build/ -/deps/ -*.ez - -# Generated on crash by the VM -erl_crash.dump - -# Static artifacts - These should be fetched and built inside the Docker image -/assets/node_modules/ -/priv/static/assets/ -/priv/static/cache_manifest.json diff --git a/.formatter.exs b/.formatter.exs deleted file mode 100644 index ef8840c..0000000 --- a/.formatter.exs +++ /dev/null @@ -1,6 +0,0 @@ -[ - import_deps: [:ecto, :ecto_sql, :phoenix], - subdirectories: ["priv/*/migrations"], - plugins: [Phoenix.LiveView.HTMLFormatter], - inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"] -] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a885244 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: ["**"] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run typecheck + - run: npm test + - run: npm run build + + deploy: + # Deploys main to Cloudflare. Needs the CLOUDFLARE_API_TOKEN and + # CLOUDFLARE_ACCOUNT_ID repository secrets (see README). + needs: test + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + runs-on: ubuntu-latest + concurrency: deploy + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run build + - uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: deploy diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml deleted file mode 100644 index b0c246e..0000000 --- a/.github/workflows/fly-deploy.yml +++ /dev/null @@ -1,18 +0,0 @@ -# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ - -name: Fly Deploy -on: - push: - branches: - - main -jobs: - deploy: - name: Deploy app - runs-on: ubuntu-latest - concurrency: deploy-group # optional: ensure only one action runs at a time - steps: - - uses: actions/checkout@v4 - - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/.gitignore b/.gitignore index 83e8450..53773cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,49 +1,8 @@ -# The directory Mix will write compiled artifacts to. -/_build/ - -# If you run "mix test --cover", coverage assets end up here. -/cover/ - -# The directory Mix downloads your dependencies sources to. -/deps/ - -# Where 3rd-party dependencies like ExDoc output generated docs. -/doc/ - -# Ignore .fetch files in case you like to edit your project deps locally. -/.fetch - -# If the VM crashes, it generates a dump, let's ignore it too. -erl_crash.dump - -# Also ignore archive artifacts (built via "mix archive.build"). -*.ez - -# Temporary files, for example, from tests. -/tmp/ - -# Ignore package tarball (built via "mix hex.build"). -pling-*.tar - -# Ignore assets that are produced by build tools. -/priv/static/assets/ - -# Ignore digested assets cache. -/priv/static/cache_manifest.json - -# In case you use Node.js/npm, you want to ignore these. -npm-debug.log -/assets/node_modules/ - -# Database files -*.db -*.db-* - -*.duckdb -*.duckdb.* - -*.db.wal - -.elixir_ls - -*.env \ No newline at end of file +node_modules/ +dist/ +.wrangler/ +.dev.vars* +!.dev.vars.example +*.log +.DS_Store +coverage/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 5397d9b..0000000 --- a/Dockerfile +++ /dev/null @@ -1,97 +0,0 @@ -# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian -# instead of Alpine to avoid DNS resolution issues in production. -# -# https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu -# https://hub.docker.com/_/ubuntu?tab=tags -# -# This file is based on these images: -# -# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image -# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20241202-slim - for the release image -# - https://pkgs.org/ - resource for finding needed packages -# - Ex: hexpm/elixir:1.17.3-erlang-27.2-debian-bullseye-20241202-slim -# -ARG ELIXIR_VERSION=1.17.3 -ARG OTP_VERSION=27.2 -ARG DEBIAN_VERSION=bullseye-20241202-slim - -ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" -ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" - -FROM ${BUILDER_IMAGE} as builder - -# install build dependencies -RUN apt-get update -y && apt-get install -y build-essential git \ - && apt-get clean && rm -f /var/lib/apt/lists/*_* - -# prepare build dir -WORKDIR /app - -# install hex + rebar -RUN mix local.hex --force && \ - mix local.rebar --force - -# set build ENV -ENV MIX_ENV="prod" - -# install mix dependencies -COPY mix.exs mix.lock ./ -RUN mix deps.get --only $MIX_ENV -RUN mkdir config - -# copy compile-time config files before we compile dependencies -# to ensure any relevant config change will trigger the dependencies -# to be re-compiled. -COPY config/config.exs config/${MIX_ENV}.exs config/ -RUN mix deps.compile - -COPY priv priv - -COPY lib lib - -COPY assets assets - -# compile assets -RUN mix assets.deploy - -# Compile the release -RUN mix compile - -# Changes to config/runtime.exs don't require recompiling the code -COPY config/runtime.exs config/ - -COPY rel rel -RUN mix release - -# start a new build stage so that the final image will only contain -# the compiled release and other runtime necessities -FROM ${RUNNER_IMAGE} - -RUN apt-get update -y && \ - apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \ - && apt-get clean && rm -f /var/lib/apt/lists/*_* - -# Set the locale -RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen - -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 - -WORKDIR "/app" -RUN chown nobody /app - -# set runner ENV -ENV MIX_ENV="prod" - -# Only copy the final release from the build stage -COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/pling ./ - -USER nobody - -# If using an environment that doesn't automatically reap zombie processes, it is -# advised to add an init process such as tini via `apt-get install` -# above and adding an entrypoint. See https://github.com/krallin/tini for details -# ENTRYPOINT ["/tini", "--"] - -CMD ["/app/bin/server"] diff --git a/README.md b/README.md index f4f033a..3f2e534 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,85 @@ # Pling +A real-time music buzzer game for the living room. One phone is the host and +plays the songs in Spotify; everyone else's phone is a buzzer. First to hit +**PLING** answers, and the host judges. -This multiplayer game is a tech demo, and a learning project. I think format is quite promising, not a lot of people makes ten real-time games every month, but I think it might just be possible if we build the right foundations first. This project is about finding the proper foundations. +It started as a tech demo for building real-time games quickly. This version +runs on Cloudflare: one [Durable Object](https://developers.cloudflare.com/durable-objects/) +per room via [PartyServer](https://github.com/cloudflare/partykit/tree/main/packages/partyserver), +and a React app served as static assets from the same Worker. +## How a game works -Server code is in https://github.com/kluvin/pling/tree/main/lib/pling +1. The host creates a room (Red vs Blue, or free-for-all) and shares the code or QR code. +2. The host taps **Play in Spotify**: the song opens in the host's own Spotify app + (connect that phone to a speaker) and the round timer starts. +3. Players buzz from their phones. In Red vs Blue, one phone can be a shared + buzzer with a button per team. +4. The host pauses the music and marks the answer right or wrong. A wrong answer + locks that team (or player) out for the rest of the song. -Client code is in https://github.com/kluvin/pling/tree/main/lib/pling_web +**Music:** pick a built-in deck, paste a list of songs or Spotify track links, +import playlists from your Spotify data export, or choose **Own music** and play +anything from any app. -Git hygiene is optional. +### Spotify and compliance -"eugh" has to be the worst worst way to name your first commit. +Pling does not use Spotify's Web API, SDKs or embedded player. It only shows +plain `open.spotify.com` links that the host taps, so playback happens in the +host's own Spotify app on their own account. Song lists come from the built-in +decks or from what the host pastes or imports from their own data export. +Starter decks only store artist and title, so their links open a Spotify search; +pasted or imported tracks link straight to the song. Pling is not affiliated +with Spotify. +## Code layout -To start your Phoenix server: +| Path | What it is | +|---|---| +| `src/shared/game.ts` | All game rules as pure functions (no I/O, time passed in). | +| `src/shared/view.ts` | What each client is sent; players never see the song until it's revealed. | +| `src/shared/spotify.ts` | Spotify links, pasted lists and data-export parsing. | +| `src/shared/decks.ts` | Built-in starter decks. | +| `src/server/index.ts` | The Worker and the `Room` Durable Object. | +| `src/client/` | The React app. | +| `test/` | Unit tests (Vitest). | - * Run `mix setup` to install and setup dependencies - * Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server` +The room server follows one loop: apply the change with the pure rules, save the +state to Durable Object storage, set a single alarm for the next thing that has +to happen (round timeout, host handover, deleting an empty room), and send each +connection its view. Rooms hibernate when idle, so quiet rooms cost nothing. -Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. +## Development -Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html). +```bash +npm install +npm run dev # Vite + the real Workers runtime, with hot reload +npm test # unit tests +npm run typecheck +npm run preview # build, then run the production build locally +``` -## Learn more +## Deploying to Cloudflare - * Official website: https://www.phoenixframework.org/ - * Guides: https://hexdocs.pm/phoenix/overview.html - * Docs: https://hexdocs.pm/phoenix - * Forum: https://elixirforum.com/c/phoenix-forum - * Source: https://github.com/phoenixframework/phoenix +Run it once by hand: + +```bash +npx wrangler login +npm run deploy +``` + +Wrangler prints the `*.workers.dev` URL. Durable Objects with SQLite storage are +available on the Workers Free plan. + +For automatic deploys on every push to `main`, add two repository secrets in +GitHub (Settings → Secrets and variables → Actions): + +- `CLOUDFLARE_ACCOUNT_ID`: shown in the Cloudflare dashboard sidebar. +- `CLOUDFLARE_API_TOKEN`: create one from the **Edit Cloudflare Workers** template. + +## History + +The first version was a Phoenix LiveView app on Fly.io using the Spotify embed +player and a separate playlist-fetcher service. It's in the git history before +the move to Cloudflare. diff --git a/assets/css/app.css b/assets/css/app.css deleted file mode 100644 index 46dc3dc..0000000 --- a/assets/css/app.css +++ /dev/null @@ -1,232 +0,0 @@ -@import "tailwindcss"; - -/* This file is for your main application CSS */ - - -:root { - --accent: 136, 58, 234; - --accent-light: 224, 204, 250; - --accent-dark: 49, 10, 101; - --accent-gradient: linear-gradient( - 45deg, - rgb(var(--accent)), - rgb(var(--accent-light)) 30%, - white 60% - ); -} - -/* https://stackoverflow.com/a/47131647 */ -button { - touch-action: manipulation; -} - -html { - overscroll-behavior: none; - ::-webkit-scrollbar { display: none; } - @apply bg-[#FFFDF2]; - /* @apply bg-[#FFFBEB]; */ - - font-family: system-ui, sans-serif; - font-weight: 600; - background-size: 224px; -} -code { - font-family: - Menlo, - Monaco, - Lucida Console, - Liberation Mono, - DejaVu Sans Mono, - Bitstream Vera Sans Mono, - Courier New, - monospace; -} - -:root { ---shadow-color: 213deg 10% 57%; ---shadow-color-secondary: #047857 ---shadow-elevation-a: -0.5px 0.5px 0.8px hsl(var(--shadow-color) / 0.34), -0.9px 0.8px 1.4px -1.2px hsl(var(--shadow-color) / 0.34), -2.1px 1.9px 3.2px -2.4px hsl(var(--shadow-color) / 0.35); ---shadow-elevation-b: -0.5px 0.5px 0.8px hsl(var(--shadow-color) / 0.35), -1.8px 1.6px 2.7px -0.8px hsl(var(--shadow-color) / 0.36), -4.4px 4px 6.7px -1.6px hsl(var(--shadow-color) / 0.36), -10.6px 9.7px 16.3px -2.4px hsl(var(--shadow-color) / 0.36); ---shadow-elevation-c: -0.5px 0.5px 0.8px hsl(var(--shadow-color) / 0.33), -3.1px 2.9px 4.8px -0.4px hsl(var(--shadow-color) / 0.33), -5.8px 5.4px 9px -0.7px hsl(var(--shadow-color) / 0.33), -9.5px 8.8px 14.7px -1px hsl(var(--shadow-color) / 0.33), -15.2px 13.9px 23.3px -1.4px hsl(var(--shadow-color) / 0.34), -23.7px 21.7px 36.4px -1.8px hsl(var(--shadow-color) / 0.34), -35.9px 33px 55.2px -2.1px hsl(var(--shadow-color) / 0.34), -52.9px 48.5px 81.3px -2.4px hsl(var(--shadow-color) / 0.34); - ---shadow-elevation-c-secondary: -0.5px 0.5px 0.8px hsl(var(--shadow-color-secondary) / 0.33), -3.1px 2.9px 4.8px -0.4px hsl(var(--shadow-color-secondary) / 0.33), -5.8px 5.4px 9px -0.7px hsl(var(--shadow-color-secondary) / 0.33), -9.5px 8.8px 14.7px -1px hsl(var(--shadow-color-secondary) / 0.33), -15.2px 13.9px 23.3px -1.4px hsl(var(--shadow-color-secondary) / 0.34), -23.7px 21.7px 36.4px -1.8px hsl(var(--shadow-color-secondary) / 0.34), -35.9px 33px 55.2px -2.1px hsl(var(--shadow-color-secondary) / 0.34), -52.9px 48.5px 81.3px -2.4px hsl(var(--shadow-color-secondary) / 0.34); -} - -/* Define classes to apply these shadows */ -.shadow-a { -box-shadow: var(--shadow-elevation-a); -} - -.shadow-b { -box-shadow: var(--shadow-elevation-b); -} - -.shadow-c { -box-shadow: var(--shadow-elevation-c); -} - -.shadow-c-secondary { -box-shadow: var(--shadow-elevation-c); -} - - -/* button */ -.pushable { - position: relative; - border: none; - background: transparent; - padding: 0; - cursor: pointer; - outline-offset: 4px; - transition: filter 250ms; -} -.shadow { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - border-radius: 999px; - background: hsl(0deg 0% 0% / 0.25); - will-change: transform; - transform: translateY(12px); - transition: - transform - 600ms - cubic-bezier(.3, .7, .4, 1); -} -.edge { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - border-radius: 999px; -} -.front { - display: block; - position: relative; - padding: 9rem; - border-radius: 999px; - font-size: 1.25rem; - color: white; - will-change: transform; - transform: translateY(-4px); - transition: - transform - 600ms - cubic-bezier(.3, .7, .4, 1); -} -.pushable:hover { - filter: brightness(110%); -} -.pushable:hover .front { - transform: translateY(-6px); - transition: - transform - 250ms - cubic-bezier(.3, .7, .4, 1.5); -} -.pushable:active .front { - transform: translateY(-2px); - transition: transform 34ms; -} -.pushable:hover .shadow { - transform: translateY(4px); - transition: - transform - 250ms - cubic-bezier(.3, .7, .4, 1.5); -} -.pushable:active .shadow { - transform: translateY(1px); - transition: transform 34ms; -} -.pushable:focus:not(:focus-visible) { - outline: none; -} - - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 224 71.4% 4.1%; - --card: 0 0% 100%; - --card-foreground: 224 71.4% 4.1%; - --popover: 0 0% 100%; - --popover-foreground: 224 71.4% 4.1%; - --primary: 220.9 39.3% 11%; - --primary-foreground: 210 20% 98%; - --secondary: 220 14.3% 95.9%; - --secondary-foreground: 220.9 39.3% 11%; - --muted: 220 14.3% 95.9%; - --muted-foreground: 220 8.9% 46.1%; - --accent: 220 14.3% 95.9%; - --accent-foreground: 220.9 39.3% 11%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 210 20% 98%; - --border: 220 13% 91%; - --input: 220 13% 91%; - --ring: 224 71.4% 4.1%; - --radius: 1rem; - --chart-1: 12 76% 61%; - --chart-2: 173 58% 39%; - --chart-3: 197 37% 24%; - --chart-4: 43 74% 66%; - --chart-5: 27 87% 67%; -} - -.dark { - --background: 224 71.4% 4.1%; - --foreground: 210 20% 98%; - --card: 224 71.4% 4.1%; - --card-foreground: 210 20% 98%; - --popover: 224 71.4% 4.1%; - --popover-foreground: 210 20% 98%; - --primary: 210 20% 98%; - --primary-foreground: 220.9 39.3% 11%; - --secondary: 215 27.9% 16.9%; - --secondary-foreground: 210 20% 98%; - --muted: 215 27.9% 16.9%; - --muted-foreground: 217.9 10.6% 64.9%; - --accent: 215 27.9% 16.9%; - --accent-foreground: 210 20% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 20% 98%; - --border: 215 27.9% 16.9%; - --input: 215 27.9% 16.9%; - --ring: 216 12.2% 83.9%; - --chart-1: 220 70% 50%; - --chart-2: 160 60% 45%; - --chart-3: 30 80% 55%; - --chart-4: 280 65% 60%; - --chart-5: 340 75% 55%; -} - - * { - border-color: hsl(var(--border)) !important; - } -} diff --git a/assets/js/app.js b/assets/js/app.js deleted file mode 100644 index b4acbb6..0000000 --- a/assets/js/app.js +++ /dev/null @@ -1,131 +0,0 @@ -// assets/js/app.js - -import "phoenix_html"; -import { Socket } from "phoenix"; -import { LiveSocket } from "phoenix_live_view"; -import topbar from "../vendor/topbar"; - -let csrfToken = document - .querySelector("meta[name='csrf-token']") - .getAttribute("content"); - -let togglePlayLocked = false; - -let Hooks = { - PlingButton: { - mounted() { - this.el.addEventListener("pointerdown", (e) => { - const button = e.currentTarget.querySelector("button"); - if (!button.disabled) { - this.handlePointerDown(); - } - }); - }, - - handlePointerDown() { - console.log("click"); - setTimeout(() => { - if (togglePlayLocked) { - this.pushEvent("toggle_play"); - window.EmbedController?.togglePlay(); - const wrapper = document.querySelector(".embed-wrapper"); - if (wrapper) { - // wrapper.classList.toggle("hidden"); - } - } else { - this.pushEvent("toggle_play"); - window.EmbedController?.togglePlay(); - const wrapper = document.querySelector(".embed-wrapper"); - if (wrapper) { - // wrapper.classList.toggle("hidden"); - } - } - }, 300); - }, - }, -}; - -let liveSocket = new LiveSocket("/live", Socket, { - longPollFallbackMs: 2500, - params: { _csrf_token: csrfToken }, - hooks: Hooks, -}); - -// Show progress bar on live navigation and form submits -topbar.config({ barColors: { 0: "#29d" }, shadowColor: "rgba(0,0,0,.3)" }); -window.addEventListener("phx:page-loading-start", (_info) => topbar.show(300)); -window.addEventListener("phx:page-loading-stop", (_info) => topbar.hide()); - -window.onSpotifyIframeApiReady = (IFrameAPI) => { - console.log("Spotify IFrame API ready"); - const element = document.getElementById("embed-iframe"); - if (!element) { - console.warn("Spotify embed iframe not found"); - return; - } - - const initialTrack = element.getAttribute("data-initial-track"); - const callback = (EmbedController) => { - console.log("Spotify Embed Controller initialized"); - window.EmbedController = EmbedController; - }; - - let options = { - uri: initialTrack || "spotify:track:3SFXsFpeGmBTtQvKiwYMDA", - theme: "dark", - }; - - setTimeout(() => { - console.log("Creating Spotify controller with options:", options); - IFrameAPI.createController(element, options, callback); - }, 0); -}; - -window.addEventListener("phx:spotify:load_track", (event) => { - const track = event.detail.track; - console.log("Loading track:", track.uri); - window.EmbedController?.loadUri(track.uri); - - togglePlayLocked = true; - setTimeout(() => { - togglePlayLocked = false; - }, 200); -}); - -window.addEventListener("phx:ring_bell", (event) => { - console.log("Playing bell sound"); - const startTime = event.detail.start_time; - const now = Date.now(); - - const bell = document.getElementById("bell"); - bell?.play(); -}); - -window.addEventListener("popstate", (_event) => { - console.log("Browser back detected - pausing player"); - window.EmbedController?.pause(); -}); - -window.addEventListener("phx:spotify:play", (_event) => { - window.EmbedController?.play(); - const wrapper = document.querySelector(".embed-wrapper"); - // if (wrapper) wrapper.classList.remove("hidden"); -}); - -window.addEventListener("phx:spotify:pause", (_event) => { - window.EmbedController?.pause(); - const wrapper = document.querySelector(".embed-wrapper"); - // if (wrapper) wrapper.classList.add("hidden"); -}); - -// connect if there are any LiveViews on the page -liveSocket.connect(); - -window.liveSocket = liveSocket; - -// Allows to execute JS commands from the server -window.addEventListener("phx:js-exec", ({detail}) => { - document.querySelectorAll(detail.to).forEach(el => { - liveSocket.execJS(el, el.getAttribute(detail.attr)) - }) -}) diff --git a/assets/tailwind.colors.json b/assets/tailwind.colors.json deleted file mode 100644 index bb1841b..0000000 --- a/assets/tailwind.colors.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "accent": { - "DEFAULT": "hsl(var(--accent))", - "foreground": "hsl(var(--accent-foreground))" - }, - "background": "hsl(var(--background))", - "border": "hsl(var(--border))", - "card": { - "DEFAULT": "hsl(var(--card))", - "foreground": "hsl(var(--card-foreground))" - }, - "destructive": { - "DEFAULT": "hsl(var(--destructive))", - "foreground": "hsl(var(--destructive-foreground))" - }, - "foreground": "hsl(var(--foreground))", - "input": "hsl(var(--input))", - "muted": { - "DEFAULT": "hsl(var(--muted))", - "foreground": "hsl(var(--muted-foreground))" - }, - "popover": { - "DEFAULT": "hsl(var(--popover))", - "foreground": "hsl(var(--popover-foreground))" - }, - "primary": { - "DEFAULT": "hsl(var(--primary))", - "foreground": "hsl(var(--primary-foreground))" - }, - "ring": "hsl(var(--ring))", - "secondary": { - "DEFAULT": "hsl(var(--secondary))", - "foreground": "hsl(var(--secondary-foreground))" - } -} diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js deleted file mode 100644 index 82e04ba..0000000 --- a/assets/tailwind.config.js +++ /dev/null @@ -1,75 +0,0 @@ -// See the Tailwind configuration guide for advanced usage -// https://tailwindcss.com/docs/configuration - -const plugin = require("tailwindcss/plugin") -const fs = require("fs") -const path = require("path") - -module.exports = { - content: [ - "./js/**/*.js", - "../lib/pling_web.ex", - "../lib/pling_web/**/*.*ex" - ], - theme: { - extend: { - colors: require("./tailwind.colors.json") - }, - }, - plugins: [ - require("@tailwindcss/typography"), - require("./vendor/tailwindcss-animate"), - require("@tailwindcss/forms"), - // Allows prefixing tailwind classes with LiveView classes to add rules - // only when LiveView classes are applied, for example: - // - //
- // - plugin(({addVariant}) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])), - plugin(({addVariant}) => addVariant("phx-click-loading", [".phx-click-loading&", ".phx-click-loading &"])), - plugin(({addVariant}) => addVariant("phx-submit-loading", [".phx-submit-loading&", ".phx-submit-loading &"])), - plugin(({addVariant}) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"])), - - // Embeds Heroicons (https://heroicons.com) into your app.css bundle - // See your `CoreComponents.icon/1` for more information. - // - plugin(function({matchComponents, theme}) { - let iconsDir = path.join(__dirname, "../deps/heroicons/optimized") - let values = {} - let icons = [ - ["", "/24/outline"], - ["-solid", "/24/solid"], - ["-mini", "/20/solid"], - ["-micro", "/16/solid"] - ] - icons.forEach(([suffix, dir]) => { - fs.readdirSync(path.join(iconsDir, dir)).forEach(file => { - let name = path.basename(file, ".svg") + suffix - values[name] = {name, fullPath: path.join(iconsDir, dir, file)} - }) - }) - matchComponents({ - "hero": ({name, fullPath}) => { - let content = fs.readFileSync(fullPath).toString().replace(/\r?\n|\r/g, "") - let size = theme("spacing.6") - if (name.endsWith("-mini")) { - size = theme("spacing.5") - } else if (name.endsWith("-micro")) { - size = theme("spacing.4") - } - return { - [`--hero-${name}`]: `url('data:image/svg+xml;utf8,${content}')`, - "-webkit-mask": `var(--hero-${name})`, - "mask": `var(--hero-${name})`, - "mask-repeat": "no-repeat", - "background-color": "currentColor", - "vertical-align": "middle", - "display": "inline-block", - "width": size, - "height": size - } - } - }, {values}) - }) - ] -} diff --git a/assets/vendor/tailwindcss-animate.js b/assets/vendor/tailwindcss-animate.js deleted file mode 100644 index 1021698..0000000 --- a/assets/vendor/tailwindcss-animate.js +++ /dev/null @@ -1,188 +0,0 @@ -const plugin = require("tailwindcss/plugin") - -function filterDefault(values) { - return Object.fromEntries( - Object.entries(values).filter(([key]) => key !== "DEFAULT"), - ) -} - -module.exports = plugin( - ({ addUtilities, matchUtilities, theme }) => { - addUtilities({ - "@keyframes enter": theme("keyframes.enter"), - "@keyframes exit": theme("keyframes.exit"), - ".animate-in": { - animationName: "enter", - animationDuration: theme("animationDuration.DEFAULT"), - "--tw-enter-opacity": "initial", - "--tw-enter-scale": "initial", - "--tw-enter-rotate": "initial", - "--tw-enter-translate-x": "initial", - "--tw-enter-translate-y": "initial", - }, - ".animate-out": { - animationName: "exit", - animationDuration: theme("animationDuration.DEFAULT"), - "--tw-exit-opacity": "initial", - "--tw-exit-scale": "initial", - "--tw-exit-rotate": "initial", - "--tw-exit-translate-x": "initial", - "--tw-exit-translate-y": "initial", - }, - }) - - matchUtilities( - { - "fade-in": (value) => ({ "--tw-enter-opacity": value }), - "fade-out": (value) => ({ "--tw-exit-opacity": value }), - }, - { values: theme("animationOpacity") }, - ) - - matchUtilities( - { - "zoom-in": (value) => ({ "--tw-enter-scale": value }), - "zoom-out": (value) => ({ "--tw-exit-scale": value }), - }, - { values: theme("animationScale") }, - ) - - matchUtilities( - { - "spin-in": (value) => ({ "--tw-enter-rotate": value }), - "spin-out": (value) => ({ "--tw-exit-rotate": value }), - }, - { values: theme("animationRotate") }, - ) - - matchUtilities( - { - "slide-in-from-top": (value) => ({ - "--tw-enter-translate-y": `-${value}`, - }), - "slide-in-from-bottom": (value) => ({ - "--tw-enter-translate-y": value, - }), - "slide-in-from-left": (value) => ({ - "--tw-enter-translate-x": `-${value}`, - }), - "slide-in-from-right": (value) => ({ - "--tw-enter-translate-x": value, - }), - "slide-out-to-top": (value) => ({ - "--tw-exit-translate-y": `-${value}`, - }), - "slide-out-to-bottom": (value) => ({ - "--tw-exit-translate-y": value, - }), - "slide-out-to-left": (value) => ({ - "--tw-exit-translate-x": `-${value}`, - }), - "slide-out-to-right": (value) => ({ - "--tw-exit-translate-x": value, - }), - }, - { values: theme("animationTranslate") }, - ) - - matchUtilities( - { duration: (value) => ({ animationDuration: value }) }, - { values: filterDefault(theme("animationDuration")) }, - ) - - matchUtilities( - { delay: (value) => ({ animationDelay: value }) }, - { values: theme("animationDelay") }, - ) - - matchUtilities( - { ease: (value) => ({ animationTimingFunction: value }) }, - { values: filterDefault(theme("animationTimingFunction")) }, - ) - - addUtilities({ - ".running": { animationPlayState: "running" }, - ".paused": { animationPlayState: "paused" }, - }) - - matchUtilities( - { "fill-mode": (value) => ({ animationFillMode: value }) }, - { values: theme("animationFillMode") }, - ) - - matchUtilities( - { direction: (value) => ({ animationDirection: value }) }, - { values: theme("animationDirection") }, - ) - - matchUtilities( - { repeat: (value) => ({ animationIterationCount: value }) }, - { values: theme("animationRepeat") }, - ) - }, - { - theme: { - extend: { - animationDelay: ({ theme }) => ({ - ...theme("transitionDelay"), - }), - animationDuration: ({ theme }) => ({ - 0: "0ms", - ...theme("transitionDuration"), - }), - animationTimingFunction: ({ theme }) => ({ - ...theme("transitionTimingFunction"), - }), - animationFillMode: { - none: "none", - forwards: "forwards", - backwards: "backwards", - both: "both", - }, - animationDirection: { - normal: "normal", - reverse: "reverse", - alternate: "alternate", - "alternate-reverse": "alternate-reverse", - }, - animationOpacity: ({ theme }) => ({ - DEFAULT: 0, - ...theme("opacity"), - }), - animationTranslate: ({ theme }) => ({ - DEFAULT: "100%", - ...theme("translate"), - }), - animationScale: ({ theme }) => ({ - DEFAULT: 0, - ...theme("scale"), - }), - animationRotate: ({ theme }) => ({ - DEFAULT: "30deg", - ...theme("rotate"), - }), - animationRepeat: { - 0: "0", - 1: "1", - infinite: "infinite", - }, - keyframes: { - enter: { - from: { - opacity: "var(--tw-enter-opacity, 1)", - transform: - "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))", - }, - }, - exit: { - to: { - opacity: "var(--tw-exit-opacity, 1)", - transform: - "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))", - }, - }, - }, - }, - }, - }, -) diff --git a/assets/vendor/topbar.js b/assets/vendor/topbar.js deleted file mode 100644 index 4195727..0000000 --- a/assets/vendor/topbar.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * @license MIT - * topbar 2.0.0, 2023-02-04 - * https://buunguyen.github.io/topbar - * Copyright (c) 2021 Buu Nguyen - */ -(function (window, document) { - "use strict"; - - // https://gist.github.com/paulirish/1579671 - (function () { - var lastTime = 0; - var vendors = ["ms", "moz", "webkit", "o"]; - for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { - window.requestAnimationFrame = - window[vendors[x] + "RequestAnimationFrame"]; - window.cancelAnimationFrame = - window[vendors[x] + "CancelAnimationFrame"] || - window[vendors[x] + "CancelRequestAnimationFrame"]; - } - if (!window.requestAnimationFrame) - window.requestAnimationFrame = function (callback, element) { - var currTime = new Date().getTime(); - var timeToCall = Math.max(0, 16 - (currTime - lastTime)); - var id = window.setTimeout(function () { - callback(currTime + timeToCall); - }, timeToCall); - lastTime = currTime + timeToCall; - return id; - }; - if (!window.cancelAnimationFrame) - window.cancelAnimationFrame = function (id) { - clearTimeout(id); - }; - })(); - - var canvas, - currentProgress, - showing, - progressTimerId = null, - fadeTimerId = null, - delayTimerId = null, - addEvent = function (elem, type, handler) { - if (elem.addEventListener) elem.addEventListener(type, handler, false); - else if (elem.attachEvent) elem.attachEvent("on" + type, handler); - else elem["on" + type] = handler; - }, - options = { - autoRun: true, - barThickness: 3, - barColors: { - 0: "rgba(26, 188, 156, .9)", - ".25": "rgba(52, 152, 219, .9)", - ".50": "rgba(241, 196, 15, .9)", - ".75": "rgba(230, 126, 34, .9)", - "1.0": "rgba(211, 84, 0, .9)", - }, - shadowBlur: 10, - shadowColor: "rgba(0, 0, 0, .6)", - className: null, - }, - repaint = function () { - canvas.width = window.innerWidth; - canvas.height = options.barThickness * 5; // need space for shadow - - var ctx = canvas.getContext("2d"); - ctx.shadowBlur = options.shadowBlur; - ctx.shadowColor = options.shadowColor; - - var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0); - for (var stop in options.barColors) - lineGradient.addColorStop(stop, options.barColors[stop]); - ctx.lineWidth = options.barThickness; - ctx.beginPath(); - ctx.moveTo(0, options.barThickness / 2); - ctx.lineTo( - Math.ceil(currentProgress * canvas.width), - options.barThickness / 2 - ); - ctx.strokeStyle = lineGradient; - ctx.stroke(); - }, - createCanvas = function () { - canvas = document.createElement("canvas"); - var style = canvas.style; - style.position = "fixed"; - style.top = style.left = style.right = style.margin = style.padding = 0; - style.zIndex = 100001; - style.display = "none"; - if (options.className) canvas.classList.add(options.className); - document.body.appendChild(canvas); - addEvent(window, "resize", repaint); - }, - topbar = { - config: function (opts) { - for (var key in opts) - if (options.hasOwnProperty(key)) options[key] = opts[key]; - }, - show: function (delay) { - if (showing) return; - if (delay) { - if (delayTimerId) return; - delayTimerId = setTimeout(() => topbar.show(), delay); - } else { - showing = true; - if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId); - if (!canvas) createCanvas(); - canvas.style.opacity = 1; - canvas.style.display = "block"; - topbar.progress(0); - if (options.autoRun) { - (function loop() { - progressTimerId = window.requestAnimationFrame(loop); - topbar.progress( - "+" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2) - ); - })(); - } - } - }, - progress: function (to) { - if (typeof to === "undefined") return currentProgress; - if (typeof to === "string") { - to = - (to.indexOf("+") >= 0 || to.indexOf("-") >= 0 - ? currentProgress - : 0) + parseFloat(to); - } - currentProgress = to > 1 ? 1 : to; - repaint(); - return currentProgress; - }, - hide: function () { - clearTimeout(delayTimerId); - delayTimerId = null; - if (!showing) return; - showing = false; - if (progressTimerId != null) { - window.cancelAnimationFrame(progressTimerId); - progressTimerId = null; - } - (function loop() { - if (topbar.progress("+.1") >= 1) { - canvas.style.opacity -= 0.05; - if (canvas.style.opacity <= 0.05) { - canvas.style.display = "none"; - fadeTimerId = null; - return; - } - } - fadeTimerId = window.requestAnimationFrame(loop); - })(); - }, - }; - - if (typeof module === "object" && typeof module.exports === "object") { - module.exports = topbar; - } else if (typeof define === "function" && define.amd) { - define(function () { - return topbar; - }); - } else { - this.topbar = topbar; - } -}.call(this, window, document)); diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index 91b4eda..0000000 --- a/config/config.exs +++ /dev/null @@ -1,75 +0,0 @@ -# This file is responsible for configuring your application -# and its dependencies with the aid of the Config module. -# -# This configuration file is loaded before any dependency and -# is restricted to this project. - -# General application configuration -import Config - -config :pling, - ecto_repos: [Pling.Repo], - generators: [timestamp_type: :utc_datetime] - -# Configure Gettext -config :pling, PlingWeb.Gettext, - default_locale: "nb", - locales: ~w(en nb) - -# Configures the endpoint -config :pling, PlingWeb.Endpoint, - url: [host: "localhost"], - adapter: Bandit.PhoenixAdapter, - server: true, - render_errors: [ - formats: [html: PlingWeb.ErrorHTML, json: PlingWeb.ErrorJSON], - layout: false - ], - pubsub_server: Pling.PubSub, - live_view: [signing_salt: "Kv4Mctnk"] - -# Configures the mailer -# -# By default it uses the "Local" adapter which stores the emails -# locally. You can see the emails in your browser, at "/dev/mailbox". -# -# For production it's recommended to configure a different adapter -# at the `config/runtime.exs`. -config :pling, Pling.Mailer, adapter: Swoosh.Adapters.Local - -# Configure esbuild (the version is required) -config :esbuild, - version: "0.17.11", - pling: [ - args: - ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*), - cd: Path.expand("../assets", __DIR__), - env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)} - ] - -# Configure tailwind (the version is required) -config :tailwind, - version: "4.0.0", - pling: [ - args: ~w( - --input=assets/css/app.css - --output=./priv/static/assets/app.css - ), - cd: Path.expand("../", __DIR__) - ] - -# Configures Elixir's Logger -config :logger, :console, - format: "$time $metadata[$level] $message\n", - metadata: [:request_id] - -# config :phoenix_analytics, -# duckdb_path: System.get_env("DUCKDB_PATH"), -# app_domain: System.get_env("PHX_HOST") || "https://pling.fly.dev" - -# Use Jason for JSON parsing in Phoenix -config :phoenix, :json_library, Jason - -# Import environment specific config. This must remain at the bottom -# of this file so it overrides the configuration defined above. -import_config "#{config_env()}.exs" diff --git a/config/dev.exs b/config/dev.exs deleted file mode 100644 index 8b74e6b..0000000 --- a/config/dev.exs +++ /dev/null @@ -1,88 +0,0 @@ -import Config - -# Configure your database -config :pling, Pling.Repo, - database: Path.expand("../pling_dev.db", Path.dirname(__ENV__.file)), - pool_size: 5, - stacktrace: true, - show_sensitive_data_on_connection_error: true - -# For development, we disable any cache and enable -# debugging and code reloading. -# -# The watchers configuration can be used to run external -# watchers to your application. For example, we can use it -# to bundle .js and .css sources. -config :pling, PlingWeb.Endpoint, - # Binding to loopback ipv4 address prevents access from other machines. - # Change to `ip: {0, 0, 0, 0}` to allow access from other machines. - http: [ip: {0, 0, 0, 0}, port: 4000], - check_origin: false, - code_reloader: true, - debug_errors: true, - secret_key_base: "D/3UmqgHABbjyOJ6+5yUa53mKPyYqVzbznL7FvrbRNOkHzU1xQN5cNgKJflJFB3g", - watchers: [ - esbuild: {Esbuild, :install_and_run, [:pling, ~w(--sourcemap=inline --watch)]}, - tailwind: {Tailwind, :install_and_run, [:pling, ~w(--watch)]} - ] - -# ## SSL Support -# -# In order to use HTTPS in development, a self-signed -# certificate can be generated by running the following -# Mix task: -# -# mix phx.gen.cert -# -# Run `mix help phx.gen.cert` for more information. -# -# The `http:` config above can be replaced with: -# -# https: [ -# port: 4001, -# cipher_suite: :strong, -# keyfile: "priv/cert/selfsigned_key.pem", -# certfile: "priv/cert/selfsigned.pem" -# ], -# -# If desired, both `http:` and `https:` keys can be -# configured to run both http and https servers on -# different ports. - -# Watch static and templates for browser reloading. -config :pling, PlingWeb.Endpoint, - live_reload: [ - patterns: [ - ~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$", - ~r"priv/gettext/.*(po)$", - ~r"lib/pling_web/(controllers|live|components)/.*(ex|heex)$" - ] - ] - -# Enable dev routes for dashboard and mailbox -config :pling, dev_routes: true - -config :logger, :console, - format: "[$level] $message $metadata\n", - metadata: [:playlist_id, :error, :chunk, :track_id], - level: :debug - -# Set a higher stacktrace during development. Avoid configuring such -# in production as building large stacktraces may be expensive. -config :phoenix, :stacktrace_depth, 20 - -# Initialize plugs at runtime for faster development compilation -config :phoenix, :plug_init_mode, :runtime - -# Include HEEx debug annotations as HTML comments in rendered markup -config :phoenix_live_view, :debug_heex_annotations, true - -# Disable swoosh api client as it is only required for production adapters. -config :swoosh, :api_client, false - -# # Set DuckDB path for development -# config :phoenix_analytics, -# duckdb_path: "analytics.db" - -# Path to install SaladUI components -config :salad_ui, components_path: Path.join(File.cwd!(), "lib/pling_web/components") diff --git a/config/prod.exs b/config/prod.exs deleted file mode 100644 index d027c22..0000000 --- a/config/prod.exs +++ /dev/null @@ -1,20 +0,0 @@ -import Config - -# Note we also include the path to a cache manifest -# containing the digested version of static files. This -# manifest is generated by the `mix assets.deploy` task, -# which you should run after static files are built and -# before starting your production server. -config :pling, PlingWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" - -# Configures Swoosh API Client -config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Pling.Finch - -# Disable Swoosh Local Memory Storage -config :swoosh, local: false - -# Do not print debug messages in production -config :logger, level: :info - -# Runtime production configuration, including reading -# of environment variables, is done on config/runtime.exs. diff --git a/config/runtime.exs b/config/runtime.exs deleted file mode 100644 index 7c8fbaf..0000000 --- a/config/runtime.exs +++ /dev/null @@ -1,114 +0,0 @@ -import Config - -# config/runtime.exs is executed for all environments, including -# during releases. It is executed after compilation and before the -# system starts, so it is typically used to load production configuration -# and secrets from environment variables or elsewhere. Do not define -# any compile-time configuration in here, as it won't be applied. -# The block below contains prod specific runtime configuration. - -# ## Using releases -# -# If you use `mix release`, you need to explicitly enable the server -# by passing the PHX_SERVER=true when you start it: -# -# PHX_SERVER=true bin/pling start -# -# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server` -# script that automatically sets the env var above. -if System.get_env("PHX_SERVER") do - config :pling, PlingWeb.Endpoint, server: true -end - -if config_env() == :prod do - database_path = - System.get_env("DATABASE_PATH") || - raise """ - environment variable DATABASE_PATH is missing. - For example: /etc/pling/pling.db - """ - - config :pling, Pling.Repo, - database: database_path, - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5") - - # The secret key base is used to sign/encrypt cookies and other secrets. - # A default value is used in config/dev.exs and config/test.exs but you - # want to use a different value for prod and you most likely don't want - # to check this value into version control, so we use an environment - # variable instead. - secret_key_base = - System.get_env("SECRET_KEY_BASE") || - raise """ - environment variable SECRET_KEY_BASE is missing. - You can generate one by calling: mix phx.gen.secret - """ - - host = System.get_env("PHX_HOST") || "example.com" - port = String.to_integer(System.get_env("PORT") || "4000") - - config :pling, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") - - config :pling, PlingWeb.Endpoint, - url: [host: host, port: 443, scheme: "https"], - http: [ - # Enable IPv6 and bind on all interfaces. - # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. - # See the documentation on https://hexdocs.pm/bandit/Bandit.html#t:options/0 - # for details about using IPv6 vs IPv4 and loopback vs public addresses. - ip: {0, 0, 0, 0, 0, 0, 0, 0}, - port: port - ], - secret_key_base: secret_key_base, - check_origin: ["https://pling.fly.dev"] - - # ## SSL Support - # - # To get SSL working, you will need to add the `https` key - # to your endpoint configuration: - # - # config :pling, PlingWeb.Endpoint, - # https: [ - # ..., - # port: 443, - # cipher_suite: :strong, - # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"), - # certfile: System.get_env("SOME_APP_SSL_CERT_PATH") - # ] - # - # The `cipher_suite` is set to `:strong` to support only the - # latest and more secure SSL ciphers. This means old browsers - # and clients may not be supported. You can set it to - # `:compatible` for wider support. - # - # `:keyfile` and `:certfile` expect an absolute path to the key - # and cert in disk or a relative path inside priv, for example - # "priv/ssl/server.key". For all supported SSL configuration - # options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1 - # - # We also recommend setting `force_ssl` in your config/prod.exs, - # ensuring no data is ever sent via http, always redirecting to https: - # - # config :pling, PlingWeb.Endpoint, - # force_ssl: [hsts: true] - # - # Check `Plug.SSL` for all available options in `force_ssl`. - - # ## Configuring the mailer - # - # In production you need to configure the mailer to use a different adapter. - # Also, you may need to configure the Swoosh API client of your choice if you - # are not using SMTP. Here is an example of the configuration: - # - # config :pling, Pling.Mailer, - # adapter: Swoosh.Adapters.Mailgun, - # api_key: System.get_env("MAILGUN_API_KEY"), - # domain: System.get_env("MAILGUN_DOMAIN") - # - # For this example you need include a HTTP client required by Swoosh API client. - # Swoosh supports Hackney and Finch out of the box: - # - # config :swoosh, :api_client, Swoosh.ApiClient.Hackney - # - # See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details. -end diff --git a/config/test.exs b/config/test.exs deleted file mode 100644 index ee873af..0000000 --- a/config/test.exs +++ /dev/null @@ -1,30 +0,0 @@ -import Config - -# Configure your database -# -# The MIX_TEST_PARTITION environment variable can be used -# to provide built-in test partitioning in CI environment. -# Run `mix help test` for more information. -config :pling, Pling.Repo, - database: Path.expand("../pling_test.db", Path.dirname(__ENV__.file)), - pool_size: 5, - pool: Ecto.Adapters.SQL.Sandbox - -# We don't run a server during test. If one is required, -# you can enable the server option below. -config :pling, PlingWeb.Endpoint, - http: [ip: {127, 0, 0, 1}, port: 4002], - secret_key_base: "V3QJbf22IRUp1Qn37DbRpVTomFcKl1kC7kttGdCU7LLHh58OPhZdg36mHZDDSyoH", - server: false - -# In test we don't send emails. -config :pling, Pling.Mailer, adapter: Swoosh.Adapters.Test - -# Disable swoosh api client as it is only required for production adapters. -config :swoosh, :api_client, false - -# Print only warnings and errors during test -config :logger, level: :warning - -# Initialize plugs at runtime for faster test compilation -config :phoenix, :plug_init_mode, :runtime diff --git a/fly.toml b/fly.toml deleted file mode 100644 index 1049c48..0000000 --- a/fly.toml +++ /dev/null @@ -1,38 +0,0 @@ -# fly.toml app configuration file generated for pling on 2024-12-22T00:36:17+01:00 -# -# See https://fly.io/docs/reference/configuration/ for information about how to use this file. -# - -app = 'pling' -primary_region = 'arn' -kill_signal = 'SIGTERM' - -[build] - -[env] - DUCKDB_PATH = "/data/duck.db" - DATABASE_PATH = "/data/db.db" - PHX_HOST = "https://pling.fly.dev" - PORT = '8080' - -[mounts] - source = "data" - destination = "/data" - -[http_service] - internal_port = 8080 - force_https = true - auto_stop_machines = 'stop' - auto_start_machines = true - min_machines_running = 0 - processes = ['app'] - - [http_service.concurrency] - type = 'connections' - hard_limit = 1000 - soft_limit = 1000 - -[[vm]] - memory = '1gb' - cpu_kind = 'shared' - cpus = 1 diff --git a/index.html b/index.html new file mode 100644 index 0000000..c3bf7d3 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + Pling + + + +
+ + + diff --git a/lib/pling.ex b/lib/pling.ex deleted file mode 100644 index d45f41e..0000000 --- a/lib/pling.ex +++ /dev/null @@ -1,9 +0,0 @@ -defmodule Pling do - @moduledoc """ - Pling keeps the contexts that define your domain - and business logic. - - Contexts are also responsible for managing your data, regardless - if it comes from the database, an external API or others. - """ -end diff --git a/lib/pling/application.ex b/lib/pling/application.ex deleted file mode 100644 index 5cd6f06..0000000 --- a/lib/pling/application.ex +++ /dev/null @@ -1,48 +0,0 @@ -defmodule Pling.Application do - # See https://hexdocs.pm/elixir/Application.html - # for more information on OTP Applications - @moduledoc false - - use Application - - @impl true - def start(_type, _args) do - children = [ - PlingWeb.Telemetry, - Pling.Repo, - {Ecto.Migrator, - repos: Application.fetch_env!(:pling, :ecto_repos), skip: skip_migrations?()}, - {DNSCluster, query: Application.get_env(:pling, :dns_cluster_query) || :ignore}, - {Phoenix.PubSub, name: Pling.PubSub}, - # Start the Finch HTTP client for sending emails - {Finch, name: Pling.Finch}, - # Start a worker by calling: Pling.Worker.start_link(arg) - # {Pling.Worker, arg}, - # Start to serve requests, typically the last entry - Pling.Presence, - TwMerge.Cache, - PlingWeb.Endpoint, - {Registry, keys: :unique, name: Pling.Rooms.ServerRegistry}, - {Registry, keys: :duplicate, name: Pling.Rooms.ClientRegistry}, - {DynamicSupervisor, strategy: :one_for_one, name: Pling.Rooms.RoomSupervisor} - ] - - # See https://hexdocs.pm/elixir/Supervisor.html - # for other strategies and supported options - opts = [strategy: :one_for_one, name: Pling.Supervisor] - Supervisor.start_link(children, opts) - end - - # Tell Phoenix to update the endpoint configuration - # whenever the application is updated. - @impl true - def config_change(changed, _new, removed) do - PlingWeb.Endpoint.config_change(changed, removed) - :ok - end - - defp skip_migrations?() do - # By default, sqlite migrations are run when using a release - System.get_env("RELEASE_NAME") != nil - end -end diff --git a/lib/pling/mailer.ex b/lib/pling/mailer.ex deleted file mode 100644 index 05a6442..0000000 --- a/lib/pling/mailer.ex +++ /dev/null @@ -1,3 +0,0 @@ -defmodule Pling.Mailer do - use Swoosh.Mailer, otp_app: :pling -end diff --git a/lib/pling/playlists.ex b/lib/pling/playlists.ex deleted file mode 100644 index e81ae87..0000000 --- a/lib/pling/playlists.ex +++ /dev/null @@ -1,187 +0,0 @@ -defmodule Pling.Playlists do - @moduledoc """ - The Playlists context. - Handles CRUD operations for playlists and tracks. - """ - - alias Pling.Repo - alias Pling.Playlists.{Playlist, Track} - - # Playlist Operations - - @doc """ - Returns the list of playlists. - """ - def list_playlists do - Repo.all(Playlist) - end - - @doc """ - Gets a single playlist by spotify_id. - Returns nil if the Playlist does not exist. - """ - def get_playlist(spotify_id) when is_binary(spotify_id) do - Repo.get(Playlist, spotify_id) - end - - @doc """ - Gets a single playlist by spotify_id with preloaded tracks. - Returns nil if the Playlist does not exist. - """ - def get_playlist_with_tracks(spotify_id) when is_binary(spotify_id) do - Playlist - |> Repo.get(spotify_id) - |> Repo.preload(:tracks) - end - - @doc """ - Creates a playlist. - """ - def create_playlist(attrs \\ %{}) do - %Playlist{} - |> Playlist.changeset(attrs) - |> Repo.insert() - end - - @doc """ - Updates a playlist. - """ - def update_playlist(%Playlist{} = playlist, attrs) do - playlist - |> Playlist.changeset(attrs) - |> Repo.update() - end - - @doc """ - Deletes a playlist and its associations. - Returns {:ok, struct} if successful, {:error, reason} otherwise. - """ - def delete_playlist(%Playlist{} = playlist) do - Repo.transaction(fn -> - case Repo.delete(playlist) do - {:ok, playlist} -> playlist - {:error, reason} -> Repo.rollback(reason) - end - end) - end - - @doc """ - Returns an `%Ecto.Changeset{}` for tracking playlist changes. - """ - def change_playlist(%Playlist{} = playlist, attrs \\ %{}) do - Playlist.changeset(playlist, attrs) - end - - @playlist_id_length 22 - - @doc """ - Extracts and validates a Spotify playlist ID from either a full Spotify URL or a raw ID. - Returns nil if the input is invalid. - """ - def extract_playlist_id("https://open.spotify.com/playlist/" <> potential_id) do - potential_id = String.slice(potential_id, 0, @playlist_id_length) - validate_playlist_id(potential_id) - end - - def extract_playlist_id(potential_id) when is_binary(potential_id) do - validate_playlist_id(potential_id) - end - - def extract_playlist_id(_), do: nil - - # IDs are 22 chars - defp validate_playlist_id(id) do - if byte_size(id) == @playlist_id_length and id =~ ~r/^[a-zA-Z0-9]{#{@playlist_id_length}}$/ do - id - else - nil - end - end - - # Track Operations - - @doc """ - Returns the list of tracks. - """ - def list_tracks do - Repo.all(Track) - end - - @doc """ - Gets a single track by spotify_id. - Returns nil if the Track does not exist. - """ - def get_track(spotify_id) when is_binary(spotify_id) do - Repo.get(Track, spotify_id) - end - - @doc """ - Gets a single track by spotify_id with preloaded playlists. - Returns nil if the Track does not exist. - """ - def get_track_with_playlists(spotify_id) when is_binary(spotify_id) do - Track - |> Repo.get(spotify_id) - |> Repo.preload(:playlists) - end - - @doc """ - Creates a track. - """ - def create_track(attrs \\ %{}) do - %Track{} - |> Track.changeset(attrs) - |> Repo.insert() - end - - @doc """ - Updates a track. - """ - def update_track(%Track{} = track, attrs) do - track - |> Track.changeset(attrs) - |> Repo.update() - end - - @doc """ - Deletes a track and its associations. - Returns {:ok, struct} if successful, {:error, reason} otherwise. - """ - def delete_track(%Track{} = track) do - Repo.transaction(fn -> - case Repo.delete(track) do - {:ok, track} -> track - {:error, reason} -> Repo.rollback(reason) - end - end) - end - - @doc """ - Returns an `%Ecto.Changeset{}` for tracking track changes. - """ - def change_track(%Track{} = track, attrs \\ %{}) do - Track.changeset(track, attrs) - end - - # Association Operations - - @doc """ - Adds a track to a playlist. - """ - def add_track_to_playlist(%Playlist{} = playlist, %Track{} = track) do - playlist = Repo.preload(playlist, :tracks) - track = Repo.preload(track, :playlists) - - # Check if association already exists - if Enum.any?(playlist.tracks, fn t -> t.spotify_id == track.spotify_id end) do - {:error, :already_exists} - else - tracks = [track | playlist.tracks] - - playlist - |> Ecto.Changeset.change() - |> Ecto.Changeset.put_assoc(:tracks, tracks) - |> Repo.update() - end - end -end diff --git a/lib/pling/playlists/music_library.ex b/lib/pling/playlists/music_library.ex deleted file mode 100644 index 7437546..0000000 --- a/lib/pling/playlists/music_library.ex +++ /dev/null @@ -1,195 +0,0 @@ -defmodule Pling.Playlists.MusicLibrary do - @moduledoc """ - Manages music playlists and track selection from the database. - Playlists are organized by decades, with tracks associated to each playlist. - """ - import Ecto.Query - require Logger - alias Pling.Repo - alias Pling.Playlists.{Playlist, Track} - - @notification_key :first_track_notified - @default_playlist_id "4DIYG1WrBI9jRJiul9vmxj" - - @doc """ - Loads all playlists from the database and returns them as a map with spotify_id keys. - """ - def load_playlists do - Playlist - |> preload(:tracks) - |> Repo.all() - |> Enum.map(fn playlist -> {playlist.spotify_id, playlist} end) - |> Enum.into(%{}) - end - - @doc """ - Gets all tracks from all playlists when playlist is "mix", - otherwise gets tracks for the specified playlist. - """ - def get_tracks(playlist_id, _playlists) when playlist_id == "mix" do - Repo.all(Track) - end - - def get_tracks(playlist_id, _playlists) when is_binary(playlist_id) do - Playlist - |> where([p], p.spotify_id == ^playlist_id) - |> preload(:tracks) - |> Repo.one() - |> case do - nil -> [] - playlist -> playlist.tracks - end - end - - @doc """ - Gets a playlist by Spotify ID, fetching it from Spotify if it doesn't exist locally. - Returns the playlist as soon as it has basic info and at least one track. - """ - def get_or_fetch_playlist(spotify_id) do - case Repo.get(Playlist, spotify_id) do - nil -> fetch_playlist_from_spotify(spotify_id) - playlist -> {:ok, :exists, playlist} - end - end - - defp fetch_playlist_from_spotify(spotify_id) do - ref = make_ref() - parent = self() - - Task.start(fn -> - callback = build_playlist_callback(spotify_id, ref, parent) - - case Pling.Services.Spotify.stream_playlist(spotify_id, callback) do - :ok -> :ok - {:error, reason} -> send(parent, {:playlist_error, ref, reason}) - end - end) - - await_playlist_result(ref, spotify_id) - end - - defp build_playlist_callback(spotify_id, ref, parent) do - fn - %{"playlist_info" => info} -> - create_playlist(spotify_id, info) - - %{"track" => track} -> - process_track(track, spotify_id, ref, parent) - end - end - - defp create_playlist(spotify_id, info) do - playlist = %Playlist{ - spotify_id: spotify_id, - name: info["name"], - owner: info["owner"], - image_url: get_first_image_url(info["images"]), - official: false - } - - {:ok, _} = Repo.insert(playlist) - :ok - end - - defp process_track(track, spotify_id, ref, parent) do - case create_track_with_association(track, spotify_id) do - {:ok, _} -> maybe_notify_first_track(ref, parent, spotify_id) - _ -> :ok - end - end - - defp create_track_with_association(track, spotify_id) do - Repo.transaction(fn -> - track_entry = %Track{ - uri: track["uri"], - title: track["name"], - artists: Enum.map(track["artists"], & &1["name"]), - popularity: track["popularity"], - album: track["album"]["name"] - } - - {:ok, saved_track} = Repo.insert(track_entry, on_conflict: :nothing) - - if saved_track.uri do - create_playlist_track_association(saved_track.uri, spotify_id) - end - - saved_track - end) - end - - defp create_playlist_track_association(track_uri, spotify_id) do - now = NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second) - - {1, _} = - Repo.insert_all( - "playlist_tracks", - [ - %{ - track_uri: track_uri, - playlist_spotify_id: spotify_id, - inserted_at: now, - updated_at: now - } - ], - on_conflict: :nothing - ) - end - - defp maybe_notify_first_track(ref, parent, spotify_id) do - if !Process.get(@notification_key) do - Process.put(@notification_key, true) - send(parent, {:first_track_saved, ref, spotify_id}) - end - - :ok - end - - defp await_playlist_result(ref, spotify_id) do - receive do - {:first_track_saved, ^ref, ^spotify_id} -> - case Repo.get(Playlist, spotify_id) do - nil -> {:error, :playlist_fetch_failed} - playlist -> {:ok, :first_track_saved, playlist} - end - - {:playlist_error, ^ref, reason} -> - {:error, reason} - end - end - - @doc """ - Returns a callback that just outputs the streaming data. - Useful for debugging or monitoring the stream. - """ - def debug_callback do - fn - %{"playlist_info" => info} -> - IO.puts("Playlist Info:") - IO.inspect(info, pretty: true) - :ok - - %{"track" => track} -> - IO.puts("\nTrack:") - IO.inspect(track, pretty: true) - :ok - end - end - - defp get_first_image_url([%{"url" => url} | _]), do: url - defp get_first_image_url(_), do: nil - - @doc """ - Loads the default playlist along with its tracks. - """ - def load_default_playlist do - case get_or_fetch_playlist(@default_playlist_id) do - {:ok, _, playlist} -> - {:ok, playlist} - - {:error, reason} -> - Logger.error("Failed to load default playlist: #{inspect(reason)}") - {:error, reason} - end - end -end diff --git a/lib/pling/playlists/playlist.ex b/lib/pling/playlists/playlist.ex deleted file mode 100644 index 1c136c4..0000000 --- a/lib/pling/playlists/playlist.ex +++ /dev/null @@ -1,26 +0,0 @@ -defmodule Pling.Playlists.Playlist do - use Ecto.Schema - import Ecto.Changeset - - @derive {Jason.Encoder, only: [:spotify_id, :name, :image_url, :owner, :official]} - @primary_key {:spotify_id, :string, autogenerate: false} - schema "playlists" do - field :name, :string - field :image_url, :string - field :owner, :string - field :official, :boolean, default: false - - many_to_many :tracks, Pling.Playlists.Track, - join_through: "playlist_tracks", - join_keys: [playlist_spotify_id: :spotify_id, track_uri: :uri] - - timestamps() - end - - def changeset(playlist, attrs) do - playlist - |> cast(attrs, [:spotify_id, :name, :official, :image_url, :owner]) - |> validate_required([:spotify_id, :name, :owner]) - |> unique_constraint(:spotify_id, name: :playlists_pkey) - end -end diff --git a/lib/pling/playlists/track.ex b/lib/pling/playlists/track.ex deleted file mode 100644 index f9c0674..0000000 --- a/lib/pling/playlists/track.ex +++ /dev/null @@ -1,26 +0,0 @@ -defmodule Pling.Playlists.Track do - use Ecto.Schema - import Ecto.Changeset - - @derive {Jason.Encoder, only: [:uri, :title, :artists, :popularity, :album]} - @primary_key {:uri, :string, autogenerate: false} - @foreign_key_type :string - schema "tracks" do - field :title, :string - field :artists, {:array, :string} - field :popularity, :integer - field :album, :string - - many_to_many :playlists, Pling.Playlists.Playlist, - join_through: "playlist_tracks", - join_keys: [track_uri: :uri, playlist_spotify_id: :spotify_id] - - timestamps() - end - - def changeset(track, attrs) do - track - |> cast(attrs, [:uri, :title, :artists, :popularity, :album]) - |> validate_required([:uri, :title, :artists]) - end -end diff --git a/lib/pling/presence.ex b/lib/pling/presence.ex deleted file mode 100644 index 061583d..0000000 --- a/lib/pling/presence.ex +++ /dev/null @@ -1,35 +0,0 @@ -defmodule Pling.Presence do - @moduledoc """ - Provides presence tracking to channels and processes. - - This module combines the core Phoenix.Presence functionality with room-specific - presence tracking capabilities. - """ - use Phoenix.Presence, - otp_app: :pling, - pubsub_server: Pling.PubSub - - def topic(room_code), do: "room:#{room_code}" - - @doc """ - Tracks a user's presence in a room. - """ - def track(room_code, user_id) do - track(self(), topic(room_code), user_id, %{ - user_id: user_id, - joined_at: DateTime.utc_now() - }) - end - - @doc """ - Lists all users in a room, sorted by join time. - """ - def list_users(room_code) do - topic(room_code) - |> list() - |> Enum.map(fn {user_id, %{metas: [meta | _]}} -> - %{user_id: user_id, joined_at: meta.joined_at} - end) - |> Enum.sort_by(& &1.joined_at) - end -end diff --git a/lib/pling/release.ex b/lib/pling/release.ex deleted file mode 100644 index 5c1464f..0000000 --- a/lib/pling/release.ex +++ /dev/null @@ -1,34 +0,0 @@ -defmodule Pling.Release do - @moduledoc """ - Used for executing DB release tasks when run in production without Mix - installed. - """ - @app :pling - - def migrate do - load_app() - - for repo <- repos() do - {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true)) - end - end - - def rollback(repo, version) do - load_app() - {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version)) - end - - defp repos do - Application.fetch_env!(@app, :ecto_repos) - end - - defp load_app do - Application.load(@app) - end - - def seed do - load_app() - Application.ensure_all_started(@app) - Code.eval_file("#{Application.app_dir(@app)}/priv/repo/seeds.exs") - end -end diff --git a/lib/pling/repo.ex b/lib/pling/repo.ex deleted file mode 100644 index 9033afe..0000000 --- a/lib/pling/repo.ex +++ /dev/null @@ -1,5 +0,0 @@ -defmodule Pling.Repo do - use Ecto.Repo, - otp_app: :pling, - adapter: Ecto.Adapters.SQLite3 -end diff --git a/lib/pling/rooms.ex b/lib/pling/rooms.ex deleted file mode 100644 index 0ac0098..0000000 --- a/lib/pling/rooms.ex +++ /dev/null @@ -1,89 +0,0 @@ -defmodule Pling.Rooms do - @moduledoc """ - The Room API module - provides the public interface for room operations. - """ - - alias Pling.Rooms.Room.Server - require Logger - - def get_state(room_code) do - GenServer.call(via_tuple(room_code), :get_state) - end - - def update_score(room_code, identifier, amount) do - GenServer.cast(via_tuple(room_code), {:update_score, identifier, amount}) - end - - def play(room_code) do - GenServer.call(via_tuple(room_code), :play) - end - - def pause(room_code) do - GenServer.call(via_tuple(room_code), :pause) - end - - def update_track(room_code) do - GenServer.call(via_tuple(room_code), :update_track) - end - - def set_playlist(room_code, playlist) do - GenServer.call(via_tuple(room_code), {:set_playlist, playlist}) - end - - def process_tick(room_code) do - GenServer.cast(via_tuple(room_code), :process_tick) - end - - def join_room(room_code, user_id, pid, game_mode, playlist \\ nil) do - Logger.metadata(room_code: room_code, user_id: user_id) - Logger.info("Joining room", event: :room_join, game_mode: game_mode) - - case get_or_create_room(room_code, game_mode, user_id, playlist) do - {:ok, room_pid} -> - case GenServer.call(room_pid, {:monitor_liveview, pid}) do - :ok -> - Logger.info("Room joined successfully", event: :room_join_success) - {:ok, get_state(room_code)} - - error -> - Logger.error("Failed to join room", event: :room_join_error, error: inspect(error)) - error - end - - error -> - Logger.error("Failed to create room", event: :room_create_error, error: inspect(error)) - error - end - end - - defp get_or_create_room(room_code, game_mode, leader_id, playlist) do - case get_room_pid(room_code) do - {:ok, pid} -> - Logger.debug("Using existing room", event: :room_found) - {:ok, pid} - - :error -> - Logger.info("Creating new room", event: :room_create) - - DynamicSupervisor.start_child( - Pling.Rooms.RoomSupervisor, - {Server, {room_code, game_mode, leader_id, playlist}} - ) - end - end - - defp via_tuple(room_code) do - {:via, Registry, {Pling.Rooms.ServerRegistry, room_code}} - end - - @doc """ - Gets the PID of a room by its room code. - Returns {:ok, pid} if the room exists, :error otherwise. - """ - def get_room_pid(room_code) do - case Registry.lookup(Pling.Rooms.ServerRegistry, room_code) do - [{pid, _}] -> {:ok, pid} - [] -> :error - end - end -end diff --git a/lib/pling/rooms/presence.ex b/lib/pling/rooms/presence.ex deleted file mode 100644 index c56284c..0000000 --- a/lib/pling/rooms/presence.ex +++ /dev/null @@ -1,45 +0,0 @@ -defmodule Pling.Rooms.Presence do - @moduledoc """ - Handles user presence and leadership election in rooms. - """ - - alias Pling.{Presence, Rooms} - - @doc """ - Determines if the given user is the leader in the room. - """ - def elect_leader(user_id, current_state) do - current_state.leader_id == user_id - end - - @doc """ - Initializes room presence by tracking the user and subscribing to the topic. - """ - def initialize_presence(room_code, user_id) do - topic = Presence.topic(room_code) - - Presence.track(room_code, user_id) - PlingWeb.Endpoint.subscribe(topic) - - users = Presence.list_users(room_code) - current_state = Rooms.get_state(room_code) - leader? = elect_leader(user_id, current_state) - - {users, leader?} - end - - @doc """ - Updates room presence for a user and returns the current users list and leader status. - """ - def update_presence(room_code, user_id) do - users = Presence.list_users(room_code) - current_state = Rooms.get_state(room_code) - leader? = elect_leader(user_id, current_state) - - if Enum.empty?(users) do - Pling.Rooms.Room.Impl.terminate_room(room_code) - end - - {users, leader?} - end -end diff --git a/lib/pling/rooms/room/impl.ex b/lib/pling/rooms/room/impl.ex deleted file mode 100644 index 7cac052..0000000 --- a/lib/pling/rooms/room/impl.ex +++ /dev/null @@ -1,180 +0,0 @@ -defmodule Pling.Rooms.Room.Impl do - @moduledoc """ - Handles core business logic for room operations. - """ - - alias Pling.{Rooms.RoomState, Playlists.MusicLibrary} - require Logger - - def initialize(room_code, game_mode, leader_id, playlist \\ nil) do - initial_state = RoomState.initialize(room_code, game_mode, leader_id) - playlists = MusicLibrary.load_playlists() - - state = - if playlist do - updated_playlists = Map.put(playlists, playlist.spotify_id, playlist) - tracks = MusicLibrary.get_tracks(playlist.spotify_id, updated_playlists) - track = List.first(tracks) || nil - - %{ - initial_state - | playlists: updated_playlists, - selection: %{playlist: playlist.spotify_id, track: track} - } - else - initial_state = %{initial_state | playlists: playlists} - update_track(initial_state) - end - - update_track(state) - end - - def play(state) do - state - |> Map.put(:timer_ref, cancel_timer(state)) - |> Map.put(:playing?, true) - |> Map.put(:countdown, 30) - |> schedule_next_tick() - end - - def pause(state) do - state - |> Map.put(:timer_ref, cancel_timer(state)) - |> Map.put(:countdown, 7) - |> Map.put(:playing?, false) - |> schedule_next_tick() - end - - def update_track(state) do - current_selection = state.selection - - {new_track, new_queue} = - case current_selection.queue do - [next_track | remaining_tracks] -> - {next_track, remaining_tracks} - - [] -> - tracks = - current_selection.playlist - |> MusicLibrary.get_tracks(state.playlists) - |> shuffle_tracks() - - {hd(tracks), tl(tracks)} - end - - %{state | selection: %{ - playlist: current_selection.playlist, - track: new_track, - queue: new_queue - }} - |> Map.put(:countdown, 30) - end - - def set_playlist(state, playlist_id) do - playlists = MusicLibrary.load_playlists() - playlist = Map.get(playlists, playlist_id) - - tracks = - playlist_id - |> MusicLibrary.get_tracks(playlists) - |> Enum.shuffle() - {initial_track, initial_queue} = - {hd(tracks), tl(tracks)} - - state - |> Map.put(:playlists, playlists) - |> Map.put(:selection, %{ - playlist: playlist, - track: initial_track, - queue: initial_queue - }) - |> reset_playback() - end - - def process_tick(state) do - new_state = tick(state) - - if new_state.countdown && new_state.countdown > 0 do - schedule_next_tick(new_state) - else - %{new_state | timer_ref: nil} - end - end - - def update_score(state, identifier, amount) do - current_score = Map.get(state.scores, identifier, 0) - put_in(state.scores[identifier], current_score + amount) - end - - def handle_liveview_down(room_code, _pid, _reason) do - client_count = count_clients(room_code) - - if client_count <= 1 do - terminate_room(room_code) - end - - :ok - end - - def terminate_room(room_code) do - case get_room_pid(room_code) do - {:ok, pid} -> - GenServer.stop(pid) - :ok - - :error -> - :ok - end - end - - defp tick(state) do - case state do - %{countdown: nil} -> state - %{countdown: 0} -> handle_timeout(state) - %{countdown: count} -> update_countdown(state, count - 1) - end - end - - defp handle_timeout(state) do - if state.playing? do - new_state = - state - |> update_track() - |> Map.put(:countdown, 30) - - schedule_next_tick(new_state) - else - %{state | countdown: nil} - end - end - - defp update_countdown(state, new_count) do - %{state | countdown: new_count} - end - - defp schedule_next_tick(state) do - timer_ref = Process.send_after(self(), :tick, 1000) - %{state | timer_ref: timer_ref} - end - - defp cancel_timer(%{timer_ref: ref}) when is_reference(ref), do: Process.cancel_timer(ref) - defp cancel_timer(_), do: :ok - - defp reset_playback(state) do - %{state | playing?: false, countdown: nil, timer_ref: nil} - end - - defp count_clients(room_code) do - Registry.lookup(Pling.Rooms.ClientRegistry, room_code) - |> length() - end - - defp get_room_pid(room_code) do - case Registry.lookup(Pling.Rooms.ServerRegistry, room_code) do - [{pid, _}] -> {:ok, pid} - [] -> :error - end - end - - defp shuffle_tracks(tracks), do: Enum.shuffle(tracks) -end diff --git a/lib/pling/rooms/room/server.ex b/lib/pling/rooms/room/server.ex deleted file mode 100644 index 6ee1127..0000000 --- a/lib/pling/rooms/room/server.ex +++ /dev/null @@ -1,108 +0,0 @@ -defmodule Pling.Rooms.Room.Server do - use GenServer - alias Pling.{Rooms.Room.Impl, Presence, Rooms.RoomState} - require Logger - - def start_link({room_code, _game_mode, _leader_id, _playlist} = args) do - Logger.metadata(room_code: room_code) - Logger.info("Starting room server", event: :room_start) - GenServer.start_link(__MODULE__, args, name: via_tuple(room_code)) - end - - defp via_tuple(room_code) do - {:via, Registry, {Pling.Rooms.ServerRegistry, room_code}} - end - - @impl true - def init({room_code, game_mode, leader_id, playlist}) do - Logger.metadata(room_code: room_code) - Logger.info("Initializing room", event: :room_init) - state = Impl.initialize(room_code, game_mode, leader_id, playlist) - {:ok, state} - end - - @impl true - def handle_cast({:update_score, identifier, amount}, state) do - new_state = Impl.update_score(state, identifier, amount) - broadcast_state_update(new_state) - {:noreply, new_state} - end - - @impl true - def handle_cast(:process_tick, state) do - new_state = Impl.process_tick(state) - broadcast_state_update(new_state) - {:noreply, new_state} - end - - @impl true - def handle_call(:get_state, _from, state), do: {:reply, state, state} - - @impl true - def handle_call(:play, _from, state) do - new_state = Impl.play(state) - broadcast(new_state, "spotify:play", %{playing?: true}) - broadcast_state_update(new_state) - {:reply, new_state, new_state} - end - - @impl true - def handle_call(:pause, _from, state) do - new_state = Impl.pause(state) - broadcast(new_state, "spotify:pause", %{playing?: false}) - broadcast(new_state, "ring_bell", %{}) - broadcast_state_update(new_state) - {:reply, new_state, new_state} - end - - @impl true - def handle_call(:update_track, _from, state) do - new_state = Impl.update_track(state) - broadcast_state_update(new_state) - {:reply, new_state, new_state} - end - - @impl true - def handle_call({:set_playlist, playlist}, _from, state) do - new_state = Impl.set_playlist(state, playlist) - broadcast_state_update(new_state) - {:reply, {:ok, new_state}, new_state} - end - - @impl true - def handle_call({:monitor_liveview, pid}, _from, state) do - Logger.debug("Monitoring LiveView process", pid: inspect(pid)) - Registry.register(Pling.Rooms.ClientRegistry, state.room_code, pid) - Process.monitor(pid) - {:reply, :ok, state} - end - - @impl true - def handle_info(:tick, state) do - new_state = Impl.process_tick(state) - broadcast_state_update(new_state) - {:noreply, new_state} - end - - @impl true - def handle_info({:DOWN, _ref, :process, pid, reason}, state) do - Logger.debug("LiveView process down", pid: inspect(pid), reason: inspect(reason)) - Impl.handle_liveview_down(state.room_code, pid, reason) - {:noreply, state} - end - - defp broadcast(state, event, payload) do - PlingWeb.Endpoint.broadcast(Presence.topic(state.room_code), event, payload) - end - - defp broadcast_state_update(state) do - broadcast(state, "state_update", %{state: RoomState.for_client(state)}) - end - - @impl true - def terminate(reason, state) do - Logger.metadata(room_code: state.room_code) - Logger.warning("Room server terminating", event: :room_terminate, reason: inspect(reason)) - :ok - end -end diff --git a/lib/pling/rooms/room_state.ex b/lib/pling/rooms/room_state.ex deleted file mode 100644 index 8e52b6c..0000000 --- a/lib/pling/rooms/room_state.ex +++ /dev/null @@ -1,62 +0,0 @@ -defmodule Pling.Rooms.RoomState do - @moduledoc """ - Defines the core room state structure and provides client-facing state transformations. - """ - - @default_track_duration 30 - @default_playlist_id "4DIYG1WrBI9jRJiul9vmxj" - - def initialize(room_code, game_mode \\ "vs", leader_id \\ nil) do - if leader_id == nil do - raise "leader_id must be provided when initializing a room" - end - - # Load default playlist - {:ok, default_playlist} = Pling.Playlists.MusicLibrary.load_default_playlist() - - %{ - scores: %{}, - playing?: false, - countdown: nil, - timer_ref: nil, - timer_threshold: 10, - spotify_track_duration: @default_track_duration, - playlists: %{@default_playlist_id => default_playlist}, - room_code: room_code, - game_mode: game_mode, - leader_id: leader_id, - recent_plings: [], - selection: %{ - playlist: default_playlist, - track: nil, - queue: Pling.Playlists.MusicLibrary.get_tracks(@default_playlist_id, %{}) - } - } - end - - def for_client(state) do - %{ - playing?: state.playing?, - countdown: state.countdown, - timer_threshold: state.timer_threshold, - playlists: format_playlists(state.playlists), - game_mode: state.game_mode, - scores: state.scores, - leader_id: state.leader_id, - recent_plings: state.recent_plings, - selection: %{ - playlist: state.selection.playlist, - track: List.first(state.selection.queue) || nil - } - } - end - - defp format_playlist(playlist), do: Map.take(playlist, [:spotify_id, :name, :official, :image_url]) - - defp format_playlists(playlists) when is_map(playlists) do - playlists - |> Map.new(fn {spotify_id, playlist} -> - {spotify_id, format_playlist(playlist)} - end) - end -end diff --git a/lib/pling/services/names_service.ex b/lib/pling/services/names_service.ex deleted file mode 100644 index bb6e9ff..0000000 --- a/lib/pling/services/names_service.ex +++ /dev/null @@ -1,408 +0,0 @@ -defmodule Pling.Services.NamesService do - @adjectives [ - "Stor", - "Liten", - "Vakker", - "Stygg", - "Rask", - "Langsom", - "Smart", - "Dum", - "Lykkelig", - "Trist", - "Modig", - "Feig", - "Vennlig", - "Frodig", - "Sterk", - "Svak", - "Aktiv", - "Lat", - "Høy", - "Lav", - "Rik", - "Fattig", - "Ung", - "Gammel", - "Kreativ", - "Uoriginal", - "Spennende", - "Kjedelig", - "Søt", - "Sur", - "Kald", - "Varm", - "Morsom", - "Alvorlig", - "Flittig", - "Sløv", - "Dyktig", - "Udyktig", - "Snill", - "Slem", - "Lys", - "Mørk", - "Tynn", - "Tykk", - "Enkel", - "Komplisert", - "Rund", - "Firkantet", - "Myk", - "Hard", - "Klar", - "Uklar", - "Tom", - "Full", - "Skarp", - "Utydelig", - "Glatt", - "Ru", - "Ren", - "Skitten", - "Tung", - "Lett", - "Våt", - "Tørr", - "Rask", - "Treg", - "Frisk", - "Syk", - "Pen", - "Stygg", - "Stille", - "Høylytt", - "Ensom", - "Populær", - "Ny", - "Gammel", - "Tidløs", - "Modern", - "Tradisjonell", - "Lokal", - "Global", - "Ekte", - "Falsk", - "Sulten", - "Mett", - "Ren", - "Uren", - "Glatt", - "Humpete", - "Våken", - "Trøtt", - "Åpen", - "Lukket", - "Tett", - "Løs", - "Kort", - "Lang", - "Skarp", - "Flat", - "Fersk", - "Støl", - "Frisk", - "Muggen", - "Lykkelig", - "Elendig", - "Optimal", - "Dårlig", - "Første", - "Siste", - "Øverste", - "Nederste", - "Innenfor", - "Utenfor", - "Langt", - "Kort", - "Fjern", - "Nær", - "Lys", - "Tung", - "Tom", - "Hel", - "Delvis", - "Fullstendig", - "Ufullstendig", - "Fleksibel", - "Stiv", - "Stor", - "Liten", - "Koselig", - "Hyggelig", - "Rolig", - "Travel", - "Glad", - "Sint", - "Spent", - "Nervøs", - "Ivrig", - "Sliten", - "Energisk", - "Munter", - "Søvnig", - "Sulten", - "Tørst", - "Varm", - "Kjølig", - "Frodig", - "Tørr", - "Våt", - "Myk", - "Krøllete", - "Glatt", - "Skinnende", - "Dustete", - "Morsom", - "Rar", - "Merkelig", - "Vanlig", - "Uvanlig", - "Deilig", - "Herlig", - "Praktfull", - "Nydelig", - "Fantastisk", - "Utrolig", - "Magisk", - "Mystisk", - "Hemmelig", - "Åpen", - "Fnisende", - "Hoppende", - "Dansende", - "Syngende", - "Drømmende", - "Sovende", - "Busete", - "Lurvete", - "Glinsende", - "Strålende", - "Skinnende", - "Blinkende", - "Hoppende", - "Sprettende", - "Rullende", - "Klumsete", - "Elegant", - "Grasiøs", - "Klønete", - "Tullete", - "Tøysete", - "Leken", - "Lattermild", - "Smilende", - "Gapende", - "Hylende", - "Hviskende", - "Brølende", - "Trallende", - "Plystende", - "Glitrende", - "Funklende", - "Sprudlende", - "Boblende", - "Susende", - "Hvinende", - "Durende", - "Surrende", - "Knirkende", - "Knitrende" - ] - - @nouns [ - "Hund", - "Katt", - "Bil", - "Hus", - "Tre", - "Elv", - "Fjell", - "Sjø", - "Bok", - "Sko", - "Data", - "Hage", - "Fugl", - "Vind", - "Stol", - "Bord", - "Lampe", - "Dør", - "Vindu", - "Himmel", - "Sol", - "Måne", - "Stjerne", - "Hav", - "Strand", - "By", - "Landsby", - "Skog", - "Ørken", - "Snø", - "Regn", - "Sommer", - "Vinter", - "Høst", - "Vår", - "Klokke", - "Telefon", - "Datamaskin", - "TV", - "Radio", - "Kamera", - "Tog", - "Fly", - "Båt", - "Sykkel", - "Mat", - "Drikke", - "Vann", - "Melk", - "Brød", - "Ost", - "Frukt", - "Grønnsak", - "Kjøtt", - "Sukker", - "Salt", - "Pepper", - "Krydder", - "Blomst", - "Gress", - "Rot", - "Blad", - "Gren", - "Fugl", - "Fisk", - "Flue", - "Insekt", - "Menneske", - "Barn", - "Voksen", - "Lærer", - "Student", - "Leger", - "Sykepleier", - "Advokat", - "Politi", - "Brannmann", - "Kokk", - "Mekaniker", - "Kunstner", - "Musiker", - "Sanger", - "Skuespiller", - "Idrettsutøver", - "Spill", - "Lek", - "Sport", - "Musikk", - "Kunst", - "Film", - "Teater", - "Bok", - "Magasin", - "Avis", - "Penn", - "Blyant", - "Tusj", - "Farge", - "Lyd", - "Bilde", - "Kaffe", - "Te", - "Juice", - "Kake", - "Bolle", - "Suppe", - "Middag", - "Frokost", - "Lunsj", - "Kjøkken", - "Stue", - "Soverom", - "Bad", - "Gang", - "Trapp", - "Vegg", - "Tak", - "Gulv", - "Pute", - "Teppe", - "Sofa", - "Seng", - "Hylle", - "Skap", - "Skuff", - "Speil", - "Klær", - "Sko", - "Jakke", - "Bukse", - "Genser", - "Skjerf", - "Lue", - "Vott", - "Sokk", - "Veske", - "Nøkkel", - "Lommebok", - "Paraply", - "Solbriller", - "Boble", - "Ballong", - "Sirkus", - "Karusell", - "Rutsjebane", - "Gynge", - "Klovn", - "Sjonglør", - "Akrobat", - "Tryllekunst", - "Eventyr", - "Drøm", - "Latter", - "Smil", - "Tåke", - "Regnbue", - "Stjerneskudd", - "Nordlys", - "Måneskin", - "Solstråle", - "Sommerfugl", - "Marihøne", - "Gresshoppe", - "Tusenbein", - "Pingvin", - "Sjiraff", - "Nesehorn", - "Kenguru", - "Panda", - "Koala", - "Isbjørn", - "Delfin", - "Flamingo", - "Papegøye", - "Ugle", - "Pingvin", - "Ekorn", - "Kanin", - "Pinnsvin", - "Grevling" - ] - - # S = N^2 = ?k - def generate do - "#{random_adjective()}-#{random_noun()}" - end - - def random_adjective do - Enum.random(@adjectives) - end - - def random_noun do - Enum.random(@nouns) - end -end diff --git a/lib/pling/services/ndjson_stream.ex b/lib/pling/services/ndjson_stream.ex deleted file mode 100644 index 35e8fe2..0000000 --- a/lib/pling/services/ndjson_stream.ex +++ /dev/null @@ -1,94 +0,0 @@ -defmodule Pling.Services.NDJsonStream do - @moduledoc """ - Handles streaming of newline-delimited JSON (NDJSON) data, processing complete objects - as they arrive and handling partial chunks internally. - """ - require Logger - - @buffer_key :ndjson_buffer - - @doc """ - Creates a streaming function that processes NDJSON data and calls the callback - for each complete JSON object. - - The function handles: - - Complete JSON objects - - Multiple objects in one chunk - - Partial objects across chunks - - Invalid JSON gracefully - - Final buffer processing - """ - def stream_fn(callback) when is_function(callback, 1) do - Process.put(@buffer_key, "") - - fn - {:data, data}, _acc -> - current_buffer = Process.get(@buffer_key) - process_chunk(current_buffer <> data, false, callback) - - {:done, data}, _acc -> - current_buffer = Process.get(@buffer_key) - result = process_chunk(current_buffer <> (data || ""), true, callback) - Process.delete(@buffer_key) - result - - _, _acc -> - {:cont, Process.get(@buffer_key)} - end - end - - defp process_chunk(data, is_final?, callback) do - parts = String.split(data, "\n") - - case {parts, is_final?} do - {[], _} -> - Process.put(@buffer_key, "") - {:cont, ""} - - {[single], true} -> - process_json(single, callback) - Process.put(@buffer_key, "") - {:cont, ""} - - {parts, true} -> - process_all_parts(parts, callback) - Process.put(@buffer_key, "") - {:cont, ""} - - {parts, false} -> - result = process_parts(parts, callback) - Process.put(@buffer_key, elem(result, 1)) - result - end - end - - defp process_all_parts(parts, callback) do - Enum.each(parts, &process_json(&1, callback)) - end - - defp process_parts([partial], _callback), do: {:cont, partial} - - defp process_parts(parts, callback) do - [last | rest] = Enum.reverse(parts) - - rest - |> Enum.reverse() - |> Enum.each(&process_json(&1, callback)) - - {:cont, last} - end - - defp process_json("", _callback), do: :ok - - defp process_json(line, callback) do - case Jason.decode(line) do - {:ok, decoded} -> - callback.(decoded) - - {:error, error} -> - Logger.warning( - "Failed to decode JSON line: #{inspect(error)}\nLine content: #{inspect(line)}" - ) - end - end -end diff --git a/lib/pling/services/spotify.ex b/lib/pling/services/spotify.ex deleted file mode 100644 index c99daad..0000000 --- a/lib/pling/services/spotify.ex +++ /dev/null @@ -1,49 +0,0 @@ -defmodule Pling.Services.Spotify do - require Logger - alias Pling.Services.NDJsonStream - - @base_url "https://playlist-fetcher-1031294514094.europe-north1.run.app" - @api_key "1367a6ef2cb6f3cd2bfb3f73978292fdae3bc9a5e885ca7632d4eb3fc15eb4d4" - - def stream_playlist(playlist_id, callback) when is_function(callback, 1) do - Logger.info("Starting playlist stream", playlist_id: playlist_id) - - req = - Req.new( - base_url: @base_url, - headers: [{"x-api-key", @api_key}] - ) - - stream_fn = NDJsonStream.stream_fn(callback) - - try do - Req.get!(req, - url: "/playlist/#{playlist_id}", - params: [stream: true], - into: fn - {:data, data}, {req, resp} -> - {_, _} = stream_fn.({:data, data}, nil) - {:cont, {req, resp}} - - {:done, data}, {req, resp} -> - stream_fn.({:done, data}, nil) - {:cont, {req, resp}} - - _, state -> - {:cont, state} - end - ) - - Logger.info("Completed playlist stream", playlist_id: playlist_id) - :ok - catch - kind, error -> - Logger.error("Failed to stream playlist", - playlist_id: playlist_id, - error: Exception.format(kind, error, __STACKTRACE__) - ) - - {:error, error} - end - end -end diff --git a/lib/pling_web.ex b/lib/pling_web.ex deleted file mode 100644 index aa396eb..0000000 --- a/lib/pling_web.ex +++ /dev/null @@ -1,117 +0,0 @@ -defmodule PlingWeb do - @moduledoc """ - The entrypoint for defining your web interface, such - as controllers, components, channels, and so on. - - This can be used in your application as: - - use PlingWeb, :controller - use PlingWeb, :html - - The definitions below will be executed for every controller, - component, etc, so keep them short and clean, focused - on imports, uses and aliases. - - Do NOT define functions inside the quoted expressions - below. Instead, define additional modules and import - those modules here. - """ - - def static_paths, do: ~w(assets fonts images favicon.ico audio robots.txt) - - def router do - quote do - use Phoenix.Router, helpers: false - - # Import common connection and controller functions to use in pipelines - import Plug.Conn - import Phoenix.Controller - import Phoenix.LiveView.Router - end - end - - def channel do - quote do - use Phoenix.Channel - end - end - - def controller do - quote do - use Phoenix.Controller, - formats: [:html, :json], - layouts: [html: PlingWeb.Layouts] - - import Plug.Conn - use Gettext, backend: PlingWeb.Gettext - - unquote(verified_routes()) - end - end - - def live_view do - quote do - use Phoenix.LiveView, - layout: {PlingWeb.Layouts, :app} - - use Gettext, backend: PlingWeb.Gettext - - unquote(html_helpers()) - end - end - - def live_component do - quote do - use Phoenix.LiveComponent - - use Gettext, backend: PlingWeb.Gettext - - unquote(html_helpers()) - end - end - - def html do - quote do - use Phoenix.Component - - # Import convenience functions from controllers - import Phoenix.Controller, - only: [get_csrf_token: 0, view_module: 1, view_template: 1] - - # Include general helpers for rendering HTML - unquote(html_helpers()) - end - end - - defp html_helpers do - quote do - # HTML escaping functionality - import Phoenix.HTML - # Core UI components and translation - import PlingWeb.CoreComponents - use Gettext, backend: PlingWeb.Gettext - - # Shortcut for generating JS commands - alias Phoenix.LiveView.JS - - # Routes generation with the ~p sigil - unquote(verified_routes()) - end - end - - def verified_routes do - quote do - use Phoenix.VerifiedRoutes, - endpoint: PlingWeb.Endpoint, - router: PlingWeb.Router, - statics: PlingWeb.static_paths() - end - end - - @doc """ - When used, dispatch to the appropriate controller/view/etc. - """ - defmacro __using__(which) when is_atom(which) do - apply(__MODULE__, which, []) - end -end diff --git a/lib/pling_web/channels/presence.ex b/lib/pling_web/channels/presence.ex deleted file mode 100644 index 09336a2..0000000 --- a/lib/pling_web/channels/presence.ex +++ /dev/null @@ -1,18 +0,0 @@ -defmodule PlingWeb.PresenceChannel do - use Phoenix.Channel - alias Pling.Presence - - def join("room:" <> room_code, _params, socket) do - {:ok, assign(socket, :room_code, room_code)} - end - - def handle_in("track_user", %{"user_id" => user_id}, socket) do - Presence.track(socket.assigns.room_code, user_id) - - broadcast_from!(socket, "presence_diff", %{ - users: Presence.list_users(socket.assigns.room_code) - }) - - {:noreply, socket} - end -end diff --git a/lib/pling_web/components/component.ex b/lib/pling_web/components/component.ex deleted file mode 100644 index 81cc430..0000000 --- a/lib/pling_web/components/component.ex +++ /dev/null @@ -1,27 +0,0 @@ -defmodule PlingWeb.Component do - @moduledoc """ - The entrypoint for defining UI components. - - This can be used in your components as: - - use PlingWeb.Component - - Do NOT define functions inside the quoted expressions - below. Instead, define additional modules and import - those modules here. - """ - - defmacro __using__(_) do - quote do - use Phoenix.Component - - import PlingWeb.ComponentHelpers - - alias Phoenix.LiveView.JS - - defp classes(input) do - TwMerge.merge(input) - end - end - end -end diff --git a/lib/pling_web/components/core_components.ex b/lib/pling_web/components/core_components.ex deleted file mode 100644 index 20dc3a5..0000000 --- a/lib/pling_web/components/core_components.ex +++ /dev/null @@ -1,675 +0,0 @@ -defmodule PlingWeb.CoreComponents do - @moduledoc """ - Provides core UI components. - - At first glance, this module may seem daunting, but its goal is to provide - core building blocks for your application, such as modals, tables, and - forms. The components consist mostly of markup and are well-documented - with doc strings and declarative assigns. You may customize and style - them in any way you want, based on your application growth and needs. - - The default components use Tailwind CSS, a utility-first CSS framework. - See the [Tailwind CSS documentation](https://tailwindcss.com) to learn - how to customize them or feel free to swap in another framework altogether. - - Icons are provided by [heroicons](https://heroicons.com). See `icon/1` for usage. - """ - use Phoenix.Component - use Gettext, backend: PlingWeb.Gettext - - alias Phoenix.LiveView.JS - - @doc """ - Renders a modal. - - ## Examples - - <.modal id="confirm-modal"> - This is a modal. - - - JS commands may be passed to the `:on_cancel` to configure - the closing/cancel event, for example: - - <.modal id="confirm" on_cancel={JS.navigate(~p"/posts")}> - This is another modal. - - - """ - attr :id, :string, required: true - attr :show, :boolean, default: false - attr :on_cancel, JS, default: %JS{} - slot :inner_block, required: true - - def modal(assigns) do - ~H""" - - """ - end - - def input(%{type: "select"} = assigns) do - ~H""" -
- <.label for={@id}>{@label} - - <.error :for={msg <- @errors}>{msg} -
- """ - end - - def input(%{type: "textarea"} = assigns) do - ~H""" -
- <.label for={@id}>{@label} - - <.error :for={msg <- @errors}>{msg} -
- """ - end - - # All other inputs text, datetime-local, url, password, etc. are handled here... - def input(assigns) do - ~H""" -
- <.label for={@id}>{@label} - - <.error :for={msg <- @errors}>{msg} -
- """ - end - - @doc """ - Renders a label. - """ - attr :for, :string, default: nil - slot :inner_block, required: true - - def label(assigns) do - ~H""" - - """ - end - - @doc """ - Generates a generic error message. - """ - slot :inner_block, required: true - - def error(assigns) do - ~H""" -

- <.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" /> - {render_slot(@inner_block)} -

- """ - end - - @doc """ - Renders a header with title. - """ - attr :class, :string, default: nil - - slot :inner_block, required: true - slot :subtitle - slot :actions - - def header(assigns) do - ~H""" -
-
-

- {render_slot(@inner_block)} -

-

- {render_slot(@subtitle)} -

-
-
{render_slot(@actions)}
-
- """ - end - - @doc ~S""" - Renders a table with generic styling. - - ## Examples - - <.table id="users" rows={@users}> - <:col :let={user} label="id"><%= user.id %> - <:col :let={user} label="username"><%= user.username %> - - """ - attr :id, :string, required: true - attr :rows, :list, required: true - attr :row_id, :any, default: nil, doc: "the function for generating the row id" - attr :row_click, :any, default: nil, doc: "the function for handling phx-click on each row" - - attr :row_item, :any, - default: &Function.identity/1, - doc: "the function for mapping each row before calling the :col and :action slots" - - slot :col, required: true do - attr :label, :string - end - - slot :action, doc: "the slot for showing user actions in the last table column" - - def table(assigns) do - assigns = - with %{rows: %Phoenix.LiveView.LiveStream{}} <- assigns do - assign(assigns, row_id: assigns.row_id || fn {id, _item} -> id end) - end - - ~H""" -
- - - - - - - - - - - - - -
{col[:label]} - {gettext("Actions")} -
-
- - - {render_slot(col, @row_item.(row))} - -
-
-
- - - {render_slot(action, @row_item.(row))} - -
-
-
- """ - end - - @doc """ - Renders a data list. - - ## Examples - - <.list> - <:item title="Title"><%= @post.title %> - <:item title="Views"><%= @post.views %> - - """ - slot :item, required: true do - attr :title, :string, required: true - end - - def list(assigns) do - ~H""" -
-
-
-
{item.title}
-
{render_slot(item)}
-
-
-
- """ - end - - @doc """ - Renders a back navigation link. - - ## Examples - - <.back navigate={~p"/posts"}>Back to posts - """ - attr :navigate, :any, required: true - slot :inner_block, required: true - - def back(assigns) do - ~H""" -
- <.link - navigate={@navigate} - class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700" - > - <.icon name="hero-arrow-left-solid" class="h-3 w-3" /> - {render_slot(@inner_block)} - -
- """ - end - - @doc """ - Renders a [Heroicon](https://heroicons.com). - - Heroicons come in three styles – outline, solid, and mini. - By default, the outline style is used, but solid and mini may - be applied by using the `-solid` and `-mini` suffix. - - You can customize the size and colors of the icons by setting - width, height, and background color classes. - - Icons are extracted from the `deps/heroicons` directory and bundled within - your compiled app.css by the plugin in your `assets/tailwind.config.js`. - - ## Examples - - <.icon name="hero-x-mark-solid" /> - <.icon name="hero-arrow-path" class="ml-1 w-3 h-3 animate-spin" /> - """ - attr :name, :string, required: true - attr :class, :string, default: nil - - def icon(%{name: "hero-" <> _} = assigns) do - ~H""" - - """ - end - - ## JS Commands - - def show(js \\ %JS{}, selector) do - JS.show(js, - to: selector, - transition: - {"transition-all transform ease-out duration-300", - "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", - "opacity-100 translate-y-0 sm:scale-100"} - ) - end - - def hide(js \\ %JS{}, selector) do - JS.hide(js, - to: selector, - time: 200, - transition: - {"transition-all transform ease-in duration-200", - "opacity-100 translate-y-0 sm:scale-100", - "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"} - ) - end - - def show_modal(js \\ %JS{}, id) when is_binary(id) do - js - |> JS.show(to: "##{id}") - |> JS.show( - to: "##{id}-bg", - transition: {"transition-all transform ease-out duration-300", "opacity-0", "opacity-100"} - ) - |> show("##{id}-container") - |> JS.add_class("overflow-hidden", to: "body") - |> JS.focus_first(to: "##{id}-content") - end - - def hide_modal(js \\ %JS{}, id) do - js - |> JS.hide( - to: "##{id}-bg", - transition: {"transition-all transform ease-in duration-200", "opacity-100", "opacity-0"} - ) - |> hide("##{id}-container") - |> JS.hide(to: "##{id}", transition: {"block", "block", "hidden"}) - |> JS.remove_class("overflow-hidden", to: "body") - |> JS.pop_focus() - end - - @doc """ - Translates an error message using gettext. - """ - def translate_error({msg, opts}) do - # When using gettext, we typically pass the strings we want - # to translate as a static argument: - # - # # Translate the number of files with plural rules - # dngettext("errors", "1 file", "%{count} files", count) - # - # However the error messages in our forms and APIs are generated - # dynamically, so we need to translate them by calling Gettext - # with our gettext backend as first argument. Translations are - # available in the errors.po file (as we use the "errors" domain). - if count = opts[:count] do - Gettext.dngettext(PlingWeb.Gettext, "errors", msg, msg, count, opts) - else - Gettext.dgettext(PlingWeb.Gettext, "errors", msg, opts) - end - end - - @doc """ - Translates the errors for a field from a keyword list of errors. - """ - def translate_errors(errors, field) when is_list(errors) do - for {^field, {msg, opts}} <- errors, do: translate_error({msg, opts}) - end -end diff --git a/lib/pling_web/components/helpers.ex b/lib/pling_web/components/helpers.ex deleted file mode 100644 index ddd40c5..0000000 --- a/lib/pling_web/components/helpers.ex +++ /dev/null @@ -1,343 +0,0 @@ -defmodule PlingWeb.ComponentHelpers do - @moduledoc false - use Phoenix.Component - - import Phoenix.Component - - @doc """ - Prepare input assigns for use in a form. Extract required attribute from the Form.Field struct and update current assigns. - """ - def prepare_assign(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do - assigns - |> assign(field: nil, id: assigns[:id] || field.id) - |> assign(:errors, Enum.map(field.errors, &translate_error(&1))) - |> assign(:name, assigns[:name] || if(assigns[:multiple], do: field.name <> "[]", else: field.name)) - |> assign(:value, assigns[:value] || field.value) - |> prepare_assign() - end - - # use default value if value is not provided or empty - def prepare_assign(assigns) do - value = - if assigns[:value] in [nil, "", []] do - assigns[:"default-value"] - else - assigns[:value] - end - - assign(assigns, value: value) - end - - # normalize_integer - def normalize_integer(value) when is_integer(value), do: value - - def normalize_integer(value) when is_binary(value) do - case Integer.parse(value) do - {integer, _} -> integer - _ -> nil - end - end - - def normalize_integer(_), do: nil - - def normalize_boolean(value) do - case value do - "true" -> true - "false" -> false - true -> true - false -> false - _ -> false - end - end - - @doc """ - Normalize id to be used in HTML id attribute - It will replace all non-alphanumeric characters with `-` and downcase the string - """ - def id(id) do - id - |> String.replace(~r/[^a-zA-Z0-9]/, "-") - |> String.downcase() - end - - @doc """ - Variant helper for generating classes based on side and align - """ - @variants %{ - side: %{ - "top" => "bottom-full mb-2", - "bottom" => "top-full mt-2", - "left" => "right-full mr-2", - "right" => "left-full ml-2" - }, - align: %{ - "start-horizontal" => "left-0", - "center-horizontal" => "left-1/2 -translate-x-1/2 slide-in-from-left-1/2", - "end-horizontal" => "right-0", - "start-vertical" => "top-0", - "center-vertical" => "top-1/2 -translate-y-1/2 slide-in-from-top-1/2", - "end-vertical" => "bottom-0" - } - } - - @spec side_variant(String.t(), String.t()) :: String.t() - def side_variant(side, align \\ "center") do - Enum.map_join(%{side: side, align: align(align, side)}, " ", fn {key, value} -> @variants[key][value] end) - end - - # decide align class based on side - defp align(align, side) do - cond do - side in ["top", "bottom"] -> - "#{align}-horizontal" - - side in ["left", "right"] -> - "#{align}-vertical" - end - end - - @variants %{ - variant: %{ - "default" => "bg-primary text-primary-foreground shadow hover:bg-primary/90", - "destructive" => "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", - "outline" => "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground", - "secondary" => "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", - "ghost" => "hover:bg-accent hover:text-accent-foreground", - "link" => "text-primary underline-offset-4 hover:underline" - }, - size: %{ - "default" => "h-9 px-4 py-2", - "sm" => "h-8 rounded-md px-3 text-xs", - "lg" => "h-10 rounded-md px-8", - "icon" => "h-9 w-9" - } - } - - @default_variants %{ - variant: "default", - size: "default" - } - - @doc """ - Reuseable button variant helper. Support 2 variant - - size: `default|sm|lg|icon` - - variant: `default|destructive|outline|secondary|ghost|link` - """ - def button_variant(props \\ %{}) do - variants = Map.take(props, ~w(variant size)a) - variants = Map.merge(@default_variants, variants) - - variation_classes = Enum.map_join(variants, " ", fn {key, value} -> @variants[key][value] end) - - shared_classes = - "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50" - - "#{shared_classes} #{variation_classes}" - end - - @doc """ - Common function for building variant - - ## Examples - - ```elixir - config = - %{ - variants: %{ - variant: %{ - default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground", - outline: - "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]", - }, - size: %{ - default: "h-8 text-sm", - sm: "h-7 text-xs", - lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0", - }, - }, - default_variants: %{ - variant: "default", - size: "default", - }, - } - - class_input = %{variant: "outline", size: "lg"} - variant_class(config, class_input) - ``` - - """ - def variant_class(config, class_input) do - variants = Map.get(config, :variants, %{}) - default_variants = Map.get(config, :default_variants, %{}) - - variants - |> Map.keys() - |> Enum.map(fn variant_key -> - # Get the variant value from input or use default - variant_value = - Map.get(class_input, variant_key) || - Map.get(default_variants, variant_key) - - # Get the variant options map - variant_options = Map.get(variants, variant_key, %{}) - - # Get the CSS classes for this variant value - Map.get(variant_options, String.to_existing_atom(variant_value)) - end) - |> Enum.reject(&is_nil/1) - |> Enum.join(" ") - end - - @doc """ - This function build css style string from map of css style - - ## Examples - - ```elixir - css_style = %{ - "background-color": "red", - "color": "white", - "font-size": "16px", - } - - style(css_style) - - # => "background-color: red; color: white; font-size: 16px;" - ``` - """ - def style(items) when is_list(items) do - {acc_map, acc_list} = - Enum.reduce(items, {%{}, []}, fn item, {acc_map, acc_list} -> - cond do - is_map(item) -> - {Map.merge(acc_map, item), acc_list} - - is_binary(item) -> - {acc_map, [item | acc_list]} - - true -> - {acc_map, [item | acc_list]} - end - end) - - style = Enum.map_join(acc_map, "; ", fn {k, v} -> "#{k}: #{v}" end) <> ";" - Enum.join([style | acc_list], "; ") - end - - @doc """ - This function build js script to invoke JS stored in given attribute. - Similar to JS.exec/2 but this function target the nearest ancestor element. - - ## Examples - - ```heex - - ``` - """ - def exec_closest(attribute, ancestor_selector) do - """ - var el = this.closest("#{ancestor_selector}"); liveSocket.execJS(el, el.getAttribute("#{attribute}")); - """ - end - - @doc """ - This component is used to render dynamic tag based on the `tag` attribute. `tag` attribute can be a string or a function component. - - This is just a wrapper around `dynamic_tag` function from Phoenix LiveView which only support string tag. - - ## Examples - - ```heex - <.dynamic tag={@tag} class="bg-primary text-primary-foreground"> - Hello World - - ``` - """ - def dynamic(%{tag: name} = assigns) when is_function(name, 1) do - assigns = Map.delete(assigns, :tag) - name.(assigns) - end - - def dynamic(assigns) do - name = assigns[:tag] || "div" - - assigns = - assigns - |> Map.delete(:tag) - |> assign(:tag_name, name) - |> assign(:name, name) - - dynamic_tag(assigns) - end - - @doc """ - This component mimic behavior of `asChild` attribute from shadcn/ui. - It works by passing all attribute from `as_child` tag to `tag` function component, add pass `child` attribute to the `as_tag` attribute of the `tag` function component. - - The `tag` function component should accept `as_tag` attribute to render the child component. - - ## Examples - - ```heex - <.as_child tag={&dropdown_menu_trigger/1} child={&sidebar_menu_button/1} class="bg-primary text-primary-foreground"> - Hello World - - ``` - - Normally this can be archieved by using `dropdown_menu_trigger` component directly but this will fire copile warning. - - ```heex - <.dropdown_menu_trigger as_tag={&sidebar_menu_button/1} class="bg-primary text-primary-foreground"> - Hello World - - """ - def as_child(%{tag: tag, child: child_tag} = assigns) when is_function(tag, 1) do - assigns - |> Map.drop([:tag, :child]) - |> assign(:as_tag, child_tag) - |> tag.() - end - - # Translate error message - # borrowed from https://github.com/petalframework/petal_components/blob/main/lib/petal_components/field.ex#L414 - defp translate_error({msg, opts}) do - config_translator = get_translator_from_config() || (&fallback_translate_error/1) - - config_translator.({msg, opts}) - end - - defp fallback_translate_error({msg, opts}) do - Enum.reduce(opts, msg, fn {key, value}, acc -> - try do - String.replace(acc, "%{#{key}}", to_string(value)) - rescue - e -> - IO.warn( - """ - the fallback message translator for the form_field_error function cannot handle the given value. - - Hint: you can set up the `error_translator_function` to route all errors to your application helpers: - - config :salad_ui, :error_translator_function, {MyAppWeb.CoreComponents, :translate_error} - - Given value: #{inspect(value)} - - Exception: #{Exception.message(e)} - """, - __STACKTRACE__ - ) - - "invalid value" - end - end) - end - - defp get_translator_from_config do - case Application.get_env(:salad_ui, :error_translator_function) do - {module, function} -> &apply(module, function, [&1]) - nil -> nil - end - end -end diff --git a/lib/pling_web/components/layouts.ex b/lib/pling_web/components/layouts.ex deleted file mode 100644 index 048964b..0000000 --- a/lib/pling_web/components/layouts.ex +++ /dev/null @@ -1,5 +0,0 @@ -defmodule PlingWeb.Layouts do - use PlingWeb, :html - - embed_templates "layouts/*" -end diff --git a/lib/pling_web/components/layouts/app.html.heex b/lib/pling_web/components/layouts/app.html.heex deleted file mode 100644 index b66a6ec..0000000 --- a/lib/pling_web/components/layouts/app.html.heex +++ /dev/null @@ -1,6 +0,0 @@ -
-
- <.flash_group flash={@flash} /> - {@inner_content} -
-
diff --git a/lib/pling_web/components/layouts/root.html.heex b/lib/pling_web/components/layouts/root.html.heex deleted file mode 100644 index a222cf3..0000000 --- a/lib/pling_web/components/layouts/root.html.heex +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - <.live_title suffix=""> - {assigns[:page_title] || gettext("Pling")} - - - - - - -
- {@inner_content} -
-
- -
- - diff --git a/lib/pling_web/controllers/error_html.ex b/lib/pling_web/controllers/error_html.ex deleted file mode 100644 index e48858a..0000000 --- a/lib/pling_web/controllers/error_html.ex +++ /dev/null @@ -1,19 +0,0 @@ -defmodule PlingWeb.ErrorHTML do - use PlingWeb, :html - - # If you want to customize your error pages, - # uncomment the embed_templates/1 call below - # and add pages to the error directory: - # - # * lib/pling_web/controllers/error_html/404.html.heex - # * lib/pling_web/controllers/error_html/500.html.heex - # - # embed_templates "error_html/*" - - # The default is to render a plain text page based on - # the template name. For example, "404.html" becomes - # "Not Found". - def render(template, _assigns) do - Phoenix.Controller.status_message_from_template(template) - end -end diff --git a/lib/pling_web/controllers/error_json.ex b/lib/pling_web/controllers/error_json.ex deleted file mode 100644 index 5bf21bc..0000000 --- a/lib/pling_web/controllers/error_json.ex +++ /dev/null @@ -1,15 +0,0 @@ -defmodule PlingWeb.ErrorJSON do - # If you want to customize a particular status code, - # you may add your own clauses, such as: - # - # def render("500.json", _assigns) do - # %{errors: %{detail: "Internal Server Error"}} - # end - - # By default, Phoenix returns the status message from - # the template name. For example, "404.json" becomes - # "Not Found". - def render(template, _assigns) do - %{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}} - end -end diff --git a/lib/pling_web/controllers/login_controller.ex b/lib/pling_web/controllers/login_controller.ex deleted file mode 100644 index fb2b3f8..0000000 --- a/lib/pling_web/controllers/login_controller.ex +++ /dev/null @@ -1,25 +0,0 @@ -defmodule PlingWeb.LoginController do - use PlingWeb, :controller - alias Pling.Services.NamesService - - def login(conn, _params) do - conn = - case get_session(conn, :user_id) do - nil -> - conn - |> put_session(:user_id, NamesService.generate()) - |> configure_session(renew: true) - - _existing_user -> - conn - end - - redirect(conn, to: "/") - end - - def logout(conn, _params) do - conn - |> clear_session() - |> redirect(to: "/login") - end -end diff --git a/lib/pling_web/controllers/page_html.ex b/lib/pling_web/controllers/page_html.ex deleted file mode 100644 index eb87138..0000000 --- a/lib/pling_web/controllers/page_html.ex +++ /dev/null @@ -1,5 +0,0 @@ -defmodule PlingWeb.PageHTML do - use PlingWeb, :html - - embed_templates "page_html/*" -end diff --git a/lib/pling_web/endpoint.ex b/lib/pling_web/endpoint.ex deleted file mode 100644 index c52bbad..0000000 --- a/lib/pling_web/endpoint.ex +++ /dev/null @@ -1,55 +0,0 @@ -defmodule PlingWeb.Endpoint do - use Phoenix.Endpoint, otp_app: :pling - - # The session will be stored in the cookie and signed, - # this means its contents can be read but not tampered with. - # Set :encryption_salt if you would also like to encrypt it. - @session_options [ - store: :cookie, - key: "_pling_key", - signing_salt: "iS3qrDZ9", - same_site: "Lax" - ] - - socket "/live", Phoenix.LiveView.Socket, - websocket: [connect_info: [session: @session_options]], - longpoll: [connect_info: [session: @session_options]] - - # Serve at "/" the static files from "priv/static" directory. - # - # You should set gzip to true if you are running phx.digest - # when deploying your static files in production. - plug Plug.Static, - at: "/", - from: :pling, - gzip: false, - only: PlingWeb.static_paths() - - # plug PhoenixAnalytics.Plugs.RequestTracker - - # Code reloading can be explicitly enabled under the - # :code_reloader configuration of your endpoint. - if code_reloading? do - socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket - plug Phoenix.LiveReloader - plug Phoenix.CodeReloader - plug Phoenix.Ecto.CheckRepoStatus, otp_app: :pling - end - - plug Phoenix.LiveDashboard.RequestLogger, - param_key: "request_logger", - cookie_key: "request_logger" - - plug Plug.RequestId - plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint] - - plug Plug.Parsers, - parsers: [:urlencoded, :multipart, :json], - pass: ["*/*"], - json_decoder: Phoenix.json_library() - - plug Plug.MethodOverride - plug Plug.Head - plug Plug.Session, @session_options - plug PlingWeb.Router -end diff --git a/lib/pling_web/gettext.ex b/lib/pling_web/gettext.ex deleted file mode 100644 index 49e7049..0000000 --- a/lib/pling_web/gettext.ex +++ /dev/null @@ -1,24 +0,0 @@ -defmodule PlingWeb.Gettext do - @moduledoc """ - A module providing Internationalization with a gettext-based API. - - By using [Gettext](https://hexdocs.pm/gettext), - your module gains a set of macros for translations, for example: - - import PlingWeb.Gettext - - # Simple translation - gettext("Here is the string to translate") - - # Plural translation - ngettext("Here is the string to translate", - "Here are the strings to translate", - 3) - - # Domain-based translation - dgettext("errors", "Here is the error message to translate") - - See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. - """ - use Gettext.Backend, otp_app: :pling -end diff --git a/lib/pling_web/live/home_live.ex b/lib/pling_web/live/home_live.ex deleted file mode 100644 index 7bd558c..0000000 --- a/lib/pling_web/live/home_live.ex +++ /dev/null @@ -1,31 +0,0 @@ -defmodule PlingWeb.HomeLive do - use PlingWeb, :live_view - require Logger - alias Pling.Services.NamesService - - @impl true - def mount(_params, _session, socket) do - {:ok, assign(socket, show_rules_modal: false)} - end - - @impl true - def handle_event("create_room", %{"game_mode" => game_mode}, socket) do - room_code = generate_room_code() - {:noreply, push_navigate(socket, to: ~p"/#{game_mode}/#{room_code}")} - end - - @impl true - def handle_event("join_room", %{"room_code" => room_code}, socket) do - upper_room_code = String.upcase(room_code) - Logger.info("Joining room: #{upper_room_code}") - {:noreply, push_navigate(socket, to: ~p"/vs/#{upper_room_code}")} - end - - defp generate_room_code do - noun1 = NamesService.random_noun() - noun2 = NamesService.random_noun() - - (noun1 <> noun2) - |> String.upcase() - end -end diff --git a/lib/pling_web/live/home_live.html.heex b/lib/pling_web/live/home_live.html.heex deleted file mode 100644 index bd67698..0000000 --- a/lib/pling_web/live/home_live.html.heex +++ /dev/null @@ -1,72 +0,0 @@ -
-
- <.header> - {gettext("Welcome to Pling")} - <:subtitle>{gettext("A real-time music game")} - - -
-
- <.button phx-click={JS.push("create_room", value: %{game_mode: "vs"})} class="w-full"> - {gettext("Create Versus Room")} - - <.button phx-click={JS.push("create_room", value: %{game_mode: "ffa"})} class="w-full"> - {gettext("Create Free-for-All Room (beta)")} - -
- -
-

{gettext("or")}

-
- - <.simple_form for={%{}} phx-submit="join_room" class="space-y-4"> - <.input - type="text" - label={gettext("Enter a room code")} - name="room_code" - value="" - required - class="uppercase" - /> - <.button class="w-full">{gettext("Join Room")} - - -
- <.button phx-click={show_modal("rules-modal")}> - {gettext("How to Play")} - -
-
-
-
- -<.modal id="rules-modal" show={@show_rules_modal}> - <.header> - {gettext("How to Play Pling")} - <:subtitle>{gettext("Game Rules and Instructions")} - - -
-

{gettext("Versus Mode")}

-

- {gettext( - "In Versus mode, two teams compete to identify songs faster than their opponents. Each correct guess earns points for your team. The team with the most points at the end wins!" - )} -

- -

{gettext("Free-for-All Mode (Beta)")}

-

- {gettext( - "In Free-for-All mode, every player plays individually. Be the first to identify the song to earn points. The player with the most points at the end of the game wins!" - )} -

- -

{gettext("How to Play")}

-
    -
  1. {gettext("Create a room or join an existing one with a room code")}
  2. -
  3. {gettext("Share the room code with your friends")}
  4. -
  5. {gettext("Listen to the song clips and type your guesses")}
  6. -
  7. {gettext("Score points by being the first to correctly identify songs")}
  8. -
-
- diff --git a/lib/pling_web/live/room_live.ex b/lib/pling_web/live/room_live.ex deleted file mode 100644 index a2c232d..0000000 --- a/lib/pling_web/live/room_live.ex +++ /dev/null @@ -1,512 +0,0 @@ -defmodule PlingWeb.RoomLive do - use PlingWeb, :live_view - alias Phoenix.LiveView.JS - alias Pling.Rooms - alias Pling.Rooms.Presence - require Logger - - @playlist_id_length 22 - - @impl true - def mount( - %{"room_code" => room_code, "game_mode" => game_mode} = params, - %{"user_id" => user_id}, - socket - ) do - socket = init_assigns(socket, room_code, game_mode, user_id) - - if connected?(socket) do - Logger.debug("LiveView connected for room: #{room_code}") - - {:ok, state} = - case params do - %{"playlist_id" => playlist_id} when not is_nil(playlist_id) -> - handle_playlist_join(room_code, user_id, game_mode, playlist_id) - - %{"list" => playlist_id} when not is_nil(playlist_id) -> - handle_playlist_join(room_code, user_id, game_mode, playlist_id) - - _ -> - Rooms.join_room(room_code, user_id, self(), game_mode) - end - - {users, leader?} = Presence.initialize_presence(room_code, user_id) - PlingWeb.Endpoint.subscribe("room:#{room_code}") - - {:ok, - socket - |> assign(users: users, leader?: leader?) - |> assign(state) - |> maybe_load_track(state.selection.track)} - else - Logger.debug("LiveView initial render for room: #{room_code}") - {:ok, init_assigns(socket, room_code, game_mode, user_id)} - end - end - - @impl true - def mount(_params, _session, socket) do - {:ok, redirect(socket, to: ~p"/login")} - end - - defp init_assigns(socket, room_code, game_mode, user_id) do - assign(socket, - room_code: room_code, - user_id: user_id, - show_playlist_modal: false, - game_mode: game_mode, - current_track: nil, - leader?: false, - users: [], - selection: %{playlist: nil, track: nil}, - playlists: nil, - playing?: false, - countdown: nil, - timer_threshold: 10, - scores: %{}, - recent_plings: [] - ) - end - - # ------------------------------------------------------------------ - # Presence diff - # ------------------------------------------------------------------ - @impl true - def handle_info(%{event: "presence_diff"}, socket) do - {users, leader?} = Presence.update_presence(socket.assigns.room_code, socket.assigns.user_id) - {:noreply, assign(socket, users: users, leader?: leader?)} - end - - # ------------------------------------------------------------------ - # State and ephemeral(events(from(server))) - # ------------------------------------------------------------------ - @impl true - def handle_info(%{event: "state_update", payload: %{state: new_state}}, socket) do - socket = assign(socket, new_state) - {:noreply, maybe_load_track(socket, new_state.selection.track)} - end - - @impl true - def handle_info(%{event: "ring_bell"}, socket) do - {:noreply, push_event(socket, "ring_bell", %{})} - end - - @impl true - def handle_info(%{event: "spotify:play"}, socket) do - {:noreply, push_event(socket, "spotify:play", %{})} - end - - @impl true - def handle_info(%{event: "spotify:pause"}, socket) do - {:noreply, push_event(socket, "spotify:pause", %{})} - end - - # ------------------------------------------------------------------ - # UI Events -> Server Calls - # ------------------------------------------------------------------ - @impl true - def handle_event("counter:increment", %{"counter_id" => counter_id}, socket) do - Rooms.update_score(socket.assigns.room_code, counter_id, 1) - {:noreply, socket} - end - - @impl true - def handle_event("counter:decrement", %{"counter_id" => counter_id}, socket) do - Rooms.update_score(socket.assigns.room_code, counter_id, -1) - {:noreply, socket} - end - - @impl true - def handle_event("set_playlist", %{"playlist_id" => playlist_id}, socket) do - cleaned_playlist_id = extract_playlist_id(playlist_id) - - {:noreply, - socket - |> assign(show_playlist_modal: false) - |> push_patch( - to: - ~p"/#{socket.assigns.game_mode}/#{socket.assigns.room_code}?list=#{cleaned_playlist_id}" - )} - end - - @impl true - def handle_event("toggle_play", _params, %{assigns: %{leader?: false}} = socket) do - {:noreply, socket} - end - - @impl true - def handle_event("toggle_play", _params, socket) do - current_state = Rooms.get_state(socket.assigns.room_code) - - if current_state.playing? do - Rooms.pause(socket.assigns.room_code) - else - Rooms.play(socket.assigns.room_code) - end - - {:noreply, socket} - end - - @impl true - def handle_event("update_track", _params, %{assigns: %{leader?: false}} = socket) do - {:noreply, socket} - end - - @impl true - def handle_event("update_track", _params, socket) do - Rooms.update_track(socket.assigns.room_code) - {:noreply, socket} - end - - # ------------------------------------------------------------------ - # Private Functions - # ------------------------------------------------------------------ - defp maybe_load_track(%{assigns: %{leader?: true}} = socket, track) do - if track != socket.assigns.current_track do - socket - |> assign(:current_track, track) - |> push_event("spotify:load_track", %{track: track}) - else - socket - end - end - - defp maybe_load_track(socket, _track), do: socket - - # ------------------------------------------------------------------ - # Components - # ------------------------------------------------------------------ - def room_info(assigns) do - ~H""" -
-
- <.user_list users={@users} user_id={@user_id} room_code={@room_code} /> -
- - <.playlist_info selection={@selection} playlists={@playlists} /> -
- """ - end - - defp playlist_info(%{selection: selection} = assigns) do - playlist_name = - if selection.playlist do - selection.playlist.name || gettext("Unknown Playlist") - else - nil - end - - assigns = assign(assigns, :playlist_name, playlist_name) - - ~H""" -
- {gettext("and listening to")} - <%= if @playlist_name do %> - {@playlist_name} - <% end %> -
- """ - end - - defp user_list(%{users: []} = assigns) do - ~H""" - {gettext("Waiting for users...")} - """ - end - - defp user_list(%{users: [single_user], user_id: user_id, room_code: room_code} = assigns) do - assigns = - assigns - |> assign(:is_current_user?, single_user.user_id == user_id) - |> assign(:single_user, single_user) - |> assign(:room_code, room_code) - - ~H""" - - {@single_user.user_id} - - {gettext("is in")} - {@room_code} - """ - end - - defp user_list(%{users: users, user_id: user_id} = assigns) do - users_with_current = - Enum.map(users, fn user -> - %{user: user, is_current?: user.user_id == user_id} - end) - - [first_user_with_current | other_users_with_current] = users_with_current - - assigns = - assigns - |> assign(:first_user_with_current, first_user_with_current) - |> assign(:other_users_with_current, other_users_with_current) - - ~H""" - - {@first_user_with_current.user.user_id} - - {gettext("is joined by")} - <%= for {user_with_current, index} <- Enum.with_index(@other_users_with_current) do %> - - {user_with_current.user.user_id} - - {if index < length(@other_users_with_current) - 1, do: ", "} - <% end %> - {gettext("is in")} - {@room_code}{gettext("room")} - """ - end - - def pling_button(assigns) do - assigns = assign(assigns, :disabled?, !assigns.playing? && !assigns.leader?) - - ~H""" -
- -
- """ - end - - def render_scores(assigns) do - ~H""" -
-
-
{gettext("Scores")}
- <%= if @leader? && length(@recent_plings) > 0 do %> - <.button phx-click="clear_plings"> - {gettext("Clear Recent")} - - <% end %> -
- -
- <%= for user <- @users do %> -
- - {user.user_id} - -
- - {Map.get(@scores, user.user_id, 0)} - - <%= if @leader? do %> -
- <.button phx-click="counter:decrement" phx-value-counter_id={user.user_id}> - -1 - - <.button phx-click="counter:increment" phx-value-counter_id={user.user_id}> - +1 - -
- <% end %> -
-
- <% end %> -
-
- """ - end - - defp counter_button(assigns) do - {edge_class, bg_class} = - case assigns.counter_id do - "blue" -> {"bg-blue-800", "bg-gradient-to-b from-blue-500 to-blue-600"} - "red" -> {"bg-red-800", "bg-gradient-to-b from-red-500 to-red-600"} - _ -> {"bg-slate-800", "bg-gradient-to-b from-slate-500 to-slate-600"} - end - - count_value = Map.get(assigns.scores || %{}, assigns.counter_id, 0) - - assigns = - assign(assigns, - edge_class: edge_class, - bg_class: bg_class, - count: count_value - ) - - ~H""" -
- - -
- """ - end - - defp playlist_grid( - %{ - selection: selection, - playlists: playlists - } = assigns - ) do - playlists_with_active = - if playlists do - playlists - |> Map.values() - |> Enum.filter(& &1.official) - |> Enum.map(fn playlist -> - Map.put(playlist, :active?, selection.playlist.spotify_id == playlist.spotify_id) - end) - else - [] - end - - assigns = assign(assigns, :playlists_with_active, playlists_with_active) - - ~H""" - <.modal id="playlist-modal" show={@show_playlist_modal}> - <.header> - {gettext("Select a Playlist")} - - -
-
- <%= for playlist <- @playlists_with_active do %> - <.playlist id={playlist.spotify_id} name={playlist.name} active?={playlist.active?} /> - <% end %> -
- -
- -
- <.input - type="text" - name="playlist_id" - value="" - placeholder={gettext("Spotify playlist link or ID")} - autocomplete="off" - /> - <.button type="submit"> - {gettext("Go")} - -
-
-
- - """ - end - - def playlist(assigns) do - active? = assigns[:active?] - - active_class = - if active?, do: "bg-red-600 text-red-50", else: "bg-red-50 text-red-900" - - assigns = assign(assigns, :active_class, active_class) - - ~H""" - - """ - end - - defp handle_playlist_join(room_code, user_id, game_mode, playlist_id) do - cleaned_playlist_id = extract_playlist_id(playlist_id) - - case Pling.Playlists.MusicLibrary.get_or_fetch_playlist(cleaned_playlist_id) do - {:ok, :first_track_saved, playlist} -> - {:ok, _state} = Rooms.join_room(room_code, user_id, self(), game_mode, playlist) - {:ok, state} = Rooms.set_playlist(room_code, cleaned_playlist_id) - state - - {:ok, _, playlist} -> - Rooms.join_room(room_code, user_id, self(), game_mode, playlist) - - {:error, reason} -> - Logger.error("Failed to load playlist in UI: #{inspect(reason)}") - Rooms.join_room(room_code, user_id, self(), game_mode) - end - end - - defp extract_playlist_id("https://open.spotify.com/playlist/" <> potential_id) do - potential_id = String.slice(potential_id, 0, @playlist_id_length) - validate_playlist_id(potential_id) - end - - defp extract_playlist_id(potential_id) when is_binary(potential_id) do - validate_playlist_id(potential_id) - end - - defp extract_playlist_id(_), do: nil - - # IDs are 22 chars - defp validate_playlist_id(id) do - if byte_size(id) == @playlist_id_length and id =~ ~r/^[a-zA-Z0-9]{#{@playlist_id_length}}$/ do - id - else - nil - end - end - - @impl true - def handle_params(%{"list" => playlist_id}, _uri, socket) do - cleaned_playlist_id = extract_playlist_id(playlist_id) - - if cleaned_playlist_id do - Rooms.set_playlist(socket.assigns.room_code, cleaned_playlist_id) - end - - {:noreply, socket} - end - - # Fallback for when there's no list parameter - @impl true - def handle_params(_params, _uri, socket) do - {:noreply, socket} - end -end diff --git a/lib/pling_web/live/room_live.html.heex b/lib/pling_web/live/room_live.html.heex deleted file mode 100644 index d95e827..0000000 --- a/lib/pling_web/live/room_live.html.heex +++ /dev/null @@ -1,53 +0,0 @@ -<%!--
-    <%= inspect(Map.take(assigns, [:room_code, :user_id, :users, :playing?, :countdown, :timer_threshold, :leader?, :show_playlist, :selection, :game_mode, :scores]), pretty: true) %>
-  
--%> -
- <.room_info - room_code={@room_code} - users={@users} - user_id={@user_id} - selection={@selection} - playlists={@playlists} - /> - <.pling_button - playing?={@playing?} - countdown={@countdown} - timer_threshold={@timer_threshold} - leader?={@leader?} - /> - <%= if @leader? do %> - <.button phx-click="update_track" class="ml-auto" disabled={@playing?}> - {gettext("Next Track")} - - <% end %> - -
- <%= if @game_mode == "vs" do %> - <.counter_button counter_id="red" scores={@scores} /> -
- <.icon - :if={!@playing?} - name="hero-chevron-double-up-solid" - class="h-16 w-16 text-zinc-700" - /> -

- {gettext("swipe to see song")} -

-
- <.counter_button counter_id="blue" scores={@scores} /> - <% else %> - <.render_scores {assigns} /> - <% end %> - <.button phx-click={show_modal("playlist-modal")} class="col-span-3 text-sm font-semibold"> - {gettext("show playlists")} - -
-
- -<.playlist_grid - selection={@selection} - playlists={@playlists} - show_playlist_modal={@show_playlist_modal} - game_mode={@game_mode} - room_code={@room_code} -/> diff --git a/lib/pling_web/router.ex b/lib/pling_web/router.ex deleted file mode 100644 index 5878427..0000000 --- a/lib/pling_web/router.ex +++ /dev/null @@ -1,85 +0,0 @@ -defmodule PlingWeb.Router do - use PlingWeb, :router - import Phoenix.LiveView.Router - - import Plug.BasicAuth - - pipeline :browser do - plug :accepts, ["html"] - plug :fetch_session - plug :fetch_live_flash - plug :put_root_layout, html: {PlingWeb.Layouts, :root} - plug :protect_from_forgery - plug :put_secure_browser_headers - plug :upcase_room_code - end - - pipeline :api do - plug :accepts, ["json"] - end - - pipeline :dashboard_auth do - plug :basic_auth, username: "blur", password: "thenarcissist" - end - - scope "/", PlingWeb do - pipe_through [:browser, :dashboard_auth] - end - - scope "/", PlingWeb do - pipe_through :browser - - get "/login", LoginController, :login - get "/logout", LoginController, :logout - - pipe_through :require_login - live "/", HomeLive - live "/:game_mode/:room_code", RoomLive - end - - pipeline :require_login do - plug :ensure_authenticated - end - - defp ensure_authenticated(conn, _opts) do - if get_session(conn, :user_id) do - conn - else - conn - |> redirect(to: "/login") - |> halt() - end - end - - defp upcase_room_code(conn, _opts) do - case conn.path_params do - %{"room_code" => room_code} = params -> - %{conn | path_params: %{params | "room_code" => String.upcase(room_code)}} - - _ -> - conn - end - end - - # Other scopes may use custom stacks. - # scope "/api", PlingWeb do - # pipe_through :api - # end - - # Enable LiveDashboard and Swoosh mailbox preview in development - if Application.compile_env(:pling, :dev_routes) do - # If you want to use the LiveDashboard in production, you should put - # it behind authentication and allow only admins to access it. - # If your application does not have an admins-only section yet, - # you can use Plug.BasicAuth to set up some basic authentication - # as long as you are also using SSL (which you should anyway). - import Phoenix.LiveDashboard.Router - - scope "/dev" do - pipe_through :browser - - live_dashboard "/dashboard", metrics: PlingWeb.Telemetry - forward "/mailbox", Plug.Swoosh.MailboxPreview - end - end -end diff --git a/lib/pling_web/telemetry.ex b/lib/pling_web/telemetry.ex deleted file mode 100644 index 4c3d0c0..0000000 --- a/lib/pling_web/telemetry.ex +++ /dev/null @@ -1,92 +0,0 @@ -defmodule PlingWeb.Telemetry do - use Supervisor - import Telemetry.Metrics - - def start_link(arg) do - Supervisor.start_link(__MODULE__, arg, name: __MODULE__) - end - - @impl true - def init(_arg) do - children = [ - # Telemetry poller will execute the given period measurements - # every 10_000ms. Learn more here: https://hexdocs.pm/telemetry_metrics - {:telemetry_poller, measurements: periodic_measurements(), period: 10_000} - # Add reporters as children of your supervision tree. - # {Telemetry.Metrics.ConsoleReporter, metrics: metrics()} - ] - - Supervisor.init(children, strategy: :one_for_one) - end - - def metrics do - [ - # Phoenix Metrics - summary("phoenix.endpoint.start.system_time", - unit: {:native, :millisecond} - ), - summary("phoenix.endpoint.stop.duration", - unit: {:native, :millisecond} - ), - summary("phoenix.router_dispatch.start.system_time", - tags: [:route], - unit: {:native, :millisecond} - ), - summary("phoenix.router_dispatch.exception.duration", - tags: [:route], - unit: {:native, :millisecond} - ), - summary("phoenix.router_dispatch.stop.duration", - tags: [:route], - unit: {:native, :millisecond} - ), - summary("phoenix.socket_connected.duration", - unit: {:native, :millisecond} - ), - summary("phoenix.channel_joined.duration", - unit: {:native, :millisecond} - ), - summary("phoenix.channel_handled_in.duration", - tags: [:event], - unit: {:native, :millisecond} - ), - - # Database Metrics - summary("pling.repo.query.total_time", - unit: {:native, :millisecond}, - description: "The sum of the other measurements" - ), - summary("pling.repo.query.decode_time", - unit: {:native, :millisecond}, - description: "The time spent decoding the data received from the database" - ), - summary("pling.repo.query.query_time", - unit: {:native, :millisecond}, - description: "The time spent executing the query" - ), - summary("pling.repo.query.queue_time", - unit: {:native, :millisecond}, - description: "The time spent waiting for a database connection" - ), - summary("pling.repo.query.idle_time", - unit: {:native, :millisecond}, - description: - "The time the connection spent waiting before being checked out for the query" - ), - - # VM Metrics - summary("vm.memory.total", unit: {:byte, :kilobyte}), - summary("vm.total_run_queue_lengths.total"), - summary("vm.total_run_queue_lengths.cpu"), - summary("vm.total_run_queue_lengths.io") - ] - end - - defp periodic_measurements do - [ - # A module, function and arguments to be invoked periodically. - # This function must call :telemetry.execute/3 and a metric must be added above. - # {PlingWeb, :count_users, []} - ] - end -end diff --git a/makefile b/makefile deleted file mode 100644 index acdeebc..0000000 --- a/makefile +++ /dev/null @@ -1,56 +0,0 @@ -.PHONY: all dev note - - -dev: - @mix phx.server - - -release: - @fly deploy - -# https://hexdocs.pm/phoenix_analytics/readme.html#installation -init_analytics: - @iex -S mix PhoenixAnalytics.Migration.up() - -clean: - @mix clean - @rm analytics.db - @rm analytics.db.wal - -prod: - @MIX_ENV=prod mix phx.server - -seed: - @mix run priv/repo/seeds.exs - -reset_db: - @mix ecto.reset - -test: - @mix test - -test.watch: - @mix test.watch - - -# ops commands for prod. should be automated. -# some of this toruble is due to db lock conflicts with duckdb -prod_seed: - fly ssh console -C "\ - /app/bin/pling eval 'Application.ensure_all_started(:pling)' && \ - /app/bin/pling eval 'Code.eval_file(\"/app/lib/pling-0.1.0/priv/repo/seeds.exs\")'" - -prod_migrate: - fly ssh console -C "\ - /app/bin/pling eval 'Application.load(:pling)' && \ - /app/bin/pling eval 'Pling.Release.migrate()'" - -prod_reset: - fly ssh console -C "\ - rm -f /data/pling.db* && \ - /app/bin/pling eval 'Pling.Release.migrate()' && \ - /app/bin/pling eval 'Application.load(:pling)' && \ - /app/bin/pling eval 'Application.put_env(:pling, :server, true)' && \ - /app/bin/pling eval 'Application.ensure_all_started(:pling)' && \ - /app/bin/pling eval ':timer.sleep(2000)' && \ - /app/bin/pling eval 'Code.eval_file(\"/app/lib/pling-0.1.0/priv/repo/seeds.exs\")'" \ No newline at end of file diff --git a/mix.exs b/mix.exs deleted file mode 100644 index 6aeab93..0000000 --- a/mix.exs +++ /dev/null @@ -1,91 +0,0 @@ -defmodule Pling.MixProject do - use Mix.Project - - def project do - [ - app: :pling, - version: "0.1.0", - elixir: "~> 1.14", - elixirc_paths: elixirc_paths(Mix.env()), - start_permanent: Mix.env() == :prod, - aliases: aliases(), - deps: deps() - ] - end - - # Configuration for the OTP application. - # - # Type `mix help compile.app` for more information. - def application do - [ - mod: {Pling.Application, []}, - extra_applications: [:logger, :runtime_tools, :tesla] - ] - end - - # Specifies which paths to compile per environment. - defp elixirc_paths(:test), do: ["lib", "test/support"] - defp elixirc_paths(_), do: ["lib"] - - # Specifies your project dependencies. - # - # Type `mix help deps` for examples and options. - defp deps do - [ - {:phoenix, "~> 1.7.18"}, - {:phoenix_ecto, "~> 4.4"}, - {:ecto_sql, "~> 3.10"}, - {:ecto_sqlite3, ">= 0.0.0"}, - {:phoenix_html, "~> 4.0"}, - {:phoenix_live_reload, "~> 1.2", only: :dev}, - {:phoenix_live_view, "~> 1.0.1"}, - {:floki, ">= 0.30.0", only: :test}, - {:phoenix_live_dashboard, "~> 0.8.3"}, - {:oauth2, "~> 2.1"}, - {:salad_ui, "~> 0.14"}, - {:esbuild, "~> 0.8", runtime: Mix.env() == :dev}, - {:tailwind, "~> 0.2", runtime: Mix.env() == :dev}, - {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false}, - {:heroicons, - github: "tailwindlabs/heroicons", - tag: "v2.1.1", - sparse: "optimized", - app: false, - compile: false, - depth: 1}, - {:swoosh, "~> 1.5"}, - {:finch, "~> 0.13"}, - {:telemetry_metrics, "~> 0.6"}, - {:telemetry_poller, "~> 1.0"}, - {:gettext, "~> 0.20"}, - {:req, "~> 0.5.0"}, - {:dns_cluster, "~> 0.1.1"}, - {:bandit, "~> 1.2"}, - {:tesla, "~> 1.7"}, - {:jason, "~> 1.4"}, - {:meck, "~> 0.9.2", only: :test} - ] - end - - # Aliases are shortcuts or tasks specific to the current project. - # For example, to install project dependencies and perform other setup tasks, run: - # - # $ mix setup - # - # See the documentation for `Mix` for more info on aliases. - defp aliases do - [ - setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"], - "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], - "ecto.reset": ["ecto.drop", "ecto.setup"], - test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"], - "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"], - "assets.build": ["tailwind pling", "esbuild pling"], - "assets.deploy": [ - "tailwind pling --minify", - "esbuild pling --minify", - "phx.digest" - ] - ] - end -end diff --git a/mix.lock b/mix.lock deleted file mode 100644 index 47dd661..0000000 --- a/mix.lock +++ /dev/null @@ -1,71 +0,0 @@ -%{ - "bandit": {:hex, :bandit, "1.6.1", "9e01b93d72ddc21d8c576a704949e86ee6cde7d11270a1d3073787876527a48f", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "5a904bf010ea24b67979835e0507688e31ac873d4ffc8ed0e5413e8d77455031"}, - "cachex": {:hex, :cachex, "3.6.0", "14a1bfbeee060dd9bec25a5b6f4e4691e3670ebda28c8ba2884b12fe30b36bf8", [:mix], [{:eternal, "~> 1.2", [hex: :eternal, repo: "hexpm", optional: false]}, {:jumper, "~> 1.0", [hex: :jumper, repo: "hexpm", optional: false]}, {:sleeplocks, "~> 1.1", [hex: :sleeplocks, repo: "hexpm", optional: false]}, {:unsafe, "~> 1.0", [hex: :unsafe, repo: "hexpm", optional: false]}], "hexpm", "ebf24e373883bc8e0c8d894a63bbe102ae13d918f790121f5cfe6e485cc8e2e2"}, - "castore": {:hex, :castore, "1.0.10", "43bbeeac820f16c89f79721af1b3e092399b3a1ecc8df1a472738fd853574911", [:mix], [], "hexpm", "1b0b7ea14d889d9ea21202c43a4fa015eb913021cb535e8ed91946f4b77a8848"}, - "cc_precompiler": {:hex, :cc_precompiler, "0.1.10", "47c9c08d8869cf09b41da36538f62bc1abd3e19e41701c2cea2675b53c704258", [:mix], [{:elixir_make, "~> 0.7", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "f6e046254e53cd6b41c6bacd70ae728011aa82b2742a80d6e2214855c6e06b22"}, - "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, - "db_connection": {:hex, :db_connection, "2.7.0", "b99faa9291bb09892c7da373bb82cba59aefa9b36300f6145c5f201c7adf48ec", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "dcf08f31b2701f857dfc787fbad78223d61a32204f217f15e881dd93e4bdd3ff"}, - "decimal": {:hex, :decimal, "2.3.0", "3ad6255aa77b4a3c4f818171b12d237500e63525c2fd056699967a3e7ea20f62", [:mix], [], "hexpm", "a4d66355cb29cb47c3cf30e71329e58361cfcb37c34235ef3bf1d7bf3773aeac"}, - "deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"}, - "dns_cluster": {:hex, :dns_cluster, "0.1.3", "0bc20a2c88ed6cc494f2964075c359f8c2d00e1bf25518a6a6c7fd277c9b0c66", [:mix], [], "hexpm", "46cb7c4a1b3e52c7ad4cbe33ca5079fbde4840dedeafca2baf77996c2da1bc33"}, - "duckdbex": {:hex, :duckdbex, "0.3.8", "672b5509a2ec10c4b14183acc3cee79bb63b8ac456fbbe245011853740010758", [:make, :mix], [{:cc_precompiler, "~> 0.1", [hex: :cc_precompiler, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.8", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "46d99160f5bfec56b4bbf415c5e927c020f28463a801a3c009533c5b2a17a047"}, - "ecto": {:hex, :ecto, "3.12.5", "4a312960ce612e17337e7cefcf9be45b95a3be6b36b6f94dfb3d8c361d631866", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "6eb18e80bef8bb57e17f5a7f068a1719fbda384d40fc37acb8eb8aeca493b6ea"}, - "ecto_sql": {:hex, :ecto_sql, "3.12.1", "c0d0d60e85d9ff4631f12bafa454bc392ce8b9ec83531a412c12a0d415a3a4d0", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.12", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.7", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.19 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "aff5b958a899762c5f09028c847569f7dfb9cc9d63bdb8133bff8a5546de6bf5"}, - "ecto_sqlite3": {:hex, :ecto_sqlite3, "0.18.0", "dd25010d7b536bb00857f3bf47193f293619b0c30538bf912d4bd82861d25fba", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.12", [hex: :ecto, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.12", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:exqlite, "~> 0.22", [hex: :exqlite, repo: "hexpm", optional: false]}], "hexpm", "e42ef8252e22c6f65e5421289f9e5ceffd1a4a7e01cb2818d5eab78205d3cce7"}, - "elixir_make": {:hex, :elixir_make, "0.9.0", "6484b3cd8c0cee58f09f05ecaf1a140a8c97670671a6a0e7ab4dc326c3109726", [:mix], [], "hexpm", "db23d4fd8b757462ad02f8aa73431a426fe6671c80b200d9710caf3d1dd0ffdb"}, - "elixir_uuid": {:hex, :elixir_uuid, "1.2.1", "dce506597acb7e6b0daeaff52ff6a9043f5919a4c3315abb4143f0b00378c097", [:mix], [], "hexpm", "f7eba2ea6c3555cea09706492716b0d87397b88946e6380898c2889d68585752"}, - "esbuild": {:hex, :esbuild, "0.8.2", "5f379dfa383ef482b738e7771daf238b2d1cfb0222bef9d3b20d4c8f06c7a7ac", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "558a8a08ed78eb820efbfda1de196569d8bfa9b51e8371a1934fbb31345feda7"}, - "eternal": {:hex, :eternal, "1.2.2", "d1641c86368de99375b98d183042dd6c2b234262b8d08dfd72b9eeaafc2a1abd", [:mix], [], "hexpm", "2c9fe32b9c3726703ba5e1d43a1d255a4f3f2d8f8f9bc19f094c7cb1a7a9e782"}, - "expo": {:hex, :expo, "1.1.0", "f7b9ed7fb5745ebe1eeedf3d6f29226c5dd52897ac67c0f8af62a07e661e5c75", [:mix], [], "hexpm", "fbadf93f4700fb44c331362177bdca9eeb8097e8b0ef525c9cc501cb9917c960"}, - "exqlite": {:hex, :exqlite, "0.27.1", "73fc0b3dc3b058a77a2b3771f82a6af2ddcf370b069906968a34083d2ffd2884", [:make, :mix], [{:cc_precompiler, "~> 0.1", [hex: :cc_precompiler, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.8", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "79ef5756451cfb022e8013e1ed00d0f8f7d1333c19502c394dc16b15cfb4e9b4"}, - "file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"}, - "finch": {:hex, :finch, "0.19.0", "c644641491ea854fc5c1bbaef36bfc764e3f08e7185e1f084e35e0672241b76d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.6.2 or ~> 1.7", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.1", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "fc5324ce209125d1e2fa0fcd2634601c52a787aff1cd33ee833664a5af4ea2b6"}, - "floki": {:hex, :floki, "0.37.0", "b83e0280bbc6372f2a403b2848013650b16640cd2470aea6701f0632223d719e", [:mix], [], "hexpm", "516a0c15a69f78c47dc8e0b9b3724b29608aa6619379f91b1ffa47109b5d0dd3"}, - "gettext": {:hex, :gettext, "0.26.2", "5978aa7b21fada6deabf1f6341ddba50bc69c999e812211903b169799208f2a8", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "aa978504bcf76511efdc22d580ba08e2279caab1066b76bb9aa81c4a1e0a32a5"}, - "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~> 2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, - "heroicons": {:git, "https://github.com/tailwindlabs/heroicons.git", "88ab3a0d790e6a47404cba02800a6b25d2afae50", [tag: "v2.1.1", sparse: "optimized", depth: 1]}, - "hpax": {:hex, :hpax, "1.0.2", "762df951b0c399ff67cc57c3995ec3cf46d696e41f0bba17da0518d94acd4aac", [:mix], [], "hexpm", "2f09b4c1074e0abd846747329eaa26d535be0eb3d189fa69d812bfb8bfefd32f"}, - "httpoison": {:hex, :httpoison, "2.2.1", "87b7ed6d95db0389f7df02779644171d7319d319178f6680438167d7b69b1f3d", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "51364e6d2f429d80e14fe4b5f8e39719cacd03eb3f9a9286e61e216feac2d2df"}, - "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, - "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, - "jumper": {:hex, :jumper, "1.0.2", "68cdcd84472a00ac596b4e6459a41b3062d4427cbd4f1e8c8793c5b54f1406a7", [:mix], [], "hexpm", "9b7782409021e01ab3c08270e26f36eb62976a38c1aa64b2eaf6348422f165e1"}, - "live_react": {:hex, :live_react, "0.1.0", "5b406ee4108125f833938c52d7a0eb4611854d421e9a345def5cca450711dfe8", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}, {:phoenix, ">= 1.7.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, ">= 3.3.1", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_live_view, ">= 0.18.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "1d499253bcaf8f4391454b96af3abfff6cdd35ef99b1104edf6c802e06726050"}, - "meck": {:hex, :meck, "0.9.2", "85ccbab053f1db86c7ca240e9fc718170ee5bda03810a6292b5306bf31bae5f5", [:rebar3], [], "hexpm", "81344f561357dc40a8344afa53767c32669153355b626ea9fcbc8da6b3045826"}, - "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, - "mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"}, - "mimerl": {:hex, :mimerl, "1.3.0", "d0cd9fc04b9061f82490f6581e0128379830e78535e017f7780f37fea7545726", [:rebar3], [], "hexpm", "a1e15a50d1887217de95f0b9b0793e32853f7c258a5cd227650889b38839fe9d"}, - "mint": {:hex, :mint, "1.6.2", "af6d97a4051eee4f05b5500671d47c3a67dac7386045d87a904126fd4bbcea2e", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "5ee441dffc1892f1ae59127f74afe8fd82fda6587794278d924e4d90ea3d63f9"}, - "mix_test_watch": {:hex, :mix_test_watch, "1.2.0", "1f9acd9e1104f62f280e30fc2243ae5e6d8ddc2f7f4dc9bceb454b9a41c82b42", [:mix], [{:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "278dc955c20b3fb9a3168b5c2493c2e5cffad133548d307e0a50c7f2cfbf34f6"}, - "nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"}, - "nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"}, - "oauth2": {:hex, :oauth2, "2.1.0", "beb657f393814a3a7a8a15bd5e5776ecae341fd344df425342a3b6f1904c2989", [:mix], [{:tesla, "~> 1.5", [hex: :tesla, repo: "hexpm", optional: false]}], "hexpm", "8ac07f85b3307dd1acfeb0ec852f64161b22f57d0ce0c15e616a1dfc8ebe2b41"}, - "parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"}, - "phoenix": {:hex, :phoenix, "1.7.18", "5310c21443514be44ed93c422e15870aef254cf1b3619e4f91538e7529d2b2e4", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.7", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "1797fcc82108442a66f2c77a643a62980f342bfeb63d6c9a515ab8294870004e"}, - "phoenix_analytics": {:hex, :phoenix_analytics, "0.2.1", "0471c61bb125354da9a30fe7c5aa99510b67d0ebfc76f76c491b77ddee03ccaf", [:mix], [{:cachex, "~> 3.6", [hex: :cachex, repo: "hexpm", optional: false]}, {:duckdbex, "~> 0.3", [hex: :duckdbex, repo: "hexpm", optional: false]}, {:elixir_uuid, "~> 1.2", [hex: :elixir_uuid, repo: "hexpm", optional: false]}, {:live_react, "~> 0.1", [hex: :live_react, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 1.0-rc.1", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.16", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "cc043c0a91aad820c2535b58bbe31d61b0e5f72c2ce39214a7ee3c3428508b33"}, - "phoenix_ecto": {:hex, :phoenix_ecto, "4.6.3", "f686701b0499a07f2e3b122d84d52ff8a31f5def386e03706c916f6feddf69ef", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.1", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}], "hexpm", "909502956916a657a197f94cc1206d9a65247538de8a5e186f7537c895d95764"}, - "phoenix_html": {:hex, :phoenix_html, "4.2.0", "83a4d351b66f472ebcce242e4ae48af1b781866f00ef0eb34c15030d4e2069ac", [:mix], [], "hexpm", "9713b3f238d07043583a94296cc4bbdceacd3b3a6c74667f4df13971e7866ec8"}, - "phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.8.5", "d5f44d7dbd7cfacaa617b70c5a14b2b598d6f93b9caa8e350c51d56cd4350a9b", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:ecto_sqlite3_extras, "~> 1.1.7 or ~> 1.2.0", [hex: :ecto_sqlite3_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.19 or ~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "1d73920515554d7d6c548aee0bf10a4780568b029d042eccb336db29ea0dad70"}, - "phoenix_live_reload": {:hex, :phoenix_live_reload, "1.5.3", "f2161c207fda0e4fb55165f650f7f8db23f02b29e3bff00ff7ef161d6ac1f09d", [:mix], [{:file_system, "~> 0.3 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "b4ec9cd73cb01ff1bd1cac92e045d13e7030330b74164297d1aee3907b54803c"}, - "phoenix_live_view": {:hex, :phoenix_live_view, "1.0.1", "5389a30658176c0de816636ce276567478bffd063c082515a6e8368b8fc9a0db", [:mix], [{:floki, "~> 0.36", [hex: :floki, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6.15 or ~> 1.7.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.15", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c0f517e6f290f10dbb94343ac22e0109437fb1fa6f0696e7c73967b789c1c285"}, - "phoenix_pubsub": {:hex, :phoenix_pubsub, "2.1.3", "3168d78ba41835aecad272d5e8cd51aa87a7ac9eb836eabc42f6e57538e3731d", [:mix], [], "hexpm", "bba06bc1dcfd8cb086759f0edc94a8ba2bc8896d5331a1e2c2902bf8e36ee502"}, - "phoenix_template": {:hex, :phoenix_template, "1.0.4", "e2092c132f3b5e5b2d49c96695342eb36d0ed514c5b252a77048d5969330d639", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "2c0c81f0e5c6753faf5cca2f229c9709919aba34fab866d3bc05060c9c444206"}, - "plug": {:hex, :plug, "1.16.1", "40c74619c12f82736d2214557dedec2e9762029b2438d6d175c5074c933edc9d", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a13ff6b9006b03d7e33874945b2755253841b238c34071ed85b0e86057f8cddc"}, - "plug_crypto": {:hex, :plug_crypto, "2.1.0", "f44309c2b06d249c27c8d3f65cfe08158ade08418cf540fd4f72d4d6863abb7b", [:mix], [], "hexpm", "131216a4b030b8f8ce0f26038bc4421ae60e4bb95c5cf5395e1421437824c4fa"}, - "req": {:hex, :req, "0.5.8", "50d8d65279d6e343a5e46980ac2a70e97136182950833a1968b371e753f6a662", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.17", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 2.0.6 or ~> 2.1", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "d7fc5898a566477e174f26887821a3c5082b243885520ee4b45555f5d53f40ef"}, - "salad_ui": {:hex, :salad_ui, "0.14.6", "01a50ce1cdb540f8b26a22b2c8a9747945597ded8529e2fad8dbb0dfcea5da57", [:mix], [{:phoenix_live_view, "~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:tw_merge, "~> 0.1", [hex: :tw_merge, repo: "hexpm", optional: false]}], "hexpm", "ad24cfd21366767fae1d2bc9f8d8a273e82f9467909673f6d00efaa4ab9f81a8"}, - "sleeplocks": {:hex, :sleeplocks, "1.1.3", "96a86460cc33b435c7310dbd27ec82ca2c1f24ae38e34f8edde97f756503441a", [:rebar3], [], "hexpm", "d3b3958552e6eb16f463921e70ae7c767519ef8f5be46d7696cc1ed649421321"}, - "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, - "swoosh": {:hex, :swoosh, "1.17.5", "14910d267a2633d4335917b37846e376e2067815601592629366c39845dad145", [:mix], [{:bandit, ">= 1.0.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mua, "~> 0.2.3", [hex: :mua, repo: "hexpm", optional: true]}, {:multipart, "~> 0.4", [hex: :multipart, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:req, "~> 0.5 or ~> 1.0", [hex: :req, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "629113d477bc82c4c3bffd15a25e8becc1c7ccc0f0e67743b017caddebb06f04"}, - "tailwind": {:hex, :tailwind, "0.2.4", "5706ec47182d4e7045901302bf3a333e80f3d1af65c442ba9a9eed152fb26c2e", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "c6e4a82b8727bab593700c998a4d98cf3d8025678bfde059aed71d0000c3e463"}, - "telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"}, - "telemetry_metrics": {:hex, :telemetry_metrics, "0.6.2", "2caabe9344ec17eafe5403304771c3539f3b6e2f7fb6a6f602558c825d0d0bfb", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9b43db0dc33863930b9ef9d27137e78974756f5f198cae18409970ed6fa5b561"}, - "telemetry_poller": {:hex, :telemetry_poller, "1.1.0", "58fa7c216257291caaf8d05678c8d01bd45f4bdbc1286838a28c4bb62ef32999", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9eb9d9cbfd81cbd7cdd24682f8711b6e2b691289a0de6826e58452f28c103c8f"}, - "tesla": {:hex, :tesla, "1.13.2", "85afa342eb2ac0fee830cf649dbd19179b6b359bec4710d02a3d5d587f016910", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:mox, "~> 1.0", [hex: :mox, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "960609848f1ef654c3cdfad68453cd84a5febecb6ed9fed9416e36cd9cd724f9"}, - "thousand_island": {:hex, :thousand_island, "1.3.7", "1da7598c0f4f5f50562c097a3f8af308ded48cd35139f0e6f17d9443e4d0c9c5", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "0139335079953de41d381a6134d8b618d53d084f558c734f2662d1a72818dd12"}, - "tw_merge": {:hex, :tw_merge, "0.1.1", "88127783b0039bd85cdc0d8d7f4498f794c4fe30c9c0b35fdc8dcc1f0f18b4dc", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "443f683fe21e171ac1fe1a5105b8b5862d85e0385595c983e8e09d053129e04f"}, - "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, - "unsafe": {:hex, :unsafe, "1.0.2", "23c6be12f6c1605364801f4b47007c0c159497d0446ad378b5cf05f1855c0581", [:mix], [], "hexpm", "b485231683c3ab01a9cd44cb4a79f152c6f3bb87358439c6f68791b85c2df675"}, - "websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"}, - "websock_adapter": {:hex, :websock_adapter, "0.5.8", "3b97dc94e407e2d1fc666b2fb9acf6be81a1798a2602294aac000260a7c4a47d", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "315b9a1865552212b5f35140ad194e67ce31af45bcee443d4ecb96b5fd3f3782"}, -} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..12bde00 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4675 @@ +{ + "name": "pling", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pling", + "dependencies": { + "partyserver": "^0.5.10", + "partysocket": "^1.3.0", + "qrcode": "^1.5.4", + "react": "^19.3.1", + "react-dom": "^19.3.1" + }, + "devDependencies": { + "@cloudflare/vite-plugin": "^1.70.2", + "@cloudflare/workers-types": "^5.20261201.1", + "@tailwindcss/vite": "^4.3.5", + "@types/qrcode": "^1.5.6", + "@types/react": "^19.3.3", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.3.1", + "tailwindcss": "^4.3.5", + "typescript": "^7.0.2", + "vite": "^8.4.1", + "vitest": "^5.1.2", + "wrangler": "^4.170.0" + } + }, + "node_modules/@cloudflare/kv-asset-handler": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.1.tgz", + "integrity": "sha512-48OysfSW3MkQY1XjkhkpPkgrEkOvgfoyHzA2eyX5wpzFpijC02uWigv3hkNdJdT3C7ybW/U17yYHXeR68pLeww==", + "dev": true, + "license": "MIT OR Apache-2.0", + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@cloudflare/unenv-preset": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz", + "integrity": "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==", + "dev": true, + "license": "MIT OR Apache-2.0", + "peerDependencies": { + "unenv": "2.0.0-rc.24", + "workerd": ">1.20260305.0 <2.0.0-0" + }, + "peerDependenciesMeta": { + "workerd": { + "optional": true + } + } + }, + "node_modules/@cloudflare/vite-plugin": { + "version": "1.70.2", + "resolved": "https://registry.npmjs.org/@cloudflare/vite-plugin/-/vite-plugin-1.70.2.tgz", + "integrity": "sha512-8bxssxmIrhB2279SyOY6BsmgR5BDVy58qcIeOzxJxPPyMXxm0VNPvh43SgNDM81DZtJQ7gDOoVssdbY4uojYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cloudflare/unenv-preset": "2.16.2", + "miniflare": "5.20261123.1-beta", + "unenv": "2.0.0-rc.24", + "wrangler": "4.168.0", + "ws": "8.22.0" + }, + "peerDependencies": { + "vite": "^6.1.0 || ^7.0.0 || ^8.0.0", + "wrangler": "^4.168.0" + } + }, + "node_modules/@cloudflare/vite-plugin/node_modules/@cloudflare/workers-utils": { + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workers-utils/-/workers-utils-0.57.0.tgz", + "integrity": "sha512-6NulTDuddhxZUvCmDeyIVtn54Wo0rTV58YztF46V8NKBpH+PISm3aiudkCn0vLlRWeyYReNu5XmdE7hyvTwoLg==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "chalk": "5.3.0", + "dotenv": "16.3.1", + "undici": "7.30.2" + }, + "peerDependencies": { + "vitest": "^4.1.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "node_modules/@cloudflare/vite-plugin/node_modules/wrangler": { + "version": "4.168.0", + "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.168.0.tgz", + "integrity": "sha512-CqxlSPbapKwhH2moKcJlWCYqzB/Gk93rKQcul0KioLLYDKgJpuwuddE5rminAgDkI0YyEjzw4MoCasojog4lJw==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cloudflare/kv-asset-handler": "0.5.1", + "@cloudflare/unenv-preset": "2.16.2", + "@cloudflare/workers-utils": "0.57.0", + "@cspotcode/source-map-support": "0.8.1", + "@types/yargs": "17.0.24", + "cloudflare": "5.2.0", + "devtools-protocol": "0.0.1182435", + "esbuild": "0.28.2", + "miniflare": "5.20261123.1-beta", + "path-to-regexp": "6.3.0", + "undici": "7.30.2", + "unenv": "2.0.0-rc.24", + "workerd": "1.20261123.1" + }, + "bin": { + "cf-wrangler": "bin/cf-wrangler.js", + "wrangler": "bin/wrangler.js", + "wrangler2": "bin/wrangler.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "optionalDependencies": { + "fsevents": "2.3.3" + }, + "peerDependencies": { + "@cloudflare/workers-types": "^5.20261123.1" + }, + "peerDependenciesMeta": { + "@cloudflare/workers-types": { + "optional": true + } + } + }, + "node_modules/@cloudflare/workerd-darwin-64": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261123.1.tgz", + "integrity": "sha512-eHJEySbW8swWiAYYaOn4LdtHQEPfug9oetPATkaXbsYxjsMX+nfyJ16//2ghXws8npxA+ZJkt5RYpimFfVdgkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-darwin-arm64": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261123.1.tgz", + "integrity": "sha512-rDj5iScvzFD/6/pk01GqyIWa78DOGYLf18WCNG4bzfw1Z+VE/pG8msAllduLh0F/1WGD/PYxXJn03CCeSQPOUw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-64": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261123.1.tgz", + "integrity": "sha512-hQs6svgH3YxdgKw7K0IVZ/gmeW49/z4UEHcxpsQHEa6Y2ZabUQef7YCI/BVcaCoHHp8p3cE/cziU3qh9ALIICw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-arm64": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261123.1.tgz", + "integrity": "sha512-LLsuu+ZIcppjDNU4A9QGIbotqkiSXP2QF3HD9kCaateQUxB5GOJ6GRx+qKIu/1A+UBDKR3JutXpT9kKWe5PzEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-windows-64": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261123.1.tgz", + "integrity": "sha512-/zl++/e/0JLMttdz4lUsCo58NaLKQZKancI2YPciaLH9iLHq6UOP2BQZt+dejGRrV9UxdpPYPHUYU9Km5PcALA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workers-types": { + "version": "5.20261201.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-5.20261201.1.tgz", + "integrity": "sha512-L34Vr3QDacBmZY9nVxyqU/dj6XNgl/c+MduZDcxlwE9f4qH7uifcyIfDHmdekn6XFL0VMzpj6Z7QVnuFZ30pug==", + "license": "MIT OR Apache-2.0" + }, + "node_modules/@cloudflare/workers-utils": { + "version": "0.60.0", + "resolved": "https://registry.npmjs.org/@cloudflare/workers-utils/-/workers-utils-0.60.0.tgz", + "integrity": "sha512-E7AmXbkvFNjFiqc/6JctU/Y8pacsAEnc/AzMMWrJfYJz61SGgzp9Q0sk06KGJFrWxifIL5afA0hRnN+1RSNB0Q==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "chalk": "5.3.0", + "dotenv": "16.3.1", + "undici": "7.30.2" + }, + "peerDependencies": { + "vitest": "^4.1.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": 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.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", + "cpu": [ + "arm64" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", + "cpu": [ + "x64" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", + "cpu": [ + "arm" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", + "cpu": [ + "x64" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", + "cpu": [ + "arm64" + ], + "dev": true, + "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.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "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/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/@rolldown/binding-android-arm-eabi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.3.4.tgz", + "integrity": "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.3.4.tgz", + "integrity": "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.3.4.tgz", + "integrity": "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.3.4.tgz", + "integrity": "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.3.4.tgz", + "integrity": "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.3.4.tgz", + "integrity": "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.3.4.tgz", + "integrity": "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.3.4.tgz", + "integrity": "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.3.4.tgz", + "integrity": "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.3.4.tgz", + "integrity": "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.3.4.tgz", + "integrity": "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.3.4.tgz", + "integrity": "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.3.4.tgz", + "integrity": "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@oxc-project/types": "0.160.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.3.4.tgz", + "integrity": "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.3.4.tgz", + "integrity": "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz", + "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sindresorhus/is": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz", + "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@speed-highlight/core": { + "version": "1.2.24", + "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.24.tgz", + "integrity": "sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.5.tgz", + "integrity": "sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.5", + "jiti": "^2.7.0", + "lightningcss": "1.33.0", + "magic-string": "^1.1.0", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.5" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.5.tgz", + "integrity": "sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.5", + "@tailwindcss/oxide-darwin-arm64": "4.3.5", + "@tailwindcss/oxide-darwin-x64": "4.3.5", + "@tailwindcss/oxide-freebsd-x64": "4.3.5", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.5", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.5", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.5", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.5", + "@tailwindcss/oxide-linux-x64-musl": "4.3.5", + "@tailwindcss/oxide-wasm32-wasi": "4.3.5", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.5", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.5" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.5.tgz", + "integrity": "sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.5.tgz", + "integrity": "sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.5.tgz", + "integrity": "sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.5.tgz", + "integrity": "sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.5.tgz", + "integrity": "sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.5.tgz", + "integrity": "sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.5.tgz", + "integrity": "sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.5.tgz", + "integrity": "sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.5.tgz", + "integrity": "sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.5.tgz", + "integrity": "sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.3", + "@emnapi/runtime": "^1.11.3", + "@emnapi/wasi-threads": "^1.2.3", + "@napi-rs/wasm-runtime": "^1.2.2", + "@tybys/wasm-util": "^0.10.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "1.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": { + "version": "0.10.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "0BSD", + "optional": true + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.5.tgz", + "integrity": "sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.5.tgz", + "integrity": "sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.5.tgz", + "integrity": "sha512-BCNiY0a1ZjdOHVqw7kyb7U72BwfMF3dfUuN+tQsLWky/J5JOI/r7abibglXfygrZhVO/3u3V+E25kkKTeMkXaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.5", + "@tailwindcss/oxide": "4.3.5", + "tailwindcss": "4.3.5" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.11.tgz", + "integrity": "sha512-YBdNe5JcjYR0sPhJW1QIeRCmI11YhYvaRuGCs9+WCeTTb+Yhb2BE2XMe5/wAqF10FK5g3+q1PDhQABfT7aX0gg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.6.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz", + "integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.13", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", + "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.4" + } + }, + "node_modules/@types/qrcode": { + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/@types/qrcode/-/qrcode-1.5.6.tgz", + "integrity": "sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/react": { + "version": "19.3.3", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.3.tgz", + "integrity": "sha512-K8uWpJc4teiuOPdiP1umjeA9rGMgVPiXuoL66fcS1QlwBT1WMqY8PORmub9FadopIs+RCW6siYEs7Lpq+vDlog==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.3.0" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.3.1.tgz", + "integrity": "sha512-kYc/mQZ8hnpFXNJXdrbm6kUbLya+V+Q5o3V2j06tR+4lVSyY9Pgx0eBw+eYTVseNUiMY2hr/3PM/EHVOYNKuHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.1.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": ">=0.152.0 <0.157.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/@vitest/mocker": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.2.tgz", + "integrity": "sha512-UGc97wUIy0Ji2+9GxzHEJiOhiwkaukgE7VYcUNnjpX3sWnwQ8XogmNXX4WyOukxYgKb8Nh2XFa7KId0ZjpmVhQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.1.2", + "estree-walker": "^3.0.3", + "magic-string": "^1.4.5" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9 || ^3.0.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/spy": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.2.tgz", + "integrity": "sha512-PQl0/3+p9GaY71+MHywN6oyHfLhVDD5kcbm7oNRldA2F0ExMU3S8RQdnpteJ9gFAdK5P6KCgE6LqCpUgy57KzA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz", + "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cloudflare": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/cloudflare/-/cloudflare-5.2.0.tgz", + "integrity": "sha512-dVzqDpPFYR9ApEC9e+JJshFJZXcw4HzM8W+3DHzO5oy9+8rLC53G7x6fEf9A7/gSuSCxuvndzui5qJKftfIM9A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/node": "^18.11.18", + "@types/node-fetch": "^2.6.4", + "abort-controller": "^3.0.0", + "agentkeepalive": "^4.2.1", + "form-data-encoder": "1.7.2", + "formdata-node": "^4.3.2", + "node-fetch": "^2.6.7" + } + }, + "node_modules/cloudflare/node_modules/@types/node": { + "version": "18.19.130", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", + "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/cloudflare/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, + "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/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "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/csstype": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.4.tgz", + "integrity": "sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "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==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devtools-protocol": { + "version": "0.0.1182435", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1182435.tgz", + "integrity": "sha512-EmlkWb62wSbQNE1gRZZsi4KZYRaF5Skpp183LhRU7+sadKR06O1dHCjZmFSEG6Kv7P6S/UYLxcY3NlYwqKM99w==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", + "license": "MIT" + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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==", + "license": "MIT" + }, + "node_modules/enhanced-resolve": { + "version": "5.27.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.27.1.tgz", + "integrity": "sha512-QnT3ioXm47iCbUZ4yz+I04XStINU9hslvd0XuifFqp9VjkEP3tOAhmhfbRCn4W5uFlpP76XqzFh4eQ8wRGRWMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "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/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/event-target-polyfill": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/event-target-polyfill/-/event-target-polyfill-0.0.4.tgz", + "integrity": "sha512-Gs6RLjzlLRdT8X9ZipJdIZI/Y6/HhRLyq9RdDlCsnpxr/+Nn6bU2EFGuC94GjxqhM+Nmij2Vcq98yoHrU8uNFQ==", + "license": "MIT" + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/expect-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "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/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data-encoder": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", + "dev": true, + "license": "MIT" + }, + "node_modules/formdata-node": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", + "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.3" + }, + "engines": { + "node": ">= 12.20" + } + }, + "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/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz", + "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "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/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "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.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "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.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "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/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/miniflare": { + "version": "5.20261123.1-beta", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261123.1-beta.tgz", + "integrity": "sha512-o2a+xv6Ug144FgUJm7ciSWMiI7R0OH0svGCfqb1+6l9cUfZebc6YMWIK43PeyzWr3x6BLq2j4O9i8BsKk055oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "sharp": "0.35.5", + "undici": "7.30.2", + "workerd": "1.20261123.1", + "ws": "8.21.0", + "youch": "4.1.0-beta.10" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/miniflare/node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "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/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "5.1.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.16.tgz", + "integrity": "sha512-kVrnsrJqMR8+oLJnGEmSWw9BivK5mt7H3FZatVRjrc5wGqFYuBxX1yG7+A7Gi5AefkX6t/oCkizcQgpu0cY1dQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, + "node_modules/napi-windows-process-start-time": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/napi-windows-process-start-time/-/napi-windows-process-start-time-0.1.0.tgz", + "integrity": "sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==", + "cpu": [ + "x64", + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20" + } + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "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/obug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz", + "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/partyserver": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/partyserver/-/partyserver-0.5.10.tgz", + "integrity": "sha512-t2B3mhTL1IOxCsj8rZgn4TxTuub7oLhypjc1/fGPNsbgnn9OsHms6uR3QEd5bFJ/7xrFo771j3DdUlll8cxgBg==", + "license": "ISC", + "dependencies": { + "nanoid": "^5.1.9" + }, + "peerDependencies": { + "@cloudflare/workers-types": "^4.20260424.1 || ^5.20260703.1" + } + }, + "node_modules/partysocket": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/partysocket/-/partysocket-1.3.0.tgz", + "integrity": "sha512-1zToNyolZFK/7nuAw/K2bZrNzFqaZyRoCEkS+9vG6WSC5ikrN6qWRe96q6ImU51uptz2r+dAwSkwhJVdQi4LiA==", + "license": "MIT", + "dependencies": { + "event-target-polyfill": "^0.0.4" + }, + "peerDependencies": { + "react": ">=17" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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/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.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss": { + "version": "8.5.34", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.34.tgz", + "integrity": "sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==", + "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", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.4" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss/node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "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/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/react": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.1" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "license": "ISC" + }, + "node_modules/rolldown": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.3.4.tgz", + "integrity": "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.160.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.3.4", + "@rolldown/binding-android-arm64": "1.3.4", + "@rolldown/binding-darwin-arm64": "1.3.4", + "@rolldown/binding-darwin-x64": "1.3.4", + "@rolldown/binding-freebsd-x64": "1.3.4", + "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", + "@rolldown/binding-linux-arm64-gnu": "1.3.4", + "@rolldown/binding-linux-arm64-musl": "1.3.4", + "@rolldown/binding-linux-ppc64-gnu": "1.3.4", + "@rolldown/binding-linux-s390x-gnu": "1.3.4", + "@rolldown/binding-linux-x64-gnu": "1.3.4", + "@rolldown/binding-linux-x64-musl": "1.3.4", + "@rolldown/binding-openharmony-arm64": "1.3.4", + "@rolldown/binding-wasm32-wasi": "1.3.4", + "@rolldown/binding-win32-arm64-msvc": "1.3.4", + "@rolldown/binding-win32-x64-msvc": "1.3.4" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/sharp": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.5", + "@img/sharp-darwin-x64": "0.35.5", + "@img/sharp-freebsd-wasm32": "0.35.5", + "@img/sharp-libvips-darwin-arm64": "1.3.4", + "@img/sharp-libvips-darwin-x64": "1.3.4", + "@img/sharp-libvips-linux-arm": "1.3.4", + "@img/sharp-libvips-linux-arm64": "1.3.4", + "@img/sharp-libvips-linux-ppc64": "1.3.4", + "@img/sharp-libvips-linux-riscv64": "1.3.4", + "@img/sharp-libvips-linux-s390x": "1.3.4", + "@img/sharp-libvips-linux-x64": "1.3.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", + "@img/sharp-libvips-linuxmusl-x64": "1.3.4", + "@img/sharp-linux-arm": "0.35.5", + "@img/sharp-linux-arm64": "0.35.5", + "@img/sharp-linux-ppc64": "0.35.5", + "@img/sharp-linux-riscv64": "0.35.5", + "@img/sharp-linux-s390x": "0.35.5", + "@img/sharp-linux-x64": "0.35.5", + "@img/sharp-linuxmusl-arm64": "0.35.5", + "@img/sharp-linuxmusl-x64": "0.35.5", + "@img/sharp-webcontainers-wasm32": "0.35.5", + "@img/sharp-win32-arm64": "0.35.5", + "@img/sharp-win32-ia32": "0.35.5", + "@img/sharp-win32-x64": "0.35.5" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/source-map-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.3.0.tgz", + "integrity": "sha512-pdUVfIWcK0kCgK831ibqkZDcL7I9zljjOu0TQFnA+fiQ6y1CYqYB7RkTOHHO45FGMg5P/Mvk/+4ToQ7gAYAL5Q==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/std-env": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", + "dev": true, + "license": "MIT" + }, + "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==", + "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/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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/tailwindcss": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.5.tgz", + "integrity": "sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.4.tgz", + "integrity": "sha512-NHFiWnAbMJxNNpBwiO7jJVGDuqMxT9/oV8v57RR+fgBQShkJil5inGD8/xWy0hjLyHQyX1tu27QANhlz3KBqCg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinybench": { + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.5.tgz", + "integrity": "sha512-b/8GRMdnY4cqkfCLyaFpTGIv1qwfi3oT0mWaepwT++6Z/ZrYehNfZZ2JDKVLKGhNoEkS3IIB1ELtCT0XS5DtOA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/tinyexec": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz", + "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "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/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/typescript": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/undici": { + "version": "7.30.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz", + "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "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", + "dependencies": { + "pathe": "^2.0.3" + } + }, + "node_modules/vite": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.4.1.tgz", + "integrity": "sha512-2bl8n3+GkKBKQQR8CZC+t+3NvjWCBNh9S0Dbfu7hr7+Jjeg71jcZk7uKF6mo8GZXjIws+Nl6jhvAfHUO320VuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.34", + "rolldown": "~1.3.4", + "tinyglobby": "^0.2.17" + }, + "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", + "napi-windows-process-start-time": "^0.1.0" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.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 + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "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/vitest": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.2.tgz", + "integrity": "sha512-VIa2wXV208WraXUbzH+dQUrGcFpPuaiRA8HlhXS8R6/sy9cynw6OMqGj8fmAlH1hot7huTCtWUE14+FdXU3eLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.1.2", + "chai": "^6.3.0", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.4.5", + "obug": "^3.0.0", + "picomatch": "^4.0.7", + "std-env": "^4.3.0", + "tinybench": "^6.2.3", + "tinyexec": "^1.3.1", + "tinyglobby": "^0.2.17", + "why-is-node-running": "3.2.1" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.1.2", + "@vitest/browser-preview": "5.1.2", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.1.2", + "@vitest/coverage-v8": "5.1.2", + "@vitest/ui": "5.1.2", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0-beta.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", + "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "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-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "license": "ISC" + }, + "node_modules/why-is-node-running": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz", + "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==", + "dev": true, + "license": "MIT", + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=20.11" + } + }, + "node_modules/workerd": { + "version": "1.20261123.1", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261123.1.tgz", + "integrity": "sha512-2FifnvyeJeCgL9G9QbFqldSrkwMkiWt7VqXjA025H8I4vjMsSHUKTmZ6+72VbB8CJZct/gzm2u8o7ltuRaPOmw==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "bin": { + "workerd": "bin/workerd" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@cloudflare/workerd-darwin-64": "1.20261123.1", + "@cloudflare/workerd-darwin-arm64": "1.20261123.1", + "@cloudflare/workerd-linux-64": "1.20261123.1", + "@cloudflare/workerd-linux-arm64": "1.20261123.1", + "@cloudflare/workerd-windows-64": "1.20261123.1" + } + }, + "node_modules/wrangler": { + "version": "4.170.0", + "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.170.0.tgz", + "integrity": "sha512-QKVXAFNHDCMj140jQ/+HDb3VJ7bjHiE2AGUxg+RZdxUZJsW+vgRYNYOZzSQ5Wn5nZAqR6iHvhhovYL6N1D20zA==", + "dev": true, + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cloudflare/kv-asset-handler": "0.5.1", + "@cloudflare/unenv-preset": "2.16.2", + "@cloudflare/workers-utils": "0.60.0", + "@cspotcode/source-map-support": "0.8.1", + "@types/yargs": "17.0.24", + "cloudflare": "5.2.0", + "devtools-protocol": "0.0.1182435", + "esbuild": "0.28.2", + "miniflare": "5.20261129.0-beta", + "path-to-regexp": "6.3.0", + "undici": "7.30.2", + "unenv": "2.0.0-rc.24", + "workerd": "1.20261129.1" + }, + "bin": { + "cf-wrangler": "bin/cf-wrangler.js", + "wrangler": "bin/wrangler.js", + "wrangler2": "bin/wrangler.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "optionalDependencies": { + "fsevents": "2.3.3" + }, + "peerDependencies": { + "@cloudflare/workers-types": "^5.20261129.1" + }, + "peerDependenciesMeta": { + "@cloudflare/workers-types": { + "optional": true + } + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-64": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261129.1.tgz", + "integrity": "sha512-3CBFQhU+hPjGUEVuBydhVIlV1vpFG2BR9Xv62LbgIL/DzY8F6oLgA+2iRzN49OZCyUbHFa7WEv766KcL2Amfrg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-arm64": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261129.1.tgz", + "integrity": "sha512-8Jj+pF2yLP9iYEXAtioO6F8S+D9Vn1u/7VDcGxELMxg299cN37xS0JG10mmOTGQbsmabRAV/aKuYwApLufogNA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-64": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261129.1.tgz", + "integrity": "sha512-MDIGDtM+yOV95KNN48GcGbOTl9+ngWVr2J32T09Ou88fdhL4S+vDTAiVMOZsK+ipZWprtBW+crcU7ek2MpXkyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-arm64": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261129.1.tgz", + "integrity": "sha512-0U7jPlNHfiAaeD2TROHzzZZUYwSX4SJTu5SA/A89jqlqhBY4raZBlRf1IzQwfYvQwKzmtlvju2ZjguvapwsFqg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-windows-64": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261129.1.tgz", + "integrity": "sha512-Wzli8yhmD7Hj16hCDrwBTfF5L0xt2B/yr09UJFRYs32IVx0gmOYd8d9EhHQ9S4DODAQBKUnMWdZipdqZWK/k0g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/miniflare": { + "version": "5.20261129.0-beta", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261129.0-beta.tgz", + "integrity": "sha512-JMvkB+pBXW1pK0FTF4yANLhLfCv0TdwoXeOAkkw/EaQ9+qzJAO5jnEuXFj9lDeBcXXr/5oYkMNHNyOpgxt03Sg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "sharp": "0.35.5", + "undici": "7.30.2", + "workerd": "1.20261129.1", + "ws": "8.21.0", + "youch": "4.1.0-beta.10" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/wrangler/node_modules/workerd": { + "version": "1.20261129.1", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261129.1.tgz", + "integrity": "sha512-ASqCkTnd53qhWVKaqkPHOS/KbzaO8ps58nMuvRxfKsQOaXvzf0ncoyCdODEW+ond8tUHArF8Y9h2zfYqXcm8jw==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "bin": { + "workerd": "bin/workerd" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@cloudflare/workerd-darwin-64": "1.20261129.1", + "@cloudflare/workerd-darwin-arm64": "1.20261129.1", + "@cloudflare/workerd-linux-64": "1.20261129.1", + "@cloudflare/workerd-linux-arm64": "1.20261129.1", + "@cloudflare/workerd-windows-64": "1.20261129.1" + } + }, + "node_modules/wrangler/node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "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/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ws": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", + "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", + "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/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "license": "ISC" + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "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" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..461816f --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "pling", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "npm run build && vite preview", + "deploy": "npm run build && wrangler deploy", + "typecheck": "tsc -p tsconfig.app.json && tsc -p tsconfig.worker.json", + "test": "vitest run", + "cf-typegen": "wrangler types" + }, + "dependencies": { + "partyserver": "^0.5.10", + "partysocket": "^1.3.0", + "qrcode": "^1.5.4", + "react": "^19.3.1", + "react-dom": "^19.3.1" + }, + "devDependencies": { + "@cloudflare/vite-plugin": "^1.70.2", + "@cloudflare/workers-types": "^5.20261201.1", + "@tailwindcss/vite": "^4.3.5", + "@types/qrcode": "^1.5.6", + "@types/react": "^19.3.3", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.3.1", + "tailwindcss": "^4.3.5", + "typescript": "^7.0.2", + "vite": "^8.4.1", + "vitest": "^5.1.2", + "wrangler": "^4.170.0" + } +} diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot deleted file mode 100644 index d40a38b..0000000 --- a/priv/gettext/default.pot +++ /dev/null @@ -1,226 +0,0 @@ -## This file is a PO Template file. -## -## "msgid"s here are often extracted from source code. -## Add new messages manually only if they're dynamic -## messages that can't be statically extracted. -## -## Run "mix gettext.extract" to bring this file up to -## date. Leave "msgstr"s empty as changing them here has no -## effect: edit them in PO (.po) files instead. -# -msgid "" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:5 -#, elixir-autogen, elixir-format -msgid "A real-time music game" -msgstr "" - -#: lib/pling_web/components/core_components.ex:483 -#, elixir-autogen, elixir-format -msgid "Actions" -msgstr "" - -#: lib/pling_web/components/core_components.ex:160 -#, elixir-autogen, elixir-format -msgid "Attempting to reconnect" -msgstr "" - -#: lib/pling_web/live/room_live.ex:319 -#, elixir-autogen, elixir-format -msgid "Clear Recent" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:14 -#, elixir-autogen, elixir-format -msgid "Create Free-for-All Room (beta)" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:11 -#, elixir-autogen, elixir-format -msgid "Create Versus Room" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:66 -#, elixir-autogen, elixir-format -msgid "Create a room or join an existing one with a room code" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:25 -#, elixir-autogen, elixir-format -msgid "Enter a room code" -msgstr "" - -#: lib/pling_web/components/core_components.ex:151 -#, elixir-autogen, elixir-format -msgid "Error!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Free-for-All Mode (Beta)" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "Game Rules and Instructions" -msgstr "" - -#: lib/pling_web/components/core_components.ex:172 -#, elixir-autogen, elixir-format -msgid "Hang in there while we get back on track" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:36 -#: lib/pling_web/live/home_live.html.heex:64 -#, elixir-autogen, elixir-format -msgid "How to Play" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:45 -#, elixir-autogen, elixir-format -msgid "How to Play Pling" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:59 -#, elixir-autogen, elixir-format -msgid "In Free-for-All mode, every player plays individually. Be the first to identify the song to earn points. The player with the most points at the end of the game wins!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:52 -#, elixir-autogen, elixir-format -msgid "In Versus mode, two teams compete to identify songs faster than their opponents. Each correct guess earns points for your team. The team with the most points at the end wins!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:31 -#, elixir-autogen, elixir-format -msgid "Join Room" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:68 -#, elixir-autogen, elixir-format -msgid "Listen to the song clips and type your guesses" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:20 -#, elixir-autogen, elixir-format -msgid "Next Track" -msgstr "" - -#: lib/pling_web/live/room_live.ex:295 -#, elixir-autogen, elixir-format -msgid "PLAY" -msgstr "" - -#: lib/pling_web/live/room_live.ex:292 -#: lib/pling_web/live/room_live.ex:298 -#, elixir-autogen, elixir-format -msgid "PLING" -msgstr "" - -#: lib/pling_web/components/layouts/root.html.heex:15 -#, elixir-autogen, elixir-format -msgid "Pling" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:69 -#, elixir-autogen, elixir-format -msgid "Score points by being the first to correctly identify songs" -msgstr "" - -#: lib/pling_web/live/room_live.ex:316 -#, elixir-autogen, elixir-format -msgid "Scores" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:67 -#, elixir-autogen, elixir-format -msgid "Share the room code with your friends" -msgstr "" - -#: lib/pling_web/components/core_components.ex:167 -#, elixir-autogen, elixir-format -msgid "Something went wrong!" -msgstr "" - -#: lib/pling_web/components/core_components.ex:150 -#, elixir-autogen, elixir-format -msgid "Success!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:50 -#, elixir-autogen, elixir-format -msgid "Versus Mode" -msgstr "" - -#: lib/pling_web/components/core_components.ex:155 -#, elixir-autogen, elixir-format -msgid "We can't find the internet" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:4 -#, elixir-autogen, elixir-format -msgid "Welcome to Pling" -msgstr "" - -#: lib/pling_web/components/core_components.ex:76 -#: lib/pling_web/components/core_components.ex:130 -#, elixir-autogen, elixir-format -msgid "close" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "hide playlists" -msgstr "" - -#: lib/pling_web/live/room_live.ex:267 -#, elixir-autogen, elixir-format -msgid "is joined by" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:19 -#, elixir-autogen, elixir-format -msgid "or" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "show playlists" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:37 -#, elixir-autogen, elixir-format -msgid "swipe to see song" -msgstr "" - -#: lib/pling_web/live/room_live.ex:231 -#, elixir-autogen, elixir-format -msgid "Waiting for users..." -msgstr "" - -#: lib/pling_web/live/room_live.ex:246 -#, elixir-autogen, elixir-format -msgid "is in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:247 -#: lib/pling_web/live/room_live.ex:275 -#, elixir-autogen, elixir-format -msgid "room" -msgstr "" - -#: lib/pling_web/live/room_live.ex:274 -#, elixir-autogen, elixir-format -msgid "in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:212 -#, elixir-autogen, elixir-format -msgid "Unknown Playlist" -msgstr "" - -#: lib/pling_web/live/room_live.ex:219 -#, elixir-autogen, elixir-format -msgid "and listening to" -msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po deleted file mode 100644 index e75a6cb..0000000 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ /dev/null @@ -1,226 +0,0 @@ -## "msgid"s in this file come from POT (.pot) files. -### -### Do not add, change, or remove "msgid"s manually here as -### they're tied to the ones in the corresponding POT file -### (with the same domain). -### -### Use "mix gettext.extract --merge" or "mix gettext.merge" -### to merge POT files into PO files. -msgid "" -msgstr "" -"Language: en\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: lib/pling_web/live/home_live.html.heex:5 -#, elixir-autogen, elixir-format -msgid "A real-time music game" -msgstr "" - -#: lib/pling_web/components/core_components.ex:483 -#, elixir-autogen, elixir-format -msgid "Actions" -msgstr "" - -#: lib/pling_web/components/core_components.ex:160 -#, elixir-autogen, elixir-format -msgid "Attempting to reconnect" -msgstr "" - -#: lib/pling_web/live/room_live.ex:319 -#, elixir-autogen, elixir-format -msgid "Clear Recent" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:14 -#, elixir-autogen, elixir-format -msgid "Create Free-for-All Room (beta)" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:11 -#, elixir-autogen, elixir-format -msgid "Create Versus Room" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:66 -#, elixir-autogen, elixir-format -msgid "Create a room or join an existing one with a room code" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:25 -#, elixir-autogen, elixir-format -msgid "Enter a room code" -msgstr "" - -#: lib/pling_web/components/core_components.ex:151 -#, elixir-autogen, elixir-format -msgid "Error!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Free-for-All Mode (Beta)" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "Game Rules and Instructions" -msgstr "" - -#: lib/pling_web/components/core_components.ex:172 -#, elixir-autogen, elixir-format -msgid "Hang in there while we get back on track" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:36 -#: lib/pling_web/live/home_live.html.heex:64 -#, elixir-autogen, elixir-format -msgid "How to Play" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:45 -#, elixir-autogen, elixir-format -msgid "How to Play Pling" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:59 -#, elixir-autogen, elixir-format -msgid "In Free-for-All mode, every player plays individually. Be the first to identify the song to earn points. The player with the most points at the end of the game wins!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:52 -#, elixir-autogen, elixir-format -msgid "In Versus mode, two teams compete to identify songs faster than their opponents. Each correct guess earns points for your team. The team with the most points at the end wins!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:31 -#, elixir-autogen, elixir-format -msgid "Join Room" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:68 -#, elixir-autogen, elixir-format -msgid "Listen to the song clips and type your guesses" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:20 -#, elixir-autogen, elixir-format -msgid "Next Track" -msgstr "" - -#: lib/pling_web/live/room_live.ex:295 -#, elixir-autogen, elixir-format -msgid "PLAY" -msgstr "" - -#: lib/pling_web/live/room_live.ex:292 -#: lib/pling_web/live/room_live.ex:298 -#, elixir-autogen, elixir-format -msgid "PLING" -msgstr "" - -#: lib/pling_web/components/layouts/root.html.heex:15 -#, elixir-autogen, elixir-format -msgid "Pling" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:69 -#, elixir-autogen, elixir-format -msgid "Score points by being the first to correctly identify songs" -msgstr "" - -#: lib/pling_web/live/room_live.ex:316 -#, elixir-autogen, elixir-format -msgid "Scores" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:67 -#, elixir-autogen, elixir-format -msgid "Share the room code with your friends" -msgstr "" - -#: lib/pling_web/components/core_components.ex:167 -#, elixir-autogen, elixir-format -msgid "Something went wrong!" -msgstr "" - -#: lib/pling_web/components/core_components.ex:150 -#, elixir-autogen, elixir-format -msgid "Success!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:50 -#, elixir-autogen, elixir-format -msgid "Versus Mode" -msgstr "" - -#: lib/pling_web/components/core_components.ex:155 -#, elixir-autogen, elixir-format -msgid "We can't find the internet" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:4 -#, elixir-autogen, elixir-format -msgid "Welcome to Pling" -msgstr "" - -#: lib/pling_web/components/core_components.ex:76 -#: lib/pling_web/components/core_components.ex:130 -#, elixir-autogen, elixir-format -msgid "close" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "hide playlists" -msgstr "" - -#: lib/pling_web/live/room_live.ex:267 -#, elixir-autogen, elixir-format -msgid "is joined by" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:19 -#, elixir-autogen, elixir-format -msgid "or" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "show playlists" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:37 -#, elixir-autogen, elixir-format -msgid "swipe to see song" -msgstr "" - -#: lib/pling_web/live/room_live.ex:231 -#, elixir-autogen, elixir-format -msgid "Waiting for users..." -msgstr "" - -#: lib/pling_web/live/room_live.ex:246 -#, elixir-autogen, elixir-format -msgid "is in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:247 -#: lib/pling_web/live/room_live.ex:275 -#, elixir-autogen, elixir-format -msgid "room" -msgstr "" - -#: lib/pling_web/live/room_live.ex:274 -#, elixir-autogen, elixir-format, fuzzy -msgid "in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:212 -#, elixir-autogen, elixir-format -msgid "Unknown Playlist" -msgstr "" - -#: lib/pling_web/live/room_live.ex:219 -#, elixir-autogen, elixir-format -msgid "and listening to" -msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/errors.po b/priv/gettext/en/LC_MESSAGES/errors.po deleted file mode 100644 index 844c4f5..0000000 --- a/priv/gettext/en/LC_MESSAGES/errors.po +++ /dev/null @@ -1,112 +0,0 @@ -## `msgid`s in this file come from POT (.pot) files. -## -## Do not add, change, or remove `msgid`s manually here as -## they're tied to the ones in the corresponding POT file -## (with the same domain). -## -## Use `mix gettext.extract --merge` or `mix gettext.merge` -## to merge POT files into PO files. -msgid "" -msgstr "" -"Language: en\n" - -## From Ecto.Changeset.cast/4 -msgid "can't be blank" -msgstr "" - -## From Ecto.Changeset.unique_constraint/3 -msgid "has already been taken" -msgstr "" - -## From Ecto.Changeset.put_change/3 -msgid "is invalid" -msgstr "" - -## From Ecto.Changeset.validate_acceptance/3 -msgid "must be accepted" -msgstr "" - -## From Ecto.Changeset.validate_format/3 -msgid "has invalid format" -msgstr "" - -## From Ecto.Changeset.validate_subset/3 -msgid "has an invalid entry" -msgstr "" - -## From Ecto.Changeset.validate_exclusion/3 -msgid "is reserved" -msgstr "" - -## From Ecto.Changeset.validate_confirmation/3 -msgid "does not match confirmation" -msgstr "" - -## From Ecto.Changeset.no_assoc_constraint/3 -msgid "is still associated with this entry" -msgstr "" - -msgid "are still associated with this entry" -msgstr "" - -## From Ecto.Changeset.validate_length/3 -msgid "should have %{count} item(s)" -msgid_plural "should have %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be %{count} character(s)" -msgid_plural "should be %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be %{count} byte(s)" -msgid_plural "should be %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should have at least %{count} item(s)" -msgid_plural "should have at least %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at least %{count} character(s)" -msgid_plural "should be at least %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at least %{count} byte(s)" -msgid_plural "should be at least %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should have at most %{count} item(s)" -msgid_plural "should have at most %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at most %{count} character(s)" -msgid_plural "should be at most %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at most %{count} byte(s)" -msgid_plural "should be at most %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -## From Ecto.Changeset.validate_number/3 -msgid "must be less than %{number}" -msgstr "" - -msgid "must be greater than %{number}" -msgstr "" - -msgid "must be less than or equal to %{number}" -msgstr "" - -msgid "must be greater than or equal to %{number}" -msgstr "" - -msgid "must be equal to %{number}" -msgstr "" diff --git a/priv/gettext/errors.pot b/priv/gettext/errors.pot deleted file mode 100644 index eef2de2..0000000 --- a/priv/gettext/errors.pot +++ /dev/null @@ -1,109 +0,0 @@ -## This is a PO Template file. -## -## `msgid`s here are often extracted from source code. -## Add new translations manually only if they're dynamic -## translations that can't be statically extracted. -## -## Run `mix gettext.extract` to bring this file up to -## date. Leave `msgstr`s empty as changing them here has no -## effect: edit them in PO (`.po`) files instead. -## From Ecto.Changeset.cast/4 -msgid "can't be blank" -msgstr "" - -## From Ecto.Changeset.unique_constraint/3 -msgid "has already been taken" -msgstr "" - -## From Ecto.Changeset.put_change/3 -msgid "is invalid" -msgstr "" - -## From Ecto.Changeset.validate_acceptance/3 -msgid "must be accepted" -msgstr "" - -## From Ecto.Changeset.validate_format/3 -msgid "has invalid format" -msgstr "" - -## From Ecto.Changeset.validate_subset/3 -msgid "has an invalid entry" -msgstr "" - -## From Ecto.Changeset.validate_exclusion/3 -msgid "is reserved" -msgstr "" - -## From Ecto.Changeset.validate_confirmation/3 -msgid "does not match confirmation" -msgstr "" - -## From Ecto.Changeset.no_assoc_constraint/3 -msgid "is still associated with this entry" -msgstr "" - -msgid "are still associated with this entry" -msgstr "" - -## From Ecto.Changeset.validate_length/3 -msgid "should have %{count} item(s)" -msgid_plural "should have %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be %{count} character(s)" -msgid_plural "should be %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be %{count} byte(s)" -msgid_plural "should be %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should have at least %{count} item(s)" -msgid_plural "should have at least %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at least %{count} character(s)" -msgid_plural "should be at least %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at least %{count} byte(s)" -msgid_plural "should be at least %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should have at most %{count} item(s)" -msgid_plural "should have at most %{count} item(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at most %{count} character(s)" -msgid_plural "should be at most %{count} character(s)" -msgstr[0] "" -msgstr[1] "" - -msgid "should be at most %{count} byte(s)" -msgid_plural "should be at most %{count} byte(s)" -msgstr[0] "" -msgstr[1] "" - -## From Ecto.Changeset.validate_number/3 -msgid "must be less than %{number}" -msgstr "" - -msgid "must be greater than %{number}" -msgstr "" - -msgid "must be less than or equal to %{number}" -msgstr "" - -msgid "must be greater than or equal to %{number}" -msgstr "" - -msgid "must be equal to %{number}" -msgstr "" diff --git a/priv/gettext/nb/LC_MESSAGES/default.po b/priv/gettext/nb/LC_MESSAGES/default.po deleted file mode 100644 index b45facf..0000000 --- a/priv/gettext/nb/LC_MESSAGES/default.po +++ /dev/null @@ -1,218 +0,0 @@ -msgid "" -msgstr "" -"Language: nb\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: lib/pling_web/live/home_live.html.heex:5 -#, elixir-autogen, elixir-format -msgid "A real-time music game" -msgstr "Et sanntids musikkspill" - -#: lib/pling_web/components/core_components.ex:483 -#, elixir-autogen, elixir-format -msgid "Actions" -msgstr "Handlinger" - -#: lib/pling_web/components/core_components.ex:160 -#, elixir-autogen, elixir-format -msgid "Attempting to reconnect" -msgstr "Kobler på" - -#: lib/pling_web/live/room_live.ex:319 -#, elixir-autogen, elixir-format -msgid "Clear Recent" -msgstr "Fjern nylige" - -#: lib/pling_web/live/home_live.html.heex:14 -#, elixir-autogen, elixir-format -msgid "Create Free-for-All Room (beta)" -msgstr "Opprett alle-mot-alle-rom (beta)" - -#: lib/pling_web/live/home_live.html.heex:11 -#, elixir-autogen, elixir-format -msgid "Create Versus Room" -msgstr "Opprett lag-mot-lag rom" - -#: lib/pling_web/live/home_live.html.heex:66 -#, elixir-autogen, elixir-format -msgid "Create a room or join an existing one with a room code" -msgstr "Opprett et rom eller bli med i et eksisterende med en romkode" - -#: lib/pling_web/live/home_live.html.heex:25 -#, elixir-autogen, elixir-format -msgid "Enter a room code" -msgstr "Skriv inn romkode" - -#: lib/pling_web/components/core_components.ex:151 -#, elixir-autogen, elixir-format -msgid "Error!" -msgstr "Error!" - -#: lib/pling_web/live/home_live.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Free-for-All Mode (Beta)" -msgstr "Alle-mot-alle-modus (Beta)" - -#: lib/pling_web/live/home_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "Game Rules and Instructions" -msgstr "Spillregler og instruksjoner" - -#: lib/pling_web/components/core_components.ex:172 -#, elixir-autogen, elixir-format -msgid "Hang in there while we get back on track" -msgstr "Vent litt mens vi finner ut av det" - -#: lib/pling_web/live/home_live.html.heex:36 -#: lib/pling_web/live/home_live.html.heex:64 -#, elixir-autogen, elixir-format -msgid "How to Play" -msgstr "Hvordan spille" - -#: lib/pling_web/live/home_live.html.heex:45 -#, elixir-autogen, elixir-format -msgid "How to Play Pling" -msgstr "Hvordan spille Pling" - -#: lib/pling_web/live/home_live.html.heex:59 -#, elixir-autogen, elixir-format -msgid "In Free-for-All mode, every player plays individually. Be the first to identify the song to earn points. The player with the most points at the end of the game wins!" -msgstr "I alle-mot-alle-modus spiller alle individuelt. Vær først til å identifisere sangen for å få poeng. Spilleren med flest poeng ved spillets slutt vinner!" - -#: lib/pling_web/live/home_live.html.heex:52 -#, elixir-autogen, elixir-format -msgid "In Versus mode, two teams compete to identify songs faster than their opponents. Each correct guess earns points for your team. The team with the most points at the end wins!" -msgstr "I lag mot lag-modus konkurrerer to lag om å identifisere sanger raskere enn motstanderne. Hvert riktig gjett gir poeng til laget ditt. Laget med flest poeng til slutt vinner!" - -#: lib/pling_web/live/home_live.html.heex:31 -#, elixir-autogen, elixir-format -msgid "Join Room" -msgstr "Bli med i rom" - -#: lib/pling_web/live/home_live.html.heex:68 -#, elixir-autogen, elixir-format -msgid "Listen to the song clips and type your guesses" -msgstr "Lytt til sangklippene og skriv inn gjetningene dine" - -#: lib/pling_web/live/room_live.html.heex:20 -#, elixir-autogen, elixir-format -msgid "Next Track" -msgstr "Neste sang" - -#: lib/pling_web/live/room_live.ex:295 -#, elixir-autogen, elixir-format -msgid "PLAY" -msgstr "SPILL" - -#: lib/pling_web/live/room_live.ex:292 -#: lib/pling_web/live/room_live.ex:298 -#, elixir-autogen, elixir-format -msgid "PLING" -msgstr "PLING" - -#: lib/pling_web/components/layouts/root.html.heex:15 -#, elixir-autogen, elixir-format -msgid "Pling" -msgstr "Pling" - -#: lib/pling_web/live/home_live.html.heex:69 -#, elixir-autogen, elixir-format -msgid "Score points by being the first to correctly identify songs" -msgstr "Få poeng ved å være først til å identifisere sanger korrekt" - -#: lib/pling_web/live/room_live.ex:316 -#, elixir-autogen, elixir-format -msgid "Scores" -msgstr "Poeng" - -#: lib/pling_web/live/home_live.html.heex:67 -#, elixir-autogen, elixir-format -msgid "Share the room code with your friends" -msgstr "Del romkoden med vennene dine" - -#: lib/pling_web/components/core_components.ex:167 -#, elixir-autogen, elixir-format -msgid "Something went wrong!" -msgstr "Noe gikk gale!" - -#: lib/pling_web/components/core_components.ex:150 -#, elixir-autogen, elixir-format -msgid "Success!" -msgstr "Suksess!" - -#: lib/pling_web/live/home_live.html.heex:50 -#, elixir-autogen, elixir-format -msgid "Versus Mode" -msgstr "lag mot lag-modus" - -#: lib/pling_web/components/core_components.ex:155 -#, elixir-autogen, elixir-format -msgid "We can't find the internet" -msgstr "Vi finner ikke internett" - -#: lib/pling_web/live/home_live.html.heex:4 -#, elixir-autogen, elixir-format -msgid "Welcome to Pling" -msgstr "Velkommen til Pling" - -#: lib/pling_web/components/core_components.ex:76 -#: lib/pling_web/components/core_components.ex:130 -#, elixir-autogen, elixir-format -msgid "close" -msgstr "lukk" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "hide playlists" -msgstr "skjul spillelister" - -#: lib/pling_web/live/room_live.ex:267 -#, elixir-autogen, elixir-format -msgid "is joined by" -msgstr "er sammen med" - -#: lib/pling_web/live/home_live.html.heex:19 -#, elixir-autogen, elixir-format -msgid "or" -msgstr "eller" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "show playlists" -msgstr "vis spillelister" - -#: lib/pling_web/live/room_live.html.heex:37 -#, elixir-autogen, elixir-format -msgid "swipe to see song" -msgstr "sveip for å se sang" - -#: lib/pling_web/live/room_live.ex:231 -#, elixir-autogen, elixir-format -msgid "Waiting for users..." -msgstr "Venter på brukere" - -#: lib/pling_web/live/room_live.ex:246 -#, elixir-autogen, elixir-format -msgid "is in the" -msgstr "er i" - -#: lib/pling_web/live/room_live.ex:247 -#: lib/pling_web/live/room_live.ex:275 -#, elixir-autogen, elixir-format -msgid "room" -msgstr "rommet" - -#: lib/pling_web/live/room_live.ex:274 -#, elixir-autogen, elixir-format, fuzzy -msgid "in the" -msgstr "i" - -#: lib/pling_web/live/room_live.ex:212 -#, elixir-autogen, elixir-format -msgid "Unknown Playlist" -msgstr "Ukjent spilleliste" - -#: lib/pling_web/live/room_live.ex:219 -#, elixir-autogen, elixir-format -msgid "and listening to" -msgstr "og lytter til" diff --git a/priv/gettext/nb/LC_MESSAGES/errors.po b/priv/gettext/nb/LC_MESSAGES/errors.po deleted file mode 100644 index d2d1b98..0000000 --- a/priv/gettext/nb/LC_MESSAGES/errors.po +++ /dev/null @@ -1,102 +0,0 @@ -## "msgid"s in this file come from POT (.pot) files. -### -### Do not add, change, or remove "msgid"s manually here as -### they're tied to the ones in the corresponding POT file -### (with the same domain). -### -### Use "mix gettext.extract --merge" or "mix gettext.merge" -### to merge POT files into PO files. -msgid "" -msgstr "" -"Language: nb\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgid "can't be blank" -msgstr "kan ikke være tom" - -msgid "has already been taken" -msgstr "er allerede tatt" - -msgid "is invalid" -msgstr "er ugyldig" - -msgid "must be accepted" -msgstr "må aksepteres" - -msgid "has invalid format" -msgstr "har ugyldig format" - -msgid "has an invalid entry" -msgstr "har en ugyldig oppføring" - -msgid "is reserved" -msgstr "er reservert" - -msgid "does not match confirmation" -msgstr "samsvarer ikke med bekreftelsen" - -msgid "is still associated with this entry" -msgstr "er fortsatt knyttet til denne oppføringen" - -msgid "are still associated with this entry" -msgstr "er fortsatt knyttet til denne oppføringen" - -msgid "should have %{count} item(s)" -msgid_plural "should have %{count} item(s)" -msgstr[0] "skal ha %{count} element" -msgstr[1] "skal ha %{count} elementer" - -msgid "should be %{count} character(s)" -msgid_plural "should be %{count} character(s)" -msgstr[0] "skal være %{count} tegn" -msgstr[1] "skal være %{count} tegn" - -msgid "should be %{count} byte(s)" -msgid_plural "should be %{count} byte(s)" -msgstr[0] "skal være %{count} byte" -msgstr[1] "skal være %{count} byte" - -msgid "should have at least %{count} item(s)" -msgid_plural "should have at least %{count} item(s)" -msgstr[0] "skal ha minst %{count} element" -msgstr[1] "skal ha minst %{count} elementer" - -msgid "should be at least %{count} character(s)" -msgid_plural "should be at least %{count} character(s)" -msgstr[0] "skal være minst %{count} tegn" -msgstr[1] "skal være minst %{count} tegn" - -msgid "should be at least %{count} byte(s)" -msgid_plural "should be at least %{count} byte(s)" -msgstr[0] "skal være minst %{count} byte" -msgstr[1] "skal være minst %{count} byte" - -msgid "should have at most %{count} item(s)" -msgid_plural "should have at most %{count} item(s)" -msgstr[0] "skal ha maksimalt %{count} element" -msgstr[1] "skal ha maksimalt %{count} elementer" - -msgid "should be at most %{count} character(s)" -msgid_plural "should be at most %{count} character(s)" -msgstr[0] "skal være maksimalt %{count} tegn" -msgstr[1] "skal være maksimalt %{count} tegn" - -msgid "should be at most %{count} byte(s)" -msgid_plural "should be at most %{count} byte(s)" -msgstr[0] "skal være maksimalt %{count} byte" -msgstr[1] "skal være maksimalt %{count} byte" - -msgid "must be less than %{number}" -msgstr "må være mindre enn %{number}" - -msgid "must be greater than %{number}" -msgstr "må være større enn %{number}" - -msgid "must be less than or equal to %{number}" -msgstr "må være mindre enn eller lik %{number}" - -msgid "must be greater than or equal to %{number}" -msgstr "må være større enn eller lik %{number}" - -msgid "must be equal to %{number}" -msgstr "må være lik %{number}" diff --git a/priv/gettext/sv/LC_MESSAGES/default.po b/priv/gettext/sv/LC_MESSAGES/default.po deleted file mode 100644 index eb9ea27..0000000 --- a/priv/gettext/sv/LC_MESSAGES/default.po +++ /dev/null @@ -1,226 +0,0 @@ -## "msgid"s in this file come from POT (.pot) files. -## -## Do not add, change, or remove "msgid"s manually here as -## they're tied to the ones in the corresponding POT file -## (with the same domain). -## -## Use "mix gettext.extract --merge" or "mix gettext.merge" -## to merge POT files into PO files. -msgid "" -msgstr "" -"Language: sv\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: lib/pling_web/live/home_live.html.heex:5 -#, elixir-autogen, elixir-format -msgid "A real-time music game" -msgstr "Ett musikspel i realtid" - -#: lib/pling_web/components/core_components.ex:483 -#, elixir-autogen, elixir-format -msgid "Actions" -msgstr "Åtgärder" - -#: lib/pling_web/components/core_components.ex:160 -#, elixir-autogen, elixir-format -msgid "Attempting to reconnect" -msgstr "Försöker återansluta" - -#: lib/pling_web/live/room_live.ex:319 -#, elixir-autogen, elixir-format -msgid "Clear Recent" -msgstr "Rensa senaste" - -#: lib/pling_web/live/home_live.html.heex:14 -#, elixir-autogen, elixir-format -msgid "Create Free-for-All Room (beta)" -msgstr "Skapa Alla-mot-alla-rum (beta)" - -#: lib/pling_web/live/home_live.html.heex:11 -#, elixir-autogen, elixir-format -msgid "Create Versus Room" -msgstr "Skapa Mot-varandra-rum" - -#: lib/pling_web/live/home_live.html.heex:66 -#, elixir-autogen, elixir-format -msgid "Create a room or join an existing one with a room code" -msgstr "Skapa ett rum eller gå med i ett befintligt med en rumskod" - -#: lib/pling_web/live/home_live.html.heex:25 -#, elixir-autogen, elixir-format -msgid "Enter a room code" -msgstr "Ange en rumskod" - -#: lib/pling_web/components/core_components.ex:151 -#, elixir-autogen, elixir-format -msgid "Error!" -msgstr "Fel!" - -#: lib/pling_web/live/home_live.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Free-for-All Mode (Beta)" -msgstr "Alla-mot-alla-läge (Beta)" - -#: lib/pling_web/live/home_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "Game Rules and Instructions" -msgstr "Spelregler och instruktioner" - -#: lib/pling_web/components/core_components.ex:172 -#, elixir-autogen, elixir-format -msgid "Hang in there while we get back on track" -msgstr "Häng kvar medan vi kommer tillbaka på spåret" - -#: lib/pling_web/live/home_live.html.heex:36 -#: lib/pling_web/live/home_live.html.heex:64 -#, elixir-autogen, elixir-format -msgid "How to Play" -msgstr "Hur man spelar" - -#: lib/pling_web/live/home_live.html.heex:45 -#, elixir-autogen, elixir-format -msgid "How to Play Pling" -msgstr "Hur man spelar Pling" - -#: lib/pling_web/live/home_live.html.heex:59 -#, elixir-autogen, elixir-format -msgid "In Free-for-All mode, every player plays individually. Be the first to identify the song to earn points. The player with the most points at the end of the game wins!" -msgstr "I Alla-mot-alla-läget spelar varje spelare individuellt. Var först med att identifiera låten för att få poäng. Spelaren med flest poäng i slutet av spelet vinner!" - -#: lib/pling_web/live/home_live.html.heex:52 -#, elixir-autogen, elixir-format -msgid "In Versus mode, two teams compete to identify songs faster than their opponents. Each correct guess earns points for your team. The team with the most points at the end wins!" -msgstr "I Mot-varandra-läget tävlar två lag om att identifiera låtar snabbare än motståndarna. Varje rätt gissning ger poäng till ditt lag. Laget med flest poäng i slutet vinner!" - -#: lib/pling_web/live/home_live.html.heex:31 -#, elixir-autogen, elixir-format -msgid "Join Room" -msgstr "Gå med i rum" - -#: lib/pling_web/live/home_live.html.heex:68 -#, elixir-autogen, elixir-format -msgid "Listen to the song clips and type your guesses" -msgstr "Lyssna på låtklippen och skriv dina gissningar" - -#: lib/pling_web/live/room_live.html.heex:20 -#, elixir-autogen, elixir-format -msgid "Next Track" -msgstr "Nästa låt" - -#: lib/pling_web/live/room_live.ex:295 -#, elixir-autogen, elixir-format -msgid "PLAY" -msgstr "SPELA" - -#: lib/pling_web/live/room_live.ex:292 -#: lib/pling_web/live/room_live.ex:298 -#, elixir-autogen, elixir-format -msgid "PLING" -msgstr "PLING" - -#: lib/pling_web/components/layouts/root.html.heex:15 -#, elixir-autogen, elixir-format -msgid "Pling" -msgstr "Pling" - -#: lib/pling_web/live/home_live.html.heex:69 -#, elixir-autogen, elixir-format -msgid "Score points by being the first to correctly identify songs" -msgstr "Få poäng genom att vara först med att korrekt identifiera låtar" - -#: lib/pling_web/live/room_live.ex:316 -#, elixir-autogen, elixir-format -msgid "Scores" -msgstr "Poäng" - -#: lib/pling_web/live/home_live.html.heex:67 -#, elixir-autogen, elixir-format -msgid "Share the room code with your friends" -msgstr "" - -#: lib/pling_web/components/core_components.ex:167 -#, elixir-autogen, elixir-format -msgid "Something went wrong!" -msgstr "" - -#: lib/pling_web/components/core_components.ex:150 -#, elixir-autogen, elixir-format -msgid "Success!" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:50 -#, elixir-autogen, elixir-format -msgid "Versus Mode" -msgstr "" - -#: lib/pling_web/components/core_components.ex:155 -#, elixir-autogen, elixir-format -msgid "We can't find the internet" -msgstr "" - -#: lib/pling_web/live/home_live.html.heex:4 -#, elixir-autogen, elixir-format -msgid "Welcome to Pling" -msgstr "" - -#: lib/pling_web/components/core_components.ex:76 -#: lib/pling_web/components/core_components.ex:130 -#, elixir-autogen, elixir-format -msgid "close" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "hide playlists" -msgstr "dölj spellistor" - -#: lib/pling_web/live/room_live.ex:267 -#, elixir-autogen, elixir-format -msgid "is joined by" -msgstr "spelar med" - -#: lib/pling_web/live/home_live.html.heex:19 -#, elixir-autogen, elixir-format -msgid "or" -msgstr "" - -#: lib/pling_web/live/room_live.html.heex:46 -#, elixir-autogen, elixir-format -msgid "show playlists" -msgstr "visa spellistor" - -#: lib/pling_web/live/room_live.html.heex:37 -#, elixir-autogen, elixir-format -msgid "swipe to see song" -msgstr "svep för att se låten" - -#: lib/pling_web/live/room_live.ex:231 -#, elixir-autogen, elixir-format -msgid "Waiting for users..." -msgstr "" - -#: lib/pling_web/live/room_live.ex:246 -#, elixir-autogen, elixir-format -msgid "is in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:247 -#: lib/pling_web/live/room_live.ex:275 -#, elixir-autogen, elixir-format -msgid "room" -msgstr "" - -#: lib/pling_web/live/room_live.ex:274 -#, elixir-autogen, elixir-format, fuzzy -msgid "in the" -msgstr "" - -#: lib/pling_web/live/room_live.ex:212 -#, elixir-autogen, elixir-format -msgid "Unknown Playlist" -msgstr "" - -#: lib/pling_web/live/room_live.ex:219 -#, elixir-autogen, elixir-format -msgid "and listening to" -msgstr "" diff --git a/priv/gettext/sv/LC_MESSAGES/errors.po b/priv/gettext/sv/LC_MESSAGES/errors.po deleted file mode 100644 index 3c18bf6..0000000 --- a/priv/gettext/sv/LC_MESSAGES/errors.po +++ /dev/null @@ -1,102 +0,0 @@ -## "msgid"s in this file come from POT (.pot) files. -### -### Do not add, change, or remove "msgid"s manually here as -### they're tied to the ones in the corresponding POT file -### (with the same domain). -### -### Use "mix gettext.extract --merge" or "mix gettext.merge" -### to merge POT files into PO files. -msgid "" -msgstr "" -"Language: sv\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgid "can't be blank" -msgstr "får inte vara tomt" - -msgid "has already been taken" -msgstr "är redan taget" - -msgid "is invalid" -msgstr "är ogiltigt" - -msgid "must be accepted" -msgstr "måste accepteras" - -msgid "has invalid format" -msgstr "har ogiltigt format" - -msgid "has an invalid entry" -msgstr "har en ogiltig post" - -msgid "is reserved" -msgstr "är reserverat" - -msgid "does not match confirmation" -msgstr "matchar inte bekräftelsen" - -msgid "is still associated with this entry" -msgstr "är fortfarande kopplad till denna post" - -msgid "are still associated with this entry" -msgstr "är fortfarande kopplade till denna post" - -msgid "should have %{count} item(s)" -msgid_plural "should have %{count} item(s)" -msgstr[0] "ska ha %{count} objekt" -msgstr[1] "ska ha %{count} objekt" - -msgid "should be %{count} character(s)" -msgid_plural "should be %{count} character(s)" -msgstr[0] "ska vara %{count} tecken" -msgstr[1] "ska vara %{count} tecken" - -msgid "should be %{count} byte(s)" -msgid_plural "should be %{count} byte(s)" -msgstr[0] "ska vara %{count} byte" -msgstr[1] "ska vara %{count} byte" - -msgid "should have at least %{count} item(s)" -msgid_plural "should have at least %{count} item(s)" -msgstr[0] "ska ha minst %{count} objekt" -msgstr[1] "ska ha minst %{count} objekt" - -msgid "should be at least %{count} character(s)" -msgid_plural "should be at least %{count} character(s)" -msgstr[0] "ska vara minst %{count} tecken" -msgstr[1] "ska vara minst %{count} tecken" - -msgid "should be at least %{count} byte(s)" -msgid_plural "should be at least %{count} byte(s)" -msgstr[0] "ska vara minst %{count} byte" -msgstr[1] "ska vara minst %{count} byte" - -msgid "should have at most %{count} item(s)" -msgid_plural "should have at most %{count} item(s)" -msgstr[0] "ska ha högst %{count} objekt" -msgstr[1] "ska ha högst %{count} objekt" - -msgid "should be at most %{count} character(s)" -msgid_plural "should be at most %{count} character(s)" -msgstr[0] "ska vara högst %{count} tecken" -msgstr[1] "ska vara högst %{count} tecken" - -msgid "should be at most %{count} byte(s)" -msgid_plural "should be at most %{count} byte(s)" -msgstr[0] "ska vara högst %{count} byte" -msgstr[1] "ska vara högst %{count} byte" - -msgid "must be less than %{number}" -msgstr "måste vara mindre än %{number}" - -msgid "must be greater than %{number}" -msgstr "måste vara större än %{number}" - -msgid "must be less than or equal to %{number}" -msgstr "måste vara mindre än eller lika med %{number}" - -msgid "must be greater than or equal to %{number}" -msgstr "måste vara större än eller lika med %{number}" - -msgid "must be equal to %{number}" -msgstr "måste vara lika med %{number}" diff --git a/priv/repo/migrations/.formatter.exs b/priv/repo/migrations/.formatter.exs deleted file mode 100644 index 49f9151..0000000 --- a/priv/repo/migrations/.formatter.exs +++ /dev/null @@ -1,4 +0,0 @@ -[ - import_deps: [:ecto_sql], - inputs: ["*.exs"] -] diff --git a/priv/repo/migrations/20250104194553_track_playlist_join_table.exs b/priv/repo/migrations/20250104194553_track_playlist_join_table.exs deleted file mode 100644 index dcf6be6..0000000 --- a/priv/repo/migrations/20250104194553_track_playlist_join_table.exs +++ /dev/null @@ -1,53 +0,0 @@ -defmodule Pling.Repo.Migrations.TrackPlaylistJoinTable do - use Ecto.Migration - - def change do - # Create playlists table with spotify_id as primary key - create table(:playlists, primary_key: false) do - add :spotify_id, :string, primary_key: true, null: false - add :name, :string, null: false - add :official, :boolean, default: false, null: false - add :image_url, :string - add :owner, :string, null: false - - timestamps() - end - - create unique_index(:playlists, [:spotify_id]) - - # Create tracks table with uri as primary key (full spotify URI format) - create table(:tracks, primary_key: false) do - add :uri, :string, primary_key: true, null: false, size: 100 - add :title, :string, null: false - add :artists, {:array, :string}, null: false - add :popularity, :integer - add :album, :string - - timestamps() - end - - create unique_index(:tracks, [:uri]) - - # Create the join table for many-to-many relationship - create table(:playlist_tracks, primary_key: false) do - add :playlist_spotify_id, - references(:playlists, column: :spotify_id, type: :string, on_delete: :delete_all), - null: false - - add :track_uri, - references(:tracks, column: :uri, type: :string, on_delete: :delete_all), - null: false - - timestamps() - end - - # Add indexes for better query performance - create index(:playlist_tracks, [:playlist_spotify_id]) - create index(:playlist_tracks, [:track_uri]) - - # Ensure no duplicate combinations of playlist and track - create unique_index(:playlist_tracks, [:playlist_spotify_id, :track_uri], - name: :playlist_track_unique_assoc - ) - end -end diff --git a/priv/repo/seeds.exs b/priv/repo/seeds.exs deleted file mode 100644 index a5e9778..0000000 --- a/priv/repo/seeds.exs +++ /dev/null @@ -1,28 +0,0 @@ -alias Pling.Repo -alias Pling.Playlists.{MusicLibrary, Playlist} - -playlists = [ - "4mUy5wCcZi5Nq6azLEM9ik", - "3wvTJnQoBgxZe99WDF1zcN", - "4DIYG1WrBI9jRJiul9vmxj", - "24wKd8i8ANGZhMZq4U7Eaj", - "50nqzehFR03d6ULmqTQFn4" -] - - -# Import each playlist -Enum.each(playlists, fn spotify_id -> - # Skip if playlist already exists - unless Repo.get(Playlist, spotify_id) do - case MusicLibrary.get_or_fetch_playlist(spotify_id) do - {:error, reason} -> - IO.puts("Failed to import playlist: (#{spotify_id}): #{inspect(reason)}") - - {:ok, _status, playlist} -> - playlist - |> Playlist.changeset(%{official: true}) - |> Repo.update!() - IO.puts("Imported playlist: #{playlist.name}") - end - end -end) diff --git a/priv/static/audio/bell.mp3 b/priv/static/audio/bell.mp3 deleted file mode 100644 index 36d6ba8f3e4791be563f22646b31b96a840f47d3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17179 zcmdt}_g7Qj6E=XJ6heT|dr?A_PG|xaNT{KADawb?iwa1wYZ7`>0qGV(l`2KCU?CtV zO+hJwieRA#7Nn>I$i9c~`@U=4AMRgpvzDB57Gd_Bd1humGqbg^&_hEzA9;5-H%s`+ z2SF%%|C1qmb+in%bO?n1{qq0(0GrwWUr+zPZ*3w&qTt`~!~awu$m|z{!wCsVNJz-a zDk&+ctLy0K7#W$Em{?fY+SJH2uja!`;)HAkHoc@V!+YWjn9NKjAd#3^(% z(&FI>OfQ6fuJe&&0QGVE?_U6({s;d6Ex*peKLOY{C-Gb-Ut3?_=(#8SxcTuf*p#3% ze(jq7gffRevH$1uD-ix#R^Tic__%ZBf@ly$3_CwFJp7ve>C4y+7g67eZvsRJ;ttsh z8yv}!&GwK3uo6t9~e?Yg}J35NGaqN-#xU{@L5;YW;_VjNQTlQf7`8{`r!rUl(Tl9%4yK4Q&rezQ(BVS0mqBMJSDttbxChQKR4Hz!!_ z`UU2&srTNS=N&%YcAt1Wmk1#Oe3K`yXB3CWOw?nZH!6`gL`P2T#n64gu^k2%^E>}6$Nyt1vB z;Tmm}YV`}a+IrZv<*(PO<85&Ml!Jo_U-xK?@JBBHJV(^RM}@vojq-}%#W%gPQG4(6 zMcJ6y{Cc)}hIM*CfSs_2-G&q9?;w8Vw4g~872f}i!{HKlH}NrpHsGL~#a zQzyaSwabi~Q^$SKMiTf{5I!b2}Xst0)b}ExWIN zIF~HpmLARYHD54kvJvSowv9E*b^MSY@Ocfe0az7`f`NIoe*51|ZbtxCIE+v72+ioD zA)>dxqan{VVvFMiy%UUx@3z=Rp{o|HN~V{IM&T8IOnua~^AES=9&WgdQkI#NWp{wq zFyR0u<}vhV{09K65&7zr9yuoz?-nXE+uT6&X)pj|tX@VtzRL@9N+6 z#|X9ZT&*$c)MuNtvtEDhhKtWHK8^kzQ-Aor(J_}@wda>&_HTyGn{J0u*=@>uXjVh4 z4zPA{y^(a2R|x>v-}>kuj+L#Mc}O=5N93c>L^}=X*+4o&%<(VbPwdjC+r$T!vpWd! zL8wx%kyVkY6}$c=?E@|sFB|wf%|Fk!A*p{qzuG7D%XimA^}e!s>UyzrLSG92mW$q* z7sq{4Y9xYsMj|>E!Q0yb(TYZVBsr67Qk9pE!f;vU2FvT;*i9Se=a|kyKH9@N4x7`P zPpqui_NrVmPASvwxLS*zZS?n$-%ePRr_!K}Gvg&D{Bd~RZRTs~v+sM}NhJGBF9O$f z9KOJsZ=YndEI0&!y&>w8>{|drH^+>4DKicou+(jv5DWarpU_Jc3`qo1Yt};%?9>xq z+uI-pXydBd6&v@g4VNW8-ffrT6W`~j`(bd5dbrirYZOXW=4u5?;P~XQ9v)IOlKS$s zbF>3&uN5|YJ3lF;raXh5L3~J4JtKY?UWMJp-y(5ch7u`}uqQ~a-Plo{V)H?23qmH} zyk@7C_c_w*${TZTq_->Sb*<^V9pdPWJr4+yv5Hql*tGl$ z9m_V~19p?g9t-YhqaB&RL2yt(ek{<&-_jk@QxSnpb|T?HW^$MN6`u1|W0sCJ=Vs(w zk*hv2ntmzvd@{LWmRjkf;;RPZec41~i|6z;*-h%^luaR40;>Vlr?@}90zlKsr>>m1 z_W#uAIbK*MuU_Asot0b_899P3-1Mfsd_MaxS%q!4>Jo);!^jGYja_nkkGeHSSR^i- z`pGuIWIQbeo}+kpt6pgIt(CVzc+3>Fydo*BQ2}`Aos~A6yF6|8a!2O+!|Xw!L846T`A3UxClMPQ~d zJ?d*@FIAY)bsWWG!IdmS?toR<4ikC)&E1I-){=bXDkAw78==Xq!y%Gm)GU+dj$1sG zj67BNaN2Q-@a~sCs3qyoPE9P4f19@P61*nY zB5$oz{X%!)k7EQysbKR$4Kjc^bXBBfU(l6cL$L5I^uy@yE)8S6Sz3TwdOf@hJHzsI zpJZ7CluAFBS*!M2t2d&-mia=2_l+m{-mVigXQ$8`7RE}Pr~7U+clio7NWXKK`;RjH zv@R8ZKkLA?m!VerCk~F8?V~4r`FKlrRChq05A03o;l6Zkk!Dkba869&SF3eN{CBUy z<^;ig=8y8&n+t7mQyg>{AqxQrh4mcSSgB-EB3M!W`ayQHzP|IVdju2e7cZn(diCr3 zyzdU-586KNv&Xc`S1FISZZ{2Brb`4og-DbV(_merS-oe3D59mT)N-63 zXFJF^DnLs1P;5>z+mA9Tf~rdF5Ul!4&TqwZp$z`t?HV?$Fm)r)c=O@wz1o0%pG5ub zh>jkEU8ixImGF)y#uS)E$Ml+ap6|rr51v z#!BT**l1Z*q<6_73hUlMA-;FFT@hdIbU!wE{^R4j(#?J2-{o~r}@|Gooeb4cb7Zw{N&3Jy?b(_jOv|D zekQTYu6AJ@Of{+^3h#sU{qKNFakTUYp*zYpRKQNWxJ|F&)_o5~BUV##`@WzDUrxM= zk2;G%eRWkNKNcstTsinLpkZdOKp8FW{*=Z)qsahoo6cO}*vR6t8<=vUALE4P z`))osD_(1jTGwFMpoFA4rl?@OY_yPoR78atdV*U1_K@)Ekf5-NKbr;K0mlyvJ()m9 zFjTREsJs+r?DcY6v;MdfT$6ELA19p0BH9f%&T)f9LUyviO}p*jjUhbyRbYkWXvu4W<|58p)ai?TQCprl{`r}PT{B9K79@b?@4hfoUFLya zyYfUx!$a~&)8g*PmuEu?f44zizqb2l?a*_7&V$H`O6}QXO&jICwAYjq{rZO1>m6W0 z*;%1mg&R#9Gb79icYkV!UElIv=)+nGUdzrHKCm@88X5hruzFBvSCWvjbjXz2=$}-siQi z_#fD8Al-)w79B*q#eDYFv2W>zzw^nUVe&bkfGqrB&8Y|BZ(O;~ZfdHMU+y3T*F$7a zmrY!Sylvg$4arz?=9sTjgYK~$W%ataf*#%R$Rm6_oR$jf-zKc8KP(U>46g=J4;|V* z+9;Y~!Mh^o?~u%+$1u0Tl z+G5v!@;;F2#s@Ei?Ha~5v1z z(K^e&J8c*2e?!vuGQqaR>AOYB8gHI#I-jJs;;YeIE^5Jlf0oEU%&aXvMvDNvC6K!) z@$_|e#`MqT6(m7ab32OV6qh4Q8*mE-jk(mntYJNIyhLv(Ox)MQ>kk*vMHBk=Mu9mp z6^ynzo5`!S#1`C|uDTH1VrldvfpFRWx`GQ9*JO0*Qm&=X8gCZ^xya9MV%PP&1daKC zT@%V=7*IQ4VNI6!NyGx2KmA9Y0T?+zB!p8al_$KC}x$rg(a6tQ`32l(E=! zusJ)!#n*GrzgEx|=5l{5ed6i>72f|>NsWNbc?+;9A4G9Af(Lyk2mh1sHRDs2m(K4S zbH096ggGTI*||?W{vIYzY4JpkE7MD+a!C{s-tpn3Ex7HC?t!yDbv7sM++Wz_k#Tap z+VB-LTI!t5igg&fiGQU;>?OQV(z#!(GRJ8#-16wwZW@c8sLXCR8M}5Y@;jPC!1X2Jr0=)MZqEHbmVVI&cw5aKP)5&&^6AqG z#qsSlvtD1PC&=IEPGh~Rf}Rc~+=iU_AHyES(w4b@*L92@W#zsZfVBhNqiDF*2a~@g z&gK>H7W9h8yyG0i(6H`tr;l8@Yi#CtOg2qzbzSk&Pra=tH``yK<;*@_^*s4C@Zt%( zxT+aTnTBb&o27~P4~Go92fKzH7~Pk$3V;usz4`<9edAX7)9@STg5}V8CYkP3-}~V3 zr8hx3*NBHWFRzt)U)-MkG;sThb787|>9*f1#Wp1}ChI*MU{NCk$!N)|PH+H#(OsYC z0V{JFumfz{%~dW;)f{HJ$>{CGkUI@|#nUxRo3ZA!xY(q*qL#7C*X~yJu^eah+P0*Z zxlR?EzGS70AjS4xE_|LjL(ApFoaR22H%~~{Q$(!Uu^X16@&OeBM$niOtAizbJ4A)( zKXe~}J7BTF;d1~0Kj2M2x}j_>@BJStP1z`*@c!qGkacBLqT;D)%R}X|Gm}X%0TPB@!I|YS{(F!2|7bJ|}H zQR~S~c>SA}N`hr#ft8<^z_$q6|L`Zi=-K_a(~IT;uSCVvtN)HjL3ilWTUA@v3|%8&$}fX?7nqzO5c4_A z5U`&7Jk6O)993GDK=35pG_a9|X;g4v)u{00(-IQ7=*+JqeNA{tb~Q->-*+je;Fs01 zek$H;_k8dk|MYA@`jd99m#Tv*>)c^`1+Lgo-){Sn;hrKGy=z*8Hc`-Bncn&1GDmax z0$6WiEY6yFaik&9I6V!pnbGfY%u1-MJSz+*XFTdT@j2^Rk>&d3Yv@P2vqezQ8_JE7 z+bHdMkw+!mI9@Y-Vcqg$rC_~&grrOHo}pk6(_VUEn*TL{?fCI{r2(ddfY^~8gwklJ zG|$0*n>90L+>6I|t>|9z_uJnvepL`rU%NJJoe%-X0K8quhhyY}Zw0d7E|>H|&$o53 zVhJrDWGaYmOp2)-u zlhHM34lLoRQ(cA6K;@HWmp#aVz?!}HKK%=%))|Ma@yrl|xHYU37nC2ZyPKM%`t$->x%;4V8qL9JF`#oFo zIy8jgBrV%zGSrsCRy@zv`=s`o9!byP+@Ywe^q1y<`m4%l4=kY!ma5FuR`|a2*X!B8 zAHx{j^*p7V>a1~D<@S*AYBa<(c>BZ%Q#^HhT&7C#p`mf|#efWQp|vv}O|Q%&t>grX+yks*jaP|-MIuEIC$k_; z1jYAeMH{YfWef98h!fj+uOy}_KH5)(7hDfA8s;HLQ}iGr2DchdKk1;QP-c2NKw(Tk zJ1g$%`7>lNLIn;r_9&tI@Yh|#kQ9VXvir4Z_+ebd^$``YXkvK83==|`2-;28#5a5p z&_9S_KlOPvyB%3@^QcUC*$C&1$Vl1=`3oEuf}7r)B==t8N`$)Vb0So(!&?j>>CVj4 z@JyVFEq`97xT~cfSfd))X%1`CiwpneTobp#EFhBikJr%3=5=1>9q@ha^gS!oJthLExup?gowW{)bB^EixNnA3d! z?7%L4zI7~9TNyM0zd^GfPVk%5j`D^m=(hZVZ`s;dzZFI(R78W2Xtl;_7r~U`*!JMB znRI$XPgC5>Uxbi&G0PeL1N1VpXIhkyXT4$xmSU;vz;lHE$YckcuYD-A8nJs8In%*Z0RDZj+qQ+=h}a|u z`kZDQ{x!S9p6g~BsQJM$9?UW5I22g$_1=lf0Bdw6W1>7>33&e+z$#Z>LeF8|ilLxj z^Y0})2o2Cs-kuJpC2M9($!h#4VHrL-UmZq71#t~ubC+{C0)YBjePLyen-G#o=#%g* z%&}>MHIHh4t&5@2hI2f@3I+BK)}6hG@9lsxOY0p=KlX`ZGvOu`2@nTQW7PMC!iERWPuGCC4i+sEL4XkE5M}E1>~+)cpNt2) z1~HgE`JalW67tC-6VFRSZ^#l~C*ZkCIvVDG*9Ew0U9Ct%(D3KVXEc-~sw(0{IzTNe zOfnmB1+#)kwj>&2(PlZug2I8Gpm<%j;5@DA*t9m|;EwRsf&0t?ynR?oz14)~S_n@ zc;XtW5#wkhzK^6hQz_E1=(MVsVOK+VipFe{sFpA3KCI8x`@;JHm3C7fH$g|5(7LyYlJ`=Qe@_6CqALl zTh#BB7*KX_HBcr;3t;JuCG^-zuQ6@dN;TD36eG~tIaRoJFTAZ!yIiWavJ{9A=%$UZ z5Ly69?CUS%via%(L$kZhxNNU6;u}4Y&WKtbc1Dv+E#Y;et{ZN7CcBzeLtY%c2!8kd zS}BZdb%mbs=ht=xrWpInws@+AA8iOcga{zMv##iCe@gvpaz;UJMIZ_4`XOj8@=9}O z(_w^|BWmn%6C#4Ot*QzD9KI0p>QV%Z#!lDA;u}(Ejx;c_S-X5##ki4Ee|MI*uNp0+ zf^?oyt@p^-W^`hP3w8^jUqrHx`*3N%Sfj zDrk~A4;=QAd#PMV=vn`7AIT!+L@HQUtcZz@VGty8@6e(9?MKp^Qm zUZ$CGp>&&*gjFPK;X%vs(M9bn3i>MXjEJj6-x+Z~_`O@-lEejj>9BkD)0I#ZxI+xR zpXsk`QGTMVql6tb`(?P&clOv#H`md*BpC#jX(zQS!T$Bg#t0~qQXWu%Y7}|*)$t$6 zkY-#1fJzEMPgFw8a)tqvb)YA32yPX!@19dr`Z56OB$*sA{ZGAk_N1hFOF~bx>UHX( z+o$P)-~Ha)IRl3?GO(SinA*UYtg8sR;z%&xhe&TKK$p7gW}C8{|9+HSUxsRn znpf}}f>>gc`Mr|wkEEt;tL6|t5@?yn?~lW2Gm{z7nF~*nz485Lz({UYGwsYD(z2NXrs#-}Uur2IeeLMq=EUJC6 zi~_3~K`uUH!Obf@IwoeBTSeT*M*a|{!M9K6Ha5XXd|rQ*_To6h#J>Bi zj%iow}a3EO|O>J z7kHtOU>T+whtikgpY)ZxeDWS$2|t@d^rT^(P~=SHQm*pg0<49%+miq@5BLUv@;FS5 zumB_iVQ${9c3x`>{r*x@e0L6MWD$O|t%l4E-+A#eG$8yM_mjxA;K~22 z)QG1SPLA%^nrk}6#{Rq?a%O`NOq`~iP*!weOlydBn4BM-D3L0IywC@_*Nj8#%wQ(a z-bbVfK~{+4HnQ+j082gQ+b;mr&}7~sf^KAEAV!-SruBXtLoxzORX5P_g=%EF#>p9GeG5t2Qie(Ck0 z&$f`{H3<=!_5R8`qQ55ZKXq_quV0@rK+3E}&F^nK|LN%OVM<8P?_R{G=zToBVmz7t zCSj4+sO%>;C6ZTBT4E1Gq!EvK{GW;sJK4cVdE5SeC7=LzdI}IKsBYn(K@m>4aEGVq@vrB-*i1F$Q1$d@ui zr|8$HIL)Q(WTc@BArueVJ2V%IPE+Oo^!y%6Vv1ghKWn{Prf}rL&|hfm39Ct9S9>tY zd|mGu|8?t?{?Sa)qy@}7>Ev$Bn`dEKUP{1PFl5YyfA0+a!S>UZ(%o<{FL5L?p*3;Z z=}WulM`H1~l&deTEU~36$v0!88rC%)vV)ag5!w`gSmL8ao2+8K+*jZQ;+Dw1(>KMK z7D(psX)6x;M7Nx6%91DCbV0?;TxRYdG>=3bAz61mu3ZjIGd^gTZ^G?>QV;*xO7daM zes6UDM{q-A`9ly>pCtEkPx@6jkl2+#Rtff;d?*cNVd~tgl6=TLVZeQW^y0gxh|P#OdGXT~!KGjl$?OB1CtQ~L^0_#(&x*1KyXehXIq5dl*oHO zB`SbCU4AQ|nTMBiR{F)H=_}c-R=7&G>w1a$>TKgs42yzKiXf?wZbb`xzqPtqkjl`Y zMZTz!S+om&HELmvJ3RO(r~cs2hfl0jt797N_#rNu$FPlE=nbk7btOYp-dCCaggB0& zJXg$Fs^7^zy-YK4WLZptDr|#4o0oGP!f68Z(%9|0RtUt4n_r!EH)M`v*mE8memHOj z{QUeTRr&j2{}cqeSStI>Yk7YHn)U}j`+Q#SEz4HRW+7u+AXsZks* z)4C`Wjt8>aYEaLN6qHU*xca;nHsnhCNSxP%0EGN$@W1m#qy6@yFt1d@!u37#d*{Ux z>4>Y%#Q)?j>UD-c;Ae%FMlmFfoV|~ivN~#SUcZ9k6ZkX_+pT6W1>rnnpbvM8;aQ}I zf#5{ADmQ|H$lf&vB)9@hn^yUF5cbys^@t9H(zmQajhGitL0_X?ux45vira%X&)4DB z?S#?;`$6Tqa~+^#WfJG(GgHybEC^h~si5zN{opva^$W0WmT(nfAKXE9($jIoqjwp8 zD`;OEQBBxk=N)dW*T^Ha4Pg!7^Bu$3GtfiYOZr>R)x$!fW&fcoS)>NNMjxKI_!>*1 zm7wmY^@~kQtc1b)@YhEr|DB)ngKtEuvK{SD+FN|tRA}qAwIT`^4K+yjo z3L=L*t?t}tBv^+TH^D@Kzwxk~*2#OcZ}?kVoV{Te$T{^DaNM-M{fa#XJK;WIP8woC zv=eRS(rHuRFEy`)8BzVzcR^Va{Pb)e5BIM|ay;Lc6K9q2ZjQXp|9m=oHP#|4~PFP{1K5YVNQU^=M#dPtEJs%GNV0Ndgp|nr_`rlrnCLb7_x3gltF%kG>3r z0ugr?M{@I!xn!L31>jk{4<-oO2eV8sT$h=+@d;5)SnVx9;{4w>1R?*DtX0m}5`)Rc zDmx(*&Z$m|s36(mXLrc9cr_K?vvH6Nf)x_b{b_!^A(?5VUoMrWc!RL|NUKM|y`|yy z9iseRlszqdR4hUECM)Gz`m?In3nCC=nS(+mtLPGMhb6!+Hf+y~W#ZdWhi0772l97j zKs#Dsgj(fOVQ{#(k){k((to0pq)f+7qD*L1&wo#e?}{mvf>O*zhIrV0b| zH_}%BeK3l9?8J|6#$tX`yn^;~>ApGY2{+P0xmrRXRXp#SK7v7>7p^A5u(PD{iI?QO zAWptF+6zZK9%Q3%>g_tsXTq6+#u>A#4xt0KLH223TsTBiXJB?9yY<%RQCA&pLH{5+ zjYPZXp~B0RjwG+PcYsZ}t7XEQKztS`*LCa>Y?tA0E<$e}zM9YmUovel z5YEC0ISE|IGJ#%8j%CLF-q}lD@_gMvXc?(@kkm`utR)7j7>jV`OW_clavU+YI^*$` zcs}$hdg5orkBdN8SDY zf|)ww<27(67bl!<*5Gsas4QUn#``_!X}3&;dl@=bdk$Kp5k@)rAo0UF5``b9*B9Jn z0c!~vUs~|Eu?te>en2?>?sr<^GJ2FEQ zUZb0nOXGi=wiMp<*=@bbh0i5Pg!5mY*e_uLRmHC6e`p!lZrzj0?$~}tpI3Bt-Cu;& zl1?WV8KJdK$s4Lv-X9vL?=?s7K`iEmUNz_2wrMWk2G#H~PpENA-2hUrVLSj?(?3$#;re zBF{j5M7duXZg0l{o7-)g1^y=FmR>yuaVs2Xq~X-VbJ}gsuYjV*Eq*JC~odYcW zfBO&*s-E~f=U^+vT1C|X6(_~l$RTwbMo1N3naw*IcKCwe)+ky+2tuCC_|*C0Td}&) z!1n?CseqeM{u{3$-mOBOw%SUy^Igw!jKjSohqB$?lFm1q85}t;F6vMFTzG=?6o1#*QDHS+_9tS1U;jzl72;rToL0c?GgrFnYBrw< zwcCkpuxMd`-EBfa6!#@GKR;6CaAYP5MO|o;MPgBUWTnmHr4g<*ZEx5v(bcie;I! z05N7_A#Q}Uk)!#K9rx+Y!cU%New;7{&0&8xvLA+r5n_*Z#9)Q#&F1tkicWW6#KEF$ ze_O}RmJ(vRirBS*yr+1^!W+4NyHk0&6`8s>lLyp1$M;bL4A>s$g*7@cD$~rieCtKe z`>(*3P!DyTRcD6S=g`xrLLfp#67-y^qT59VH2g4BKi_}x$q+0b&T`)~b=f3qb=ob+ zzeZJBJ>P`q3CAuzp91=6My2zv(Xh28T_uYNv>g;z9?ijPJ}#NtvV$(`X-%2!62e@7 z37M1&ie&Z-+fCpu$dfBGS;epW?^>2}7~fQM#EngzaF{ZEZTUS&5sxs6b@hYYIA~ZI zF2HkuOt=CGj62 z{-g=D$%EhjG#v(aY8K+5S5C^pu&#@YVhGtvf?7(nQcb}qM5I9#1EtsD|DaX0Kg5H8 zKM?dXE|_p0iFm63ByQ!u3jN^DyK<}RIFp-J%};**fx{nR_UM#C+`8WO@1>!REfDH> zXXT4}bQ%vqF?;V{ZGwf2b-}D&Y;o)wZXjvm&i~p%{oj~(#<`WFPvkS zn;)bPI}7>oo5V(d9{=HH~c)FV^ar134Cr;nwfr6A6?=M;xVVl01q_1z#v zCf$avRW`Lt_0h3RCI`(BpQl3?*HSM1wUNLRN)X7xy*ebeYHbeJ5U<3UBt_ocJObE^ zYshJ^KyThY-m0`(zNtIoj11f`5E;=NGgPL^9n>5Y+ko-vvryWoX?sC+5Da89wEeMq&i zVg`;OW;7P(s*Wn(P0S{gnzhTq)eCTI5r((;ZM-}bO(#N-{#xsU2wiqwh+5BdHH1WJjcPrhdW?n z^RQrgd+r}R#mg+d|Eq*yH7ZKt)(|gzIDXNa+{(){bL@=-4wc+xnOUm<7n`7=_0;yW zi)?Zs>*2B>-pcw|n~J-~gIrp=QVNRmpgzBSOnc~)l8Q=-oCZe2CD_hw|JjbiN|tgl z^yg&pyGJZC{NOmUe}MKzETR=$PfL10L@th-2L_^C`AnKegfzoTe}??QrXz27i~jtj z&GH&~ggbm$xtIpMPS>&dG5aZ*l72$`@DVt{?q{cZ-UmlMW^3^#$`y+GFiD@-=4r3V z_MB~DyS;7v{J`H~`v(p?2>pQc9+7(LVT5dZCU@=ZLk=jZAAjz4ioh|%=Nz6z@%bka zO~y2lFije}Dtuub*#Tf19ti)Y1Zlv>AptOw<8s`kcpQgI#TXFeygv0_^mgR?P2N13Kon2xG@L-@93qwi713Iv*5S(@xK@DSScdax!bh~ z1OpvE108)AQAFV&hq)Wi*7%#fA3RvWWZiutxG&XaHz203?zP8e-qze^IQWCUpXnUtX>JV98s!S*w3Zi0JL8v-~)_M$SVkEhCE-Upx|ChWq9?!E-#>j zXz7HTHJNvt`?y0F%2~BN$lhB~)wd%J2ytdEWb?W@=?e^iZ!U-An753aj^ z`o6nAY8vrsyWEFF&m2w<2bEU$zsXuE$fpG{gMVIc+rN07M2#w^Mwi*uk}~3f!rIUr5gaUOjM; z;@$vM&hm@`171DBVI$~Y$#)`_dB~rmn{a<SAY z;WUD!I^!)w?wRCLk2B$pex%2kOMGo8UV(6qq9u(ZE|m+O@xH2)p!NRA)VHpTQ^oyK zlXR%1o-}YEWma@G^tLy(7a^ctNDd2N3OS(4Hla>@wuYcw6)J8L{HmMY-1??;l!#P5 zN8~a`1s)YMTnBr=aWDcVKbPKKim{BO%~dXX1xfbGBMKk=HVycAnmTjun-XCpshQy{ z@hs{5&(DNTJg-C9$1nM%ptzJB1tPDTij*ege!$90r*jn%Q2O@+JSAE_Qo-n}%Dv4g z^2Br2;homq3?cBh_`ZeM(Up*&SdOd{xx5-YbmBPy>KBo)B}yn}eHE+d3Z zhu*@m(E)RykeGJ6nBBA&rB}f)6)`+UVu0!(4TORjjI&g3*kuI z`cgOK$9g$`)#-o*-iFrYMKt;8_UW-m=wLer8wW#i4sZW%oE2efAko z_TgK#Pa?T)KFV85u9Z+ZE^Q$_m! z0Wlt?3Xw)F&m=*v(A&U5>4L*xBfn#M2-q4b<=Xdn{U#7k5iaWQQ~R519moq<-%n$A zq1=n2uc14DTjMGaPfyt2v@*wyP!?{S%R#B|o$~({Mg6^P?mqf2ge7;NQ^{+LcAbn1 zU;g^E6bIP#rJw_ZwFSEt#TQCok=LDxJeWpqbL$jou)TUf^-~JQUq$+1CXZB=L>nGS zge2&XSLdFR7d^)vC`?zJaqYQVp$(@xK-H{rrg@{1ZVF=gxMI-5%i?I!{Dt)Qh;3_sk(&+nxt^xyhHMDMYv_|moQwKU_4rBB1q+zAl$1Z-D2 zDmNipg@`SQ7p;@}Z$ZQpT)vMcSI?|!e#y^ymze3c<~x@Y#m?NX(JW?Aow>^JysV5LV6yXLz zbH;CW?bf6xR%u>rIx6!Jc=&+7;Ahq$U&(0K2?6{ynMDZ+M2pJHW9P20+wXR4za;5U zV%^e=ZtUf9tg_C@Xxt6h(^Icl_VUKyulHxJk|W(3cQI!!%g_WgIHTlO`eWn7i(bcN zSv8AjaJo2e7`4eou|rC(x&(0}QIn$t(gpNn2TbPRX+|XP4X8G{-e5H6`=NIpS_X(9pHGX;92bjP}Tcx{fxJ0}NxS zdFLAtn}4bQy*D`J@!YkH#-qd?$a80tn=WK`H%!YVVEgC)m;z1srq*+}vT4X>c40DB z-^Wq^iL~R%yiTpc3ekR#-+Iv_kFp zf=o)DTzSQPjiwS=w)eiO^7BXJ9LPpeHYErB0DIw(3$}pPi;xS-Q4lB*foKpur{3%D z%3+m1{l)zOMIsX6Je{M@5b!w_ { + const onPop = () => setRoute(parseRoute()); + window.addEventListener("popstate", onPop); + return () => window.removeEventListener("popstate", onPop); + }, []); + + if (route.page === "room") return ; + return ; +} diff --git a/src/client/Home.tsx b/src/client/Home.tsx new file mode 100644 index 0000000..ef2957d --- /dev/null +++ b/src/client/Home.tsx @@ -0,0 +1,85 @@ +import { useState } from "react"; +import type { Mode } from "../shared/game"; +import { isValidRoomCode, normalizeRoomCode, randomRoomCode } from "../shared/names"; +import { navigate } from "./App"; +import { Button, Modal } from "./components/ui"; + +export function Home() { + const [code, setCode] = useState(""); + const [showRules, setShowRules] = useState(false); + const create = (mode: Mode) => navigate(`/r/${randomRoomCode()}?mode=${mode}`); + const normalized = normalizeRoomCode(code); + + return ( +
+
+ +

Pling

+

A music buzzer game for the living room.

+
+ +
+ + +
+ +
{ + e.preventDefault(); + if (isValidRoomCode(normalized)) navigate(`/r/${normalized}`); + }} + > + +
+ setCode(e.target.value)} + /> + +
+
+ + + + {showRules && ( + setShowRules(false)}> +
+
    +
  1. One person creates a room and becomes the host. Everyone else joins with the room code or QR code.
  2. +
  3. + The host taps Play in Spotify. The song opens in the host's own Spotify app, so connect that phone + to a speaker. +
  4. +
  5. Everyone else uses their phone as a buzzer. First to hit PLING gets to answer, and the bell rings.
  6. +
  7. The host pauses the music and judges the answer. A wrong answer locks you out for the rest of that song.
  8. +
+

Red vs Blue

+

Two teams. Pick a team on your phone, or put one phone in the middle as a shared buzzer with a button per team.

+

Free-for-all

+

Everyone plays for themselves.

+

+ Prefer another music app? Choose Own music as the deck and play anything; Pling just handles buzzing and + scores. +

+
+
+ )} +
+ ); +} diff --git a/src/client/Room.tsx b/src/client/Room.tsx new file mode 100644 index 0000000..73c0b71 --- /dev/null +++ b/src/client/Room.tsx @@ -0,0 +1,102 @@ +import { useState } from "react"; +import type { Mode } from "../shared/game"; +import { navigate } from "./App"; +import { DeckPicker } from "./components/DeckPicker"; +import { HostPanel } from "./components/HostPanel"; +import { PlayerPanel, TeamPicker } from "./components/PlayerPanel"; +import { Scoreboard } from "./components/Scoreboard"; +import { SettingsModal } from "./components/SettingsModal"; +import { ShareModal } from "./components/ShareModal"; +import { Button } from "./components/ui"; +import { useNow, useRoom } from "./useRoom"; + +type Dialog = "share" | "deck" | "settings" | null; + +export function Room({ code, mode }: { code: string; mode: Mode | null }) { + const { view, connected, error, lastBuzz, clockOffset, send } = useRoom(code, mode); + const [dialog, setDialog] = useState(null); + const ticking = view?.round.phase === "playing" || view?.round.phase === "buzzed"; + const now = useNow(ticking, clockOffset); + + if (!view) { + return ( +
+
+

{error ?? "Joining room…"}

+ {error && } +
+
+ ); + } + + const me = view.players.find((p) => p.id === view.you); + const isHost = view.hostId === view.you; + const host = view.players.find((p) => p.id === view.hostId); + const buzzedKey = view.round.phase === "buzzed" ? view.round.key : undefined; + const flash = lastBuzz && Date.now() - lastBuzz.at < 600; + + return ( +
+
+ +
+ + {isHost && ( + + )} + +
+
+ +

+ {isHost ? "You're the host" : `Host: ${host?.name ?? "nobody"}`} · You are {me?.name} + {" · "} + {view.players.filter((p) => p.online).length} here +

+ + {!connected &&

Reconnecting…

} + + {!isHost && !view.hostOnline && ( +
+ The host left. Someone else takes over shortly. + +
+ )} + +
+ {isHost ? ( + + ) : view.mode === "vs" && !me?.seat ? ( + + ) : ( + + )} +
+ + + + {error && ( +
+ {error} +
+ )} + + {dialog === "share" && setDialog(null)} />} + {dialog === "deck" && setDialog(null)} />} + {dialog === "settings" && setDialog(null)} />} +
+ ); +} diff --git a/src/client/components/Countdown.tsx b/src/client/components/Countdown.tsx new file mode 100644 index 0000000..41f772a --- /dev/null +++ b/src/client/components/Countdown.tsx @@ -0,0 +1,15 @@ +import { secondsLeft } from "../format"; + +export function Countdown({ until, now, total, tone = "stone" }: { until: number; now: number; total: number; tone?: "stone" | "amber" }) { + const left = Math.max(0, until - now); + const pct = Math.min(100, (left / (total * 1000)) * 100); + const bar = tone === "amber" ? "bg-amber-500" : "bg-ink"; + return ( +
+
+
+
+

{secondsLeft(until, now)}s

+
+ ); +} diff --git a/src/client/components/DeckPicker.tsx b/src/client/components/DeckPicker.tsx new file mode 100644 index 0000000..4ce3ca2 --- /dev/null +++ b/src/client/components/DeckPicker.tsx @@ -0,0 +1,129 @@ +import { useState } from "react"; +import { BUILTIN_DECKS } from "../../shared/decks"; +import type { ClientMessage, Track } from "../../shared/game"; +import { parsePastedTracks, parseSpotifyExport, type ImportedPlaylist } from "../../shared/spotify"; +import type { RoomView } from "../../shared/view"; +import { Button, Modal } from "./ui"; + +type Tab = "decks" | "paste" | "export"; + +export function DeckPicker({ view, send, onClose }: { view: RoomView; send: (m: ClientMessage) => void; onClose: () => void }) { + const [tab, setTab] = useState("decks"); + const [pasted, setPasted] = useState(""); + const [deckName, setDeckName] = useState("My deck"); + const [imported, setImported] = useState(null); + const [importError, setImportError] = useState(null); + + const choose = (msg: ClientMessage) => { + send(msg); + onClose(); + }; + const useTracks = (name: string, tracks: Track[]) => choose({ t: "customDeck", name, tracks }); + const pastedTracks = parsePastedTracks(pasted); + + async function readExport(files: FileList | null) { + setImportError(null); + if (!files?.length) return; + const playlists: ImportedPlaylist[] = []; + for (const file of Array.from(files)) { + try { + playlists.push(...parseSpotifyExport(JSON.parse(await file.text()))); + } catch { + // Not JSON, or not a file we understand: skip it. + } + } + if (playlists.length === 0) setImportError("No playlists found. Pick Playlist1.json or YourLibrary.json from the export."); + setImported(playlists); + } + + const tabClass = (t: Tab) => `flex-1 rounded-lg py-2 text-sm ${tab === t ? "bg-white shadow-sm" : "text-stone-500"}`; + + return ( + +
+ + + +
+ + {tab === "decks" && ( +
+ {BUILTIN_DECKS.map((d) => ( + + ))} + + {view.deck?.id === "custom" &&

Playing your deck “{view.deck.name}”.

} +
+ )} + + {tab === "paste" && ( +
+

+ One song per line: a Spotify track link (Share → Copy song link), optionally followed by “Artist - Title”, or just + “Artist - Title”. +

+