diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..48354a3
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,101 @@
+# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
+
+# Built application files
+*.apk
+*.aar
+*.ap_
+*.aab
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+# Uncomment the following line in case you need and you don't have the release build type files in your app
+# release/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/gradle.xml
+.idea/assetWizardSettings.xml
+.idea/dictionaries
+.idea/libraries
+# Android Studio 3 in .gitignore file.
+.idea/caches
+.idea/modules.xml
+# Comment next line if keeping position of elements in Navigation Editor is relevant for you
+.idea/navEditor.xml
+
+# Keystore files
+# Uncomment the following lines if you do not want to check your keystore files in.
+#*.jks
+#*.keystore
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+.cxx/
+
+# Google Services (e.g. APIs or Firebase)
+# google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
+
+# Version control
+vcs.xml
+
+# lint
+lint/intermediates/
+lint/generated/
+lint/outputs/
+lint/tmp/
+# lint/reports/
+
+# Android Profiling
+*.hprof
+
+# Cordova plugins for Capacitor
+capacitor-cordova-android-plugins
+
+# Copied web assets
+app/src/main/assets/public
+
+# Generated Config files
+app/src/main/assets/capacitor.config.json
+app/src/main/assets/capacitor.plugins.json
+app/src/main/res/xml/config.xml
diff --git a/android/app/.gitignore b/android/app/.gitignore
new file mode 100644
index 0000000..043df80
--- /dev/null
+++ b/android/app/.gitignore
@@ -0,0 +1,2 @@
+/build/*
+!/build/.npmkeep
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..86510de
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,54 @@
+apply plugin: 'com.android.application'
+
+android {
+ namespace "tv.vyla.app"
+ compileSdk rootProject.ext.compileSdkVersion
+ defaultConfig {
+ applicationId "tv.vyla.app"
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ aaptOptions {
+ // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+ // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
+ ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
+ }
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+repositories {
+ flatDir{
+ dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
+ }
+}
+
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
+ implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
+ implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
+ implementation project(':capacitor-android')
+ testImplementation "junit:junit:$junitVersion"
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
+ implementation project(':capacitor-cordova-android-plugins')
+}
+
+apply from: 'capacitor.build.gradle'
+
+try {
+ def servicesJSON = file('google-services.json')
+ if (servicesJSON.text) {
+ apply plugin: 'com.google.gms.google-services'
+ }
+} catch(Exception e) {
+ logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
+}
diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle
new file mode 100644
index 0000000..fdb4970
--- /dev/null
+++ b/android/app/capacitor.build.gradle
@@ -0,0 +1,19 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+
+android {
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
+ }
+}
+
+apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
+dependencies {
+
+
+}
+
+
+if (hasProperty('postBuildExtras')) {
+ postBuildExtras()
+}
diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..f2c2217
--- /dev/null
+++ b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 81c4711..36512b3 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,6 +1,7 @@
+
-
+
+ android:theme="@style/AppTheme">
+
+
+
+
-
\ No newline at end of file
+
+
+
+
+
diff --git a/android/app/src/main/java/tv/vyla/app/MainActivity.java b/android/app/src/main/java/tv/vyla/app/MainActivity.java
new file mode 100644
index 0000000..a1b53b6
--- /dev/null
+++ b/android/app/src/main/java/tv/vyla/app/MainActivity.java
@@ -0,0 +1,5 @@
+package tv.vyla.app;
+
+import com.getcapacitor.BridgeActivity;
+
+public class MainActivity extends BridgeActivity {}
diff --git a/android/app/src/main/res/drawable-land-hdpi/splash.png b/android/app/src/main/res/drawable-land-hdpi/splash.png
new file mode 100644
index 0000000..e31573b
Binary files /dev/null and b/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-land-mdpi/splash.png b/android/app/src/main/res/drawable-land-mdpi/splash.png
new file mode 100644
index 0000000..f7a6492
Binary files /dev/null and b/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-land-xhdpi/splash.png b/android/app/src/main/res/drawable-land-xhdpi/splash.png
new file mode 100644
index 0000000..8077255
Binary files /dev/null and b/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxhdpi/splash.png
new file mode 100644
index 0000000..14c6c8f
Binary files /dev/null and b/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
new file mode 100644
index 0000000..244ca25
Binary files /dev/null and b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-port-hdpi/splash.png b/android/app/src/main/res/drawable-port-hdpi/splash.png
new file mode 100644
index 0000000..74faaa5
Binary files /dev/null and b/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-port-mdpi/splash.png b/android/app/src/main/res/drawable-port-mdpi/splash.png
new file mode 100644
index 0000000..e944f4a
Binary files /dev/null and b/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-port-xhdpi/splash.png b/android/app/src/main/res/drawable-port-xhdpi/splash.png
new file mode 100644
index 0000000..564a82f
Binary files /dev/null and b/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxhdpi/splash.png
new file mode 100644
index 0000000..bfabe68
Binary files /dev/null and b/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
new file mode 100644
index 0000000..6929071
Binary files /dev/null and b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..c7bd21d
--- /dev/null
+++ b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/ic_launcher_background.xml b/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..d5fccc5
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/splash.png b/android/app/src/main/res/drawable/splash.png
new file mode 100644
index 0000000..f7a6492
Binary files /dev/null and b/android/app/src/main/res/drawable/splash.png differ
diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..b5ad138
--- /dev/null
+++ b/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..036d09b
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..c023e50
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2127973
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b441f37
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..72905b8
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..8ed0605
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9502e47
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d1e077
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..df0f158
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..853db04
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..6cdf97c
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..2960cbb
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..8e3093a
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..46de6e2
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..d2ea9ab
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..a40d73e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/values/ic_launcher_background.xml b/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..c5d5899
--- /dev/null
+++ b/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..a5cf6ed
--- /dev/null
+++ b/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Vyla
+ Vyla
+ tv.vyla.app
+ tv.vyla.app
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..be874e5
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/xml/file_paths.xml b/android/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 0000000..bd0c4d8
--- /dev/null
+++ b/android/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
new file mode 100644
index 0000000..0297327
--- /dev/null
+++ b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
@@ -0,0 +1,18 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..85a5dda
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,29 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:8.2.1'
+ classpath 'com.google.gms:google-services:4.4.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+apply from: "variables.gradle"
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle
new file mode 100644
index 0000000..9a5fa87
--- /dev/null
+++ b/android/capacitor.settings.gradle
@@ -0,0 +1,3 @@
+// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
+include ':capacitor-android'
+project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..2e87c52
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..033e24c
Binary files /dev/null and b/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..c747538
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/android/gradlew b/android/gradlew
new file mode 100644
index 0000000..fcb6fca
--- /dev/null
+++ b/android/gradlew
@@ -0,0 +1,248 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/android/gradlew.bat b/android/gradlew.bat
new file mode 100644
index 0000000..93e3f59
--- /dev/null
+++ b/android/gradlew.bat
@@ -0,0 +1,92 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..3b4431d
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,5 @@
+include ':app'
+include ':capacitor-cordova-android-plugins'
+project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
+
+apply from: 'capacitor.settings.gradle'
\ No newline at end of file
diff --git a/android/variables.gradle b/android/variables.gradle
new file mode 100644
index 0000000..8ef305d
--- /dev/null
+++ b/android/variables.gradle
@@ -0,0 +1,16 @@
+ext {
+ minSdkVersion = 22
+ compileSdkVersion = 34
+ targetSdkVersion = 34
+ androidxActivityVersion = '1.8.0'
+ androidxAppCompatVersion = '1.6.1'
+ androidxCoordinatorLayoutVersion = '1.2.0'
+ androidxCoreVersion = '1.12.0'
+ androidxFragmentVersion = '1.6.2'
+ coreSplashScreenVersion = '1.0.1'
+ androidxWebkitVersion = '1.9.0'
+ junitVersion = '4.13.2'
+ androidxJunitVersion = '1.1.5'
+ androidxEspressoCoreVersion = '3.5.1'
+ cordovaAndroidVersion = '10.1.1'
+}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 5c72f73..a61591c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,14 +9,2005 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
- "@vyla-entertainment/sdk": "^1.14.0"
+ "@capacitor/android": "^6.2.2",
+ "@capacitor/cli": "^6.2.2",
+ "@capacitor/core": "^6.2.2",
+ "@vyla-entertainment/sdk": "^1.14.0",
+ "dotenv": "^16.4.5",
+ "express": "^4.19.2"
}
},
+ "node_modules/@capacitor/android": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.2.2.tgz",
+ "integrity": "sha512-JjIu1ryNE16PQTp51rb4NEygxP7cSCDMmUqx4f5f12xscKdGKTjO9bkEP3TroLnTa/J6p2QopIhRbrd3E/7DrA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@capacitor/core": "^6.2.0"
+ }
+ },
+ "node_modules/@capacitor/cli": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-6.2.2.tgz",
+ "integrity": "sha512-5wEYSHBzRKJKZnhD2sVJAP0t0kUT7o2/vlgEGzFE3t2w+inL9qMDN7zxg6pvqveJiPNZT2k93ZvJDdRKIn/w1w==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/cli-framework-output": "^2.2.5",
+ "@ionic/utils-fs": "^3.1.6",
+ "@ionic/utils-subprocess": "2.1.11",
+ "@ionic/utils-terminal": "^2.3.3",
+ "commander": "^9.3.0",
+ "debug": "^4.3.4",
+ "env-paths": "^2.2.0",
+ "kleur": "^4.1.4",
+ "native-run": "^2.0.0",
+ "open": "^8.4.0",
+ "plist": "^3.0.5",
+ "prompts": "^2.4.2",
+ "rimraf": "^4.4.1",
+ "semver": "^7.3.7",
+ "tar": "^6.1.11",
+ "tslib": "^2.4.0",
+ "xml2js": "^0.5.0"
+ },
+ "bin": {
+ "cap": "bin/capacitor",
+ "capacitor": "bin/capacitor"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/@capacitor/core": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-6.2.2.tgz",
+ "integrity": "sha512-qEI3DcwJEPzhW+hVGKH8m4jbujtkdUiGkpMLHmpR8epACU7wEsV6NF8pCHzpsMYjc80oK7Cmpcw+MIienv/YRw==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.1.0"
+ }
+ },
+ "node_modules/@ionic/cli-framework-output": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.8.tgz",
+ "integrity": "sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-terminal": "2.3.5",
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-array": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.5.tgz",
+ "integrity": "sha512-HD72a71IQVBmQckDwmA8RxNVMTbxnaLbgFOl+dO5tbvW9CkkSFCv41h6fUuNsSEVgngfkn0i98HDuZC8mk+lTA==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-fs": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.7.tgz",
+ "integrity": "sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/fs-extra": "^8.0.0",
+ "debug": "^4.0.0",
+ "fs-extra": "^9.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@ionic/utils-object": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.5.tgz",
+ "integrity": "sha512-XnYNSwfewUqxq+yjER1hxTKggftpNjFLJH0s37jcrNDwbzmbpFTQTVAp4ikNK4rd9DOebX/jbeZb8jfD86IYxw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-process": {
+ "version": "2.1.10",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.10.tgz",
+ "integrity": "sha512-mZ7JEowcuGQK+SKsJXi0liYTcXd2bNMR3nE0CyTROpMECUpJeAvvaBaPGZf5ERQUPeWBVuwqAqjUmIdxhz5bxw==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-object": "2.1.5",
+ "@ionic/utils-terminal": "2.3.3",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "tree-kill": "^1.2.2",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-process/node_modules/@ionic/utils-terminal": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.3.tgz",
+ "integrity": "sha512-RnuSfNZ5fLEyX3R5mtcMY97cGD1A0NVBbarsSQ6yMMfRJ5YHU7hHVyUfvZeClbqkBC/pAqI/rYJuXKCT9YeMCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/slice-ansi": "^4.0.0",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "tslib": "^2.0.1",
+ "untildify": "^4.0.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-stream": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.5.tgz",
+ "integrity": "sha512-hkm46uHvEC05X/8PHgdJi4l4zv9VQDELZTM+Kz69odtO9zZYfnt8DkfXHJqJ+PxmtiE5mk/ehJWLnn/XAczTUw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-subprocess": {
+ "version": "2.1.11",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-2.1.11.tgz",
+ "integrity": "sha512-6zCDixNmZCbMCy5np8klSxOZF85kuDyzZSTTQKQP90ZtYNCcPYmuFSzaqDwApJT4r5L3MY3JrqK1gLkc6xiUPw==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-array": "2.1.5",
+ "@ionic/utils-fs": "3.1.6",
+ "@ionic/utils-process": "2.1.10",
+ "@ionic/utils-stream": "3.1.5",
+ "@ionic/utils-terminal": "2.3.3",
+ "cross-spawn": "^7.0.3",
+ "debug": "^4.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-fs": {
+ "version": "3.1.6",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.6.tgz",
+ "integrity": "sha512-eikrNkK89CfGPmexjTfSWl4EYqsPSBh0Ka7by4F0PLc1hJZYtJxUZV3X4r5ecA8ikjicUmcbU7zJmAjmqutG/w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/fs-extra": "^8.0.0",
+ "debug": "^4.0.0",
+ "fs-extra": "^9.0.0",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-terminal": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.3.tgz",
+ "integrity": "sha512-RnuSfNZ5fLEyX3R5mtcMY97cGD1A0NVBbarsSQ6yMMfRJ5YHU7hHVyUfvZeClbqkBC/pAqI/rYJuXKCT9YeMCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/slice-ansi": "^4.0.0",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "tslib": "^2.0.1",
+ "untildify": "^4.0.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=10.3.0"
+ }
+ },
+ "node_modules/@ionic/utils-terminal": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.5.tgz",
+ "integrity": "sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/slice-ansi": "^4.0.0",
+ "debug": "^4.0.0",
+ "signal-exit": "^3.0.3",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "tslib": "^2.0.1",
+ "untildify": "^4.0.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@types/fs-extra": {
+ "version": "8.1.5",
+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz",
+ "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "26.6.4",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz",
+ "integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==",
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.9.0"
+ }
+ },
+ "node_modules/@types/slice-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz",
+ "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==",
+ "license": "MIT"
+ },
"node_modules/@vyla-entertainment/sdk": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/@vyla-entertainment/sdk/-/sdk-1.14.0.tgz",
"integrity": "sha512-ZZm3xnfuWTDI0IU/UyGnPgFmSCFjPzIyb71EauggrFfRa6ZyjSrjNAAH8onbHyD5uO3TkJFUHF8VIeFJK8t/yA==",
"license": "CC-BY-NC-4.0"
+ },
+ "node_modules/@xmldom/xmldom": {
+ "version": "0.9.12",
+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz",
+ "integrity": "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.6"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "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/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+ "license": "MIT"
+ },
+ "node_modules/astral-regex": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",
+ "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/at-least-node": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "license": "MIT"
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/big-integer": {
+ "version": "1.6.52",
+ "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz",
+ "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==",
+ "license": "Unlicense",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.8",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz",
+ "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.16.0",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/body-parser/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/body-parser/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/bplist-parser": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz",
+ "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==",
+ "license": "MIT",
+ "dependencies": {
+ "big-integer": "1.6.x"
+ },
+ "engines": {
+ "node": ">= 5.10.0"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",
+ "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "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/commander": {
+ "version": "9.5.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || >=14"
+ }
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/define-lazy-prop": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "16.6.1",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "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==",
+ "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/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/elementtree": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz",
+ "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "sax": "1.1.4"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "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/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "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==",
+ "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==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.22.3",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.3.tgz",
+ "integrity": "sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "~1.20.5",
+ "content-disposition": "~0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "~0.7.1",
+ "cookie-signature": "~1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.3.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.0",
+ "merge-descriptors": "1.0.3",
+ "methods": "~1.1.2",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "~0.1.13",
+ "proxy-addr": "~2.0.7",
+ "qs": "~6.16.0",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "~0.19.0",
+ "serve-static": "~1.16.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/express/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/express/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+ "license": "MIT",
+ "dependencies": {
+ "pend": "~1.2.0"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/finalhandler/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/finalhandler/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fs-extra": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+ "license": "MIT",
+ "dependencies": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/fs-minipass": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/fs-minipass/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "license": "ISC"
+ },
+ "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==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "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==",
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/glob": {
+ "version": "9.3.5",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",
+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",
+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "minimatch": "^8.0.2",
+ "minipass": "^4.2.4",
+ "path-scurry": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "license": "ISC"
+ },
+ "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==",
+ "license": "MIT",
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ini": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz",
+ "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==",
+ "license": "ISC",
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+ }
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-docker": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "license": "ISC"
+ },
+ "node_modules/jsonfile": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",
+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "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==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "10.4.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
+ "license": "ISC"
+ },
+ "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==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=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==",
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "8.0.7",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.7.tgz",
+ "integrity": "sha512-V+1uQNdzybxa14e/p00HZnQNNcTjnRJjDxg2V8wtkjFctq4M7hXFws4oekyTP0Jebeq7QYtpFyOeBAjc88zvYg==",
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "4.2.8",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",
+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minizlib": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
+ "license": "MIT",
+ "dependencies": {
+ "minipass": "^3.0.0",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/minizlib/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/mkdirp": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/native-run": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/native-run/-/native-run-2.0.3.tgz",
+ "integrity": "sha512-U1PllBuzW5d1gfan+88L+Hky2eZx+9gv3Pf6rNBxKbORxi7boHzqiA6QFGSnqMem4j0A9tZ08NMIs5+0m/VS1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/utils-fs": "^3.1.7",
+ "@ionic/utils-terminal": "^2.3.4",
+ "bplist-parser": "^0.3.2",
+ "debug": "^4.3.4",
+ "elementtree": "^0.1.7",
+ "ini": "^4.1.1",
+ "plist": "^3.1.0",
+ "split2": "^4.2.0",
+ "through2": "^4.0.2",
+ "tslib": "^2.6.2",
+ "yauzl": "^2.10.0"
+ },
+ "bin": {
+ "native-run": "bin/native-run"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/open": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+ "license": "MIT",
+ "dependencies": {
+ "define-lazy-prop": "^2.0.0",
+ "is-docker": "^2.1.1",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-scurry": {
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "lru-cache": "^10.2.0",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/path-scurry/node_modules/minipass": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
+ "license": "MIT"
+ },
+ "node_modules/plist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz",
+ "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==",
+ "license": "MIT",
+ "dependencies": {
+ "@xmldom/xmldom": "^0.9.10",
+ "base64-js": "^1.5.1",
+ "xmlbuilder": "^15.1.1"
+ },
+ "engines": {
+ "node": ">=10.4.0"
+ }
+ },
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/prompts/node_modules/kleur": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.8",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz",
+ "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.16.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz",
+ "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "es-define-property": "^1.0.1",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",
+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==",
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^9.2.0"
+ },
+ "bin": {
+ "rimraf": "dist/cjs/src/bin.js"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/sax": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz",
+ "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==",
+ "license": "ISC"
+ },
+ "node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/send": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/send/node_modules/debug/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
+ "license": "MIT"
+ },
+ "node_modules/slice-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz",
+ "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/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/tar": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
+ "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
+ "deprecated": "Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
+ "license": "ISC",
+ "dependencies": {
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.0.0",
+ "minipass": "^5.0.0",
+ "minizlib": "^2.1.1",
+ "mkdirp": "^1.0.3",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/tar/node_modules/minipass": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/through2": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz",
+ "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==",
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "3"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/tree-kill": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
+ "license": "MIT",
+ "bin": {
+ "tree-kill": "cli.js"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "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==",
+ "license": "MIT"
+ },
+ "node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/untildify": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
+ "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT"
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/xml2js": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
+ "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
+ "license": "MIT",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xml2js/node_modules/xmlbuilder": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/xmlbuilder": {
+ "version": "15.1.1",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
+ "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "license": "ISC"
+ },
+ "node_modules/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
}
}
}
diff --git a/package.json b/package.json
index 748bf4d..7cbe628 100644
--- a/package.json
+++ b/package.json
@@ -6,14 +6,13 @@
"scripts": {
"start": "node server.js",
"build:web": "node -e \"const fs = require('fs'); fs.rmSync('www', { recursive: true, force: true }); fs.mkdirSync('www'); ['css', 'js', 'assets'].forEach(d => fs.cpSync(d, 'www/' + d, { recursive: true })); fs.copyFileSync('index.html', 'www/index.html');\"",
- "cap:sync": "npm run build:web && cap sync android",
- "dev": "npm run build:web && cap sync android && cd android && gradlew.bat assembleDebug",
- "release": "npm run build:web && cap sync android && cd android && gradlew.bat assembleRelease"
+ "dev": "npm run build:web && cap sync android && cd android && gradlew.bat assembleDebug && cd .. && node -e \"require('fs').copyFileSync('android/app/build/outputs/apk/debug/app-debug.apk', 'Vyla-TV-debug.apk')\"",
+ "release": "npm run build:web && cap sync android && cd android && gradlew.bat assembleRelease && cd .. && node -e \"require('fs').copyFileSync('android/app/build/outputs/apk/release/app-release-unsigned.apk', 'Vyla-TV-release.apk')\""
},
"dependencies": {
- "@capacitor/android": "^6.0.0",
- "@capacitor/cli": "^6.0.0",
- "@capacitor/core": "^6.0.0",
+ "@capacitor/android": "^6.2.2",
+ "@capacitor/cli": "^6.2.2",
+ "@capacitor/core": "^6.2.2",
"@vyla-entertainment/sdk": "^1.14.0",
"dotenv": "^16.4.5",
"express": "^4.19.2"
diff --git a/www/assets/favicon.ico b/www/assets/favicon.ico
new file mode 100644
index 0000000..9fdbb82
Binary files /dev/null and b/www/assets/favicon.ico differ
diff --git a/www/css/base.css b/www/css/base.css
new file mode 100644
index 0000000..3fa8652
--- /dev/null
+++ b/www/css/base.css
@@ -0,0 +1,315 @@
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ outline: none;
+ -webkit-tap-highlight-color: transparent;
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+:root {
+ --pad: clamp(56px, 6vw, 132px);
+ --cw: clamp(120px, 9.4vw, 200px);
+}
+
+html,
+body {
+ height: 100%;
+ background: #07070a;
+ color: #f2f2f5;
+ font-family: "Inter", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
+ -webkit-font-smoothing: antialiased;
+ overflow: hidden;
+ cursor: default
+}
+
+::-webkit-scrollbar {
+ display: none
+}
+
+.f {
+ outline: none;
+ cursor: pointer
+}
+
+.xf {
+ position: absolute;
+ inset: 0;
+ background-size: cover;
+ background-position: center top;
+ opacity: 0;
+ transition: opacity .7s ease
+}
+
+.xf.in {
+ opacity: 1
+}
+
+#bg {
+ position: fixed;
+ inset: -40px;
+ background: #07070a;
+ filter: blur(42px) brightness(.55) saturate(1)
+}
+
+#dim {
+ position: fixed;
+ inset: 0;
+ background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .55) 55%, #000 100%)
+}
+
+#dim2 {
+ position: fixed;
+ inset: 0;
+ background: #000;
+ opacity: 0;
+ pointer-events: none
+}
+
+#main {
+ position: fixed;
+ inset: 0;
+ overflow-y: auto;
+ overflow-x: hidden;
+ scrollbar-width: none
+}
+
+.hero {
+ position: relative;
+ height: 60vh
+}
+
+#hb {
+ position: absolute;
+ inset: 0;
+ -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
+ mask-image: linear-gradient(180deg, #000 50%, transparent 100%)
+}
+
+#hb::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 40%, transparent 70%)
+}
+
+.hc {
+ position: absolute;
+ left: var(--pad);
+ bottom: 5vh;
+ width: min(48vw, 680px);
+ z-index: 2
+}
+
+#hlogo {
+ height: 16vh;
+ display: flex;
+ align-items: flex-end;
+ margin-bottom: 2vh
+}
+
+#hlogo img {
+ max-width: min(34vw, 440px);
+ max-height: 16vh;
+ object-fit: contain;
+ filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6))
+}
+
+#hlogo h1 {
+ font-size: clamp(28px, 3.6vw, 64px);
+ font-weight: 700;
+ letter-spacing: -.02em;
+ line-height: 1.02;
+ text-shadow: 0 4px 24px rgba(0, 0, 0, .6)
+}
+
+.meta {
+ display: flex;
+ gap: 14px;
+ align-items: center;
+ font-size: clamp(13px, 1.05vw, 19px);
+ color: #e3e3ee;
+ margin-bottom: 1.4vh;
+ font-weight: 500
+}
+
+.meta .b {
+ background: rgba(255, 255, 255, .18);
+ border-radius: 6px;
+ padding: 2px 8px;
+ font-size: .85em;
+ font-weight: 600
+}
+
+.ov1 {
+ font-size: clamp(13px, 1.1vw, 20px);
+ line-height: 1.5;
+ color: #d4d4e2;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ margin-bottom: 2.4vh;
+ max-width: 640px
+}
+
+.hb {
+ display: flex;
+ gap: 14px;
+ align-items: center
+}
+
+.pb,
+.ib {
+ border: 0;
+ font: inherit;
+ font-weight: 600;
+ font-size: clamp(14px, 1.1vw, 20px);
+ border-radius: 999px;
+ height: clamp(44px, 3.6vw, 64px);
+ padding: 0 clamp(28px, 2.6vw, 48px);
+ display: inline-flex;
+ align-items: center;
+ gap: 10px;
+ transition: transform .2s, background .2s
+}
+
+.pb {
+ background: #fff;
+ color: #000
+}
+
+.ib {
+ background: rgba(255, 255, 255, .16);
+ color: #fff;
+ backdrop-filter: blur(12px);
+ padding: 0 clamp(20px, 2vw, 36px)
+}
+
+.pb.on,
+.ib.on {
+ transform: scale(1.04);
+}
+
+.ib.on {
+ background: rgba(255, 255, 255, .3)
+}
+
+.sec {
+ padding-top: 10px
+}
+
+.sec h2 {
+ padding: 0 var(--pad);
+ font-size: clamp(16px, 1.5vw, 26px);
+ font-weight: 700;
+ margin-bottom: 4px;
+ text-shadow: 0 2px 10px rgba(0, 0, 0, .6)
+}
+
+.row {
+ display: flex;
+ gap: 16px;
+ overflow-x: auto;
+ overflow-y: hidden;
+ padding: 22px var(--pad) 26px;
+ position: relative;
+ scrollbar-width: none;
+ min-height: calc(var(--cw)*1.5 + 48px)
+}
+
+.card {
+ flex: 0 0 var(--cw);
+ height: calc(var(--cw)*1.5);
+ border-radius: 14px;
+ overflow: hidden;
+ background: #1b1b24;
+ position: relative;
+ transform: translateZ(0);
+ transition: transform .38s cubic-bezier(.22, .9, .3, 1);
+ will-change: transform
+}
+
+.card img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+ filter: brightness(.86);
+ transition: filter .38s
+}
+
+.card::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: 3;
+ border-radius: inherit;
+ opacity: 0;
+ transition: opacity .25s;
+ pointer-events: none
+}
+
+.card.on {
+ transform: scale(1.06) translateY(-4px);
+ z-index: 2
+}
+
+.card.on img {
+ filter: none
+}
+
+.card.on::after {
+ opacity: 1
+}
+
+.kbm,
+.kbm * {
+ cursor: none !important
+}
+
+#sentinel {
+ height: 40vh
+}
+
+.none {
+ color: rgba(255, 255, 255, .6);
+ padding: 5vh 0;
+ font-size: 18px
+}
+
+
+.toast {
+ position: fixed;
+ left: 50%;
+ bottom: 7vh;
+ transform: translateX(-50%);
+ z-index: 200;
+ background: #fff;
+ color: #000;
+ padding: 12px 22px;
+ border-radius: 999px;
+ font-weight: 600;
+ font-size: 15px;
+ animation: tin .25s both, tout .3s 1.9s forwards
+}
+
+@keyframes tin {
+ from {
+ opacity: 0;
+ transform: translate(-50%, 14px)
+ }
+
+ to {
+ opacity: 1;
+ transform: translate(-50%, 0)
+ }
+}
+
+@keyframes tout {
+ to {
+ opacity: 0
+ }
+}
\ No newline at end of file
diff --git a/www/css/detail.css b/www/css/detail.css
new file mode 100644
index 0000000..7a26f22
--- /dev/null
+++ b/www/css/detail.css
@@ -0,0 +1,432 @@
+#ov {
+ position: fixed;
+ inset: 0;
+ z-index: 50;
+ background: #000;
+ overflow-y: auto;
+ opacity: 0;
+ pointer-events: none;
+ transform: scale(1.04);
+ transition: opacity .35s, transform .35s;
+ scrollbar-width: none
+}
+
+#ov.show {
+ opacity: 1;
+ pointer-events: auto;
+ transform: none
+}
+
+.dbl {
+ position: fixed;
+ inset: -60px;
+ background-size: cover;
+ background-position: center;
+ filter: blur(60px) brightness(.5) saturate(1)
+}
+
+.dw {
+ position: relative;
+ min-height: 100vh
+}
+
+.dimg {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 82vh;
+ background-size: cover;
+ background-position: center top;
+ -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
+ mask-image: linear-gradient(180deg, #000 45%, transparent 100%)
+}
+
+.dc {
+ position: relative;
+ padding: 40vh 0 8vh
+}
+
+.dc>.dh {
+ padding: 0 6vw
+}
+
+.dh #dlogo {
+ height: 20vh;
+ display: flex;
+ align-items: flex-end;
+ margin-bottom: 2vh
+}
+
+.dh #dlogo img {
+ max-width: min(40vw, 540px);
+ max-height: 20vh;
+ object-fit: contain;
+ filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6))
+}
+
+.dh h1 {
+ font-size: clamp(30px, 4.4vw, 76px);
+ font-weight: 700;
+ letter-spacing: -.02em;
+ line-height: 1
+}
+
+.dh .meta {
+ margin-top: 1vh
+}
+
+.dh .hb {
+ margin: 2vh 0
+}
+
+.circ {
+ width: clamp(44px, 3.6vw, 64px);
+ height: clamp(44px, 3.6vw, 64px);
+ border-radius: 50%;
+ background: rgba(255, 255, 255, .12);
+ backdrop-filter: blur(12px);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 24px;
+ font-weight: 700;
+}
+
+.circ.on {
+ transform: scale(1.1);
+}
+
+.otx {
+ max-width: min(70vw, 980px);
+ font-size: clamp(13px, 1.1vw, 20px);
+ line-height: 1.55;
+ color: #d9d9e4;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden
+}
+
+.otx.x {
+ -webkit-line-clamp: unset;
+ line-clamp: unset;
+ display: block
+}
+
+.more {
+ display: inline-block;
+ margin-top: 10px;
+ background: rgba(255, 255, 255, .18);
+ border-radius: 999px;
+ padding: 5px 14px;
+ font-size: 13px;
+ font-weight: 700;
+}
+
+.more.on {
+ transform: scale(1.08);
+}
+
+.ds {
+ margin-top: 3vh
+}
+
+.ds h3 {
+ padding: 0 6vw;
+ font-size: clamp(17px, 1.5vw, 26px);
+ font-weight: 700
+}
+
+.ds .row {
+ padding-left: 6vw;
+ padding-right: 6vw;
+ min-height: 0
+}
+
+.tr {
+ flex: 0 0 clamp(250px, 21vw, 400px);
+ border-radius: 20px;
+ position: relative;
+ overflow: hidden;
+ background: #101016;
+ padding: 0 0 18px;
+ isolation: isolate;
+}
+
+.tr .tb {
+ position: absolute;
+ inset: -40px;
+ background-size: cover;
+ background-position: center;
+ filter: blur(34px) brightness(.62) saturate(1.35);
+ transform: scale(1.2);
+ z-index: -1
+}
+
+.tr .th {
+ aspect-ratio: 16/9;
+ background-size: cover;
+ background-position: center;
+ margin: 0 0 -26px;
+ -webkit-mask-image: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, .55) 74%, transparent 100%);
+ mask-image: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, .55) 74%, transparent 100%)
+}
+
+.tr b,
+.tr small {
+ display: block;
+ padding: 0 18px;
+ position: relative
+}
+
+.tr b {
+ font-size: clamp(14px, 1.1vw, 19px);
+ font-weight: 600
+}
+
+.tr small {
+ color: #d0d0da;
+ margin-top: 5px
+}
+
+.tr.on {
+ transform: scale(1.04);
+}
+
+.cs {
+ flex: 0 0 clamp(96px, 7.6vw, 150px);
+ text-align: center;
+ transition: transform .22s
+}
+
+.cs .pf {
+ width: clamp(90px, 7vw, 130px);
+ height: clamp(90px, 7vw, 130px);
+ border-radius: 50%;
+ margin: 0 auto 10px;
+ background: #2a2a3c center/cover;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 28px;
+ font-weight: 700;
+}
+
+.cs b {
+ display: block;
+ font-size: clamp(12px, .95vw, 16px)
+}
+
+.cs small {
+ display: block;
+ color: #aaa;
+ font-size: clamp(11px, .8vw, 14px);
+ margin-top: 2px
+}
+
+.cs.on {
+ transform: scale(1.07)
+}
+
+.circ {
+ position: relative
+}
+
+.circ svg {
+ width: 46%;
+ height: 46%
+}
+
+.circ.sv {
+ background: #fff;
+ color: #000
+}
+
+#dfv.sv svg {
+ fill: currentColor
+}
+
+.circ[data-l].on::after {
+ content: attr(data-l);
+ position: absolute;
+ top: calc(100% + 12px);
+ left: 50%;
+ transform: translateX(-50%);
+ white-space: nowrap;
+ font-size: 13px;
+ font-weight: 600;
+ background: #fff;
+ color: #000;
+ padding: 5px 12px;
+ border-radius: 999px;
+ z-index: 5;
+ pointer-events: none
+}
+
+.mx {
+ display: none;
+ gap: 14px;
+ align-items: center
+}
+
+.mx.open {
+ display: flex
+}
+
+.mx.open .circ {
+ animation: pop .32s cubic-bezier(.22, .9, .3, 1) backwards
+}
+
+.mx.open .circ+.circ {
+ animation-delay: .06s
+}
+
+@keyframes pop {
+ from {
+ opacity: 0;
+ transform: scale(.4) translateX(-24px)
+ }
+}
+
+.eps {
+ padding: 0 6vw
+}
+
+.eh {
+ display: flex;
+ align-items: center;
+ gap: 20px;
+ margin-bottom: 14px
+}
+
+.eps .eh h3 {
+ padding: 0
+}
+
+.dd {
+ position: relative;
+ z-index: 6
+}
+
+.ddb {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ height: 42px;
+ padding: 0 18px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, .16);
+ backdrop-filter: blur(12px);
+ font-weight: 600;
+ font-size: clamp(13px, 1vw, 17px);
+ transition: background .2s, color .2s, transform .25s
+}
+
+.ddb svg {
+ width: 16px;
+ height: 16px
+}
+
+.ddb.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.04)
+}
+
+.ddl {
+ display: none;
+ position: absolute;
+ top: calc(100% + 8px);
+ left: 0;
+ min-width: 240px;
+ max-height: 46vh;
+ overflow-y: auto;
+ padding: 6px;
+ border-radius: 16px;
+ background: rgba(22, 22, 30, .97);
+ scrollbar-width: none
+}
+
+.ddl.open {
+ display: block
+}
+
+.ddi {
+ display: flex;
+ justify-content: space-between;
+ gap: 24px;
+ padding: 12px 14px;
+ border-radius: 10px;
+ font-weight: 500;
+ white-space: nowrap
+}
+
+.ddi small {
+ color: rgba(255, 255, 255, .5)
+}
+
+.ddi.on {
+ background: #fff;
+ color: #000
+}
+
+.ddi.on small {
+ color: rgba(0, 0, 0, .55)
+}
+
+.el {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 17vw, 320px), 1fr));
+ gap: 28px 20px;
+ padding: 8px 6px 14px;
+ margin: 0 -6px
+}
+
+.el .none {
+ grid-column: 1/-1
+}
+
+.ep {
+ min-width: 0
+}
+
+.ep .et {
+ position: relative;
+ aspect-ratio: 16/9;
+ border-radius: 10px;
+ overflow: hidden;
+ background: #000;
+}
+
+.ep .et img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block
+}
+
+.ep b {
+ display: block;
+ margin-top: 12px;
+ font-size: clamp(13px, 1vw, 16px);
+ font-weight: 600;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis
+}
+
+.ep small {
+ display: block;
+ margin-top: 3px;
+ font-size: clamp(12px, .9vw, 14px);
+ color: rgba(255, 255, 255, .5);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis
+}
+
+.ep.on .et {
+ transform: scale(1.03)
+}
\ No newline at end of file
diff --git a/www/css/library.css b/www/css/library.css
new file mode 100644
index 0000000..10ab6a8
--- /dev/null
+++ b/www/css/library.css
@@ -0,0 +1,65 @@
+#lib {
+ position: fixed;
+ inset: 0;
+ z-index: 25;
+ background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7));
+ overflow-y: auto;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity .35s;
+ padding: 9vh var(--pad) 10vh;
+ scrollbar-width: none
+}
+
+#lib.show {
+ opacity: 1;
+ pointer-events: auto
+}
+
+.lib #main {
+ visibility: hidden
+}
+
+.lib #bg {
+ filter: blur(70px) brightness(.5) saturate(1.5)
+}
+
+.lib #dim {
+ opacity: .35
+}
+
+.lib #dim2 {
+ opacity: 0 !important
+}
+
+#lib h1 {
+ font-size: clamp(28px, 3.4vw, 56px);
+ font-weight: 700;
+ letter-spacing: -.02em;
+ display: flex;
+ align-items: baseline;
+ gap: 18px
+}
+
+#lib h1 small {
+ font-size: clamp(13px, 1.1vw, 19px);
+ font-weight: 500;
+ color: rgba(255, 255, 255, .6);
+ letter-spacing: 0
+}
+
+.grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(var(--cw), 1fr));
+ gap: 22px;
+ padding: 30px 10px
+}
+
+.grid .card {
+ height: auto;
+ aspect-ratio: 2/3
+}
+
+.grid .none {
+ grid-column: 1/-1
+}
\ No newline at end of file
diff --git a/www/css/player.css b/www/css/player.css
new file mode 100644
index 0000000..c69008c
--- /dev/null
+++ b/www/css/player.css
@@ -0,0 +1,715 @@
+#pl {
+ position: fixed;
+ inset: 0;
+ z-index: 80;
+ background: #000;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity .35s;
+}
+
+#pl.show {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+#pl:not(.ui) {
+ cursor: none;
+}
+
+#pv {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ background: #000;
+ z-index: 1;
+}
+
+#pl.cover #pv {
+ object-fit: cover;
+}
+
+video::cue {
+ font: 600 clamp(16px, 1.8vw, 30px) Inter, sans-serif;
+ background: rgba(0, 0, 0, .55);
+ color: #fff;
+}
+
+.sub-active::cue {
+ color: var(--sub-color, #ffffff) !important;
+ background-color: var(--sub-bg, rgba(0, 0, 0, 0.75)) !important;
+ font-size: var(--sub-size, 22px) !important;
+ text-shadow: var(--sub-shadow, 0 2px 4px rgba(0, 0, 0, 0.8)) !important;
+}
+
+.sub-ctrl-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 8px 14px;
+ font-size: 14px;
+}
+
+.sub-ctrl-row span {
+ color: rgba(255, 255, 255, 0.8);
+}
+
+.sub-btn-group {
+ display: flex;
+ gap: 6px;
+}
+
+.sub-btn-group button {
+ background: rgba(255, 255, 255, 0.15);
+ border: none;
+ color: #fff;
+ padding: 4px 10px;
+ border-radius: 6px;
+ cursor: pointer;
+ font-size: 12px;
+}
+
+.sub-btn-group button.active {
+ background: #fff;
+ color: #000;
+ font-weight: 600;
+}
+
+.src-group {
+ display: flex;
+ flex-direction: column;
+ margin-bottom: 4px;
+}
+
+.src-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ height: 44px;
+ padding: 0 14px;
+ border-radius: 12px;
+ font-size: 15px;
+ font-weight: 500;
+ cursor: pointer;
+ background: rgba(255, 255, 255, 0.08);
+ transition: background 0.15s, color 0.15s;
+}
+
+.src-header.on,
+.src-header:hover {
+ background: #fff;
+ color: #000;
+}
+
+.src-expand-btn {
+ font-size: 12px;
+ padding: 2px 8px;
+ border-radius: 4px;
+ background: rgba(255, 255, 255, 0.16);
+ color: inherit;
+ margin-left: 8px;
+}
+
+.src-sublist {
+ display: none;
+ flex-direction: column;
+ gap: 2px;
+ padding-left: 14px;
+ margin: 4px 0;
+}
+
+.src-sublist.open {
+ display: flex;
+}
+
+.src-subitem {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ height: 38px;
+ padding: 0 12px;
+ border-radius: 8px;
+ font-size: 13px;
+ background: rgba(255, 255, 255, 0.04);
+ cursor: pointer;
+}
+
+.src-subitem.on,
+.src-subitem:hover {
+ background: rgba(255, 255, 255, 0.25);
+ color: #fff;
+}
+
+#pl .top,
+#pl .bot,
+#pmid {
+ opacity: 0;
+ transition: opacity .3s, transform .25s, background .2s;
+}
+
+#pl.ui .top,
+#pl.ui .bot,
+#pl.ui #pmid {
+ opacity: 1;
+}
+
+#pl .f {
+ pointer-events: auto;
+}
+
+#pl:not(.ui) .f {
+ pointer-events: none;
+}
+
+#pl .top,
+#pl .bot {
+ position: absolute;
+ left: 0;
+ right: 0;
+ pointer-events: none;
+}
+
+#pl .top {
+ top: 0;
+ padding: 2.6vh 2.4vw 14vh;
+ display: flex;
+ align-items: flex-start;
+ background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent);
+}
+
+#pl .bot {
+ bottom: 0;
+ padding: 10vh 2.4vw 2.6vh;
+ display: flex;
+ align-items: center;
+ gap: 18px;
+ background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
+}
+
+.pic {
+ width: clamp(44px, 3.3vw, 56px);
+ height: clamp(44px, 3.3vw, 56px);
+ flex: 0 0 auto;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #fff;
+ transition: background .2s, color .2s, transform .2s;
+}
+
+.pic svg {
+ width: 52%;
+ height: 52%;
+}
+
+.pic.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.08);
+}
+
+.av {
+ width: 46px;
+ height: 46px;
+ margin: 3px 12px 0 6px;
+ border-radius: 50%;
+ object-fit: cover;
+ background: #2a2a34;
+}
+
+.pt {
+ height: 46px;
+ margin-top: 3px;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+
+.pt b {
+ font-size: clamp(15px, 1.2vw, 19px);
+ font-weight: 600;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 36vw;
+}
+
+.pt small {
+ font-size: clamp(12px, .9vw, 14px);
+ color: rgba(255, 255, 255, .7);
+ margin-top: 2px;
+}
+
+.pr {
+ margin-left: auto;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+#pmid {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 112px;
+ height: 112px;
+ margin: -56px 0 0 -56px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #fff;
+}
+
+#pmid svg {
+ width: 72px;
+ height: 72px;
+ filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
+}
+
+#pmid.on {
+ background: rgba(255, 255, 255, .18);
+ transform: scale(1.08);
+}
+
+.bt {
+ font-size: 14px;
+ font-variant-numeric: tabular-nums;
+ min-width: 44px;
+ color: #fff;
+}
+
+#pdur {
+ text-align: right;
+}
+
+.sk {
+ flex: 1;
+ height: 40px;
+ position: relative;
+}
+
+.sk::before,
+.sk u,
+.sk i {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: 50%;
+ height: 4px;
+ margin-top: -2px;
+ border-radius: 2px;
+ transition: height .15s, margin .15s;
+}
+
+.sk::before {
+ right: 0;
+ background: rgba(255, 255, 255, .2);
+}
+
+.sk u {
+ width: 0;
+ background: rgba(255, 255, 255, .38);
+}
+
+.sk i {
+ width: 0;
+ background: #fff;
+}
+
+.sk b {
+ position: absolute;
+ top: 50%;
+ left: 0;
+ width: 16px;
+ height: 16px;
+ margin: -8px 0 0 -8px;
+ border-radius: 50%;
+ background: #fff;
+ transition: transform .15s;
+}
+
+.sk.on::before,
+.sk.on u,
+.sk.on i {
+ height: 6px;
+ margin-top: -3px;
+}
+
+.sk.on b {
+ transform: scale(1.35);
+}
+
+#pm {
+ display: none;
+ position: absolute;
+ top: calc(2.6vh + 66px);
+ right: 2.4vw;
+ width: 320px;
+ max-height: 70vh;
+ overflow-y: auto;
+ padding: 10px;
+ border-radius: 18px;
+ background: rgba(0, 0, 0, .94);
+ backdrop-filter: blur(24px);
+ z-index: 5;
+ pointer-events: auto;
+ scrollbar-width: none;
+}
+
+#pm.open {
+ display: block;
+}
+
+#pm h4 {
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: .08em;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, .5);
+ padding: 10px 12px 6px;
+}
+
+#pm p {
+ font-size: 11px;
+ line-height: 1.4;
+ color: rgba(255, 255, 255, .4);
+ padding: 10px 12px 4px;
+}
+
+.pi {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ height: 48px;
+ padding: 0 14px;
+ border-radius: 12px;
+ font-size: 15px;
+ font-weight: 500;
+ transition: background .15s, color .15s;
+}
+
+.pi svg {
+ width: 20px;
+ height: 20px;
+}
+
+.pi.on {
+ background: #fff;
+ color: #000;
+}
+
+.vrow {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 4px 6px 8px;
+}
+
+.vrow span {
+ width: 30px;
+ text-align: right;
+ font-size: 13px;
+ color: rgba(255, 255, 255, .7);
+}
+
+.vs {
+ flex: 1;
+ height: 36px;
+ position: relative;
+ border-radius: 8px;
+}
+
+.vs::before {
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 50%;
+ height: 4px;
+ margin-top: -2px;
+ border-radius: 2px;
+ background: rgba(255, 255, 255, .2);
+}
+
+.vs i {
+ position: absolute;
+ left: 0;
+ top: 50%;
+ height: 4px;
+ margin-top: -2px;
+ border-radius: 2px;
+ background: #fff;
+}
+
+.skip {
+ display: none;
+ height: 48px;
+ padding: 0 26px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, .18);
+ backdrop-filter: blur(16px);
+ align-items: center;
+ font-weight: 600;
+ transition: transform .25s, background .2s, color .2s;
+}
+
+.skip.v {
+ display: flex;
+}
+
+.skip.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.06);
+}
+
+#pact {
+ position: absolute;
+ right: 2.4vw;
+ bottom: 16vh;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 12px;
+}
+
+.skip svg {
+ width: 18px;
+ height: 18px;
+ margin-left: 10px;
+}
+
+#pnext {
+ background: #fff;
+ color: #000;
+}
+
+#pnext.on {
+ color: #000;
+}
+
+#pl.eps .bot,
+#pl.eps #pmid,
+#pl.eps #pact {
+ opacity: 0 !important;
+ visibility: hidden;
+ pointer-events: none;
+}
+
+#pep {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ padding: 9vh 0 3.4vh;
+ background: linear-gradient(0deg, rgba(0, 0, 0, .97) 60%, rgba(0, 0, 0, .8) 82%, transparent);
+ transform: translateY(40px);
+ opacity: 0;
+ visibility: hidden;
+ transition: transform .45s cubic-bezier(.22, .9, .3, 1), opacity .3s, visibility 0s .45s;
+}
+
+#pl.eps #pep {
+ transform: none;
+ opacity: 1;
+ visibility: visible;
+ transition-delay: 0s;
+}
+
+.peh {
+ display: flex;
+ align-items: center;
+ gap: 22px;
+ padding: 0 2.4vw;
+}
+
+.peh h3 {
+ font-size: clamp(18px, 1.6vw, 26px);
+ font-weight: 700;
+ display: flex;
+ align-items: baseline;
+ gap: 14px;
+ white-space: nowrap;
+}
+
+.peh h3 small {
+ font-size: .62em;
+ font-weight: 500;
+ color: rgba(255, 255, 255, .55);
+ max-width: 22vw;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+#pep #pseas {
+ flex: 1;
+ min-width: 0;
+ padding: 4px;
+ margin: 0;
+ min-height: 0;
+ gap: 10px;
+}
+
+#pep .chip {
+ height: 38px;
+ padding: 0 18px;
+ font-size: 14px;
+ background: rgba(255, 255, 255, .12);
+}
+
+#pep .chip.act {
+ background: rgba(255, 255, 255, .3);
+}
+
+#pep .chip.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.05);
+}
+
+#pep .pcar {
+ padding: 18px 2.4vw 8px;
+ min-height: 0;
+ gap: 18px;
+ -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 5vw), transparent);
+ mask-image: linear-gradient(90deg, #000 calc(100% - 5vw), transparent);
+}
+
+.pe {
+ flex: 0 0 clamp(230px, 19vw, 330px);
+ min-width: 0;
+}
+
+.pe .et {
+ position: relative;
+ aspect-ratio: 16/9;
+ border-radius: 12px;
+ overflow: hidden;
+ background: #000;
+}
+
+.pe .et img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+}
+
+.pe .et>i {
+ position: absolute;
+ left: 10px;
+ top: 10px;
+ font-style: normal;
+ font-size: 12px;
+ font-weight: 700;
+ padding: 3px 9px;
+ border-radius: 999px;
+ background: rgba(0, 0, 0, .6);
+ backdrop-filter: blur(8px);
+}
+
+.pe .pn {
+ display: block;
+ margin-top: 11px;
+ font-size: clamp(13px, 1vw, 16px);
+ font-weight: 600;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.pe small {
+ display: block;
+ margin-top: 3px;
+ font-size: 13px;
+ color: rgba(255, 255, 255, .5);
+}
+
+.pe.on .et {
+ transform: scale(1.04);
+}
+
+.pe .pg {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 4px;
+ background: rgba(255, 255, 255, .22);
+}
+
+.pe .pg u,
+.eq u {
+ display: block;
+ text-decoration: none;
+}
+
+.pe .pg u {
+ height: 100%;
+ width: var(--p, 0%);
+}
+
+.eq {
+ position: absolute;
+ right: 10px;
+ bottom: 14px;
+ display: flex;
+ gap: 3px;
+ align-items: flex-end;
+ height: 16px;
+}
+
+.eq u {
+ width: 3px;
+ height: 4px;
+ border-radius: 2px;
+ animation: eq 1s ease-in-out infinite;
+}
+
+.eq u:nth-child(2) {
+ animation-delay: .2s;
+}
+
+.eq u:nth-child(3) {
+ animation-delay: .4s;
+}
+
+@keyframes eq {
+ 50% {
+ height: 16px;
+ }
+}
+
+#pbg {
+ position: absolute;
+ inset: -60px;
+ width: calc(100% + 120px);
+ height: calc(100% + 120px);
+ object-fit: cover;
+ filter: blur(54px) brightness(0.42) saturate(1.45);
+ transform: scale(1.08);
+ pointer-events: none;
+ z-index: 0;
+ opacity: 1;
+ transition: opacity 0.4s ease;
+}
+
+#pl.cover #pbg {
+ opacity: 0;
+ visibility: hidden;
+}
+
+#pv {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ background: transparent;
+ z-index: 1;
+}
\ No newline at end of file
diff --git a/www/css/search.css b/www/css/search.css
new file mode 100644
index 0000000..33d5178
--- /dev/null
+++ b/www/css/search.css
@@ -0,0 +1,268 @@
+.srch #main {
+ visibility: hidden
+}
+
+.srch #bg {
+ filter: blur(70px) brightness(.5) saturate(1.5)
+}
+
+.srch #dim {
+ opacity: .35
+}
+
+.srch #dim2 {
+ opacity: 0 !important
+}
+
+#sr {
+ position: fixed;
+ inset: 0;
+ z-index: 25;
+ background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .6));
+ overflow-y: auto;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity .35s;
+ padding: 6vh var(--pad) 8vh;
+ scrollbar-width: none
+}
+
+#sr.show {
+ opacity: 1;
+ pointer-events: auto
+}
+
+.stop {
+ display: flex;
+ align-items: center;
+ gap: 18px;
+ height: clamp(46px, 4.6vw, 76px)
+}
+
+.stop svg {
+ width: clamp(30px, 2.8vw, 46px);
+ height: clamp(30px, 2.8vw, 46px);
+ color: rgba(255, 255, 255, .85);
+ flex: 0 0 auto
+}
+
+#stext {
+ font-size: clamp(28px, 3vw, 52px);
+ font-weight: 600;
+ letter-spacing: -.02em;
+ color: rgba(255, 255, 255, .5);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 70vw
+}
+
+#stext.q {
+ color: #fff
+}
+
+#stext.q::after {
+ content: "";
+ display: inline-block;
+ width: 3px;
+ height: .8em;
+ background: #fff;
+ margin-left: 5px;
+ vertical-align: -.08em;
+ animation: bl 1s steps(1) infinite
+}
+
+@keyframes bl {
+ 50% {
+ opacity: 0
+ }
+}
+
+#kb {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: clamp(2px, .35vw, 8px);
+ margin: 1.4vh 0 0 4px;
+ width: min(100%, 1180px)
+}
+
+.k {
+ flex: 1 1 0;
+ min-width: 0;
+ max-width: 46px;
+ height: clamp(34px, 3vw, 52px);
+ border-radius: 10px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: clamp(16px, 1.6vw, 26px);
+ font-weight: 500;
+ color: rgba(255, 255, 255, .88);
+ transition: background .2s, color .2s, transform .22s cubic-bezier(.22, .9, .3, 1)
+}
+
+.k.w {
+ flex: 0 0 auto;
+ max-width: none;
+ font-size: clamp(9px, .8vw, 13px);
+ font-weight: 700;
+ padding: 0 clamp(8px, .8vw, 14px);
+ background: rgba(255, 255, 255, .22);
+ letter-spacing: .04em;
+ height: clamp(26px, 2.3vw, 40px)
+}
+
+.k.d svg {
+ width: 1.1em;
+ height: 1.1em
+}
+
+.k.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.22);
+}
+
+.row.ch {
+ padding: 16px 6px 18px;
+ min-height: 0;
+ margin: 0 -6px;
+ gap: 14px
+}
+
+.chip {
+ flex: 0 0 auto;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 0 20px;
+ height: clamp(36px, 3vw, 52px);
+ border-radius: 12px;
+ background: rgba(255, 255, 255, .24);
+ color: #fff;
+ font-size: clamp(14px, 1.3vw, 22px);
+ font-weight: 500;
+ white-space: nowrap;
+ transition: background .2s, color .2s, transform .22s cubic-bezier(.22, .9, .3, 1)
+}
+
+.chip svg {
+ width: 1.1em;
+ height: 1.1em
+}
+
+.chip.on {
+ background: #fff;
+ color: #000;
+ transform: scale(1.06)
+}
+
+.tabs {
+ display: flex;
+ justify-content: space-around;
+ border-top: 1px solid rgba(255, 255, 255, .22);
+ margin-top: 1vh;
+ padding-top: 1.6vh
+}
+
+.tab {
+ padding: 8px 24px;
+ border-radius: 999px;
+ font-size: clamp(13px, 1.15vw, 19px);
+ color: rgba(255, 255, 255, .65);
+ position: relative;
+ transition: background .2s, color .2s
+}
+
+.tab.act {
+ color: #fff;
+ font-weight: 600
+}
+
+.tab.act::after {
+ content: "";
+ position: absolute;
+ left: 24px;
+ right: 24px;
+ bottom: 0;
+ height: 2px;
+ background: #fff;
+ border-radius: 2px
+}
+
+.tab.on {
+ background: rgba(255, 255, 255, .2);
+ color: #fff
+}
+
+.ss {
+ margin-top: 2.6vh
+}
+
+.ss h3 {
+ font-size: clamp(14px, 1.2vw, 20px);
+ font-weight: 500;
+ color: rgba(255, 255, 255, .75)
+}
+
+
+
+
+
+
+
+
+.sc {
+ flex: 0 0 var(--cw);
+ transition: transform .32s cubic-bezier(.22, .9, .3, 1)
+}
+
+.sc .po {
+ aspect-ratio: 2/3;
+ border-radius: 14px;
+ overflow: hidden;
+ background: #1b1b24;
+}
+
+.sc .po img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+ filter: brightness(.86);
+ transition: filter .3s
+}
+
+.sc b {
+ display: block;
+ margin-top: 10px;
+ font-size: clamp(13px, 1vw, 17px);
+ font-weight: 600;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis
+}
+
+.sc small {
+ display: flex;
+ gap: 8px;
+ margin-top: 3px;
+ color: rgba(255, 255, 255, .62);
+ font-size: clamp(11px, .85vw, 14px);
+ white-space: nowrap
+}
+
+.sc small span+span::before {
+ content: "\2022";
+ margin-right: 8px;
+ opacity: .5
+}
+
+.sc.on {
+ transform: scale(1.05) translateY(-3px)
+}
+
+.sc.on img {
+ filter: none
+}
\ No newline at end of file
diff --git a/www/css/sidebar.css b/www/css/sidebar.css
new file mode 100644
index 0000000..00e6092
--- /dev/null
+++ b/www/css/sidebar.css
@@ -0,0 +1,114 @@
+#side {
+ position: fixed;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ width: 340px;
+ z-index: 30;
+ pointer-events: none
+}
+
+#side::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 55%, transparent 100%);
+ opacity: 0;
+ transition: opacity .35s
+}
+
+#side.open::before {
+ opacity: 1
+}
+
+#side nav {
+ position: absolute;
+ left: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ pointer-events: auto
+}
+
+.ni {
+ margin-left: 16px;
+ width: 56px;
+ height: 56px;
+ border-radius: 28px;
+ display: flex;
+ align-items: center;
+ gap: 18px;
+ padding: 0 16px;
+ color: #fff;
+ opacity: .45;
+ overflow: hidden;
+ white-space: nowrap;
+ transition: width .32s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, opacity .25s
+}
+
+.ni svg {
+ width: 24px;
+ height: 24px;
+ flex: 0 0 24px
+}
+
+.ni span {
+ font-size: 19px;
+ font-weight: 600;
+ opacity: 0;
+ transition: opacity .25s
+}
+
+.ni.act {
+ opacity: 1
+}
+
+#side.open .ni {
+ width: 260px;
+ opacity: .85
+}
+
+#side.open .ni span {
+ opacity: 1
+}
+
+#side.open .ni.on {
+ background: #fff;
+ color: #000;
+ opacity: 1
+}
+
+.brand {
+ position: absolute;
+ left: 24px;
+ top: 5vh;
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ height: 44px;
+ color: #fff
+}
+
+.brand svg,
+.brand img {
+ width: 40px;
+ height: 40px;
+ flex: 0 0 40px;
+ object-fit: contain
+}
+
+.brand span {
+ font-size: 24px;
+ font-weight: 700;
+ letter-spacing: -.03em;
+ opacity: 0;
+ transform: translateX(-6px);
+ transition: opacity .3s, transform .3s
+}
+
+#side.open .brand span {
+ opacity: 1;
+ transform: none
+}
\ No newline at end of file
diff --git a/www/css/skeleton.css b/www/css/skeleton.css
new file mode 100644
index 0000000..2a88d24
--- /dev/null
+++ b/www/css/skeleton.css
@@ -0,0 +1,213 @@
+.sb,
+.card:not(.lded),
+.sc .po:not(.lded),
+.ep .et:not(.lded),
+.cs.sl .pf,
+.trk,
+.chip.sl {
+ position: relative;
+ overflow: hidden;
+ background: #15151c
+}
+
+.sb::before,
+.card:not(.lded)::before,
+.sc .po:not(.lded)::before,
+.ep .et:not(.lded)::before,
+.cs.sl .pf::before,
+.trk::before,
+.chip.sl::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .075) 50%, transparent 75%);
+ transform: translateX(-100%);
+ animation: shim 1.5s ease-in-out infinite
+}
+
+@keyframes shim {
+ to {
+ transform: translateX(100%)
+ }
+}
+
+.card img,
+.sc .po img,
+.ep .et img {
+ opacity: 0;
+ transition: opacity .45s ease, filter .38s
+}
+
+.card img.ld,
+.sc .po img.ld,
+.ep .et img.ld {
+ opacity: 1
+}
+
+.sb {
+ display: block;
+ border-radius: 8px;
+ height: 14px
+}
+
+.sec>.sb.h2 {
+ width: 220px;
+ height: 22px;
+ margin: 0 var(--pad) 4px
+}
+
+.ds>.sb.h3 {
+ width: 180px;
+ height: 22px;
+ margin: 0 6vw 6px
+}
+
+.ss>.sb.h3s {
+ width: 160px;
+ height: 18px
+}
+
+.sc.sl .sb {
+ width: 80%;
+ height: 13px;
+ margin-top: 10px
+}
+
+.sc.sl .sb.s {
+ width: 50%;
+ height: 11px;
+ margin-top: 6px
+}
+
+.chip.sl {
+ height: clamp(36px, 3vw, 52px)
+}
+
+.trk {
+ flex: 0 0 clamp(250px, 21vw, 400px);
+ aspect-ratio: 16/10;
+ border-radius: 20px
+}
+
+.cs.sl {
+ flex: 0 0 clamp(96px, 7.6vw, 150px)
+}
+
+.hskel {
+ display: none
+}
+
+.hc.sl .hskel {
+ display: block
+}
+
+.hc.sl>:not(.hskel) {
+ display: none
+}
+
+.hskel .t,
+.dsk .t {
+ width: min(32vw, 400px);
+ height: 10vh;
+ border-radius: 14px;
+ margin-bottom: 3vh
+}
+
+.hskel .m,
+.dsk .m {
+ width: min(22vw, 300px);
+ height: 18px;
+ margin-bottom: 2vh
+}
+
+.hskel .l,
+.dsk .l {
+ width: min(44vw, 620px);
+ height: 15px;
+ margin-bottom: 10px
+}
+
+.hskel .l.x,
+.dsk .l.x {
+ width: min(26vw, 360px)
+}
+
+.hskel .hb,
+.dsk .hb {
+ margin: 3vh 0
+}
+
+.hskel .b,
+.dsk .b {
+ width: clamp(130px, 11vw, 190px);
+ height: clamp(44px, 3.6vw, 64px);
+ border-radius: 999px
+}
+
+.hskel .b.c,
+.dsk .c {
+ width: clamp(44px, 3.6vw, 64px);
+ border-radius: 50%
+}
+
+.dw {
+ animation: fin .4s ease
+}
+
+@keyframes fin {
+ from {
+ opacity: 0
+ }
+}
+
+#pspin {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 64px;
+ height: 64px;
+ margin: -32px 0 0 -32px;
+ border-radius: 50%;
+ border: 3px solid rgba(255, 255, 255, .2);
+ border-top-color: #fff;
+ animation: spin .8s linear infinite;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity .2s
+}
+
+#pl.buf #pspin {
+ opacity: 1
+}
+
+#pl.buf #pmid {
+ opacity: 0 !important
+}
+
+@keyframes spin {
+ to {
+ transform: rotate(360deg)
+ }
+}
+
+.pe .et:not(.lded)::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .075) 50%, transparent 75%);
+ transform: translateX(-100%);
+ animation: shim 1.5s ease-in-out infinite
+}
+
+.pe .et:not(.lded) {
+ background: #15151c
+}
+
+.pe .et img {
+ opacity: 0;
+ transition: opacity .45s ease
+}
+
+.pe .et img.ld {
+ opacity: 1
+}
\ No newline at end of file
diff --git a/www/index.html b/www/index.html
new file mode 100644
index 0000000..60f5dc1
--- /dev/null
+++ b/www/index.html
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+ Vyla
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/www/js/browse.js b/www/js/browse.js
new file mode 100644
index 0000000..f5be750
--- /dev/null
+++ b/www/js/browse.js
@@ -0,0 +1,57 @@
+function hero(it) { clearTimeout(ht); ht = setTimeout(() => applyHero(it), 130) }
+async function applyHero(it) {
+ if (heroIt === it) return; heroIt = it; $('.hc').classList.remove('sl');
+ const bp = it.backdrop_path || it.poster_path;
+ xf(bgb, I + 'w780' + bp); xf(hb, I + 'w1280' + bp);
+ const t = it.title || it.name;
+ $('#hlogo').innerHTML = `${t}
`;
+ $('#hmeta').innerHTML = `★ ${(it.vote_average || 0).toFixed(1)}${yr(it)}${it._t === 'movie' ? 'Movie' : 'Series'}${gn(it)}`;
+ $('#hov').textContent = it.overview || '';
+ const l = await logo(it);
+ if (heroIt === it && l) $('#hlogo').innerHTML = `
`
+}
+
+function card(it, h = true) {
+ const c = document.createElement('div'); c.className = 'card f'; c.tabIndex = -1;
+ c.innerHTML = `
`;
+ if (h) c._it = it; c._a = () => openDetail(it); return c
+}
+
+function mkRow(i) {
+ const mv = mode === "movie" || (mode === "discover" && i % 2 === 0), k = mode === "discover" ? i >> 1 : i, list = mv ? MG : TG, g = list[k % list.length], pg = 1 + Math.floor(k / list.length) % 20;
+ const sec = document.createElement('section'); sec.className = 'sec';
+ sec.innerHTML = `${g.name} ${mv ? 'Movies' : 'TV Shows'}
${SK.cards(14)}
`;
+ rowsEl.appendChild(sec);
+ return api(`/discover/${mv ? 'movie' : 'tv'}`, `&with_genres=${g.id}&sort_by=popularity.desc&vote_count.gte=100&include_adult=false&page=${pg}`).then(d => {
+ const rs = (d.results || []).filter(x => x.poster_path);
+ if (!rs.length) { sec.remove(); return }
+ sec.lastChild.innerHTML = ''; rs.forEach(x => { x._t = mv ? 'movie' : 'tv'; sec.lastChild.appendChild(card(x)) })
+ })
+}
+
+async function more(n) {
+ if (busy) return; busy = true; const g = gen;
+ const ps = []; for (let j = 0; j < n; j++)ps.push(mkRow(idx++));
+ await Promise.all(ps); if (g === gen) busy = false
+}
+
+async function go(k) {
+ if (k === 'search') { closeLib(true); openSearch(); return }
+ closeSearch(true);
+ if (k === 'wl' || k === 'fav') { openLib(k); return }
+ closeLib(true);
+ if (k === mode && rowsEl.children.length) { setAct(k); setFocus(document.querySelector('#rows .card')); return }
+ mode = k; setAct(k); gen++; busy = false; idx = 0; heroIt = null; lastMain = null; rowsEl.innerHTML = ''; main.scrollTop = 0; $('.hc').classList.add('sl');
+ await more(6);
+ const first = document.querySelector('#rows .card');
+ if (first) { applyHero(first._it); setFocus(first) }
+}
+
+main.addEventListener('scroll', () => {
+ const h = innerHeight;
+ $('#dim2').style.opacity = Math.min(main.scrollTop / (h * .6), 1) * .55;
+ if (main.scrollTop + h * 2.5 > main.scrollHeight) more(4)
+});
+
+$('#hplay')._a = () => openPlayer(heroIt);
+$('#hinfo')._a = () => heroIt && openDetail(heroIt);
diff --git a/www/js/core.js b/www/js/core.js
new file mode 100644
index 0000000..b7918fb
--- /dev/null
+++ b/www/js/core.js
@@ -0,0 +1,37 @@
+const API_BASE = window.API_BASE || localStorage.getItem('vyla.api') || '';
+
+const K = '3f6703f3e2a0b2b40fe4fbb3e1546244', A = 'https://api.themoviedb.org/3', I = 'https://image.tmdb.org/t/p/';
+const $ = s => document.querySelector(s);
+const main = $('#main'), rowsEl = $('#rows'), side = $('#side'), ov = $('#ov'), bgb = $('#bg'), hb = $('#hb'), sr = $('#sr'), sres = $('#sres'), chips = $('#chips'), tabs = $('#tabs'), kb = $('#kb'), pl = $('#pl'), vd = $('#pv');
+const api = async (p, q = '') => { try { const r = await fetch(`${A}${p}?api_key=${K}&language=en-US${q}`); return r.ok ? await r.json() : {} } catch (e) { return {} } };
+const ic = p => ``;
+const P_WL = '', P_FV = '';
+const LN = { wl: 'Watch Later', fav: 'Favorites' };
+const NAVEL = {}; let navAct = null, mode = '', gen = 0, sgen = 0, st;
+let fast = false, G = {}, MG = [], TG = [], cur = null, lastMain = null, heroIt = null, idx = 0, busy = false, ht;
+const LC = {};
+
+function xf(box, url, cls = 'xf') {
+ if (box._u === url) return; box._u = url;
+ const im = new Image();
+ im.onload = () => { if (box._u !== url) return; const d = document.createElement('div'); d.className = cls; d.style.backgroundImage = `url(${url})`; box.appendChild(d); requestAnimationFrame(() => requestAnimationFrame(() => d.classList.add('in'))); setTimeout(() => { while (box.children.length > 2) box.firstChild.remove() }, 800) };
+ im.onerror = () => { if (box._u === url) box._u = null };
+ im.src = url
+}
+
+async function logo(it) {
+ const k = it._t + it.id; if (k in LC) return LC[k];
+ const d = await api(`/${it._t}/${it.id}/images`, '&include_image_language=en,null');
+ const l = (d.logos || []).find(x => x.iso_639_1 === 'en') || (d.logos || [])[0];
+ return LC[k] = l ? I + 'w500' + l.file_path : null
+}
+
+const yr = it => ((it.release_date || it.first_air_date || '') + '').slice(0, 4);
+const gn = it => (it.genre_ids || []).map(i => G[i]).filter(Boolean).slice(0, 2).join(', ');
+
+const esc = t => String(t).replace(/ { const e = document.createElement('div'); e.className = cls + ' f'; e.tabIndex = -1; e.innerHTML = html; e._a = fn; return e };
+const LOGO = 'assets/favicon.ico', PH = 'data:image/svg+xml,' + encodeURIComponent('');
+function toast(m) { const t = document.createElement('div'); t.className = 'toast'; t.textContent = m; (document.fullscreenElement || document.body).appendChild(t); setTimeout(() => t.remove(), 2300) }
+const imgDone = e => { const t = e.target; if (t.tagName === 'IMG') { t.classList.add('ld'); t.parentElement && t.parentElement.classList.add('lded') } };
+document.addEventListener('load', imgDone, true); document.addEventListener('error', imgDone, true);
diff --git a/www/js/detail.js b/www/js/detail.js
new file mode 100644
index 0000000..9d95c43
--- /dev/null
+++ b/www/js/detail.js
@@ -0,0 +1,66 @@
+let dgen = 0;
+async function openDetail(it) {
+ const t = it._t;
+ if (!ov.classList.contains('show')) ov._prev = cur;
+ ov.classList.add('show'); side.classList.remove('open'); const my = ++dgen; ov.innerHTML = SK.detail(it); ov.scrollTop = 0;
+ const d = await api(`/${t}/${it.id}`, `&append_to_response=videos,credits,recommendations,images,${t === 'movie' ? 'release_dates' : 'content_ratings'}&include_image_language=en,null`);
+ if (my !== dgen || !ov.classList.contains('show')) return;
+ if (!d.id) { closeDetail(); return }
+ const title = d.title || d.name, year = ((d.release_date || d.first_air_date) || '').slice(0, 4);
+ const cert = t === 'movie' ? (((d.release_dates || {}).results || []).find(r => r.iso_3166_1 === 'US') || { release_dates: [] }).release_dates.map(x => x.certification).find(Boolean) : (((d.content_ratings || {}).results || []).find(r => r.iso_3166_1 === 'US') || {}).rating;
+ const rt = t === 'movie' ? (d.runtime ? `${Math.floor(d.runtime / 60)}h ${d.runtime % 60}m` : '') : (d.number_of_seasons ? `${d.number_of_seasons} Season${d.number_of_seasons > 1 ? 's' : ''}` : '');
+ const lg = ((d.images || {}).logos || []).find(x => x.iso_639_1 === 'en') || ((d.images || {}).logos || [])[0];
+ const bp = d.backdrop_path || d.poster_path;
+ ov.innerHTML = `${lg ? `

` : `
${title}
`}
${(d.vote_average || 0).toFixed(1)}${year}${cert ? `${cert}` : ''}${rt}${(d.genres || []).slice(0, 3).map(g => g.name).join(', ')}
${d.overview || ''}
MORE `;
+ const secs = $('#dsecs');
+ const rowOf = (name, kids) => { if (!kids.length) return; const s = document.createElement('section'); s.className = 'ds'; s.innerHTML = `${name}
`; s.lastChild.append(...kids); secs.appendChild(s) };
+ const el = (c, h) => { const e = document.createElement('div'); e.className = c + ' f'; e.tabIndex = -1; e.innerHTML = h; e._a = () => { }; return e };
+ if (t === 'tv') {
+ const ss = (d.seasons || []).filter(x => x.season_number > 0 && x.episode_count);
+ if (ss.length) {
+ const sec = document.createElement('section'); sec.className = 'ds eps';
+ sec.innerHTML = '';
+ secs.appendChild(sec);
+ const ddb = $('#ddb'), ddl = $('#ddl'), list = $('#el'); let cs = null;
+ const nm = x => x.name || 'Season ' + x.season_number;
+ const loadEps = async x => {
+ cs = x; ddb.innerHTML = `${esc(nm(x))}` + ic('');
+ [...ddl.children].forEach((c, i) => c.classList.toggle('cur', ss[i] === x));
+ list.innerHTML = SK.eps(10);
+ const r = await api(`/tv/${it.id}/season/${x.season_number}`);
+ if (cs !== x || !list.isConnected) return;
+ list.innerHTML = '';
+ (r.episodes || []).forEach((p, ix) => {
+ const n = p.episode_number, img = p.still_path ? I + 'w300' + p.still_path : (it.backdrop_path ? I + 'w300' + it.backdrop_path : PH);
+ const e = el('ep', `${esc(p.name || 'Episode ' + n)}${['Episode ' + n, p.runtime ? p.runtime + 'm' : ''].filter(Boolean).join(' \u2022 ')}`);
+ e.title = p.overview || '';
+ e._a = () => openPlayer(it, `S${x.season_number} E${n} \u2022 ${p.name || ''}`, { it, seasons: ss, s: x.season_number, eps: r.episodes, i: ix, cache: { [x.season_number]: r.episodes } }); list.appendChild(e)
+ });
+ const f0 = list.firstChild; if (f0 && f0._a && $('#dplay')) $('#dplay')._a = () => f0._a();
+ if (!list.children.length) list.innerHTML = 'No episodes listed.
'
+ };
+ ss.forEach(x => ddl.appendChild(mkf('ddi', `${esc(nm(x))}${x.episode_count} eps`, () => { closeDD(); loadEps(x) })));
+ ddb._a = () => { if (!closeDD()) { ddl.classList.add('open'); setFocus(ddl.children[Math.max(0, ss.indexOf(cs))]) } };
+ loadEps(ss[0])
+ }
+ }
+ rowOf('Trailers', ((d.videos || {}).results || []).filter(v => v.site === 'YouTube' && /Trailer|Teaser|Clip/.test(v.type)).sort((a, b) => (b.type === 'Trailer') - (a.type === 'Trailer')).slice(0, 8).map(v => el('tr', `${v.name}▶ ${v.type}`)));
+ rowOf('Related', ((d.recommendations || {}).results || []).filter(x => x.poster_path).map(x => { x._t = t; return card(x, false) }));
+ rowOf('Cast', ((d.credits || {}).cast || []).slice(0, 20).map(p => el('cs', `${p.profile_path ? '' : p.name[0]}
${p.name}${p.character || ''}`)));
+ $('#dplay')._a = () => openPlayer(it); const sync = () => [['dwl', 'wl', P_WL], ['dfv', 'fav', P_FV]].forEach(([id, k, p]) => { const e = $('#' + id), v = has(k, it); e.classList.toggle('sv', v); e.dataset.l = (v ? 'Remove from ' : 'Add to ') + LN[k]; e.innerHTML = ic(p) });
+ sync();
+ $('#dmenu')._a = () => { const o = $('#dmx').classList.toggle('open'); $('#dmenu').classList.toggle('sv', o) };
+ $('#dwl')._a = () => { toggleLib('wl', it); sync() }; $('#dfv')._a = () => { toggleLib('fav', it); sync() };
+ $('#dmore')._a = () => { const o = $('#otx'), m = $('#dmore'); o.classList.toggle('x'); m.textContent = o.classList.contains('x') ? 'LESS' : 'MORE' };
+ ov.scrollTop = 0;
+ setFocus($('#dplay'))
+}
+
+function closeDetail() {
+ ov.classList.remove('show');
+ const p = ov._prev;
+ setTimeout(() => { if (!ov.classList.contains('show')) ov.innerHTML = '' }, 400);
+ if (p && document.body.contains(p)) setFocus(p); else if (lib.classList.contains('show')) setFocus($('#lgrid .card') || navAct)
+}
+
+function closeDD() { const l = $('#ddl'); if (l && l.classList.contains('open')) { l.classList.remove('open'); setFocus($('#ddb')); return true } return false }
\ No newline at end of file
diff --git a/www/js/focus.js b/www/js/focus.js
new file mode 100644
index 0000000..2ba76a9
--- /dev/null
+++ b/www/js/focus.js
@@ -0,0 +1,60 @@
+function setFocus(el) {
+ if (!el) return;
+ const od = $('#ddl.open'); if (od && !el.closest('.dd')) od.classList.remove('open');
+ cur && cur.classList.remove('on'); cur = el; el.classList.add('on');
+ const inSide = !!el.closest('#side'), inOv = !!el.closest('#ov');
+ side.classList.toggle('open', inSide && !ov.classList.contains('show'));
+ if (!inSide && !inOv && !el.closest('#pl')) lastMain = el;
+ const row = el.closest('.row');
+ if (row) row.scrollTo({ left: Math.max(0, el.offsetLeft - parseInt(getComputedStyle(row).paddingLeft)), behavior: fast ? 'auto' : 'smooth' });
+
+ const menu = el.closest('#pm');
+ if (menu) {
+ el.scrollIntoView({ block: 'nearest', behavior: fast ? 'auto' : 'smooth' });
+ return;
+ }
+
+ const scr = el.closest('#ov,#sr,#lib');
+ if (scr && el.closest('#kb,#chips,#tabs')) scr.scrollTo({ top: 0, behavior: fast ? 'auto' : 'smooth' });
+ else if (scr) {
+ const r = el.getBoundingClientRect();
+ if (r.bottom > innerHeight - 50) scr.scrollBy({ top: r.bottom - innerHeight + 110, behavior: fast ? 'auto' : 'smooth' });
+ else if (r.top < 50) scr.scrollBy({ top: r.top - 110, behavior: fast ? 'auto' : 'smooth' });
+ }
+ else if (!inSide && !el.closest('#pl')) {
+ const sec = el.closest('.sec');
+ main.scrollTo({ top: sec ? Math.max(0, sec.offsetTop - innerHeight * .52) : 0, behavior: fast ? 'auto' : 'smooth' });
+ }
+ if (el._it) hero(el._it); if (el._bg) sbgf(el._bg);
+}
+
+function nav(d) {
+ const sc = pl.classList.contains('show') ? (pl.classList.contains('eps') ? '#pep .f' : '#pl .f') : ov.classList.contains('show') ? '#ov .f' : sr.classList.contains('show') ? '#sr .f,#side .f' : lib.classList.contains('show') ? '#lib .f,#side .f' : '#side .f,#main .f';
+ const c = cur.getBoundingClientRect(), cx = c.left + c.width / 2, cy = c.top + c.height / 2;
+ const inSide = !!cur.closest('#side');
+ if (inSide && d === 'r' && lastMain && getComputedStyle(lastMain).visibility !== 'hidden') { setFocus(lastMain); return }
+ if ((d === 'l' || d === 'r') && !inSide) {
+ const g = cur.closest('.row,#kb,#tabs');
+ if (g) {
+ const L = [...g.children].filter(e => e.classList.contains('f') && e.getBoundingClientRect().width), i = L.indexOf(cur), n = L[i + (d === 'r' ? 1 : -1)];
+ if (i >= 0) { if (n) setFocus(n); else if (d === 'l' && !cur.closest('#ov,#pl')) setFocus(navAct); return }
+ }
+ }
+ let best = null, bs = 1e9;
+ document.querySelectorAll(sc).forEach(e => {
+ if (e === cur) return;
+ const r = e.getBoundingClientRect(); if (!r.width) return;
+ const x = r.left + r.width / 2, y = r.top + r.height / 2, dx = x - cx, dy = y - cy;
+ let p, s;
+ if (d === 'r') { if (dx < 8) return; p = dx; s = Math.abs(dy) * 2.5 }
+ else if (d === 'l') { if (dx > -8) return; p = -dx; s = Math.abs(dy) * 2.5 }
+ else if (d === 'd') { if (dy < 8) return; p = dy; s = Math.abs(dx) * 2 }
+ else { if (dy > -8) return; p = -dy; s = Math.abs(dx) * 2 }
+ if (p + s < bs) { bs = p + s; best = e }
+ });
+ if (!best) return;
+ if (best.closest('#side') && !inSide) best = navAct;
+ setFocus(best)
+}
+
+function act(el) { el && el._a && el._a() }
\ No newline at end of file
diff --git a/www/js/input.js b/www/js/input.js
new file mode 100644
index 0000000..fb95ac5
--- /dev/null
+++ b/www/js/input.js
@@ -0,0 +1,99 @@
+const KM = {
+ 37: 'l', 21: 'l',
+ 38: 'u', 19: 'u',
+ 39: 'r', 22: 'r',
+ 40: 'd', 20: 'd',
+ 13: 'e', 23: 'e', 66: 'e',
+ 27: 'b', 8: 'b', 4: 'b', 10009: 'b', 461: 'b'
+};
+
+document.addEventListener('keydown', e => {
+ fast = e.repeat;
+ document.body.classList.add('kbm');
+
+ if (e.keyCode === 85 || e.keyCode === 179) {
+ e.preventDefault();
+ tgl();
+ return;
+ }
+ if (e.keyCode === 126 || e.keyCode === 250) {
+ e.preventDefault();
+ vd.play();
+ return;
+ }
+ if (e.keyCode === 127) {
+ e.preventDefault();
+ vd.pause();
+ return;
+ }
+ if (e.keyCode === 89 || e.keyCode === 227) {
+ e.preventDefault();
+ vd.currentTime = Math.max(0, vd.currentTime - 10);
+ return;
+ }
+ if (e.keyCode === 90 || e.keyCode === 228) {
+ e.preventDefault();
+ vd.currentTime = Math.min(vd.duration || Infinity, vd.currentTime + 10);
+ return;
+ }
+
+ if (pl.classList.contains('show')) {
+ showCtl();
+ if (e.key === ' ' || e.keyCode === 32) { e.preventDefault(); tgl(); return }
+ if (cur === $('#pseek') && (e.keyCode === 37 || e.keyCode === 39 || e.keyCode === 21 || e.keyCode === 22)) {
+ e.preventDefault();
+ vd.currentTime += (e.keyCode === 39 || e.keyCode === 22) ? 10 : -10;
+ return;
+ }
+ if (cur && cur.id === 'vsl' && (e.keyCode === 37 || e.keyCode === 39 || e.keyCode === 21 || e.keyCode === 22)) {
+ e.preventDefault();
+ vd.muted = false;
+ vd.volume = Math.min(1, Math.max(0, vd.volume + ((e.keyCode === 39 || e.keyCode === 22) ? .1 : -.1)));
+ cur._v();
+ return;
+ }
+ }
+
+ if (sr.classList.contains('show') && !ov.classList.contains('show') && !pl.classList.contains('show')) {
+ if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) { e.preventDefault(); setQ(sqv + e.key); return }
+ if (e.keyCode === 8) { e.preventDefault(); setQ(sqv.slice(0, -1)); return }
+ }
+
+ const k = KM[e.keyCode];
+ if (!k) return;
+ e.preventDefault();
+
+ if (!cur) {
+ const fallback = document.querySelector('.f');
+ if (fallback) setFocus(fallback);
+ return;
+ }
+
+ if (k === 'e') act(cur);
+ else if (k === 'b') {
+ if (pl.classList.contains('show')) {
+ pmK ? closeMenu(1) : pl.classList.contains('eps') ? closeEps(1) : closePlayer();
+ } else if (ov.classList.contains('show')) {
+ closeDD() || closeDetail();
+ } else if (lib.classList.contains('show')) {
+ closeLib();
+ } else if (sr.classList.contains('show')) {
+ closeSearch();
+ }
+ } else {
+ nav(k);
+ }
+});
+
+let mx = -1, my = -1;
+document.addEventListener('mousemove', e => {
+ if (Math.abs(e.clientX - mx) + Math.abs(e.clientY - my) < 4) return;
+ mx = e.clientX; my = e.clientY; document.body.classList.remove('kbm');
+ if (pl.classList.contains('show')) { showCtl(); const g = e.target.closest('.f'); if (g && g !== cur && pl.contains(g)) setFocus(g); return }
+ const f = e.target.closest('.f');
+ if (f && f !== cur && (!ov.classList.contains('show') || ov.contains(f))) setFocus(f)
+});
+document.addEventListener('click', e => {
+ const f = e.target.closest('.f'); if (f) act(f)
+});
+ov.addEventListener('wheel', () => { }, { passive: true });
\ No newline at end of file
diff --git a/www/js/library.js b/www/js/library.js
new file mode 100644
index 0000000..5c9168c
--- /dev/null
+++ b/www/js/library.js
@@ -0,0 +1,27 @@
+let LIB = { wl: [], fav: [] }, libK = null; const lib = $('#lib');
+try { Object.assign(LIB, JSON.parse(localStorage.getItem('vyla.lib') || '{}')) } catch (e) { }
+const saveLib = () => { try { localStorage.setItem('vyla.lib', JSON.stringify(LIB)) } catch (e) { } };
+const slim = it => ({ id: it.id, _t: it._t || it.media_type, title: it.title, name: it.name, poster_path: it.poster_path, backdrop_path: it.backdrop_path, release_date: it.release_date, first_air_date: it.first_air_date, vote_average: it.vote_average, overview: it.overview });
+const has = (k, it) => LIB[k].some(x => x.id === it.id && x._t === it._t);
+function toggleLib(k, it) {
+ const i = LIB[k].findIndex(x => x.id === it.id && x._t === it._t), had = i >= 0;
+ if (had) LIB[k].splice(i, 1); else LIB[k].unshift(slim(it));
+ saveLib(); syncNav(); toast((had ? 'Removed from ' : 'Added to ') + LN[k]);
+ if (lib.classList.contains('show')) drawLib()
+}
+function drawLib() {
+ const k = libK, a = LIB[k], g = $('#lgrid');
+ $('#lt').innerHTML = `${LN[k]}${a.length} title${a.length === 1 ? '' : 's'}`;
+ g.innerHTML = '';
+ if (!a.length) { g.innerHTML = 'Nothing here yet. Open a title, press the \u22EE button and add it.
'; return }
+ a.forEach(x => { const c = card(x, false); c._bg = x; g.appendChild(c) })
+}
+function openLib(k) {
+ libK = k; setAct(k); document.body.classList.add('lib'); lib.classList.add('show'); side.classList.remove('open'); lib.scrollTop = 0;
+ drawLib(); syncNav(); setFocus($('#lgrid .card') || NAVEL[k])
+}
+function closeLib(silent) {
+ if (!lib.classList.contains('show')) return;
+ lib.classList.remove('show'); document.body.classList.remove('lib'); libK = null; heroIt = null; bgb._u = null; syncNav();
+ if (!silent) { setAct(mode); setFocus($('#rows .card')) }
+}
diff --git a/www/js/main.js b/www/js/main.js
new file mode 100644
index 0000000..ef547ec
--- /dev/null
+++ b/www/js/main.js
@@ -0,0 +1,8 @@
+(async () => {
+ rowsEl.innerHTML = SK.rows(4);
+ const [m, t] = await Promise.all([api('/genre/movie/list'), api('/genre/tv/list')]);
+ MG = m.genres || []; TG = t.genres || [];
+ [...MG, ...TG].forEach(g => G[g.id] = g.name);
+ if (!MG.length || !TG.length) { rowsEl.innerHTML = 'Could not reach TMDB.
'; return }
+ await go('discover');
+})();
diff --git a/www/js/player.js b/www/js/player.js
new file mode 100644
index 0000000..e349f81
--- /dev/null
+++ b/www/js/player.js
@@ -0,0 +1,805 @@
+let currentHls = null;
+let currentBgHls = null;
+let currentSources = [];
+let resolvedStreams = [];
+let selectedSourceKey = null;
+let selectedStreamUrl = null;
+let expandedSources = new Set();
+let currentQualityLevels = [];
+let selectedQualityIndex = -1;
+let activeSubtitles = [];
+let mediaSegments = [];
+let activeSegment = null;
+let plPrev = null;
+let plT = null;
+let plItem = null;
+let pmK = null;
+let plCtx = null;
+let viewS = null;
+let drag = 0;
+let discoverySession = 0;
+let userHasManuallySelectedSource = false;
+
+let subSettings = {
+ size: 24,
+ color: '#ffffff',
+ bg: 'rgba(0,0,0,0.75)',
+ offset: 0
+};
+
+const pi = (p, f) => ``;
+const SPK = '';
+const PI = {
+ x: pi(''),
+ play: pi('', 1),
+ pause: pi('', 1),
+ cc: pi(''),
+ vol: pi(SPK + ''),
+ mute: pi(SPK + ''),
+ qlt: pi(''),
+ set: pi(''),
+ more: pi(''),
+ fs: pi(''),
+ fx: pi(''),
+ eps: pi(''),
+ chk: pi('')
+};
+
+$('#ptop').innerHTML = `${PI.x}
![]()
${PI.qlt}
${PI.cc}
${PI.vol}
${PI.set}
${PI.more}
`;
+$('#pbot').innerHTML = `0:00
0:00${PI.eps}
${PI.fs}
`;
+$('#pmid').innerHTML = PI.play;
+
+const pm = $('#pm');
+const sk = $('#pseek');
+const pbg = $('#pbg');
+
+const fmt = t => {
+ t = Math.max(0, Math.floor(t || 0));
+ const h = Math.floor(t / 3600);
+ const m = Math.floor((t % 3600) / 60);
+ const c = t % 60;
+ return (h ? h + ':' + String(m).padStart(2, '0') : m) + ':' + String(c).padStart(2, '0');
+};
+
+const tgl = () => vd.paused ? vd.play() : vd.pause();
+const pico = () => {
+ $('#pmid').innerHTML = vd.paused ? PI.play : PI.pause;
+};
+
+function showCtl() {
+ pl.classList.add('ui');
+ clearTimeout(plT);
+ plT = setTimeout(() => {
+ if (!vd.paused && !pmK && !pl.classList.contains('eps')) {
+ pl.classList.remove('ui');
+ }
+ }, 3800);
+}
+
+function closeMenu(rf) {
+ if (!pmK) return;
+ const t = {
+ qlt: '#pqlt',
+ cc: '#pcc',
+ vol: '#pvol',
+ set: '#pset',
+ more: '#pmore'
+ }[pmK];
+ pmK = null;
+ pm.classList.remove('open');
+ pm.innerHTML = '';
+ if (rf) setFocus($(t));
+}
+
+function updateSubStyles() {
+ vd.classList.add('sub-active');
+ vd.style.setProperty('--sub-size', `${subSettings.size}px`);
+ vd.style.setProperty('--sub-color', subSettings.color);
+ vd.style.setProperty('--sub-bg', subSettings.bg);
+ Array.from(vd.textTracks).forEach(track => {
+ if (track.cues) {
+ for (let i = 0; i < track.cues.length; i++) {
+ const cue = track.cues[i];
+ if (cue && !cue._initialOffsetApplied) {
+ cue.startTime += subSettings.offset;
+ cue.endTime += subSettings.offset;
+ }
+ }
+ }
+ });
+}
+
+function applySubOffset(delta) {
+ subSettings.offset += delta;
+ Array.from(vd.textTracks).forEach(track => {
+ if (track.cues) {
+ for (let i = 0; i < track.cues.length; i++) {
+ const cue = track.cues[i];
+ if (cue) {
+ cue.startTime += delta;
+ cue.endTime += delta;
+ }
+ }
+ }
+ });
+}
+
+function buildProxyUrl(rawUrl, headersObj = {}) {
+ return `${API_BASE}/api/proxy?url=${encodeURIComponent(rawUrl)}&headers=${encodeURIComponent(JSON.stringify(headersObj))}`;
+}
+
+async function fetchSources() {
+ try {
+ const res = await fetch(`${API_BASE}/api/sources`);
+ const data = await res.json();
+ currentSources = data.sources || [];
+ } catch (_) {
+ currentSources = [];
+ }
+}
+
+async function startConcurrentDiscovery(it, s = null, e = null) {
+ const session = ++discoverySession;
+ pl.classList.add('buf');
+
+ resolvedStreams = [];
+ selectedStreamUrl = null;
+ let foundFirstPlayable = false;
+
+ if (!currentSources.length) {
+ await fetchSources();
+ }
+
+ if (session !== discoverySession) return;
+
+ const sourcePromises = currentSources.map(async (src) => {
+ let epQuery = s && e ? `&season=${s}&episode=${e}` : '';
+ try {
+ const res = await fetch(`${API_BASE}/api/stream?provider=${src.key}&tmdbId=${it.id}${epQuery}`);
+ const data = await res.json();
+ if (session !== discoverySession) return;
+
+ if (data.success && data.stream) {
+ const streamData = data.stream;
+ const headers = streamData.headers || {};
+ let playable = [];
+
+ if (Array.isArray(streamData.allUrls) && streamData.allUrls.length > 0) {
+ playable = streamData.allUrls;
+ } else if (streamData.url) {
+ playable = [{ url: streamData.url, quality: streamData.quality || 'Auto', isM3U8: streamData.isM3U8 }];
+ }
+
+ if (playable.length > 0) {
+ const resolvedEntry = {
+ provider: src.key,
+ label: src.label || src.key,
+ headers,
+ primaryUrl: playable[0].url,
+ allUrls: playable
+ };
+
+ resolvedStreams.push(resolvedEntry);
+
+ if (pmK === 'set') {
+ renderSourcesMenu();
+ }
+
+ if (!foundFirstPlayable && !userHasManuallySelectedSource) {
+ foundFirstPlayable = true;
+ selectedSourceKey = src.key;
+ playSpecificStream(resolvedEntry.primaryUrl, resolvedEntry.headers);
+ } else if (userHasManuallySelectedSource && selectedSourceKey === src.key && !selectedStreamUrl) {
+ playSpecificStream(resolvedEntry.primaryUrl, resolvedEntry.headers);
+ }
+ }
+ }
+ } catch (_) { }
+ });
+
+ Promise.allSettled(sourcePromises).then(() => {
+ if (session !== discoverySession) return;
+ if (!resolvedStreams.length) {
+ pl.classList.remove('buf');
+ toast('No playable sources available.');
+ }
+ });
+
+ loadSubtitles(it.id, s, e);
+ loadTimestamps(it.id, s, e);
+}
+
+function playSpecificStream(streamUrl, headers = {}) {
+ pl.classList.add('buf');
+ selectedStreamUrl = streamUrl;
+
+ if (currentHls) {
+ currentHls.destroy();
+ currentHls = null;
+ }
+ if (currentBgHls) {
+ currentBgHls.destroy();
+ currentBgHls = null;
+ }
+
+ const finalUrl = buildProxyUrl(streamUrl, headers);
+
+ if (streamUrl.includes('.m3u8')) {
+ if (Hls.isSupported()) {
+ currentHls = new Hls({
+ xhrSetup: function (xhr) {
+ xhr.withCredentials = false;
+ }
+ });
+ currentHls.loadSource(finalUrl);
+ currentHls.attachMedia(vd);
+ currentHls.on(Hls.Events.MANIFEST_PARSED, (_, data) => {
+ currentQualityLevels = data.levels || [];
+ vd.play().catch(() => { });
+ });
+ currentHls.on(Hls.Events.LEVEL_SWITCHED, (_, data) => {
+ selectedQualityIndex = data.level;
+ });
+
+ if (pbg) {
+ currentBgHls = new Hls({
+ xhrSetup: function (xhr) {
+ xhr.withCredentials = false;
+ }
+ });
+ currentBgHls.loadSource(finalUrl);
+ currentBgHls.attachMedia(pbg);
+ currentBgHls.on(Hls.Events.MANIFEST_PARSED, () => {
+ pbg.muted = true;
+ if (!vd.paused) pbg.play().catch(() => { });
+ });
+ }
+ } else if (vd.canPlayType('application/vnd.apple.mpegurl')) {
+ vd.src = finalUrl;
+ vd.play().catch(() => { });
+ if (pbg) {
+ pbg.src = finalUrl;
+ pbg.muted = true;
+ pbg.play().catch(() => { });
+ }
+ }
+ } else {
+ currentQualityLevels = [];
+ vd.src = finalUrl;
+ vd.play().catch(() => { });
+ if (pbg) {
+ pbg.src = finalUrl;
+ pbg.muted = true;
+ pbg.play().catch(() => { });
+ }
+ }
+}
+
+function setPlaybackQuality(levelIndex) {
+ selectedQualityIndex = levelIndex;
+ if (currentHls) {
+ currentHls.currentLevel = levelIndex;
+ }
+}
+
+async function loadSubtitles(id, s, e) {
+ Array.from(vd.querySelectorAll('track')).forEach(t => t.remove());
+ activeSubtitles = [];
+
+ try {
+ let epQuery = s && e ? `&season=${s}&episode=${e}` : '';
+ const res = await fetch(`${API_BASE}/api/subtitles?tmdbId=${id}${epQuery}`);
+ const data = await res.json();
+ activeSubtitles = data.subtitles || [];
+
+ activeSubtitles.forEach((sub, idx) => {
+ const track = document.createElement('track');
+ track.kind = 'subtitles';
+ track.label = `${sub.label} (${sub.source || 'mirror'})`;
+ track.srclang = sub.label.slice(0, 2).toLowerCase();
+ track.src = buildProxyUrl(sub.file);
+ track.default = idx === 0;
+ vd.appendChild(track);
+ track.track.mode = 'disabled';
+ });
+ updateSubStyles();
+ } catch (_) { }
+}
+
+async function loadTimestamps(tmdbId, season = null, episode = null, durationSec = null) {
+ mediaSegments = [];
+ activeSegment = null;
+ $('#pskip').classList.remove('v');
+ try {
+ let q = `${API_BASE}/api/timestamps?tmdb_id=${tmdbId}`;
+ if (season) q += `&season=${season}`;
+ if (episode) q += `&episode=${episode}`;
+ if (durationSec) q += `&duration_ms=${Math.round(durationSec * 1000)}`;
+
+ const res = await fetch(q);
+ const data = await res.json();
+ mediaSegments = data.segments || [];
+ } catch (_) {
+ mediaSegments = [];
+ }
+}
+
+function renderSourcesMenu() {
+ let container = $('#pm-src-list');
+ if (!container) return;
+ container.innerHTML = '';
+
+ if (!resolvedStreams.length) {
+ container.innerHTML = 'Probing providers...
';
+ return;
+ }
+
+ resolvedStreams.forEach(s => {
+ const grp = document.createElement('div');
+ grp.className = 'src-group';
+
+ const hdr = document.createElement('div');
+ hdr.className = 'src-header f' + (s.provider === selectedSourceKey ? ' on' : '');
+
+ const hasMulti = s.allUrls && s.allUrls.length > 1;
+ const countLabel = hasMulti ? ` (${s.allUrls.length})` : '';
+ const expandIcon = hasMulti ? `${expandedSources.has(s.provider) ? '▲' : '▼'}` : '';
+
+ hdr.innerHTML = `${s.label}${countLabel}${expandIcon}${s.provider === selectedSourceKey ? PI.chk : ''}
`;
+ hdr._a = () => {
+ userHasManuallySelectedSource = true;
+ if (hasMulti && s.provider === selectedSourceKey) {
+ if (expandedSources.has(s.provider)) expandedSources.delete(s.provider);
+ else expandedSources.add(s.provider);
+ renderSourcesMenu();
+ } else {
+ selectedSourceKey = s.provider;
+ playSpecificStream(s.primaryUrl, s.headers);
+ renderSourcesMenu();
+ }
+ };
+ grp.appendChild(hdr);
+
+ if (hasMulti) {
+ const sub = document.createElement('div');
+ sub.className = 'src-sublist' + (expandedSources.has(s.provider) ? ' open' : '');
+
+ s.allUrls.forEach((u, i) => {
+ const item = document.createElement('div');
+ item.className = 'src-subitem f' + (u.url === selectedStreamUrl ? ' on' : '');
+ item.innerHTML = `${u.quality || 'Stream ' + (i + 1)}${u.url === selectedStreamUrl ? PI.chk : ''}`;
+ item._a = () => {
+ userHasManuallySelectedSource = true;
+ selectedSourceKey = s.provider;
+ playSpecificStream(u.url, s.headers);
+ renderSourcesMenu();
+ };
+ sub.appendChild(item);
+ });
+ grp.appendChild(sub);
+ }
+
+ container.appendChild(grp);
+ });
+}
+
+function openMenu(k) {
+ if (pmK === k) {
+ closeMenu(1);
+ return;
+ }
+ closeEps();
+ pm.innerHTML = '';
+ pmK = k;
+ pm.classList.add('open');
+ let first = null;
+
+ const h = t => {
+ const e = document.createElement('h4');
+ e.textContent = t;
+ pm.appendChild(e);
+ };
+
+ const r = (l, on, fn) => {
+ const e = mkf('pi', `${l}${on ? PI.chk : ''}`, () => {
+ fn();
+ closeMenu(1);
+ });
+ pm.appendChild(e);
+ if (on && !first) first = e;
+ return e;
+ };
+
+ if (k === 'qlt') {
+ h('Stream Quality');
+ if (currentHls && currentQualityLevels.length > 0) {
+ r('Auto', selectedQualityIndex === -1, () => setPlaybackQuality(-1));
+ currentQualityLevels.forEach((lvl, idx) => {
+ const label = lvl.height ? `${lvl.height}p` : `${Math.round(lvl.bitrate / 1000)} kbps`;
+ r(label, selectedQualityIndex === idx, () => setPlaybackQuality(idx));
+ });
+ } else {
+ const activeProv = resolvedStreams.find(s => s.provider === selectedSourceKey);
+ if (activeProv && activeProv.allUrls.length > 1) {
+ activeProv.allUrls.forEach((u, idx) => {
+ const label = u.quality || `Stream ${idx + 1}`;
+ r(label, u.url === selectedStreamUrl, () => {
+ userHasManuallySelectedSource = true;
+ playSpecificStream(u.url, activeProv.headers);
+ });
+ });
+ } else {
+ r('Auto', true, () => { });
+ }
+ }
+ } else if (k === 'cc') {
+ h('Subtitles');
+ const T = [...vd.textTracks];
+ r('Off', !T.some(t => t.mode === 'showing'), () => {
+ T.forEach(t => t.mode = 'disabled');
+ });
+ T.forEach(t => r(t.label, t.mode === 'showing', () => {
+ T.forEach(u => u.mode = u === t ? 'showing' : 'disabled');
+ updateSubStyles();
+ }));
+
+ h('Subtitle Size');
+ [18, 22, 26, 32].forEach(sz => {
+ r(`${sz}px`, subSettings.size === sz, () => {
+ subSettings.size = sz;
+ updateSubStyles();
+ });
+ });
+
+ h('Subtitle Color');
+ [['White', '#ffffff'], ['Yellow', '#ffd700'], ['Cyan', '#00ffff']].forEach(([col, code]) => {
+ r(col, subSettings.color === code, () => {
+ subSettings.color = code;
+ updateSubStyles();
+ });
+ });
+
+ h('Subtitle Sync');
+ const syncRow = document.createElement('div');
+ syncRow.className = 'sub-ctrl-row';
+ syncRow.innerHTML = `Timing Offset`;
+ pm.appendChild(syncRow);
+ $('#sub-min').onclick = (ev) => {
+ ev.stopPropagation();
+ applySubOffset(-0.5);
+ };
+ $('#sub-plus').onclick = (ev) => {
+ ev.stopPropagation();
+ applySubOffset(0.5);
+ };
+ } else if (k === 'vol') {
+ h('Volume');
+ const w = document.createElement('div');
+ w.className = 'vrow';
+ w.innerHTML = '
';
+ pm.appendChild(w);
+ const vm = $('#vm');
+ const vs = $('#vsl');
+ const vu = () => {
+ const v = vd.muted ? 0 : vd.volume;
+ vs.firstChild.style.width = v * 100 + '%';
+ $('#vpc').textContent = Math.round(v * 100);
+ vm.innerHTML = $('#pvol').innerHTML = v ? PI.vol : PI.mute;
+ };
+ vm._a = () => {
+ vd.muted = !vd.muted;
+ vu();
+ };
+ vs._a = () => { };
+ vs._v = vu;
+ vs.addEventListener('click', e => {
+ const b = vs.getBoundingClientRect();
+ vd.muted = false;
+ vd.volume = Math.min(1, Math.max(0, (e.clientX - b.left) / b.width));
+ vu();
+ });
+ vu();
+ first = vs;
+ } else if (k === 'set') {
+ h('Available Sources');
+ const srcContainer = document.createElement('div');
+ srcContainer.id = 'pm-src-list';
+ pm.appendChild(srcContainer);
+ renderSourcesMenu();
+
+ h('Playback Speed');
+ [.5, 1, 1.25, 1.5, 2].forEach(v => r(v === 1 ? 'Normal' : v + '\u00d7', vd.playbackRate === v, () => vd.playbackRate = v));
+
+ h('Aspect Ratio');
+ r('Fit Screen', !pl.classList.contains('cover'), () => {
+ pl.classList.remove('cover');
+ if (pbg) {
+ pbg.currentTime = vd.currentTime;
+ if (!vd.paused) pbg.play().catch(() => { });
+ }
+ });
+ r('Fill Screen', pl.classList.contains('cover'), () => {
+ pl.classList.add('cover');
+ if (pbg) pbg.pause();
+ });
+ } else {
+ h('Library');
+ r('Watch Later', has('wl', plItem), () => toggleLib('wl', plItem));
+ r('Favorites', has('fav', plItem), () => toggleLib('fav', plItem));
+ }
+
+ showCtl();
+ setFocus(first || pm.querySelector('.f'));
+}
+
+async function openPlayer(it, ep, ctx) {
+ if (!it) return;
+ plPrev = cur;
+ plItem = it;
+ plCtx = ctx || null;
+ userHasManuallySelectedSource = false;
+ $('#peps').style.display = plCtx ? '' : 'none';
+ pl.classList.remove('eps');
+ $('#pnext').classList.remove('v');
+ $('#pt').textContent = it.title || it.name || '';
+ $('#ps').textContent = ep || [yr(it), it._t === 'tv' ? 'Series' : 'Movie'].filter(Boolean).join(' \u2022 ');
+ $('#pav').src = it.poster_path ? I + 'w185' + it.poster_path : PH;
+ vd.poster = it.backdrop_path ? I + 'w1280' + it.backdrop_path : '';
+
+ pl.classList.add('show');
+ showCtl();
+ pico();
+ setFocus($('#pmid'));
+
+ if (plCtx) {
+ const epData = plCtx.eps[plCtx.i];
+ startConcurrentDiscovery(it, plCtx.s, epData.episode_number);
+ } else {
+ startConcurrentDiscovery(it);
+ }
+}
+
+function closePlayer() {
+ closeMenu();
+ closeEps();
+ if (currentHls) {
+ currentHls.destroy();
+ currentHls = null;
+ }
+ if (currentBgHls) {
+ currentBgHls.destroy();
+ currentBgHls = null;
+ }
+ plCtx = null;
+ vd.pause();
+ vd.removeAttribute('src');
+ vd.load();
+ if (pbg) {
+ pbg.pause();
+ pbg.removeAttribute('src');
+ pbg.load();
+ }
+ if (document.fullscreenElement) document.exitFullscreen();
+ pl.classList.remove('show', 'ui');
+ if (plPrev && document.body.contains(plPrev)) setFocus(plPrev);
+}
+
+$('#pback')._a = closePlayer;
+$('#pmid')._a = tgl;
+
+$('#pskip')._a = () => {
+ if (activeSegment) {
+ const target = activeSegment.end != null ? activeSegment.end + 0.5 : (vd.duration || vd.currentTime + 30);
+ vd.currentTime = target;
+ $('#pskip').classList.remove('v');
+ activeSegment = null;
+ } else {
+ vd.currentTime += 85;
+ }
+};
+
+$('#pqlt')._a = () => openMenu('qlt');
+$('#pcc')._a = () => openMenu('cc');
+$('#pvol')._a = () => openMenu('vol');
+$('#pset')._a = () => openMenu('set');
+$('#pmore')._a = () => openMenu('more');
+$('#pfs')._a = () => document.fullscreenElement ? document.exitFullscreen() : pl.requestFullscreen && pl.requestFullscreen();
+
+document.addEventListener('fullscreenchange', () => {
+ $('#pfs').innerHTML = document.fullscreenElement ? PI.fx : PI.fs;
+});
+
+const sp = e => {
+ const b = sk.getBoundingClientRect();
+ vd.currentTime = Math.min(1, Math.max(0, (e.clientX - b.left) / b.width)) * (vd.duration || 0);
+};
+
+sk.addEventListener('pointerdown', e => {
+ drag = 1;
+ sk._m = 1;
+ sk.setPointerCapture(e.pointerId);
+ sp(e);
+});
+
+sk.addEventListener('pointermove', e => {
+ if (drag) sp(e);
+});
+
+sk.addEventListener('pointerup', () => drag = 0);
+
+sk._a = () => {
+ if (sk._m) {
+ sk._m = 0;
+ return;
+ }
+ tgl();
+};
+
+pl.querySelectorAll('.f').forEach(e => {
+ if (!e._a) e._a = () => { };
+});
+
+vd.addEventListener('click', () => {
+ if (pmK) closeMenu();
+ else if (pl.classList.contains('eps')) closeEps();
+ else tgl();
+ showCtl();
+});
+
+vd.addEventListener('play', () => {
+ if (!pl.classList.contains('cover') && pbg) {
+ pbg.muted = true;
+ pbg.currentTime = vd.currentTime;
+ pbg.play().catch(() => { });
+ }
+});
+
+vd.addEventListener('pause', () => {
+ if (pbg) pbg.pause();
+});
+
+vd.addEventListener('seeking', () => {
+ if (pbg) pbg.currentTime = vd.currentTime;
+});
+
+vd.addEventListener('seeked', () => {
+ if (pbg) pbg.currentTime = vd.currentTime;
+});
+
+vd.addEventListener('ratechange', () => {
+ if (pbg) pbg.playbackRate = vd.playbackRate;
+});
+
+vd.addEventListener('durationchange', () => {
+ $('#pdur').textContent = fmt(vd.duration);
+ if (vd.duration && plItem) {
+ const c = plCtx;
+ loadTimestamps(plItem.id, c ? c.s : null, c ? c.eps[c.i].episode_number : null, vd.duration);
+ }
+});
+
+vd.addEventListener('timeupdate', () => {
+ const d = vd.duration || 0;
+ const t = vd.currentTime;
+ const p = d ? (t / d) * 100 : 0;
+
+ $('#pfill').style.width = p + '%';
+ $('#phd').style.left = p + '%';
+ $('#pcur').textContent = fmt(t);
+
+ if (d && vd.buffered.length) {
+ $('#pbuf').style.width = (vd.buffered.end(vd.buffered.length - 1) / d * 100) + '%';
+ }
+
+ if (!pl.classList.contains('cover') && pbg && Math.abs(pbg.currentTime - t) > 0.35) {
+ pbg.currentTime = t;
+ }
+
+ const currentSeg = mediaSegments.find(seg => {
+ const afterStart = t >= seg.start;
+ const beforeEnd = seg.end == null ? (d ? t < d - 5 : true) : t < seg.end;
+ return afterStart && beforeEnd;
+ });
+
+ if (currentSeg) {
+ activeSegment = currentSeg;
+ $('#pskip').textContent = currentSeg.label;
+ $('#pskip').classList.add('v');
+ } else {
+ activeSegment = null;
+ $('#pskip').classList.remove('v');
+ }
+});
+
+['play', 'pause', 'ended'].forEach(n => vd.addEventListener(n, pico));
+['loadstart', 'waiting', 'seeking'].forEach(n => vd.addEventListener(n, () => pl.classList.add('buf')));
+['playing', 'canplay', 'seeked', 'error'].forEach(n => vd.addEventListener(n, () => pl.classList.remove('buf')));
+
+const hasNext = () => !!plCtx && (plCtx.i + 1 < plCtx.eps.length || plCtx.seasons.some(x => x.season_number > plCtx.s));
+const getSeason = async s => plCtx.cache[s] || (plCtx.cache[s] = (await api(`/tv/${plCtx.it.id}/season/${s}`)).episodes || []);
+
+async function playEp(s, i) {
+ const c = plCtx;
+ if (!c) return;
+ const eps = await getSeason(s);
+ const p = eps[i];
+ if (!p || plCtx !== c) return;
+ c.s = s;
+ c.i = i;
+ c.eps = eps;
+ $('#ps').textContent = `S${s} E${p.episode_number} \u2022 ${p.name || ''}`;
+ $('#pnext').classList.remove('v');
+ closeEps();
+ showCtl();
+ setFocus($('#pmid'));
+ userHasManuallySelectedSource = false;
+ startConcurrentDiscovery(c.it, s, p.episode_number);
+}
+
+function nextEp() {
+ const c = plCtx;
+ if (!hasNext()) return;
+ if (c.i + 1 < c.eps.length) {
+ playEp(c.s, c.i + 1);
+ } else {
+ playEp(c.seasons.find(x => x.season_number > c.s).season_number, 0);
+ }
+}
+
+function closeEps(rf) {
+ if (!pl.classList.contains('eps')) return;
+ pl.classList.remove('eps');
+ if (rf) setFocus($('#peps'));
+}
+
+function openEps() {
+ const c = plCtx;
+ if (!c) return;
+ closeMenu();
+ $('#peT').innerHTML = `Episodes${esc(c.it.title || c.it.name || '')}`;
+ const sr = $('#pseas');
+ sr.innerHTML = '';
+ c.seasons.forEach(x => {
+ sr.appendChild(mkf('chip', esc(x.name || 'Season ' + x.season_number), () => showSeason(x.season_number)));
+ });
+ pl.classList.add('eps');
+ showCtl();
+ showSeason(c.s, true);
+}
+
+async function showSeason(sn, focus) {
+ const c = plCtx;
+ const car = $('#pcar');
+ if (!c) return;
+ viewS = sn;
+ [...$('#pseas').children].forEach((e, i) => e.classList.toggle('act', c.seasons[i].season_number === sn));
+ car.innerHTML = SK.pep(8);
+ const eps = await getSeason(sn);
+ if (viewS !== sn || plCtx !== c) return;
+ car.innerHTML = '';
+ eps.forEach((p, i) => {
+ const n = p.episode_number;
+ const cur = c.s === sn && c.i === i;
+ const img = p.still_path ? I + 'w300' + p.still_path : (c.it.backdrop_path ? I + 'w300' + c.it.backdrop_path : PH);
+ car.appendChild(mkf('pe' + (cur ? ' cur' : ''), `
${n}${cur ? '
' : ''}
${esc(p.name || 'Episode ' + n)}${p.runtime ? p.runtime + 'm' : 'Episode ' + n}`, () => playEp(sn, i)));
+ });
+ const t = car.querySelector('.cur') || car.firstChild;
+ if (focus && t) setFocus(t);
+}
+
+$('#pep').innerHTML = ``;
+$('#pnext').innerHTML = 'Next Episode' + pi('');
+$('#pnext')._a = nextEp;
+$('#pepx')._a = () => closeEps(1);
+$('#peps')._a = () => pl.classList.contains('eps') ? closeEps(1) : openEps();
+
+vd.addEventListener('timeupdate', () => {
+ const d = vd.duration || 0;
+ const r = d - vd.currentTime;
+ $('#pnext').classList.toggle('v', !!d && hasNext() && r <= 300 && r > 0);
+ $('#pep').style.setProperty('--p', d ? (vd.currentTime / d) * 100 + '%' : '0%');
+});
+
+vd.addEventListener('ended', () => {
+ if (hasNext()) nextEp();
+});
\ No newline at end of file
diff --git a/www/js/search.js b/www/js/search.js
new file mode 100644
index 0000000..2204daa
--- /dev/null
+++ b/www/js/search.js
@@ -0,0 +1,70 @@
+let sqv = '', bgT, stab = 0, SD = { q: '', all: [], mv: [], tv: [] };
+const SVS = '';
+const sdraw = () => { const t = $('#stext'); t.textContent = sqv || 'Search'; t.classList.toggle('q', !!sqv) };
+function setQ(v) { sqv = v; sdraw(); clearTimeout(st); st = setTimeout(() => fillSearch(sqv.trim()), 300) }
+function sbgf(it) { clearTimeout(bgT); bgT = setTimeout(() => xf(bgb, I + 'w780' + (it.backdrop_path || it.poster_path)), 120) }
+async function fillSearch(q) {
+ const my = ++sgen; skelSearch();
+ let all, mv, tv;
+ const ok = x => x.poster_path && (x.media_type === 'movie' || x.media_type === 'tv');
+ if (q) {
+ const d = await api('/search/multi', `&query=${encodeURIComponent(q)}&include_adult=false`);
+ if (my !== sgen) return;
+ all = (d.results || []).filter(ok); mv = all.filter(x => x.media_type === 'movie'); tv = all.filter(x => x.media_type === 'tv')
+ }
+ else {
+ const [a, b] = await Promise.all([api('/trending/movie/week'), api('/trending/tv/week')]);
+ if (my !== sgen) return;
+ mv = (a.results || []).filter(x => x.poster_path).map(x => ({ ...x, media_type: 'movie' }));
+ tv = (b.results || []).filter(x => x.poster_path).map(x => ({ ...x, media_type: 'tv' })); all = []
+ }
+ SD = { q, all, mv, tv }; drawSearch()
+}
+function tile(x) {
+ x._t = x.media_type;
+ const e = mkf('sc', `${esc(x.title || x.name || '')}★ ${(x.vote_average || 0).toFixed(1)}${yr(x)}${x.media_type === 'tv' ? 'Show' : 'Movie'}`, () => openDetail(x));
+ e._bg = x; return e
+}
+function drawSearch() {
+ const { q, all, mv, tv } = SD;
+ chips.innerHTML = '';
+ const names = [...new Set((q ? all : [...mv, ...tv]).map(x => x.title || x.name))].slice(0, 9);
+ if (q) chips.appendChild(mkf('chip', SVS + `"${esc(q)}"`, () => { }));
+ names.forEach(n => chips.appendChild(mkf('chip', esc(n), () => setQ(n))));
+ sres.innerHTML = '';
+ const L = stab === 1 ? [['Movies', mv]] : stab === 2 ? [['TV Shows', tv]] : q ? [['Top Matches', all.slice(0, 10)], ['Movies', mv], ['TV Shows', tv]] : [['Trending Movies', mv], ['Trending TV Shows', tv]];
+ let n = 0;
+ L.forEach(([h, a]) => { if (!a.length) return; n++; const sec = document.createElement('section'); sec.className = 'ss'; sec.innerHTML = `${h}
`; sec.lastChild.append(...a.map(tile)); sres.appendChild(sec) });
+ if (!n) sres.innerHTML = `No results${q ? ` for \u201c${esc(q)}\u201d` : ''}
`;
+ [...tabs.children].forEach((t, i) => t.classList.toggle('act', i === stab));
+ if (cur && !document.body.contains(cur)) setFocus(chips.children[1] || chips.firstChild || kb.children[2])
+}
+['Top Results', 'Movies', 'TV Shows'].forEach((t, i) => tabs.appendChild(mkf('tab', t, () => { stab = i; drawSearch() })));
+const KL = 'abcdefghijklmnopqrstuvwxyz'.split(''), KN = "1234567890.-'&:".split('');
+let num = false;
+function buildKb() {
+ kb.innerHTML = '';
+ const mk = (label, cls, fn) => kb.appendChild(mkf('k ' + cls, label, () => { fn(); sr.scrollTo({ top: 0, behavior: 'smooth' }) }));
+ mk(num ? 'ABC' : '123', 'w', () => { num = !num; buildKb(); setFocus(kb.firstChild) });
+ mk('SPACE', 'w', () => { if (sqv && !sqv.endsWith(' ')) setQ(sqv + ' ') });
+ (num ? KN : KL).forEach(c => mk(c, '', () => setQ(sqv + c)));
+ mk('', 'd', () => setQ(sqv.slice(0, -1)))
+}
+buildKb();
+function openSearch() {
+ setAct('search'); document.body.classList.add('srch'); sr.classList.add('show'); side.classList.remove('open'); sr.scrollTop = 0;
+ if (!sres.children.length) fillSearch('');
+ setFocus(kb.children[2])
+}
+function closeSearch(silent) {
+ if (!sr.classList.contains('show')) return;
+ sr.classList.remove('show'); document.body.classList.remove('srch');
+ heroIt = null; bgb._u = null;
+ if (!silent) { setAct(mode); setFocus(document.querySelector('#rows .card')) }
+}
+
+
+function skelSearch() {
+ chips.innerHTML = SK.chips(7);
+ sres.innerHTML = [0, 1].map(() => ``).join('')
+}
diff --git a/www/js/sidebar.js b/www/js/sidebar.js
new file mode 100644
index 0000000..edb0a85
--- /dev/null
+++ b/www/js/sidebar.js
@@ -0,0 +1,16 @@
+const NAV = [
+ ['search', 'Search', ic('')],
+ ['discover', 'Discovery', ic('')],
+ ['movie', 'Movies', ic('')],
+ ['tv', 'TV Shows', ic('')],
+ ['wl', 'Watch Later', ic(P_WL)],
+ ['fav', 'Favorites', ic(P_FV)]
+];
+
+NAV.forEach(([k, n, s]) => { const e = document.createElement('div'); e.className = 'ni f'; e.tabIndex = -1; e.innerHTML = s + `${n}`; e._a = () => go(k); NAVEL[k] = e; $('#nav').appendChild(e) });
+syncNav();
+function setAct(k) { Object.entries(NAVEL).forEach(([n, e]) => e.classList.toggle('act', n === k)); navAct = NAVEL[k] }
+const mark = $('#mark'); mark.onerror = () => { mark.onerror = null; mark.src = PH }; mark.src = LOGO;
+
+
+function syncNav() { ['wl', 'fav'].forEach(k => { if (NAVEL[k]) NAVEL[k].style.display = (LIB[k].length || libK === k) ? '' : 'none' }) }
diff --git a/www/js/skeleton.js b/www/js/skeleton.js
new file mode 100644
index 0000000..7358c76
--- /dev/null
+++ b/www/js/skeleton.js
@@ -0,0 +1,13 @@
+const SK = {
+ cards: n => ''.repeat(n),
+ tiles: n => ''.repeat(n),
+ chips: n => Array.from({ length: n }, (_, i) => ``).join(''),
+ pep: n => ''.repeat(n),
+ eps: n => ''.repeat(n),
+ rows: n => Array.from({ length: n }, () => '').join(''),
+ detail: it => {
+ const bp = it.backdrop_path || it.poster_path || '';
+ return ``
+ }
+};
\ No newline at end of file