From b39189594910b07fe7558d5cd8712da2fbad9076 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 13:36:35 +0000 Subject: [PATCH] Setup roles and permissions and add CardsPreview component - Install and configure `spatie/laravel-permission`. - Define `super-admin`, `admin`, and `guest` roles. - Restrict dashboard access to `super-admin` and `admin`. - Automatically assign `super-admin` role to the first user. - Add `RolesAndPermissionsSeeder` and include it in `DatabaseSeeder`. - Update `DashboardTest` to verify role-based access. - Add `CardsPreview` component to Home page for theme visualization. Co-authored-by: claudemyburgh <6057076+claudemyburgh@users.noreply.github.com> --- app/Models/User.php | 12 +- bootstrap/app.php | 6 + composer.json | 3 +- composer.lock | 152 +- config/permission.php | 219 + ..._05_10_121734_create_permission_tables.php | 137 + database/seeders/DatabaseSeeder.php | 4 + .../seeders/RolesAndPermissionsSeeder.php | 38 + public/build/assets/alert-D8f1uXWR.js | 1 + public/build/assets/animate-css-B9qFUvc-.js | 7 - public/build/assets/animate-css-DjHmIVWH.js | 7 + public/build/assets/app-0l60ScAC.js | 2 + public/build/assets/app-B4i8odKZ.css | 2 - public/build/assets/app-BXAwObjV.css | 2 + public/build/assets/app-NKzAktB4.js | 2 - ...nce-dLeB5aE7.js => appearance-iJRh14ZS.js} | 2 +- public/build/assets/badge-BqJn0VCH.js | 1 + ...{button-B6E1T0qj.js => button-CJIRvoa4.js} | 2 +- .../{card-DGuRpKkV.js => card-D_BkPXgE.js} | 2 +- public/build/assets/check-CWekFaHD.js | 1 + public/build/assets/check-JLGZ6ERA.js | 1 - public/build/assets/checkbox-DlkBWsch.js | 1 + public/build/assets/chevron-down-BXFNulw6.js | 1 + public/build/assets/chevron-down-xYnWKEDk.js | 1 - ...onfirm-gXMuOnz9.js => confirm-B_yzhW7J.js} | 0 ...SJcuzI.js => confirm-password-DXqCvmLh.js} | 2 +- .../{copy-DipuxFuX.js => copy-DVuxs_qN.js} | 2 +- ...A1TGAT.js => createLucideIcon-BN-jDSEO.js} | 0 ...oard-8kvCxfBE.js => dashboard-BT6uuLKU.js} | 2 +- ...{dialog-DDCot1iY.js => dialog-D0ulBexn.js} | 2 +- public/build/assets/dist-B2I70joJ.js | 1 + public/build/assets/dist-BXzvTKID.js | 1 + .../{dist-uBvN1Epe.js => dist-CE9c1Q26.js} | 2 +- .../{dist-DlwT0Sy6.js => dist-CNJ93GkG.js} | 0 .../{dist-Cz7M9pMz.js => dist-Cw-hV1_S.js} | 2 +- .../{dist-2FHDdoqV.js => dist-Hfu0N5sY.js} | 2 +- public/build/assets/fonts-CMXsOM2l.js | 1 + public/build/assets/fonts-PRPJga5a.js | 1 - .../build/assets/forgot-password-BQY-LsgH.js | 1 + .../build/assets/forgot-password-J1Dj5dCk.js | 1 - ...{github-DdPrsZVB.js => github-D7dT9N2Y.js} | 2 +- public/build/assets/glow-radial-BlYCryQ3.js | 1 - public/build/assets/glow-radial-C29beylo.js | 1 + public/build/assets/home-B2lItTUn.js | 4211 +++++++++++++++++ public/build/assets/home-CDqIBBMJ.js | 4211 ----------------- ...or-CXzYDMKp.js => input-error-B7LHFA6O.js} | 2 +- .../{label-DR9FZUM0.js => label-shgfY21t.js} | 2 +- ...-BczqqvyR.js => loader-circle-kx-CiozJ.js} | 2 +- public/build/assets/login-CzdxtsZ7.js | 1 - public/build/assets/login-DDiqb3zu.js | 1 + public/build/assets/main-layout-BDfUDiNw.js | 1 + public/build/assets/main-layout-Bjl0T2Wa.js | 1 - ...sword-DgvYQGdP.js => password-4MQY-sCe.js} | 2 +- ...HSktczCa.js => password-input-uWAWfR_8.js} | 2 +- ...oW-.js => placeholder-pattern-B0M5WUpE.js} | 0 ...rofile-z87RwChz.js => profile-BEn4K4cJ.js} | 2 +- ...ister-2UCvBdJw.js => register-3WIwjGeo.js} | 2 +- ...Azo6.js => registry-installer-BbAk2A5r.js} | 2 +- ...BLtlCvFc.js => reset-password-DA1t4sje.js} | 2 +- public/build/assets/security-CPBDq09s.js | 1 - public/build/assets/security-DmqLPAqs.js | 1 + public/build/assets/shim-B1jYWA9-.js | 1 + ...lite-CXgr0CAW.js => socialite-BKXn5KQb.js} | 2 +- ...pinner-DVMDXl0V.js => spinner-CO4WEyCd.js} | 2 +- .../{sun-BUK2gUl5.js => sun-DKOQEsNV.js} | 2 +- ...link-B-rnxz_C.js => text-link-UmmgvXHR.js} | 2 +- public/build/assets/textarea-CdB2elwd.js | 1 + public/build/assets/themes-DsbD3i65.js | 1 + public/build/assets/themes-pgJyxVED.js | 1 - ...M4.js => two-factor-challenge-G3MKbV9v.js} | 2 +- ...tUq.js => use-two-factor-auth-BvOwR0Xx.js} | 2 +- ...n-0-44BVPj.js => verification-DWj8pCN5.js} | 0 ...l-BJE_1kxG.js => verify-email-DF33-d5n.js} | 2 +- ...elcome-DahtqzTP.js => welcome-BbYySG9A.js} | 2 +- public/build/manifest.json | 510 +- .../js/components/preview/cards-preview.tsx | 249 + resources/js/pages/home.tsx | 4 +- resources/js/routes/animate-css/index.ts | 89 +- resources/js/routes/appearance/index.ts | 89 +- resources/js/routes/boost/index.ts | 57 +- resources/js/routes/cashier/index.ts | 57 +- resources/js/routes/debugbar/cache/index.ts | 84 +- resources/js/routes/debugbar/index.ts | 290 +- resources/js/routes/debugbar/queries/index.ts | 57 +- resources/js/routes/fonts/index.ts | 89 +- resources/js/routes/index.ts | 420 +- resources/js/routes/login/index.ts | 57 +- resources/js/routes/password/confirm/index.ts | 57 +- resources/js/routes/password/index.ts | 497 +- resources/js/routes/profile/index.ts | 249 +- resources/js/routes/register/index.ts | 57 +- resources/js/routes/sanctum/index.ts | 89 +- resources/js/routes/security/index.ts | 89 +- resources/js/routes/socialite/index.ts | 202 +- resources/js/routes/storage/index.ts | 98 +- resources/js/routes/storage/local/index.ts | 84 +- resources/js/routes/themes/index.ts | 89 +- resources/js/routes/two-factor/index.ts | 626 +-- resources/js/routes/two-factor/login/index.ts | 57 +- resources/js/routes/user-password/index.ts | 75 +- resources/js/routes/verification/index.ts | 255 +- routes/web.php | 2 +- tests/Feature/DashboardTest.php | 28 +- 103 files changed, 7361 insertions(+), 6341 deletions(-) create mode 100644 config/permission.php create mode 100644 database/migrations/2026_05_10_121734_create_permission_tables.php create mode 100644 database/seeders/RolesAndPermissionsSeeder.php create mode 100644 public/build/assets/alert-D8f1uXWR.js delete mode 100644 public/build/assets/animate-css-B9qFUvc-.js create mode 100644 public/build/assets/animate-css-DjHmIVWH.js create mode 100644 public/build/assets/app-0l60ScAC.js delete mode 100644 public/build/assets/app-B4i8odKZ.css create mode 100644 public/build/assets/app-BXAwObjV.css delete mode 100644 public/build/assets/app-NKzAktB4.js rename public/build/assets/{appearance-dLeB5aE7.js => appearance-iJRh14ZS.js} (94%) create mode 100644 public/build/assets/badge-BqJn0VCH.js rename public/build/assets/{button-B6E1T0qj.js => button-CJIRvoa4.js} (98%) rename public/build/assets/{card-DGuRpKkV.js => card-D_BkPXgE.js} (77%) create mode 100644 public/build/assets/check-CWekFaHD.js delete mode 100644 public/build/assets/check-JLGZ6ERA.js create mode 100644 public/build/assets/checkbox-DlkBWsch.js create mode 100644 public/build/assets/chevron-down-BXFNulw6.js delete mode 100644 public/build/assets/chevron-down-xYnWKEDk.js rename public/build/assets/{confirm-gXMuOnz9.js => confirm-B_yzhW7J.js} (100%) rename public/build/assets/{confirm-password-BMSJcuzI.js => confirm-password-DXqCvmLh.js} (81%) rename public/build/assets/{copy-DipuxFuX.js => copy-DVuxs_qN.js} (72%) rename public/build/assets/{createLucideIcon-wUA1TGAT.js => createLucideIcon-BN-jDSEO.js} (100%) rename public/build/assets/{dashboard-8kvCxfBE.js => dashboard-BT6uuLKU.js} (93%) rename public/build/assets/{dialog-DDCot1iY.js => dialog-D0ulBexn.js} (96%) create mode 100644 public/build/assets/dist-B2I70joJ.js create mode 100644 public/build/assets/dist-BXzvTKID.js rename public/build/assets/{dist-uBvN1Epe.js => dist-CE9c1Q26.js} (97%) rename public/build/assets/{dist-DlwT0Sy6.js => dist-CNJ93GkG.js} (100%) rename public/build/assets/{dist-Cz7M9pMz.js => dist-Cw-hV1_S.js} (99%) rename public/build/assets/{dist-2FHDdoqV.js => dist-Hfu0N5sY.js} (87%) create mode 100644 public/build/assets/fonts-CMXsOM2l.js delete mode 100644 public/build/assets/fonts-PRPJga5a.js create mode 100644 public/build/assets/forgot-password-BQY-LsgH.js delete mode 100644 public/build/assets/forgot-password-J1Dj5dCk.js rename public/build/assets/{github-DdPrsZVB.js => github-D7dT9N2Y.js} (84%) delete mode 100644 public/build/assets/glow-radial-BlYCryQ3.js create mode 100644 public/build/assets/glow-radial-C29beylo.js create mode 100644 public/build/assets/home-B2lItTUn.js delete mode 100644 public/build/assets/home-CDqIBBMJ.js rename public/build/assets/{input-error-CXzYDMKp.js => input-error-B7LHFA6O.js} (85%) rename public/build/assets/{label-DR9FZUM0.js => label-shgfY21t.js} (85%) rename public/build/assets/{loader-circle-BczqqvyR.js => loader-circle-kx-CiozJ.js} (55%) delete mode 100644 public/build/assets/login-CzdxtsZ7.js create mode 100644 public/build/assets/login-DDiqb3zu.js create mode 100644 public/build/assets/main-layout-BDfUDiNw.js delete mode 100644 public/build/assets/main-layout-Bjl0T2Wa.js rename public/build/assets/{password-DgvYQGdP.js => password-4MQY-sCe.js} (97%) rename public/build/assets/{password-input-HSktczCa.js => password-input-uWAWfR_8.js} (93%) rename public/build/assets/{placeholder-pattern-nTsSuoW-.js => placeholder-pattern-B0M5WUpE.js} (100%) rename public/build/assets/{profile-z87RwChz.js => profile-BEn4K4cJ.js} (82%) rename public/build/assets/{register-2UCvBdJw.js => register-3WIwjGeo.js} (75%) rename public/build/assets/{registry-installer-iv12Azo6.js => registry-installer-BbAk2A5r.js} (99%) rename public/build/assets/{reset-password-BLtlCvFc.js => reset-password-DA1t4sje.js} (85%) delete mode 100644 public/build/assets/security-CPBDq09s.js create mode 100644 public/build/assets/security-DmqLPAqs.js create mode 100644 public/build/assets/shim-B1jYWA9-.js rename public/build/assets/{socialite-CXgr0CAW.js => socialite-BKXn5KQb.js} (96%) rename public/build/assets/{spinner-DVMDXl0V.js => spinner-CO4WEyCd.js} (73%) rename public/build/assets/{sun-BUK2gUl5.js => sun-DKOQEsNV.js} (88%) rename public/build/assets/{text-link-B-rnxz_C.js => text-link-UmmgvXHR.js} (89%) create mode 100644 public/build/assets/textarea-CdB2elwd.js create mode 100644 public/build/assets/themes-DsbD3i65.js delete mode 100644 public/build/assets/themes-pgJyxVED.js rename public/build/assets/{two-factor-challenge-Bot9NjM4.js => two-factor-challenge-G3MKbV9v.js} (90%) rename public/build/assets/{use-two-factor-auth-BbF_ctUq.js => use-two-factor-auth-BvOwR0Xx.js} (99%) rename public/build/assets/{verification-0-44BVPj.js => verification-DWj8pCN5.js} (100%) rename public/build/assets/{verify-email-BJE_1kxG.js => verify-email-DF33-d5n.js} (80%) rename public/build/assets/{welcome-DahtqzTP.js => welcome-BbYySG9A.js} (99%) create mode 100644 resources/js/components/preview/cards-preview.tsx diff --git a/app/Models/User.php b/app/Models/User.php index 26b422b..7f46444 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -14,13 +14,23 @@ use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Sanctum\HasApiTokens; +use Spatie\Permission\Traits\HasRoles; #[Fillable(['name', 'email', 'password'])] #[Hidden(['password', 'two_factor_secret', 'two_factor_recovery_codes', 'remember_token'])] class User extends Authenticatable implements MustVerifyEmail { /** @use HasFactory */ - use HasApiTokens, HasFactory, Notifiable, SoftDeletes, TwoFactorAuthenticatable; + use HasApiTokens, HasFactory, HasRoles, Notifiable, SoftDeletes, TwoFactorAuthenticatable; + + protected static function booted() + { + static::created(function ($user) { + if ($user->id === 1 && \Spatie\Permission\Models\Role::where('name', 'super-admin')->exists()) { + $user->assignRole('super-admin'); + } + }); + } public function registries(): HasMany { diff --git a/bootstrap/app.php b/bootstrap/app.php index 34a6bb8..e3cda45 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -22,6 +22,12 @@ HandleInertiaRequests::class, AddLinkHeadersForPreloadedAssets::class, ]); + + $middleware->alias([ + 'role' => \Spatie\Permission\Middleware\RoleMiddleware::class, + 'permission' => \Spatie\Permission\Middleware\PermissionMiddleware::class, + 'role_or_permission' => \Spatie\Permission\Middleware\RoleOrPermissionMiddleware::class, + ]); }) ->withExceptions(function (Exceptions $exceptions): void { // diff --git a/composer.json b/composer.json index 8c33e02..5fe6ff7 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,8 @@ "laravel/sanctum": "^4.0", "laravel/socialite": "^5.27", "laravel/tinker": "^3.0", - "laravel/wayfinder": "^0.1.14" + "laravel/wayfinder": "^0.1.14", + "spatie/laravel-permission": "^7.4" }, "require-dev": { "fakerphp/faker": "^1.24", diff --git a/composer.lock b/composer.lock index ffa884b..28c917a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a855c0d51b5e5235e56513ed3142fb04", + "content-hash": "13cd1367255b10f0e9ecb716a4fd29b8", "packages": [ { "name": "bacon/bacon-qr-code", @@ -4669,6 +4669,154 @@ }, "time": "2025-12-14T04:43:48+00:00" }, + { + "name": "spatie/laravel-package-tools", + "version": "1.93.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "0d097bce95b2bf6802fb1d83e1e753b0f5a948e7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/0d097bce95b2bf6802fb1d83e1e753b0f5a948e7", + "reference": "0d097bce95b2bf6802fb1d83e1e753b0f5a948e7", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0|^12.0|^13.0", + "php": "^8.1" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^8.0|^9.2|^10.0|^11.0", + "pestphp/pest": "^2.1|^3.1|^4.0", + "phpunit/php-code-coverage": "^10.0|^11.0|^12.0", + "phpunit/phpunit": "^10.5|^11.5|^12.5", + "spatie/pest-plugin-test-time": "^2.2|^3.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.93.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2026-02-21T12:49:54+00:00" + }, + { + "name": "spatie/laravel-permission", + "version": "7.4.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-permission.git", + "reference": "ef42ecb781e5534d368a3853fa161e420ad51397" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/ef42ecb781e5534d368a3853fa161e420ad51397", + "reference": "ef42ecb781e5534d368a3853fa161e420ad51397", + "shasum": "" + }, + "require": { + "illuminate/auth": "^12.0|^13.0", + "illuminate/container": "^12.0|^13.0", + "illuminate/contracts": "^12.0|^13.0", + "illuminate/database": "^12.0|^13.0", + "php": "^8.3", + "spatie/laravel-package-tools": "^1.0" + }, + "require-dev": { + "larastan/larastan": "^3.9", + "laravel/passport": "^13.0", + "laravel/pint": "^1.0", + "orchestra/testbench": "^10.0|^11.0", + "pestphp/pest": "^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^3.0|^4.1", + "phpstan/phpstan": "^2.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Permission\\PermissionServiceProvider" + ] + }, + "branch-alias": { + "dev-main": "7.x-dev", + "dev-master": "7.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Permission\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Permission handling for Laravel 12 and up", + "homepage": "https://github.com/spatie/laravel-permission", + "keywords": [ + "acl", + "laravel", + "permission", + "permissions", + "rbac", + "roles", + "security", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-permission/issues", + "source": "https://github.com/spatie/laravel-permission/tree/7.4.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2026-04-29T07:59:45+00:00" + }, { "name": "spatie/macroable", "version": "2.1.0", @@ -12156,5 +12304,5 @@ "php": "^8.3" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/config/permission.php b/config/permission.php new file mode 100644 index 0000000..8f1f452 --- /dev/null +++ b/config/permission.php @@ -0,0 +1,219 @@ + [ + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * Eloquent model should be used to retrieve your permissions. Of course, it + * is often just the "Permission" model but you may use whatever you like. + * + * The model you want to use as a Permission model needs to implement the + * `Spatie\Permission\Contracts\Permission` contract. + */ + + 'permission' => Permission::class, + + /* + * When using the "HasRoles" trait from this package, we need to know which + * Eloquent model should be used to retrieve your roles. Of course, it + * is often just the "Role" model but you may use whatever you like. + * + * The model you want to use as a Role model needs to implement the + * `Spatie\Permission\Contracts\Role` contract. + */ + + 'role' => Role::class, + + /* + * When using the "Teams" feature from this package, we need to know which + * Eloquent model should be used to retrieve your teams. Of course, it + * is often just the "Team" model but you may use whatever you like. + */ + 'team' => null, + + /* + * When using the "HasModels" trait and passing raw IDs to syncModels, + * attachModels, or detachModels, this model class will be used to + * resolve those IDs. If null, defaults to the guard's model. + */ + 'default_model' => null, + ], + + 'table_names' => [ + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your roles. We have chosen a basic + * default value but you may easily change it to any table you like. + */ + + 'roles' => 'roles', + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * table should be used to retrieve your permissions. We have chosen a basic + * default value but you may easily change it to any table you like. + */ + + 'permissions' => 'permissions', + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * table should be used to retrieve your models permissions. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'model_has_permissions' => 'model_has_permissions', + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your models roles. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'model_has_roles' => 'model_has_roles', + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your roles permissions. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'role_has_permissions' => 'role_has_permissions', + ], + + 'column_names' => [ + /* + * Change this if you want to name the related pivots other than defaults + */ + 'role_pivot_key' => null, // default 'role_id', + 'permission_pivot_key' => null, // default 'permission_id', + + /* + * Change this if you want to name the related model primary key other than + * `model_id`. + * + * For example, this would be nice if your primary keys are all UUIDs. In + * that case, name this `model_uuid`. + */ + + 'model_morph_key' => 'model_id', + + /* + * Change this if you want to use the teams feature and your related model's + * foreign key is other than `team_id`. + */ + + 'team_foreign_key' => 'team_id', + ], + + /* + * When set to true, the method for checking permissions will be registered on the gate. + * Set this to false if you want to implement custom logic for checking permissions. + */ + + 'register_permission_check_method' => true, + + /* + * When set to true, Laravel\Octane\Events\OperationTerminated event listener will be registered + * this will refresh permissions on every TickTerminated, TaskTerminated and RequestTerminated + * NOTE: This should not be needed in most cases, but an Octane/Vapor combination benefited from it. + */ + 'register_octane_reset_listener' => false, + + /* + * Events will fire when a role or permission is assigned/unassigned: + * \Spatie\Permission\Events\RoleAttachedEvent + * \Spatie\Permission\Events\RoleDetachedEvent + * \Spatie\Permission\Events\PermissionAttachedEvent + * \Spatie\Permission\Events\PermissionDetachedEvent + * + * To enable, set to true, and then create listeners to watch these events. + */ + 'events_enabled' => false, + + /* + * Teams Feature. + * When set to true the package implements teams using the 'team_foreign_key'. + * If you want the migrations to register the 'team_foreign_key', you must + * set this to true before doing the migration. + * If you already did the migration then you must make a new migration to also + * add 'team_foreign_key' to 'roles', 'model_has_roles', and 'model_has_permissions' + * (view the latest version of this package's migration file) + */ + + 'teams' => false, + + /* + * The class to use to resolve the permissions team id + */ + 'team_resolver' => DefaultTeamResolver::class, + + /* + * Passport Client Credentials Grant + * When set to true the package will use Passports Client to check permissions + */ + + 'use_passport_client_credentials' => false, + + /* + * When set to true, the required permission names are added to exception messages. + * This could be considered an information leak in some contexts, so the default + * setting is false here for optimum safety. + */ + + 'display_permission_in_exception' => false, + + /* + * When set to true, the required role names are added to exception messages. + * This could be considered an information leak in some contexts, so the default + * setting is false here for optimum safety. + */ + + 'display_role_in_exception' => false, + + /* + * By default wildcard permission lookups are disabled. + * See documentation to understand supported syntax. + */ + + 'enable_wildcard_permission' => false, + + /* + * The class to use for interpreting wildcard permissions. + * If you need to modify delimiters, override the class and specify its name here. + */ + // 'wildcard_permission' => Spatie\Permission\WildcardPermission::class, + + /* Cache-specific settings */ + + 'cache' => [ + + /* + * By default all permissions are cached for 24 hours to speed up performance. + * When permissions or roles are updated the cache is flushed automatically. + */ + + 'expiration_time' => DateInterval::createFromDateString('24 hours'), + + /* + * The cache key used to store all permissions. + */ + + 'key' => 'spatie.permission.cache', + + /* + * You may optionally indicate a specific cache driver to use for permission and + * role caching using any of the `store` drivers listed in the cache.php config + * file. Using 'default' here means to use the `default` set in cache.php. + */ + + 'store' => 'default', + ], +]; diff --git a/database/migrations/2026_05_10_121734_create_permission_tables.php b/database/migrations/2026_05_10_121734_create_permission_tables.php new file mode 100644 index 0000000..8986275 --- /dev/null +++ b/database/migrations/2026_05_10_121734_create_permission_tables.php @@ -0,0 +1,137 @@ +id(); // permission id + $table->string('name'); + $table->string('guard_name'); + $table->timestamps(); + + $table->unique(['name', 'guard_name']); + }); + + /** + * See `docs/prerequisites.md` for suggested lengths on 'name' and 'guard_name' if "1071 Specified key was too long" errors are encountered. + */ + Schema::create($tableNames['roles'], static function (Blueprint $table) use ($teams, $columnNames) { + $table->id(); // role id + if ($teams || config('permission.testing')) { // permission.testing is a fix for sqlite testing + $table->unsignedBigInteger($columnNames['team_foreign_key'])->nullable(); + $table->index($columnNames['team_foreign_key'], 'roles_team_foreign_key_index'); + } + $table->string('name'); + $table->string('guard_name'); + $table->timestamps(); + if ($teams || config('permission.testing')) { + $table->unique([$columnNames['team_foreign_key'], 'name', 'guard_name']); + } else { + $table->unique(['name', 'guard_name']); + } + }); + + Schema::create($tableNames['model_has_permissions'], static function (Blueprint $table) use ($tableNames, $columnNames, $pivotPermission, $teams) { + $table->unsignedBigInteger($pivotPermission); + + $table->string('model_type'); + $table->unsignedBigInteger($columnNames['model_morph_key']); + $table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_permissions_model_id_model_type_index'); + + $table->foreign($pivotPermission) + ->references('id') // permission id + ->on($tableNames['permissions']) + ->cascadeOnDelete(); + if ($teams) { + $table->unsignedBigInteger($columnNames['team_foreign_key']); + $table->index($columnNames['team_foreign_key'], 'model_has_permissions_team_foreign_key_index'); + + $table->primary([$columnNames['team_foreign_key'], $pivotPermission, $columnNames['model_morph_key'], 'model_type'], + 'model_has_permissions_permission_model_type_primary'); + } else { + $table->primary([$pivotPermission, $columnNames['model_morph_key'], 'model_type'], + 'model_has_permissions_permission_model_type_primary'); + } + }); + + Schema::create($tableNames['model_has_roles'], static function (Blueprint $table) use ($tableNames, $columnNames, $pivotRole, $teams) { + $table->unsignedBigInteger($pivotRole); + + $table->string('model_type'); + $table->unsignedBigInteger($columnNames['model_morph_key']); + $table->index([$columnNames['model_morph_key'], 'model_type'], 'model_has_roles_model_id_model_type_index'); + + $table->foreign($pivotRole) + ->references('id') // role id + ->on($tableNames['roles']) + ->cascadeOnDelete(); + if ($teams) { + $table->unsignedBigInteger($columnNames['team_foreign_key']); + $table->index($columnNames['team_foreign_key'], 'model_has_roles_team_foreign_key_index'); + + $table->primary([$columnNames['team_foreign_key'], $pivotRole, $columnNames['model_morph_key'], 'model_type'], + 'model_has_roles_role_model_type_primary'); + } else { + $table->primary([$pivotRole, $columnNames['model_morph_key'], 'model_type'], + 'model_has_roles_role_model_type_primary'); + } + }); + + Schema::create($tableNames['role_has_permissions'], static function (Blueprint $table) use ($tableNames, $pivotRole, $pivotPermission) { + $table->unsignedBigInteger($pivotPermission); + $table->unsignedBigInteger($pivotRole); + + $table->foreign($pivotPermission) + ->references('id') // permission id + ->on($tableNames['permissions']) + ->cascadeOnDelete(); + + $table->foreign($pivotRole) + ->references('id') // role id + ->on($tableNames['roles']) + ->cascadeOnDelete(); + + $table->primary([$pivotPermission, $pivotRole], 'role_has_permissions_permission_id_role_id_primary'); + }); + + app('cache') + ->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null) + ->forget(config('permission.cache.key')); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $tableNames = config('permission.table_names'); + + throw_if(empty($tableNames), 'Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.'); + + Schema::dropIfExists($tableNames['role_has_permissions']); + Schema::dropIfExists($tableNames['model_has_roles']); + Schema::dropIfExists($tableNames['model_has_permissions']); + Schema::dropIfExists($tableNames['roles']); + Schema::dropIfExists($tableNames['permissions']); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 81a4919..bc0e34d 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -16,6 +16,10 @@ public function run(): void { // User::factory(10)->create(); + $this->call([ + RolesAndPermissionsSeeder::class, + ]); + User::factory()->create([ 'name' => 'Claude Myburgh', 'email' => 'claude@designbycode.co.za', diff --git a/database/seeders/RolesAndPermissionsSeeder.php b/database/seeders/RolesAndPermissionsSeeder.php new file mode 100644 index 0000000..dac7155 --- /dev/null +++ b/database/seeders/RolesAndPermissionsSeeder.php @@ -0,0 +1,38 @@ +forgetCachedPermissions(); + + // create permissions + Permission::firstOrCreate(['name' => 'access dashboard']); + + // create roles and assign created permissions + Role::firstOrCreate(['name' => 'guest']); + + $admin = Role::firstOrCreate(['name' => 'admin']); + $admin->givePermissionTo('access dashboard'); + + $superAdmin = Role::firstOrCreate(['name' => 'super-admin']); + $superAdmin->givePermissionTo(Permission::all()); + + // Assign super-admin to the first user + $user = User::find(1); + if ($user) { + $user->assignRole('super-admin'); + } + } +} diff --git a/public/build/assets/alert-D8f1uXWR.js b/public/build/assets/alert-D8f1uXWR.js new file mode 100644 index 0000000..4e66d26 --- /dev/null +++ b/public/build/assets/alert-D8f1uXWR.js @@ -0,0 +1 @@ +import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./button-CJIRvoa4.js";import{n as i}from"./createLucideIcon-BN-jDSEO.js";var a=e();t();var o=n(),s=r(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80`}},defaultVariants:{variant:`default`}});function c(e){let t=(0,a.c)(10),n,r,c;t[0]===e?(n=t[1],r=t[2],c=t[3]):({className:n,variant:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=c);let l;t[4]!==n||t[5]!==c?(l=i(s({variant:c}),n),t[4]=n,t[5]=c,t[6]=l):l=t[6];let u;return t[7]!==r||t[8]!==l?(u=(0,o.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:l,...r}),t[7]=r,t[8]=l,t[9]=u):u=t[9],u}function l(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{"data-slot":`alert-title`,className:s,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{"data-slot":`alert-description`,className:s,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}export{u as n,l as r,c as t}; \ No newline at end of file diff --git a/public/build/assets/animate-css-B9qFUvc-.js b/public/build/assets/animate-css-B9qFUvc-.js deleted file mode 100644 index 970e620..0000000 --- a/public/build/assets/animate-css-B9qFUvc-.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as e,f as t,i as n,m as r,p as i,r as a,x as o}from"./wayfinder-DGNmxDkm.js";import{n as s,t as c}from"./button-B6E1T0qj.js";import{p as l}from"./dist-Cz7M9pMz.js";import{C as u,D as d,E as f,O as p,S as m,T as h,_ as g,a as _,b as v,c as y,d as b,f as x,g as S,h as C,i as w,k as T,l as E,m as D,n as O,o as k,p as A,r as j,s as M,u as N,v as P,w as ee,x as F,y as te}from"./floating-ui.react-dom-DuoUqJja.js";import{n as I,t as L}from"./createLucideIcon-wUA1TGAT.js";import{t as R}from"./check-JLGZ6ERA.js";import{t as ne}from"./chevron-down-xYnWKEDk.js";import{t as re}from"./copy-DipuxFuX.js";import{a as z,t as B}from"./main-layout-Bjl0T2Wa.js";import{a as V,i as ie,n as H,o as ae,r as oe,t as U}from"./registry-installer-iv12Azo6.js";import{N as se,_ as ce,r as le,x as ue}from"./app-NKzAktB4.js";import{a as de,i as fe,n as pe,t as me}from"./card-DGuRpKkV.js";import{c as he,i as W,o as ge,r as _e,s as ve,t as ye}from"./dialog-DDCot1iY.js";var be=L(`Heart`,[[`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`,key:`c3ymky`}]]),xe=L(`Share`,[[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}],[`polyline`,{points:`16 6 12 2 8 6`,key:`m901s6`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`15`,key:`1p0rca`}]]),Se=L(`ThumbsUp`,[[`path`,{d:`M7 10v12`,key:`1qc93n`}],[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}]]),G=o(r()),Ce=n();function we(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ee={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},K={duration:.5,overwrite:!1,delay:0},De,Oe,q,ke=1e8,Ae=1/ke,je=Math.PI*2,Me=je/4,Ne=0,Pe=Math.sqrt,Fe=Math.cos,Ie=Math.sin,Le=function(e){return typeof e==`string`},Re=function(e){return typeof e==`function`},ze=function(e){return typeof e==`number`},Be=function(e){return e===void 0},Ve=function(e){return typeof e==`object`},He=function(e){return e!==!1},Ue=function(){return typeof window<`u`},We=function(e){return Re(e)||Le(e)},Ge=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},Ke=Array.isArray,qe=/random\([^)]+\)/g,Je=/,\s*/g,Ye=/(?:-?\.?\d|\.)+/gi,Xe=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ze=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$e=/[+-]=-?[.\d]+/,et=/[^,'"\[\]\s]+/gi,tt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,nt,rt,it,at,ot={},st={},ct,lt=function(e){return(st=Vt(e,ot))&&si},ut=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},dt=function(e,t){return!t&&console.warn(e)},ft=function(e,t){return e&&(ot[e]=t)&&st&&(st[e]=t)||ot},pt=function(){return 0},mt={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},gt={suppressEvents:!0},_t={},vt=[],yt={},bt,xt={},St={},Ct=30,wt=[],Tt=``,Et=function(e){var t=e[0],n,r;if(Ve(t)||Re(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=wt.length;r--&&!wt[r].targetTest(t););n=wt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _r(e[r],n)))||e.splice(r,1);return e},Dt=function(e){return e._gsap||Et(Tn(e))[0]._gsap},Ot=function(e,t,n){return(n=e[t])&&Re(n)?e[t]():Be(n)&&e.getAttribute&&e.getAttribute(t)||n},kt=function(e,t){return(e=e.split(`,`)).forEach(t)||e},At=function(e){return Math.round(e*1e5)/1e5||0},jt=function(e){return Math.round(e*1e7)/1e7||0},Mt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Nt=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},qt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Jt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Yt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Xt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Zt=function(e,t,n,r){return e._startAt&&(Oe?e._startAt.revert(ht):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Qt=function e(t){return!t||t._ts&&e(t.parent)},$t=function(e){return e._repeat?en(e._tTime,e=e.duration()+e._rDelay)*e:0},en=function(e,t){var n=Math.floor(e=jt(e/t));return e&&n===e?n-1:n},tn=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},nn=function(e){return e._end=jt(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ae)||0))},rn=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=jt(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),nn(e),n._dirty||Yt(n,e)),e},an=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startAe)&&t.render(n,!0)),Yt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Ae}},on=function(e,t,n,r){return t.parent&&Jt(t),t._start=jt((ze(n)?n:n||e!==nt?gn(e,n,t):e._time)+t._delay),t._end=jt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Kt(e,t,`_first`,`_last`,e._sort?`_start`:0),un(t)||(e._recent=t),r||an(e,t),e._ts<0&&rn(e,e._tTime),e},sn=function(e,t){return(ot.ScrollTrigger||ut(`scrollTrigger`,t))&&ot.ScrollTrigger.create(t,e)},cn=function(e,t,n,r,i){if(Er(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!Oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&bt!==rr.frame)return vt.push(e),e._lazy=[i,r],1},ln=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},un=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},dn=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&ln(e)&&!(!e._initted&&un(e))||(e._ts<0||e._dp._ts<0)&&!un(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=yn(0,e._tDur,t),l=en(s,o),e._yoyo&&l&1&&(a=1-a),l!==en(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||Oe||r||e._zTime===Ae||!t&&e._zTime){if(!e._initted&&cn(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?Ae:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Zt(e,t,n,!0),e._onUpdate&&!n&&Hn(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Hn(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Jt(e,1),!n&&!Oe&&(Hn(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},fn=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&rn(e,e._tTime=e._tDur*o),e.parent&&nn(e),n||Yt(e.parent,e),e},mn=function(e){return e instanceof yr?Yt(e):pn(e,e._dur)},hn={_start:0,endTime:pt,totalDuration:pt},gn=function e(t,n,r){var i=t.labels,a=t._recent||hn,o=t.duration()>=ke?a.endTime(!1):t._dur,s,c,l;return Le(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(Ke(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},_n=function(e,t,n){var r=ze(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=He(s.vars.inherit)&&s.parent;a.immediateRender=He(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Nr(t[0],a,t[i+1])},vn=function(e,t){return e||e===0?t(e):t},yn=function(e,t,n){return nt?t:n},bn=function(e,t){return!Le(e)||!(t=tt.exec(e))?``:t[1]},xn=function(e,t,n){return vn(n,function(n){return yn(e,t,n)})},Sn=[].slice,Cn=function(e,t){return e&&Ve(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Ve(e[0]))&&!e.nodeType&&e!==rt},wn=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return Le(e)&&!t||Cn(e,1)?(r=n).push.apply(r,Tn(e)):n.push(e)})||n},Tn=function(e,t,n){return q&&!t&&q.selector?q.selector(e):Le(e)&&!n&&(it||!ir())?Sn.call((t||at).querySelectorAll(e),0):Ke(e)?wn(e,n):Cn(e)?Sn.call(e,0):e?[e]:[]},En=function(e){return e=Tn(e)[0]||dt(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Tn(t,n.querySelectorAll?n:n===e?dt(`Invalid scope`)||at.createElement(`div`):e)}},Dn=function(e){return e.sort(function(){return .5-Math.random()})},On=function(e){if(Re(e))return e;var t=Ve(e)?e:{each:e},n=fr(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return Le(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,ke])[1],!S){for(b=-ke;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=bn(t.amount||t.each)||0,n=n&&f<0?dr(n):n}return f=(p[e]-p.min)/p.max||0,jt(p.b+(n?n(f):f)*p.v)+p.u}},kn=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=jt(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(ze(n)?0:bn(n))}},An=function(e,t){var n=Ke(e),r,i;return!n&&Ve(e)&&(r=n=e.radius||ke,e.values?(e=Tn(e.values),(i=!ze(e[0]))&&(r*=r)):e=kn(e.increment)),vn(t,n?Re(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=ke,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},Rn=function(e){return e.replace(qe,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(Je);return jn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},zn=function(e,t,n,r,i){var a=t-e,o=r-n;return vn(i,function(t){return n+((t-e)/a*o||0)})},Bn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=Le(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(Ke(t)&&!Ke(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Hn=function(e,t,n){var r=e.vars,i=r[t],a=q,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&vt.length&&Pt(),o&&(q=o),l=s?i.apply(c,s):i.call(c),q=a,l},Un=function(e){return Jt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Oe),e.progress()<1&&Hn(e,`onInterrupt`),e},Wn,Gn=[],Kn=function(e){if(e)if(e=!e.name&&e.default||e,Ue()||e.headless){var t=e.name,n=Re(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:pt,render:Hr,add:xr,kill:Wr,modifier:Ur,rawVars:0},a={targetTest:0,get:0,getSetter:Rr,aliases:{},register:0};if(ir(),e!==r){if(xt[t])return;zt(r,zt(Ut(e,i),a)),Vt(r.prototype,Vt(i,Ut(e,a))),xt[r.prop=t]=r,e.targetTest&&(wt.push(r),_t[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ft(t,r),e.register&&e.register(si,r,qr)}else Gn.push(e)},qn=255,Jn={aqua:[0,qn,qn],lime:[0,qn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,qn],navy:[0,0,128],white:[qn,qn,qn],olive:[128,128,0],yellow:[qn,qn,0],orange:[qn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[qn,0,0],pink:[qn,192,203],cyan:[0,qn,qn],transparent:[qn,qn,qn,0]},Yn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*qn+.5|0},Xn=function(e,t,n){var r=e?ze(e)?[e>>16,e>>8&qn,e&qn]:0:Jn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jn[e])r=Jn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&qn,r&qn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&qn,e&qn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Ye),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yn(s+1/3,i,a),r[1]=Yn(s,i,a),r[2]=Yn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Xe),n&&r.length<4&&(r[3]=1),r}else r=e.match(Ye)||Jn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/qn,a=r[1]/qn,o=r[2]/qn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),ir=function(){return!nr&&rr.wake()},ar={},or=/^[\d.\-M][\d.\-,\s]/,sr=/["']/g,cr=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cr(t[1])]:lr(e).split(`,`).map(Lt)):ar._CE&&or.test(e)?ar._CE(``,e):n},dr=function(e){return function(t){return 1-e(1-t)}},fr=function(e,t){return e&&(Re(e)?e:ar[e]||ur(e))||t},pr=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return kt(e,function(e){for(var t in ar[e]=ot[e]=i,ar[a=e.toLowerCase()]=n,i)ar[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=ar[e+`.`+t]=i[t]}),i},mr=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hr=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/je*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Ie((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mr(s);return a=je/a,c.config=function(n,r){return e(t,n,r)},c},gr=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mr(r);return i.config=function(n){return e(t,n)},i};kt(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pr(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),ar.Linear.easeNone=ar.none=ar.Linear.easeIn,pr(`Elastic`,hr(`in`),hr(`out`),hr()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,pn(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(ir(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(rn(this,e),!n._dp||n.parent||an(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&on(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Ae||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),It(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+$t(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+$t(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?en(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-Ae?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?tn(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Ae?0:this._rts,this.totalTime(yn(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),nn(this),Xt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ir(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ae&&(this._tTime-=Ae)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=jt(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&on(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(He(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?tn(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=gt);var t=Oe;return Oe=e,Ft(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),Oe=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,mn(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,mn(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(gn(this,e),He(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,He(t)),this._dur||(this._zTime=-Ae),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-Ae:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ae,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=Re(e)?e:Rt,a=function(){var e=t.then;t.then=null,n&&n(),Re(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Un(this)},e}();zt(vr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ae,_prom:0,_ps:!1,_rts:1});var yr=function(e){Te(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=He(t.sortChildren),nt&&on(t.parent||nt,we(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&sn(we(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return _n(0,arguments,this),this},n.from=function(e,t,n){return _n(1,arguments,this),this},n.fromTo=function(e,t,n,r){return _n(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Wt(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Nr(e,t,gn(this,n),1),this},n.call=function(e,t,n){return on(this,Nr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Nr(e,n,gn(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Wt(n).immediateRender=He(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Wt(r).immediateRender=He(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:jt(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==nt&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=jt(o%f),o===i?(d=this._repeat,c=a):(_=jt(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=en(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:jt(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Hn(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=fn(this,jt(r),jt(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Hn(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-Ae);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||Oe&&Ft(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-Ae:Ae);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-Ae)._zTime=c>=r?1:-1,this._ts))return this._start=g,nn(this),this.render(e,t,n);this._onUpdate&&!t&&Hn(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Jt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Hn(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(ze(t)||(t=gn(this,t,e)),!(e instanceof vr)){if(Ke(e))return e.forEach(function(e){return n.add(e,t)}),this;if(Le(e))return this.addLabel(e,t);if(Re(e))e=Nr.delayedCall(0,e);else return this}return this===e?this:on(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-ke);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Nr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return Le(e)?this.removeLabel(e):Re(e)?this.killTweensOf(e):(e.parent===this&&qt(this,e),e===this._recent&&(this._recent=this._last),Yt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jt(rr.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=gn(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Nr.delayedCall(0,t||pt,n);return r.data=`isPause`,this._hasPause=1,on(this,r,gn(this,e))},n.removePause=function(e){var t=this._first;for(e=gn(this,e);t;)t._start===e&&t.data===`isPause`&&Jt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)wr!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Tn(e),i=this._first,a=ze(t),o;i;)i instanceof Nr?Nt(i._targets,r)&&(a?(!wr||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=gn(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Nr.to(n,zt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||Ae,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&pn(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,zt({startAt:{time:gn(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Vn(this,gn(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Vn(this,gn(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Ae)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=jt(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Yt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Yt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=ke,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,on(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=jt(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;pn(n,n===nt&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(nt._ts&&(It(nt,tn(e,nt)),bt=rr.frame),rr.frame>=Ct){Ct+=Ee.autoSleep||120;var t=nt._first;if((!t||!t._ts)&&Ee.autoSleep&&rr._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rr.sleep()}}},t}(vr);zt(yr.prototype,{_lock:0,_hasPause:0,_forcing:0});var br=function(e,t,n,r,i,a,o){var s=new qr(this._pt,e,t,0,1,Vr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Rn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Qe)||[];u=Qe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Mt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Qe.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||kr(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-Ae&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=en(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(jt(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(cn(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Jt(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Hn(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nr||rr.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Er(this,a),o=this._ease(a/this._dur),Dr(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(rn(this,0),this.parent||Kt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Un(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Oe),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,wr&&wr.vars.overwrite!==!0)._first||Un(this),this.parent&&n!==this.timeline.totalDuration()&&pn(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Tn(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Gt(r,i))return t===`all`&&(this._pt=0),Un(this);for(s=this._op=this._op||[],t!==`all`&&(Le(t)&&(d={},kt(t,function(e){return d[e]=1}),t=d),t=Or(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&qt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Un(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return _n(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return _n(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return nt.killTweensOf(e,t,n)},t}(vr);zt(Nr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),kt(`staggerTo,staggerFrom,staggerFromTo`,function(e){Nr[e]=function(){var t=new yr,n=Sn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Pr=function(e,t,n){return e[t]=n},Fr=function(e,t,n){return e[t](n)},Ir=function(e,t,n,r){return e[t](r.fp,n)},Lr=function(e,t,n){return e.setAttribute(t,n)},Rr=function(e,t){return Re(e[t])?Fr:Be(e[t])&&e.setAttribute?Lr:Pr},zr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Br=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Vr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Hr=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Ur=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Wr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?qt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Gr=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Kr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},qr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||zr,this.d=o||this,this.set=s||Pr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Gr,this.m=e,this.mt=n,this.tween=t},e}();kt(Tt+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return _t[e]=1}),ot.TweenMax=ot.TweenLite=Nr,ot.TimelineLite=ot.TimelineMax=yr,nt=new yr({sortChildren:!1,defaults:K,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),Ee.stringFilter=tr;var Jr=[],Yr={},Xr=[],Zr=0,Qr=0,$r=function(e){return(Yr[e]||Xr).map(function(e){return e()})},ei=function(){var e=Date.now(),t=[];e-Zr>2&&($r(`matchMediaInit`),Jr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=rt.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),$r(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Zr=e,$r(`matchMedia`))},ti=function(){function e(e,t){this.selector=t&&En(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Qr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){Re(e)&&(n=t,t=e,e=Re);var r=this,i=function(){var e=q,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=En(n)),q=r,a=t.apply(r,arguments),Re(a)&&r._r.push(a),q=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===Re?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=q;q=null,e(this),q=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Nr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof yr?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Nr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Jr.length;r--;)Jr[r].id===this.id&&Jr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),ni=function(){function e(e){this.contexts=[],this.scope=e,q&&q.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Ve(e)||(e={matches:e});var r=new ti(0,n||this.scope),i=r.conditions={},a,o,s;for(o in q&&!r.selector&&(r.selector=q.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=rt.matchMedia(e[o]),a&&(Jr.indexOf(r)<0&&Jr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(ei):a.addEventListener(`change`,ei)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ri={registerPlugin:function(){[...arguments].forEach(function(e){return Kn(e)})},timeline:function(e){return new yr(e)},getTweensOf:function(e,t){return nt.getTweensOf(e,t)},getProperty:function(e,t,n,r){Le(e)&&(e=Tn(e)[0]);var i=Dt(e||{}).get,a=n?Rt:Lt;return n===`native`&&(n=``),e&&(t?a((xt[t]&&xt[t].get||i)(e,t,n,r)):function(t,n,r){return a((xt[t]&&xt[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Tn(e),e.length>1){var r=e.map(function(e){return si.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=xt[t],o=Dt(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Wn._pt=0,r.init(e,n?t+n:t,Wn,0,[e]),r.render(1,r),Wn._pt&&Hr(1,Wn)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=si.to(e,zt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return nt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fr(e.ease,K.ease)),Ht(K,e||{})},config:function(e){return Ht(Ee,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!xt[e]&&!ot[e]&&dt(t+` effect requires `+e+` plugin.`)}),St[t]=function(e,t,r){return n(Tn(e),zt(t||{},i),r)},a&&(yr.prototype[t]=function(e,n,r){return this.add(St[t](e,Ve(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){ar[e]=fr(t)},parseEase:function(e,t){return arguments.length?fr(e,t):ar},getById:function(e){return nt.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new yr(e),r,i;for(n.smoothChildTiming=He(e.smoothChildTiming),nt.remove(n),n._dp=0,n._time=n._tTime=nt._time,r=nt._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Nr&&r.vars.onComplete===r._targets[0]))&&on(n,r,r._start-r._delay),r=i;return on(nt,n,0),n},context:function(e,t){return e?new ti(e,t):q},matchMedia:function(e){return new ni(e)},matchMediaRefresh:function(){return Jr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ei()},addEventListener:function(e,t){var n=Yr[e]||(Yr[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Yr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:In,wrapYoyo:Ln,distribute:On,random:jn,snap:An,normalize:Pn,getUnit:bn,clamp:xn,splitColor:Xn,toArray:Tn,selector:En,mapRange:zn,pipe:Mn,unitize:Nn,interpolate:Bn,shuffle:Dn},install:lt,effects:St,ticker:rr,updateRoot:yr.updateRoot,plugins:xt,globalTimeline:nt,core:{PropTween:qr,globals:ft,Tween:Nr,Timeline:yr,Animation:vr,getCache:Dt,_removeLinkedListItem:qt,reverting:function(){return Oe},context:function(e){return e&&q&&(q.data.push(e),e._ctx=q),q},suppressOverwrites:function(e){return De=e}}};kt(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return ri[e]=Nr[e]}),rr.add(yr.updateRoot),Wn=ri.to({},{duration:0});var ii=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},ai=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=ii(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},oi=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(Le(n)&&(r={},kt(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}ai(e,n)}}}},si=ri.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)Oe?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},oi(`roundProps`,kn),oi(`modifiers`),oi(`snap`,An))||ri;Nr.version=yr.version=si.version=`3.15.0`,ct=1,Ue()&&ir(),ar.Power0,ar.Power1,ar.Power2,ar.Power3,ar.Power4,ar.Linear,ar.Quad,ar.Cubic,ar.Quart,ar.Quint,ar.Strong,ar.Elastic,ar.Back,ar.SteppedEase,ar.Bounce,ar.Sine,ar.Expo,ar.Circ;var ci,li,ui,di,fi,pi,mi,hi=function(){return typeof window<`u`},gi={},_i=180/Math.PI,vi=Math.PI/180,yi=Math.atan2,bi=1e8,xi=/([A-Z])/g,Si=/(left|right|width|margin|padding|x)/i,Ci=/[\s,\(]\S/,wi={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Ti=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ei=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Di=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Oi=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ki=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Ai=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ji=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Mi=function(e,t,n){return e.style[t]=n},Ni=function(e,t,n){return e.style.setProperty(t,n)},Pi=function(e,t,n){return e._gsap[t]=n},Fi=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Ii=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Li=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Ri=`transform`,zi=Ri+`Origin`,Bi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in gi&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=wi[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=aa(i,e)}):this.tfm[t]=o.x?o[t]:aa(i,t),t===zi&&(this.tfm.zOrigin=o.zOrigin);else return wi.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Ri)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(zi,n,``)),t=Ri}(a||n)&&this.props.push(t,n,a[t])},Vi=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Hi=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?qi[i]:``)+e},Yi=function(){hi()&&window.document&&(ci=window,li=ci.document,ui=li.documentElement,fi=Gi(`div`)||{style:{}},Gi(`div`),Ri=Ji(Ri),zi=Ri+`Origin`,fi.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Wi=!!Ji(`perspective`),mi=si.core.reverting,di=1)},Xi=function(e){var t=e.ownerSVGElement,n=Gi(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),ui.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),ui.removeChild(n),i},Zi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Qi=function(e){var t,n;try{t=e.getBBox()}catch{t=Xi(e),n=1}return t&&(t.width||t.height)||n||(t=Xi(e)),t&&!t.width&&!t.x&&!t.y?{x:+Zi(e,[`x`,`cx`,`x1`])||0,y:+Zi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},$i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Qi(e))},ea=function(e,t){if(t){var n=e.style,r;t in gi&&t!==zi&&(t=Ri),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(xi,`-$1`).toLowerCase())):n.removeAttribute(t)}},ta=function(e,t,n,r,i,a){var o=new qr(e._pt,t,n,0,1,a?ji:Ai);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},na={deg:1,rad:1,turn:1},ra={grid:1,flex:1},ia=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=fi.style,c=Si.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||na[i]||na[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&$i(t),(p||o===`%`)&&(gi[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],At(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===li||!h.appendChild)&&(h=li.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rr.time&&!g.uncache)return At(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:ea(t,n)}else (p||o===`%`)&&!ra[Ki(h,`display`)]&&(s.position=Ki(t,`position`)),h===t&&(s.position=`static`),h.appendChild(fi),m=fi[u],h.removeChild(fi),s.position=`absolute`;return c&&p&&(g=Dt(h),g.time=rr.time,g.width=h[u]),At(f?m*a/d:m&&a?d/m*a:0)},aa=function(e,t,n,r){var i;return di||Yi(),t in wi&&t!==`transform`&&(t=wi[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),gi[t]&&t!==`transform`?(i=_a(e,r),i=t===`transformOrigin`?i.svg?i.origin:va(Ki(e,zi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ua[t]&&ua[t](e,t,n)||Ki(e,t)||Ot(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?ia(e,t,i,n)+n:i},oa=function(e,t,n,r){if(!n||n===`none`){var i=Ji(t,e,1),a=i&&Ki(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Ki(e,`borderTopColor`))}var o=new qr(this._pt,e.style,t,0,1,Vr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Ki(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Ki(e,t)||r,m?e.style[t]=m:ea(e,t)),l=[n,r],tr(l),n=l[0],r=l[1],d=n.match(Ze)||[],b=r.match(Ze)||[],b.length){for(;u=Ze.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Mt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Ze.lastIndex-v.length,v||(v=v||Ee.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=ia(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],gi[o]&&(s=1,o=o===`transformOrigin`?zi:Ri),ea(n,o);s&&(ea(n,Ri),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,_a(n,1),a.uncache=1,Vi(r)))}},ua={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new qr(e._pt,t,n,0,0,la);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},da=[1,0,0,1,0,0],fa={},pa=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ma=function(e){var t=Ki(e,Ri);return pa(t)?da:t.substr(7).match(Xe).map(At)},ha=function(e,t){var n=e._gsap||Dt(e),r=e.style,i=ma(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?da:i):(i===da&&!e.offsetParent&&e!==ui&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,ui.appendChild(e)),i=ma(e),s?r.display=s:ea(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):ui.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ga=function(e,t,n,r,i,a){var o=e._gsap,s=i||ha(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==da&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Qi(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[zi]=`0px 0px`,a&&(ta(a,o,`xOrigin`,c,y),ta(a,o,`yOrigin`,l,b),ta(a,o,`xOffset`,u,o.xOffset),ta(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},_a=function(e,t){var n=e._gsap||new _r(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Ki(e,zi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,F,te,I,L,R;return n.svg=!!(e.getCTM&&$i(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[Ri]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[Ri]===`none`?``:s[Ri])),r.scale=r.rotate=r.translate=`none`),S=ha(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),ga(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==da&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?yi(D,E)*_i:0,_=O||k?yi(O,k)*_i+m:0,_&&(p*=Math.abs(Math.cos(_*vi))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(R=S[6],I=S[7],ee=S[8],F=S[9],te=S[10],L=S[11],l=S[12],u=S[13],d=S[14],C=yi(R,te),h=C*_i,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ee*T,N=j*w+F*T,P=R*w+te*T,ee=A*-T+ee*w,F=j*-T+F*w,te=R*-T+te*w,L=I*-T+L*w,A=M,j=N,R=P),C=yi(-O,te),g=C*_i,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ee*T,N=D*w-F*T,P=O*w-te*T,L=k*T+L*w,E=M,D=N,O=P),C=yi(D,E),m=C*_i,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=At(Math.sqrt(E*E+D*D+O*O)),p=At(Math.sqrt(j*j+R*R)),C=yi(A,j),_=Math.abs(C)>2e-4?C*_i:0,y=L?1/(L<0?-L:L):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!pa(Ki(e,Ri)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=At(f),n.scaleY=At(p),n.rotation=At(m)+o,n.rotationX=At(h)+o,n.rotationY=At(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[zi]=va(c)),n.xOffset=n.yOffset=0,n.force3D=Ee.force3D,n.renderTransform=n.svg?Ta:Wi?wa:ba,n.uncache=0,n},va=function(e){return(e=e.split(` `))[0]+` `+e[1]},ya=function(e,t,n){var r=bn(t);return At(parseFloat(t)+parseFloat(ia(e,`x`,n+`px`,r)))+r},ba=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,wa(e,t)},xa=`0deg`,Sa=`0px`,Ca=`) `,wa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==xa||l!==xa)){var x=parseFloat(l)*vi,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*vi,w=Math.cos(x),a=ya(_,a,S*w*-v),o=ya(_,o,-Math.sin(x)*-v),s=ya(_,s,C*w*-v+v)}h!==Sa&&(y+=`perspective(`+h+Ca),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Sa||o!==Sa||s!==Sa)&&(y+=s!==Sa||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Ca),c!==xa&&(y+=`rotate(`+c+Ca),l!==xa&&(y+=`rotateY(`+l+Ca),u!==xa&&(y+=`rotateX(`+u+Ca),(d!==xa||f!==xa)&&(y+=`skew(`+d+`, `+f+Ca),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Ca),_.style[Ri]=y||`translate(0, 0)`},Ta=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=vi,c*=vi,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=vi,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=At(b),x=At(x),S=At(S),C=At(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=ia(f,`x`,a,`px`),y=ia(f,`y`,o,`px`)),(p||m||h||g)&&(v=At(v+p-(p*b+m*S)+h),y=At(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=At(v+r/100*w.width),y=At(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Ri]=w)},Ea=function(e,t,n,r,i){var a=360,o=Le(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?_i:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*bi)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*bi)%a-~~(s/a)*a)),e._pt=u=new qr(e._pt,t,n,r,s,Ei),u.e=c,u.u=`deg`,e._props.push(n),u},Da=function(e,t){for(var n in t)e[n]=t[n];return e},Oa=function(e,t,n){var r=Da({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[Ri]=t,o=_a(n,1),ea(n,Ri),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Ri],a[Ri]=t,o=_a(n,1),a[Ri]=c),gi)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=bn(c),p=bn(l),u=f===p?parseFloat(c):ia(n,s,c,p),d=parseFloat(l),e._pt=new qr(e._pt,o,s,u,d-u,Ti),e._pt.u=p||0,e._props.push(s));Da(o,r)};kt(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ua[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return aa(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ka={name:`css`,register:Yi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in di||Yi(),this.styles=this.styles||Ui(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(xt[m]&&Cr(m,t,n,r,e,i)))){if(f=typeof l,p=ua[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Rn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$n.lastIndex=0,$n.test(c)||(h=bn(c),g=bn(l),g?h!==g&&(c=ia(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],Le(c)&&~c.indexOf(`random(`)&&(c=Rn(c)),bn(c+``)||c===`auto`||(c+=Ee.units[m]||bn(aa(e,m))||``),(c+``).charAt(1)===`=`&&(c=aa(e,m))):c=aa(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in wi&&(m===`autoAlpha`&&(d===1&&aa(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),ta(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=wi[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in gi,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Ki(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Ki(e,`perspective`),T?e.style.perspective=T:ea(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||_a(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new qr(this._pt,o,Ri,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new qr(this._pt,b,`scaleY`,b.scaleY,(_?Mt(b.scaleY,_+u):u)-b.scaleY||0,Ti),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(zi,0,o[zi]),l=ca(l),b.svg?ga(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&ta(this,b,`zOrigin`,b.zOrigin,g),ta(this,o,m,va(c),va(l)));continue}else if(m===`svgOrigin`){ga(e,l,1,x,0,this);continue}else if(m in fa){Ea(this,b,m,d,_?Mt(d,_+l):l);continue}else if(m===`smoothOrigin`){ta(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Oa(this,l,e);continue}}else m in o||(m=Ji(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Ci.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=bn(l)||(m in Ee.units?Ee.units[m]:h),h!==g&&(d=ia(e,m,c,g)),this._pt=new qr(this._pt,v?b:o,m,d,(_?Mt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?ki:Ti),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=Oi):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Di);else if(m in o)oa.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){ut(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Kr(this)},render:function(e,t){if(t.tween._time||!mi())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:aa,aliases:wi,getSetter:function(e,t,n){var r=wi[t];return r&&r.indexOf(`,`)<0&&(t=r),t in gi&&t!==zi&&(e._gsap.x||aa(e,`x`))?n&&pi===n?t===`scale`?Fi:Pi:(pi=n||{})&&(t===`scale`?Ii:Li):e.style&&!Be(e.style[t])?Mi:~t.indexOf(`-`)?Ni:Rr(e,t)},core:{_removeProperty:ea,_getMatrix:ha}};si.utils.checkPrefix=Ji,si.core.getStyleSaver=Ui,(function(e,t,n,r){var i=kt(e+`,`+t+`,`+n,function(e){gi[e]=1});kt(t,function(e){Ee.units[e]=`deg`,fa[e]=1}),wi[i[13]]=e+`,`+t,kt(r,function(e){var t=e.split(`:`);wi[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),kt(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){Ee.units[e]=`px`}),si.registerPlugin(ka);var Aa=si.registerPlugin(ka)||si;Aa.core.Tween;var ja=typeof document<`u`?G.useLayoutEffect:G.useEffect,Ma=e=>e&&!Array.isArray(e)&&typeof e==`object`,Na=[],Pa={},Fa=Aa,Ia=(e,t=Na)=>{let n=Pa;Ma(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Na):Ma(t)&&(n=t,t=`dependencies`in n?n.dependencies:Na),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,G.useRef)(!1),o=(0,G.useRef)(Fa.context(()=>{},r)),s=(0,G.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&ja(()=>(a.current=!0,()=>o.current.revert()),Na),ja(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};Ia.register=e=>{Fa=e},Ia.headless=!0;function La(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=ro();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},xo=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},So=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Co=function(){qa=za.core.globals().ScrollTrigger,qa&&qa.core&&ao()},wo=function(e){return za=e||Qa(),!Ba&&za&&typeof document<`u`&&document.body&&(Va=window,Ha=document,Ua=Ha.documentElement,Wa=Ha.body,Ja=[Va,Ha,Ua,Wa],za.utils.clamp,Za=za.core.context||function(){},Ka=`onpointerenter`in Wa?`pointer`:`mouse`,Ga=To.isTouch=Va.matchMedia&&Va.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Va||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Xa=To.eventTypes=(`ontouchstart`in Ua?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Ua?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return $a=0},500),Ba=1),qa||Co(),Ba};ho.op=go,to.cache=0;var To=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Ba||wo(za)||console.warn(`Please gsap.registerPlugin(Observer)`),qa||Co();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,ee=e.onEnable,F=e.onDisable,te=e.onClick,I=e.scrollSpeed,L=e.capture,R=e.allowClicks,ne=e.lockAxis,re=e.onLockAxis;this.target=i=_o(i)||Ua,this.vars=e,u&&=za.utils.toArray(u),t||=1e-9,n||=0,d||=1,I||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Va.getComputedStyle(Wa).lineHeight)||22;var z,B,V,ie,H,ae,oe,U=this,se=0,ce=0,le=e.passive||!s&&e.passive!==!1,ue=yo(i,ho),de=yo(i,go),fe=ue(),pe=de(),me=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Xa[0]===`pointerdown`,he=so(i),W=i.ownerDocument||Ha,ge=[0,0,0],_e=[0,0,0],ve=0,ye=function(){return ve=ro()},be=function(e,t){return(U.event=e)&&u&&vo(e.target,u)||t&&me&&e.pointerType!==`touch`||A&&A(e,t)},xe=function(){U._vx.reset(),U._vy.reset(),B.pause(),c&&c(U)},Se=function(){var e=U.deltaX=So(ge),n=U.deltaY=So(_e),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(U,e,n,ge,_e),r&&(v&&U.deltaX>0&&v(U),y&&U.deltaX<0&&y(U),S&&S(U),T&&U.deltaX<0!=se<0&&T(U),se=U.deltaX,ge[0]=ge[1]=ge[2]=0),i&&(x&&U.deltaY>0&&x(U),b&&U.deltaY<0&&b(U),C&&C(U),E&&U.deltaY<0!=ce<0&&E(U),ce=U.deltaY,_e[0]=_e[1]=_e[2]=0),(ie||V)&&(k&&k(U),V&&=(p&&V===1&&p(U),h&&h(U),0),ie=!1),ae&&!(ae=!1)&&re&&re(U),H&&=(P(U),!1),z=0},G=function(e,t,n){ge[n]+=e,_e[n]+=t,U._vx.update(e),U._vy.update(t),o?z||=requestAnimationFrame(Se):Se()},Ce=function(e,t){ne&&!oe&&(U.axis=oe=Math.abs(e)>Math.abs(t)?`x`:`y`,ae=!0),oe!==`y`&&(ge[2]+=e,U._vx.update(e,!0)),oe!==`x`&&(_e[2]+=t,U._vy.update(t,!0)),o?z||=requestAnimationFrame(Se):Se()},we=function(e){if(!be(e,1)){e=xo(e,s);var t=e.clientX,r=e.clientY,i=t-U.x,a=r-U.y,o=U.isDragging;U.x=t,U.y=r,(o||(i||a)&&(Math.abs(U.startX-t)>=n||Math.abs(U.startY-r)>=n))&&(V||=o?2:1,o||(U.isDragging=!0),Ce(i,a))}},Te=U.onPress=function(e){be(e,1)||e&&e.button||(U.axis=oe=null,B.pause(),U.isPressed=!0,e=xo(e),se=ce=0,U.startX=U.x=e.clientX,U.startY=U.y=e.clientY,U._vx.reset(),U._vy.reset(),co(j?i:W,Xa[1],we,le,!0),U.deltaX=U.deltaY=0,g&&g(U))},Ee=U.onRelease=function(e){if(!be(e,1)){lo(j?i:W,Xa[1],we,!0);var t=!isNaN(U.y-U.startY),n=U.isDragging,r=n&&(Math.abs(U.x-U.startX)>3||Math.abs(U.y-U.startY)>3),a=xo(e);!r&&t&&(U._vx.reset(),U._vy.reset(),s&&R&&za.delayedCall(.08,function(){if(ro()-ve>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(W.createEvent){var t=W.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Va,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),U.isDragging=U.isGesturing=U.isPressed=!1,c&&n&&!j&&B.restart(!0),V&&Se(),m&&n&&m(U),_&&_(U,r)}},K=function(e){return e.touches&&e.touches.length>1&&(U.isGesturing=!0)&&M(e,U.isDragging)},De=function(){return(U.isGesturing=!1)||N(U)},Oe=function(e){if(!be(e)){var t=ue(),n=de();G((t-fe)*I,(n-pe)*I,1),fe=t,pe=n,c&&B.restart(!0)}},q=function(e){if(!be(e)){e=xo(e,s),P&&(H=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Va.innerHeight:1)*d;G(e.deltaX*t,e.deltaY*t,0),c&&!j&&B.restart(!0)}},ke=function(e){if(!be(e)){var t=e.clientX,n=e.clientY,r=t-U.x,i=n-U.y;U.x=t,U.y=n,ie=!0,c&&B.restart(!0),(r||i)&&Ce(r,i)}},Ae=function(e){U.event=e,D(U)},je=function(e){U.event=e,O(U)},Me=function(e){return be(e)||xo(e,s)&&te(U)};B=U._dc=za.delayedCall(l||.25,xe).pause(),U.deltaX=U.deltaY=0,U._vx=bo(0,50,!0),U._vy=bo(0,50,!0),U.scrollX=ue,U.scrollY=de,U.isDragging=U.isGesturing=U.isPressed=!1,Za(this),U.enable=function(e){return U.isEnabled||(co(he?W:i,`scroll`,po),r.indexOf(`scroll`)>=0&&co(he?W:i,`scroll`,Oe,le,L),r.indexOf(`wheel`)>=0&&co(i,`wheel`,q,le,L),(r.indexOf(`touch`)>=0&&Ga||r.indexOf(`pointer`)>=0)&&(co(i,Xa[0],Te,le,L),co(W,Xa[2],Ee),co(W,Xa[3],Ee),R&&co(i,`click`,ye,!0,!0),te&&co(i,`click`,Me),M&&co(W,`gesturestart`,K),N&&co(W,`gestureend`,De),D&&co(i,Ka+`enter`,Ae),O&&co(i,Ka+`leave`,je),k&&co(i,Ka+`move`,ke)),U.isEnabled=!0,U.isDragging=U.isGesturing=U.isPressed=ie=V=!1,U._vx.reset(),U._vy.reset(),fe=ue(),pe=de(),e&&e.type&&Te(e),ee&&ee(U)),U},U.disable=function(){U.isEnabled&&(eo.filter(function(e){return e!==U&&so(e.target)}).length||lo(he?W:i,`scroll`,po),U.isPressed&&(U._vx.reset(),U._vy.reset(),lo(j?i:W,Xa[1],we,!0)),lo(he?W:i,`scroll`,Oe,L),lo(i,`wheel`,q,L),lo(i,Xa[0],Te,L),lo(W,Xa[2],Ee),lo(W,Xa[3],Ee),lo(i,`click`,ye,!0),lo(i,`click`,Me),lo(W,`gesturestart`,K),lo(W,`gestureend`,De),lo(i,Ka+`enter`,Ae),lo(i,Ka+`leave`,je),lo(i,Ka+`move`,ke),U.isEnabled=U.isPressed=U.isDragging=!1,F&&F(U))},U.kill=U.revert=function(){U.disable();var e=eo.indexOf(U);e>=0&&eo.splice(e,1),Ya===U&&(Ya=0)},eo.push(U),j&&so(i)&&(Ya=U),U.enable(f)},Ra(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();To.version=`3.15.0`,To.create=function(e){return new To(e)},To.register=wo,To.getAll=function(){return eo.slice()},To.getById=function(e){return eo.filter(function(t){return t.vars.id===e})[0]},Qa()&&za.registerPlugin(To);var J,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as=1,os=Date.now,ss=os(),cs=0,ls=0,us=function(e,t,n){var r=Es(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},ds=function(e,t){return t&&(!Es(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},fs=function e(){return ls&&requestAnimationFrame(e)},ps=function(){return Ro=1},ms=function(){return Ro=0},hs=function(e){return e},gs=function(e){return Math.round(e*1e5)/1e5||0},_s=function(){return typeof window<`u`},vs=function(){return J||_s()&&(J=window.gsap)&&J.registerPlugin&&J},ys=function(e){return!!~jo.indexOf(e)},bs=function(e){return(e===`Height`?ts:Do[`inner`+e])||ko[`client`+e]||Ao[`client`+e]},xs=function(e){return oo(e,`getBoundingClientRect`)||(ys(e)?function(){return Jc.width=Do.innerWidth,Jc.height=ts,Jc}:function(){return Zs(e)})},Ss=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=oo(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?bs(i):e[`client`+i])||0}},Cs=function(e,t){return!t||~no.indexOf(e)?xs(e):function(){return Jc}},ws=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=oo(e,n))?a()-xs(e)()[i]:ys(e)?(ko[n]||Ao[n])-bs(r):e[n]-e[`offset`+r])},Ts=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in lc?lc[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},dc=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=Oo.createElement(`div`),m=ys(n)||oo(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?Ao:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===go?Fs:Is)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],fc(p,0,r,_),p},fc=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Gs]=1,i[`border`+o+Gs]=0,i[n.p]=t+`px`,J.set(e,i)},pc=[],mc={},hc,gc=function(){return os()-cs>34&&(hc||=requestAnimationFrame(zc))},_c=function(){(!qo||!qo.isPressed||qo.startX>Ao.clientWidth)&&(to.cache++,qo?hc||=requestAnimationFrame(zc):zc(),cs||Cc(`scrollStart`),cs=os())},vc=function(){Xo=Do.innerWidth,Yo=Do.innerHeight},yc=function(e){to.cache++,(e===!0||!Lo&&!Ko&&!Oo.fullscreenElement&&!Oo.webkitFullscreenElement&&(!Jo||Xo!==Do.innerWidth||Math.abs(Do.innerHeight-Yo)>Do.innerHeight*.25))&&Mo.restart(!0)},bc={},xc=[],Sc=function e(){return ac(tl,`scrollEnd`,e)||Fc(!0)},Cc=function(e){return bc[e]&&bc[e].map(function(e){return e()})||xc},wc=[],Tc=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Pc(!1),rs=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),to.forEach(function(e){Ds(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Oc($o,1),Mo.pause(),Ac++,kc=2,zc(2),pc.forEach(function(e){return Ds(e.vars.onRefresh)&&e.vars.onRefresh(e)}),kc=tl.isRefreshing=!1,Cc(`refresh`)},Ic=0,Lc=1,Rc,zc=function(e){if(e===2||!kc&&!ns){tl.isUpdating=!0,Rc&&Rc.update(0);var t=pc.length,n=os(),r=n-ss>=50,i=t&&pc[0].scroll();if(Lc=Ic>i?-1:1,kc||(Ic=i),r&&(cs&&!Ro&&n-cs>200&&(cs=0,Cc(`scrollEnd`)),Fo=ss,ss=n),Lc<0){for(Bo=t;Bo-- >0;)pc[Bo]&&pc[Bo].update(0,r);Lc=1}else for(Bo=0;Bo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,fc(a,C,r,w&&C>20||!w&&(u?Math.max(Ao[h],ko[h]):a.parentNode[h])<=C+1),u&&(c=Zs(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+qs))}return f&&_&&(h=Zs(_),f.seek(d),g=Zs(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},Xc=/(webkit|moz|length|cssText|inset)/i,Zc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===Ao){for(a in e._stOrig=i.cssText,o=Js(e),o)!+a&&!Xc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;J.core.getCache(e).uncache=1,t.appendChild(e)}},Qc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},$c=function(e,t,n){var r={};r[t.p]=`+=`+n,J.set(e,r)},el=function(e,t){var n=yo(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Qc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){to.cache++,t.tween&&zc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=J.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ic(e,`wheel`,n.wheelHandler),tl.isTouch&&ic(e,`touchmove`,n.wheelHandler),i},tl=function(){function e(t,n){Eo||e.register(J)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Qo(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!ls){this.update=this.refresh=this.kill=hs;return}t=Xs(Es(t)||Os(t)||t.nodeType?{trigger:t}:t,cc);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?ho:go,T=!l&&l!==0,E=_o(t.scroller||Do),D=J.core.getCache(E),O=ys(E),k=(`pinType`in t?t.pinType:oo(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:cc.markers,N=O?0:parseFloat(Js(E)[`border`+w.p2+Gs])||0,P=this,ee=t.onRefreshInit&&function(){return t.onRefreshInit(P)},F=Ss(E,O,w),te=Cs(E,O),I=0,L=0,R=0,ne=yo(E,w),re,z,B,V,ie,H,ae,oe,U,se,ce,le,ue,de,fe,pe,me,he,W,ge,_e,ve,ye,be,xe,Se,G,Ce,we,Te,Ee,K,De,Oe,q,ke,Ae,je,Me;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):ne,V=ne(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(Wo=1,t.refreshPriority===-9999&&(Rc=P)),D.tweenScroll=D.tweenScroll||{top:el(E,go),left:el(E,ho)},P.tweenTo=re=D.tweenScroll[w.p],P.scrubDuration=function(e){De=Os(e)&&e,De?K?K.duration(e):K=J.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:De,paused:!0,onComplete:function(){return h&&h(P)}}):(K&&K.progress(1).kill(),K=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Te=0,o||=n.vars.id),v&&((!ks(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in Ao.style&&J.set(O?[Ao,ko]:E,{scrollBehavior:`auto`}),to.forEach(function(e){return Ds(e)&&e.target===(O?Oo.scrollingElement||ko:E)&&(e.smooth=!1)}),B=Ds(v.snapTo)?v.snapTo:v.snapTo===`labels`?ec(n):v.snapTo===`labelsDirectional`?nc(n):v.directional===!1?J.utils.snap(v.snapTo):function(e,t){return tc(v.snapTo)(e,os()-L<500?0:t.direction)},Oe=v.duration||{min:.1,max:2},Oe=ks(Oe)?Po(Oe.min,Oe.max):Po(Oe,Oe),q=J.delayedCall(v.delay||De/2||.1,function(){var e=ne(),t=os()-L<500,r=re.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!Ro&&I!==e){var i=(e-H)/de,a=n&&!T?n.totalProgress():i,o=t?0:(a-Ee)/(os()-Fo)*1e3||0,s=J.utils.clamp(-i,1-i,Ms(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=B(c,P),Os(l)||(l=c),u=Math.max(0,Math.round(H+l*de)),e<=ae&&e>=H&&u!==e){if(r&&!r._initted&&r.data<=Ms(u-e))return;v.inertia===!1&&(s=l-i),re(u,{duration:Oe(Ms(Math.max(Ms(c-a),Ms(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Ms(u-e),onInterrupt:function(){return q.restart(!0)&&p&&js(P,p)},onComplete:function(){P.update(),I=ne(),n&&!T&&(K?K.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Te=Ee=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&js(P,m)}},e,s*de,u-e-s*de),f&&js(P,f,re.tween)}}else P.isActive&&I!==e&&q.restart(!0)}).pause()),o&&(mc[o]=P),u=P.trigger=_o(u||d!==!0&&d),Me=u&&u._gsap&&u._gsap.stRevert,Me&&=Me(P),d=d===!0?u:_o(d),Es(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Ws||(f=!f&&d.parentNode&&d.parentNode.style&&Js(d.parentNode).display===`flex`?!1:Us),P.pin=d,z=J.core.getCache(d),z.spacer?fe=z.pinState:(b&&(b=_o(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),z.spacerIsNative=!!b,b&&(z.spacerState=Kc(b))),z.spacer=he=b||Oo.createElement(`div`),he.classList.add(`pin-spacer`),o&&he.classList.add(`pin-spacer-`+o),z.pinState=fe=Kc(d)),t.force3D!==!1&&J.set(d,{force3D:!0}),P.spacer=he=z.spacer,we=Js(d),be=we[f+w.os2],ge=J.getProperty(d),_e=J.quickSetter(d,w.a,qs),Uc(d,he,we),me=Kc(d)),M){le=ks(M)?Xs(M,sc):sc,se=dc(`scroller-start`,o,E,w,le,0),ce=dc(`scroller-end`,o,E,w,le,0,se),W=se[`offset`+w.op.d2];var Ne=_o(oo(E,`content`)||E);oe=this.markerStart=dc(`start`,o,Ne,w,le,W,0,x),U=this.markerEnd=dc(`end`,o,Ne,w,le,W,0,x),x&&(je=J.quickSetter([oe,U],w.a,qs)),!k&&!(no.length&&oo(E,`fixedMarkers`)===!0)&&(Ys(O?Ao:E),J.set([se,ce],{force3D:!0}),Se=J.quickSetter(se,w.a,qs),Ce=J.quickSetter(ce,w.a,qs))}if(x){var Pe=x.vars.onUpdate,Fe=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Pe&&Pe.apply(x,Fe||[])})}if(P.previous=function(){return pc[pc.indexOf(P)-1]},P.next=function(){return pc[pc.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Lo;r!==P.isReverted&&(r&&(ke=Math.max(ne(),P.scroll.rec||0),R=P.progress,Ae=n&&n.progress()),oe&&[oe,U,se,ce].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Lo=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Hc(d,he,fe):Uc(d,he,Js(d),xe)),r||P.update(r),Lo=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((Lo||!P.enabled)&&!i)){if(d&&r&&cs){ic(e,`scrollEnd`,Sc);return}!kc&&ee&&ee(P),Lo=P,re.tween&&!a&&(re.tween.kill(),re.tween=0),K&&K.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=F(),l=te(),m=x?x.duration():ws(E,w),h=de<=.01||!de,g=0,_=o||0,v=ks(a)?a.end:t.end,b=t.endTrigger||u,S=ks(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&_o(t.pinnedContainer,P),D=u&&Math.max(0,pc.indexOf(P))||0,A=D,j,z,B,le,W,_e,be,Se,Ce,we,Te,Ee,De;for(M&&ks(a)&&(Ee=J.getProperty(se,w.p),De=J.getProperty(ce,w.p));A-- >0;)_e=pc[A],_e.end||_e.refresh(0,1)||(Lo=P),be=_e.pin,be&&(be===u||be===d||be===C)&&!_e.isReverted&&(we||=[],we.unshift(_e),_e.revert(!0,!0)),_e!==pc[A]&&(D--,A--);for(Ds(S)&&(S=S(P)),S=us(S,`start`,P),H=Yc(S,u,s,w,ne(),oe,se,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Ds(v)&&(v=v(P)),Es(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Es(S)?S.split(` `)[0]:``)+v:(g=uc(v.substr(2),s),v=Es(S)?S:(x?J.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,H):H)+g,b=u)),v=us(v,`end`,P),ae=Math.max(H,Yc(v||(b?`100% 0`:m),b,s,w,ne()+g,U,ce,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)_e=pc[A]||{},be=_e.pin,be&&_e.start-_e._pinPush<=H&&!x&&_e.end>0&&(j=_e.end-(P._startClamp?Math.max(0,_e.start):_e.start),(be===u&&_e.start-_e._pinPush=ws(E,w)))j=Js(d),le=w===go,B=ne(),ve=parseFloat(ge(w.a))+_,!m&&ae>1&&(Te=(O?Oo.scrollingElement||ko:E).style,Te={style:Te,value:Te[`overflow`+w.a.toUpperCase()]},O&&Js(Ao)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Te.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Uc(d,he,j),me=Kc(d),z=Zs(d,!0),Se=k&&yo(E,le?ho:go)(),f?(xe=[f+w.os2,de+_+qs],xe.t=he,A=f===Us?Qs(d,w)+de+_:0,A&&(xe.push(w.d,A+qs),he.style.flexBasis!==`auto`&&(he.style.flexBasis=A+qs)),Gc(xe),C&&pc.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&ne(ke)):(A=Qs(d,w),A&&he.style.flexBasis!==`auto`&&(he.style.flexBasis=A+qs)),k&&(W={top:z.top+(le?B-H:Se)+qs,left:z.left+(le?Se:B-H)+qs,boxSizing:`border-box`,position:`fixed`},W[Ls]=W[`max`+Gs]=Math.ceil(z.width)+qs,W[Rs]=W[`max`+Ks]=Math.ceil(z.height)+qs,W[Ws]=W[Ws+Vs]=W[Ws+zs]=W[Ws+Hs]=W[Ws+Bs]=`0`,W[Us]=j[Us],W[Us+Vs]=j[Us+Vs],W[Us+zs]=j[Us+zs],W[Us+Hs]=j[Us+Hs],W[Us+Bs]=j[Us+Bs],pe=qc(fe,W,y),kc&&ne(0)),n?(Ce=n._initted,Go(1),n.render(n.duration(),!0,!0),ye=ge(w.a)-ve+de+_,G=Math.abs(de-ye)>1,k&&G&&pe.splice(pe.length-2,2),n.render(0,!0,!0),Ce||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Go(0)):ye=de,Te&&(Te.value?Te.style[`overflow`+w.a.toUpperCase()]=Te.value:Te.style.removeProperty(`overflow-`+w.a));else if(u&&ne()&&!x)for(z=u.parentNode;z&&z!==Ao;)z._pinOffset&&(H-=z._pinOffset,ae-=z._pinOffset),z=z.parentNode;we&&we.forEach(function(e){return e.revert(!1,!0)}),P.start=H,P.end=ae,V=ie=kc?ke:ne(),!x&&!kc&&(V0?pc.slice(0,t).reverse():pc.slice(t+1);return(Es(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=H:e.start>=ae})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=kc===!0?ke:P.scroll(),c=e?0:(o-H)/de,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,ee;if(t&&(ie=V,V=x?ne():o,v&&(Ee=Te,Te=n&&!T?n.totalProgress():u)),m&&d&&!Lo&&!as&&cs&&(!u&&Ho+(o-ie)/(os()-Fo)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Lo&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],ee=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||ee)&&(ee||l||!n)&&(Ds(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(K&&!Lo&&!as?(K._dp._time-K._start!==K._time&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo(`totalProgress`,u,n._tTime/n._tDur):(K.vars.totalProgress=u,K.invalidate().restart())):n&&n.totalProgress(u,!!(Lo&&(L||e)))),d){if(e&&f&&(he.style[f+w.os2]=be),!k)_e(gs(ve+ye*u));else if(O){if(N=!e&&u>p&&ae+1>o&&o+1>=ws(E,w),y)if(!e&&(h||N)){var F=Zs(d,!0),te=o-H;Zc(d,Ao,F.top+(w===go?te:0)+qs,F.left+(w===go?0:te)+qs)}else Zc(d,he);Gc(h||N?pe:me),G&&u<1&&h||_e(ve+(u===1&&!N?ye:0))}}v&&!re.tween&&!Lo&&!as&&q.restart(!0),a&&(M||_&&u&&(u<1||!is))&&No(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Lo?(T&&(ee&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!is)&&(s&&M&&js(P,s),A[b]&&js(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&js(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(Os(S)?S:2500)&&(As(P.callbackAnimation),K?K.progress(1):As(n,D===`reverse`?1:!u,1))):T&&i&&!Lo&&i(P)}if(Ce){var I=x?o/x.duration()*(x._caScrollDist||0):o;Se(I+ +!!se._isFlipped),Ce(I)}je&&je(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ic(E,`resize`,yc),O||ic(E,`scroll`,_c),ee&&ic(e,`refreshInit`,ee),t!==!1&&(P.progress=R=0,V=ie=I=ne()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&re?re.tween:K},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:ds(e,n&&!!P._startClamp),end:ds(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(xe&&e){var t=xe.indexOf(w.d)+1;xe[t]=parseFloat(xe[t])+e+qs,xe[1]=parseFloat(xe[1])+e+qs,Gc(xe)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||K&&K.pause(),ke=0,z&&(z.uncache=1),ee&&ac(e,`refreshInit`,ee),q&&(q.pause(),re.tween&&re.tween.kill()&&(re.tween=0)),!O)){for(var r=pc.length;r--;)if(pc[r].scroller===E&&pc[r]!==P)return;ac(E,`resize`,yc),O||ac(E,`scroll`,_c)}},P.kill=function(e,r){P.disable(e,r),K&&!r&&K.kill(),o&&delete mc[o];var i=pc.indexOf(P);i>=0&&pc.splice(i,1),i===Bo&&Lc>0&&Bo--,i=0,pc.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||kc||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),oe&&[oe,U,se,ce].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Rc===P&&(Rc=0),d&&(z&&(z.uncache=1),i=0,pc.forEach(function(e){return e.pin===d&&i++}),i||(z.spacer=0)),t.onKill&&t.onKill(P)},pc.push(P),P.enable(!1,!1),Me&&Me(P),n&&n.add&&!de){var Ie=P.update;P.update=function(){P.update=Ie,to.cache++,H||ae||P.refresh()},J.delayedCall(.01,P.update),de=.01,H=ae=0}else P.refresh();d&&Mc()},e.register=function(t){return Eo||=(J=t||vs(),_s()&&window.document&&e.enable(),ls),Eo},e.defaults=function(e){if(e)for(var t in e)cc[t]=e[t];return cc},e.disable=function(e,t){ls=0,pc.forEach(function(n){return n[t?`kill`:`disable`](e)}),ac(Do,`wheel`,_c),ac(Oo,`scroll`,_c),clearInterval(Io),ac(Oo,`touchcancel`,hs),ac(Ao,`touchstart`,hs),rc(ac,Oo,`pointerdown,touchstart,mousedown`,ps),rc(ac,Oo,`pointerup,touchend,mouseup`,ms),Mo.kill(),Ts(ac);for(var n=0;n0&&r.left+i0&&r.top+i=0&&wc.splice(t,5),wc.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),J.core.getCache(e),Qo())}}):wc},tl.revert=function(e,t){return Dc(!e,t)},tl.create=function(e,t){return new tl(e,t)},tl.refresh=function(e){return e?yc(!0):(Eo||tl.register())&&Fc(!0)},tl.update=function(e){return++to.cache&&zc(e===!0?2:0)},tl.clearScrollMemory=Oc,tl.maxScroll=function(e,t){return ws(e,t?ho:go)},tl.getScrollFunc=function(e,t){return yo(_o(e),t?ho:go)},tl.getById=function(e){return mc[e]},tl.getAll=function(){return pc.filter(function(e){return e.vars.id!==`ScrollSmoother`})},tl.isScrolling=function(){return!!cs},tl.snapDirectional=tc,tl.addEventListener=function(e,t){var n=bc[e]||(bc[e]=[]);~n.indexOf(t)||n.push(t)},tl.removeEventListener=function(e,t){var n=bc[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},tl.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=J.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Ds(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Ds(a)&&(a=a(),ic(tl,`refresh`,function(){return a=t.batchMax()})),No(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(tl.create(t))}),n};var nl=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},rl=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(To.isTouch?` pinch-zoom`:``):`none`,t===ko&&e(Ao,n)},il={auto:1,scroll:1},al=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||J.core.getCache(i),o=os(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==Ao&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(il[(s=Js(i)).overflowY]||il[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!ys(i)&&(il[(s=Js(i)).overflowY]||il[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},ol=function(e,t,n,r){return To.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=al,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ic(Oo,To.eventTypes[0],ll,!1,!0)},onDisable:function(){return ac(Oo,To.eventTypes[0],ll,!0)}})},sl=/(input|label|select|textarea)/i,cl,ll=function(e){var t=sl.test(e.target.tagName);(t||cl)&&(e._gsapAllow=!0,cl=t)},ul=function(e){ks(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=_o(e.target)||ko,l=J.core.globals().ScrollSmoother,u=l&&l.get(),d=Zo&&(e.content&&_o(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=yo(c,go),p=yo(c,ho),m=1,h=(To.isTouch&&Do.visualViewport?Do.visualViewport.scale*Do.visualViewport.width:Do.outerWidth)/Do.innerWidth,g=0,_=Ds(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=ol(c,e.type,!0,i),x=function(){return y=!1},S=hs,C=hs,w=function(){s=ws(c,go),C=Po(+!!Zo,s),n&&(S=Po(0,ws(c,ho))),v=Ac},T=function(){d._gsap.y=gs(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=gs(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=gs((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=to.cache,zc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&J.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Zo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=gs((Do.visualViewport&&Do.visualViewport.scale||1)/h),D.pause(),e!==m&&rl(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=Ac},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{to.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=nl(p,i,o,ws(c,ho)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=nl(f,i,o,ws(c,go)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Zo&&D.vars.scrollY>=s||i>=s-1)&&J.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),os()-g>1e3&&(v=0,g=os())},e.onChange=function(e,t,r,i,a){if(Ac!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&zc()},e.onEnable=function(){rl(c,n?!1:`x`),tl.addEventListener(`refresh`,j),ic(Do,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){rl(c,!0),ac(Do,`resize`,j),tl.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new To(e),o.iOS=Zo,Zo&&!f()&&f(1),Zo&&J.ticker.add(hs),A=o._dc,D=J.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Qc(f,f(),function(){return D.pause()})},onUpdate:zc,onComplete:A.vars.onComplete}),o};tl.sort=function(e){if(Ds(e))return pc.sort(e);var t=Do.pageYOffset||0;return tl.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Do.innerHeight}),pc.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},tl.observe=function(e){return new To(e)},tl.normalizeScroll=function(e){if(e===void 0)return qo;if(e===!0&&qo)return qo.enable();if(e===!1){qo&&qo.kill(),qo=e;return}var t=e instanceof To?e:ul(e);return qo&&qo.target===t.target&&qo.kill(),ys(t.target)&&(qo=t),t},tl.core={_getVelocityProp:bo,_inputObserver:ol,_scrollers:to,_proxies:no,bridge:{ss:function(){cs||Cc(`scrollStart`),cs=os()},ref:function(){return Lo}}},vs()&&J.registerPlugin(tl);var Y=a();function dl(e){let t=(0,Ce.c)(31),{code:n,language:r,className:i,variant:a,showCopyButton:o}=e,s=r===void 0?`bash`:r,l=a===void 0?`default`:a,u=o===void 0?!0:o,[d,f]=(0,G.useState)(!1),{normalizedLanguage:p,highlightedCode:m}=V(n,s),{copy:h}=ie(),g;t[0]!==n||t[1]!==h?(g=async()=>{await h(n)?(f(!0),se.success(`Copied to clipboard`),setTimeout(()=>f(!1),2e3)):se.error(`Failed to copy to clipboard`)},t[0]=n,t[1]=h,t[2]=g):g=t[2];let _=g,v;t[3]===i?v=t[4]:(v=I(`group/code-block relative rounded-md border border-border bg-muted/30 text-sm`,i),t[3]=i,t[4]=v);let y;t[5]!==d||t[6]!==_||t[7]!==p||t[8]!==u||t[9]!==l?(y=l===`default`&&(0,Y.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border bg-muted/50 px-3 py-2`,children:[(0,Y.jsx)(`span`,{className:`font-mono text-xs font-semibold text-muted-foreground`,children:p}),u&&(0,Y.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,Y.jsx)(`span`,{className:I(`text-xs text-green-500 transition-opacity duration-200`,d?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:_,className:`transition-opacity hover:opacity-100`,children:[d?(0,Y.jsx)(R,{className:`size-4 text-green-500`}):(0,Y.jsx)(re,{className:`size-4`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]})]}),t[5]=d,t[6]=_,t[7]=p,t[8]=u,t[9]=l,t[10]=y):y=t[10];let b;t[11]!==d||t[12]!==_||t[13]!==u||t[14]!==l?(b=l===`minimal`&&u&&(0,Y.jsxs)(`div`,{className:`absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover/code-block:opacity-100`,children:[(0,Y.jsx)(`span`,{className:I(`text-xs text-green-500 transition-opacity duration-200`,d?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:_,children:[d?(0,Y.jsx)(R,{className:`size-4 text-green-500`}):(0,Y.jsx)(re,{className:`size-4`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),t[11]=d,t[12]=_,t[13]=u,t[14]=l,t[15]=b):b=t[15];let x=l===`default`?`rounded-none! p-3!`:`rounded-md! p-4!`,S;t[16]===x?S=t[17]:(S=I(`m-0! font-mono! text-sm leading-relaxed`,x),t[16]=x,t[17]=S);let C;t[18]===m?C=t[19]:(C=(0,Y.jsx)(`span`,{dangerouslySetInnerHTML:{__html:m}}),t[18]=m,t[19]=C);let w;t[20]!==s||t[21]!==C?(w=(0,Y.jsx)(`code`,{"data-language":s,suppressHydrationWarning:!0,children:C}),t[20]=s,t[21]=C,t[22]=w):w=t[22];let T;t[23]!==w||t[24]!==S?(T=(0,Y.jsx)(`div`,{className:`overflow-x-auto`,children:(0,Y.jsx)(`pre`,{className:S,children:w})}),t[23]=w,t[24]=S,t[25]=T):T=t[25];let E;return t[26]!==T||t[27]!==v||t[28]!==y||t[29]!==b?(E=(0,Y.jsxs)(`div`,{className:v,children:[y,b,T]}),t[26]=T,t[27]=v,t[28]=y,t[29]=b,t[30]=E):E=t[30],E}function fl({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=G.useRef(e!==void 0),[a,o]=G.useState(t);return[i?e:a,G.useCallback(e=>{i||o(e)},[])]}var pl={};function ml(e,t){let n=G.useRef(pl);return n.current===pl&&(n.current=e(t)),n}var hl=G[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],gl=hl&&hl!==G.useLayoutEffect?hl:e=>e();function X(e){let t=ml(_l).current;return t.next=e,gl(t.effect),t.trampoline}function _l(){let e={next:void 0,callback:vl,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function vl(){}var Z=typeof document<`u`?G.useLayoutEffect:()=>{},yl=G.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function bl(){return G.useContext(yl)}function xl(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=X(i),o=G.useRef(0),s=ml(Cl).current,c=ml(Sl).current,[l,u]=G.useState(0),d=G.useRef(l),f=X((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=X(e=>{c.delete(e),d.current+=1,u(d.current)}),m=G.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(wl).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);Z(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),Z(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),Z(()=>()=>{n.current=[]},[n]),Z(()=>()=>{r&&(r.current=[])},[r]);let h=X(e=>(s.add(e),()=>{s.delete(e)}));Z(()=>{s.forEach(e=>e(m))},[s,m]);let g=G.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,Y.jsx)(yl.Provider,{value:g,children:t})}function Sl(){return new Map}function Cl(){return new Set}function wl(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var Tl=G.createContext(void 0);function El(){return G.useContext(Tl)?.direction??`ltr`}function Dl(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ol=Dl(`https://base-ui.com/production-error`,`Base UI`);function kl(e,t,n,r){let i=ml(jl).current;return Ml(i,e,t,n,r)&&Pl(i,[e,t,n,r]),i.callback}function Al(e){let t=ml(jl).current;return Nl(t,e)&&Pl(t,e),t.callback}function jl(){return{callback:null,cleanup:null,refs:[]}}function Ml(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Nl(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Pl(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Ll(e){if(!G.isValidElement(e))return null;let t=e,n=t.props;return(Il(19)?n?.ref:t.ref)??null}function Rl(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function zl(){}var Bl=Object.freeze([]),Vl=Object.freeze({});function Hl(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Ul(e,t){return typeof e==`function`?e(t):e}function Wl(e,t){return typeof e==`function`?e(t):e}var Gl={};function Kl(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Jl(t);let a=Jl(e);return t&&(a=Yl(a,t)),n&&(a=Yl(a,n)),r&&(a=Yl(a,r)),i&&(a=Yl(a,i)),a}function ql(e){if(e.length===0)return Gl;if(e.length===1)return Jl(e[0]);let t=Jl(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function $l(e){return typeof e==`function`}function eu(e,t){return $l(e)?e(t):e??Gl}function tu(e,t){return t?e?(...n)=>{let r=n[0];if(au(r)){let i=r;ru(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:nu(t):e}function nu(e){return e&&((...t)=>{let n=t[0];return au(n)&&ru(n),e(...t)})}function ru(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function iu(e,t){return t?e?t+` `+e:t:e}function au(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function ou(e,t,n={}){let r=t.render,i=su(t,n);return n.enabled===!1?null:uu(e,r,i,n.state??Vl)}function su(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Vl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Ul(n,a):void 0,d=l?Wl(r,a):void 0,f=l?Hl(a,c):Vl,p=l&&s?cu(s):void 0,m=l?Rl(f,p)??{}:Vl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Al([m.ref,Ll(i),...o]):m.ref=kl(m.ref,Ll(i),o):kl(null,null)),l?(u!==void 0&&(m.className=iu(m.className,u)),d!==void 0&&(m.style=Rl(m.style,d)),m):Vl}function cu(e){return Array.isArray(e)?ql(e):Kl(void 0,e)}var lu=Symbol.for(`react.lazy`);function uu(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Kl(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===lu&&(i=G.Children.toArray(t)[0]),G.cloneElement(i,e)}if(e&&typeof e==`string`)return du(e,n);throw Error(Ol(8))}function du(e,t){return e===`button`?(0,G.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,G.createElement)(`img`,{alt:``,...t,key:t.key}):G.createElement(e,t)}var fu=`none`,pu=`trigger-press`,mu=`outside-press`,hu=`item-press`,gu=`close-press`,_u=`clear-press`,vu=`input-change`,yu=`input-clear`,bu=`input-press`,xu=`focus-out`,Su=`escape-key`,Cu=`list-navigation`;function wu(e,t,n,r){let i=!1,a=!1,o=r??Vl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Tu(e,t,n){let r=n??Vl;return{reason:e,event:t??new Event(`base-ui`),...r}}var Eu={...G},Du=0;function Ou(e,t=`mui`){let[n,r]=G.useState(e),i=e||n;return G.useEffect(()=>{n??(Du+=1,r(`${t}-${Du}`))},[n,t]),i}var ku=Eu.useId;function Au(e,t){if(ku!==void 0){let n=ku();return e??(t?`${t}-${n}`:n)}return Ou(e,t)}function ju(e){return Au(e,`base-ui`)}var Mu=[];function Nu(e){G.useEffect(e,Mu)}var Pu=null;globalThis.requestAnimationFrame;var Fu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Iu=class e{static create(){return new e}static request(e){return Fu.request(e)}static cancel(e){return Fu.cancel(e)}currentId=Pu;request(e){this.cancel(),this.currentId=Fu.request(()=>{this.currentId=Pu,e()})}cancel=()=>{this.currentId!==Pu&&(Fu.cancel(this.currentId),this.currentId=Pu)};disposeEffect=()=>this.cancel};function Lu(){let e=ml(Iu.create).current;return Nu(e.disposeEffect),e}function Ru(e){return e==null?e:`current`in e?e.current:e}var zu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Bu={[zu.startingStyle]:``},Vu={[zu.endingStyle]:``},Hu={transitionStatus(e){return e===`starting`?Bu:e===`ending`?Vu:null}},Uu=o(i());function Wu(e,t=!1,n=!0){let r=Lu();return X((i,a=null)=>{r.cancel();let o=Ru(e);if(o==null)return;let s=o,c=()=>{Uu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=zu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Gu(e,t=!1,n=!1){let[r,i]=G.useState(e&&t?`idle`:void 0),[a,o]=G.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),Z(()=>{if(!e&&a&&r!==`ending`&&n){let e=Iu.request(()=>{i(`ending`)});return()=>{Iu.cancel(e)}}},[e,a,r,n]),Z(()=>{if(!e||t)return;let n=Iu.request(()=>{i(void 0)});return()=>{Iu.cancel(n)}},[t,e]),Z(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Iu.request(()=>{i(`idle`)});return()=>{Iu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var Ku=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function qu(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=bl(),f=G.useRef(-1),[p,m]=G.useState(a??(i===Ku.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=G.useRef(null),g=G.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return Z(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),Z(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),G.useMemo(()=>({ref:g,index:p}),[p,g])}var Ju=G.createContext(void 0);function Yu(e=!1){let t=G.useContext(Ju);if(t===void 0&&!e)throw Error(Ol(16));return t}function Xu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:G.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Zu(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=G.useRef(null),s=Yu(!0),c=a??s!==void 0,{props:l}=Xu({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=G.useCallback(()=>{let e=o.current;Qu(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Z(u,[u]),{getButtonProps:G.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Kl({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(ru(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Qu(a),l=!i&&$u(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(ru(e),a?.(e),e.target===e.currentTarget&&i&&c&&Qu(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:X(e=>{o.current=e,u()})}}function Qu(e){return C(e)&&e.tagName===`BUTTON`}function $u(e){return!!(e?.tagName===`A`&&e?.href)}var ed=typeof navigator<`u`,td=ud(),nd=fd(),rd=dd(),id=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),ad=td.platform===`MacIntel`&&td.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(td.platform),od=ed&&/firefox/i.test(rd),sd=ed&&/apple/i.test(navigator.vendor);ed&&/Edg/i.test(rd);var cd=ed&&/android/i.test(nd)||/android/i.test(rd);ed&&nd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var ld=rd.includes(`jsdom/`);function ud(){if(!ed)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function dd(){if(!ed)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function fd(){if(!ed)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var pd=`data-base-ui-focusable`,md=`ArrowLeft`,hd=`ArrowRight`,gd=`ArrowUp`,_d=`ArrowDown`;function vd(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function yd(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&te(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function bd(e){return`composedPath`in e?e.composedPath()[0]:e.target}function xd(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Sd(e){return e.matches(`html,body`)}function Cd(e){return C(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function wd(e){return e?e.getAttribute(`role`)===`combobox`&&Cd(e):!1}function Td(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ed(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ed(e,t.id,n)])}function Dd(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Od(e){e.preventDefault(),e.stopPropagation()}function kd(e){return`nativeEvent`in e}function Ad(e){return e.pointerType===``&&e.isTrusted?!0:cd&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function jd(e){return ld?!1:!cd&&e.width===0&&e.height===0||cd&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Md(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Nd(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Pd(e,t,n){return Math.floor(e/t)!==n}function Fd(e,t){return t<0||t>=e.length}function Id(e,t){return Rd(e.current,{disabledIndices:t})}function Ld(e,t){return Rd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Rd(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Ud(e,a,r));return a}function zd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:d,stopEvent:f=!1}){let p=d,m;if(t.key===`ArrowUp`?m=`up`:t.key===`ArrowDown`&&(m=`down`),m){let n=[],a=[],h=!1,g=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;g+=1;let o=e.closest(`[role="row"]`);o&&(h=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let _=!1,v=0;if(h)for(let e of n){let t=e.length;t>v&&(v=t),t!==o&&(_=!0)}let y=_&&g{if(!_||d===-1)return;let c=a[d];if(c==null)return;let l=n[c].indexOf(d),u=o===`up`?-1:1;for(let o=c+u,f=0;f=n.length){if(!r||y)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,d,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Ud(e,n,s))return n}}},S=t=>{if(!y||d===-1)return;let n=d%b,i=t===`up`?-b:b,a=l-l%b,o=u(l/b)+1;for(let t=d-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+b-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Ud(e,r,s))return r}};f&&Od(t);let C=x(m)??S(m);if(C!==void 0)p=C;else if(d===-1)p=m===`up`?l:c;else if(p=Rd(e,{startingIndex:d,amount:b,decrement:m===`up`,disabledIndices:s}),r){if(m===`up`&&(d-be?r:r-b,i&&(p=i(t,d,p))}m===`down`&&d+b>l&&(p=Rd(e,{startingIndex:d%b-b,amount:b,disabledIndices:s}),i&&(p=i(t,d,p)))}Fd(e,p)&&(p=d)}if(n===`both`){let n=u(d/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(f&&Od(t),d%o===o-1?r&&(p=Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p))):(p=Rd(e,{startingIndex:d,disabledIndices:s}),r&&Pd(p,o,n)&&(p=Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p)))),Pd(p,o,n)&&(p=d)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(f&&Od(t),d%o===0?r&&(p=Rd(e,{startingIndex:d+(o-d%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,d,p))):(p=Rd(e,{startingIndex:d,decrement:!0,disabledIndices:s}),r&&Pd(p,o,n)&&(p=Rd(e,{startingIndex:d+(o-d%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,d,p)))),Pd(p,o,n)&&(p=d));let c=u(l/o)===n;Fd(e,p)&&(r&&c?(p=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p))):p=d)}return p}function Bd(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Vd(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Hd(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Ud(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Gd(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Wd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Gd(e,t=e?N(e):null){return!e||!e.isConnected||!t||Wd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}function Kd(e){return e?.ownerDocument||document}var qd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Jd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return te(n)?n.host:null}function Yd(e){for(let t of Array.from(e.children))if(b(t)===`summary`)return t;return null}function Xd(e,t){let n=Yd(t);return!!n&&(e===n||yd(n,e))}function Zd(e){let t=e?b(e):``;return e!=null&&e.matches(qd)&&(t!==`summary`||e.parentElement!=null&&b(e.parentElement)===`details`&&Yd(e.parentElement)===e)&&(t!==`details`||Yd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Qd(e){if(!Zd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Jd(t)){let n=t!==e,r=b(t)===`slot`;if(t.hasAttribute(`inert`)||n&&b(t)===`details`&&!t.open&&!Xd(e,t)||t.hasAttribute(`hidden`)||!r&&!$d(t,n))return!1}return!0}function $d(e,t){let n=N(e);return t?n.display!==`none`:Gd(e,n)}function ef(e){let t=e.tabIndex;if(t<0){let t=b(e);if(t===`details`||t===`audio`||t===`video`||C(e)&&e.isContentEditable)return 0}return t}function tf(e){if(b(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function nf(e,t){let n=tf(e);if(!n)return!0;let r=t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form})===n}function rf(e){if(C(e)&&b(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return C(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function af(e,t){rf(e).forEach(e=>{Zd(e)&&t.push(e),af(e,t)})}function of(e,t,n){rf(e).forEach(e=>{C(e)&&e.matches(t)&&n.push(e),of(e,t,n)})}function sf(e){return Qd(e)&&ef(e)>=0}function cf(e){let t=[];return af(e,t),t.filter(Qd)}function lf(e){let t=cf(e);return t.filter(e=>ef(e)>=0&&nf(e,t))}function uf(e,t){let n=lf(e),r=n.length;if(r===0)return;let i=vd(Kd(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function df(e){return uf(Kd(e).body,1)||e}function ff(e){return uf(Kd(e).body,-1)||e}function pf(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!yd(n,r)}function mf(e){lf(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function hf(e){let t=[];of(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function gf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _f(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=X(i),o=Wu(r,n,!1);G.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function vf(e){let t=G.useRef(!0);t.current&&(t.current=!1,e())}var yf=0,bf=class e{static create(){return new e}currentId=yf;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=yf,t()},e)}isStarted(){return this.currentId!==yf}clear=()=>{this.currentId!==yf&&(clearTimeout(this.currentId),this.currentId=yf)};disposeEffect=()=>this.clear};function xf(){let e=ml(bf.create).current;return Nu(e.disposeEffect),e}var Sf={},Cf={},wf=``;function Tf(e){if(typeof document>`u`)return!1;let t=Kd(e);return A(t).innerWidth-t.documentElement.clientWidth>0}function Ef(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Kd(e),n=t.documentElement,r=t.body,i=P(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Df(e){let t=Kd(e),n=t.documentElement,r=t.body,i=P(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Of(e){let t=Kd(e),n=t.documentElement,r=t.body,i=A(n),a=0,o=0,s=!1,c=Iu.create();if(id&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Sf={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},wf=n.style.scrollBehavior,Cf={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=P(n)?n:r;if(s=Ef(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Sf),Object.assign(r.style,Cf),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=wf)}function d(){u(),c.request(l)}l();let f=gf(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var kf=new class{lockCount=0;restore=null;timeoutLock=bf.create();timeoutUnlock=bf.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Kd(e).documentElement,n=A(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=zl;return}let r=ad||!Tf(e);this.restore=r?Df(e):Of(e)}};function Af(e=!0,t=null){Z(()=>{if(e)return kf.acquire(t)},[e,t])}function jf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Pf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Ff={...Pf,position:`fixed`,top:0,left:0},If={...Pf,position:`absolute`},Lf=G.forwardRef(function(e,t){let[n,r]=G.useState();Z(()=>{sd&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Y.jsx)(`span`,{...e,ref:t,style:Ff,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Rf(e){return`data-base-ui-${e}`}var zf=0;function Bf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(zf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),zl;let o=requestAnimationFrame(a);return zf=o,()=>{zf===o&&(cancelAnimationFrame(o),zf=0)}}var Vf={inert:new WeakMap,"aria-hidden":new WeakMap},Hf=`data-base-ui-inert`,Uf={inert:new WeakSet,"aria-hidden":new WeakSet},Wf=new WeakMap,Gf=0;function Kf(e){return Uf[e]}function qf(e){return e?te(e)?e.host:qf(e.parentNode):null}var Jf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=qf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Yf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Xf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{b(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Zf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Jf(t,e),u=i?Jf(t,a):[],d=new Set(u),f=i?Xf(t,Yf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Vf[o],n=Kf(o);c=n,s=e;let r=Jf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Xf(t,Yf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Wf.get(e)||0)+1;Wf.set(e,t),m.push(e),t===1&&e.setAttribute(Hf,``)}),Gf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Wf.get(e)||0)-1;Wf.set(e,t),t||e.removeAttribute(Hf)}),--Gf,Gf||(Vf.inert=new WeakMap,Vf[`aria-hidden`]=new WeakMap,Uf.inert=new WeakSet,Uf[`aria-hidden`]=new WeakSet,Wf=new WeakMap)}}function Qf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Kd(e[0]).body;return Zf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var $f={style:{transition:`none`}},ep={fallbackAxisSide:`none`},tp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},np=G.createContext(null),rp=()=>G.useContext(np),ip=Rf(`portal`);function ap(e={}){let{ref:t,container:n,componentProps:r=Vl,elementProps:i}=e,a=Au(),o=rp()?.portalNode,[s,c]=G.useState(null),[l,u]=G.useState(null),d=X(e=>{e!==null&&u(e)}),f=G.useRef(null);Z(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(g(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=ou(`div`,r,{ref:[t,d],props:[{id:a,[ip]:``},i]});return{portalNode:l,portalSubtree:s&&p?Uu.createPortal(p,s):null}}var op=G.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=ap({container:r,ref:t,componentProps:e,elementProps:c}),d=G.useRef(null),f=G.useRef(null),p=G.useRef(null),m=G.useRef(null),[h,g]=G.useState(null),_=G.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;G.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&pf(e)&&(e.type===`focusin`?_.current&&=(hf(l),!1):(mf(l),_.current=!0))}return jf(gf(l,`focusin`,e,!0),gf(l,`focusout`,e,!0))},[l,v]),G.useEffect(()=>{!l||y!==!1||(hf(l),_.current=!1)},[y,l]);let x=G.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,Y.jsxs)(G.Fragment,{children:[u,(0,Y.jsxs)(np.Provider,{value:x,children:[b&&l&&(0,Y.jsx)(Lf,{"data-type":`outside`,ref:d,onFocus:e=>{pf(e,l)?p.current?.focus():ff(h?h.domReference:null)?.focus()}}),b&&l&&(0,Y.jsx)(`span`,{"aria-owns":l.id,style:tp}),l&&Uu.createPortal(n,l),b&&l&&(0,Y.jsx)(Lf,{"data-type":`outside`,ref:f,onFocus:e=>{pf(e,l)?m.current?.focus():(df(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,wu(`focus-out`,e.nativeEvent)))}})]})]})});function sp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var cp=G.createContext(null),lp=G.createContext(null),up=()=>G.useContext(cp)?.id||null,dp=e=>{let t=G.useContext(lp);return e??t};function fp(e,t){let n=A(bd(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var pp=20,mp=[];function hp(){mp=mp.filter(e=>e.deref()?.isConnected)}function gp(e){hp(),e&&b(e)!==`body`&&(mp.push(new WeakRef(e)),mp.length>pp&&(mp=mp.slice(-pp)))}function _p(){return hp(),mp[mp.length-1]?.deref()}function vp(e){return e?sf(e)?e:lf(e)[0]||e:null}function yp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=cf(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return sf(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function bp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=X(()=>b.current.floatingContext?.nodeId),S=i===!1,w=wd(_)&&S,T=G.useRef([`content`]),E=Mf(i),D=Mf(a),O=Mf(l),k=dp(p),A=rp(),j=G.useRef(!1),M=G.useRef(!1),N=G.useRef(!1),P=G.useRef(null),ee=G.useRef(``),F=G.useRef(``),te=G.useRef(null),I=G.useRef(null),L=kl(te,f,A?.beforeInsideRef),R=kl(I,A?.afterInsideRef),ne=xf(),re=xf(),z=Lu(),B=A!=null,V=Td(v),ie=X((e=V)=>e?lf(e):[]),H=X(()=>m?.().filter(e=>e!=null)??[]);G.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&yd(V,vd(Kd(V)))&&ie().length===0&&!w&&Od(e)}return gf(Kd(V),`keydown`,e)},[r,_,V,s,T,w,ie]),G.useEffect(()=>{if(r||!g)return;let e=Kd(V);function t(){N.current=!1}function n(e){let t=bd(e),n=H();N.current=!(yd(v,t)||yd(_,t)||yd(A?.portalNode,t)||n.some(e=>e===t||yd(e,t))),F.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){F.current=`keyboard`}return jf(gf(e,`pointerdown`,n,!0),gf(e,`pointerup`,t,!0),gf(e,`pointercancel`,t,!0),gf(e,`keydown`,i,!0))},[r,v,_,V,g,A,H]),G.useEffect(()=>{if(r||!c)return;let e=Kd(V);function t(){M.current=!0,re.start(0,()=>{M.current=!1})}function n(e){let t=bd(e);sf(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=bd(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=H(),f=n?.hasAttribute(Rf(`focus-guard`))&&[te.current,I.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,Ru(d),Ru(u)].includes(n),p=!(yd(_,n)||yd(v,n)||yd(n,v)||yd(A?.portalNode,n)||l.some(e=>e===n||yd(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>yd(e,n))||f||k&&(Ed(k.nodesRef.current,a).find(e=>yd(e.context?.elements.floating,n)||yd(e.context?.elements.domReference,n))||Dd(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Td(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&V&&yp(V,T),o&&r!==_&&!Gd(i)&&vd(e)===e.body){if(C(V)&&(V.focus(),o===`popup`)){z.request(()=>{V.focus()});return}let e=ie(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;C(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(w||!s)&&n&&p&&!M.current&&(w||n!==_p())&&(j.current=!0,h.setOpen(!1,wu(xu,t)))})}function a(){N.current||(b.current.insideReactTree=!0,ne.start(0,()=>{b.current.insideReactTree=!1}))}let l=C(_)?_:null;if(!(!v&&!l))return jf(l&&gf(l,`focusout`,i),l&&gf(l,`pointerdown`,t),v&&gf(v,`focusin`,n),v&&gf(v,`focusout`,i),v&&A&&gf(v,`focusout`,a,!0))},[r,_,v,V,s,k,A,h,c,o,ie,w,x,T,b,ne,re,z,u,d,H]),G.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${Rf(`portal`)}]`)||[]),t=(k?Dd(k.nodesRef.current,x()):[]).find(e=>wd(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Qf([v,...e,te.current,I.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...H(),t,Ru(d),Ru(u),w?_:null].filter(e=>e!=null),{ariaHidden:s||w,mark:!1}),i=Qf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,T,A,w,k,x,u,d,H]),Z(()=>{if(!g||r||!C(V))return;let e=vd(Kd(V));queueMicrotask(()=>{let t=E.current,n=typeof t==`function`?t(O.current||``):t;if(n===void 0||n===!1||yd(V,e))return;let r=null,i=()=>(r??=ie(V),r[0]||V),a;a=n===!0||n===null?i():Ru(n),a||=i(),Bf(a,{preventScroll:a===V})})},[r,g,V,S,ie,E,O]),Z(()=>{if(r||!V)return;let e=Kd(V);gp(vd(e));function t(e){if(e.open||(ee.current=fp(e.nativeEvent,F.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(Ad(e.nativeEvent)||jd(e.nativeEvent))j.current=!1;else{let e=!1;Kd(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=D.current,t=typeof e==`function`?e(ee.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||_p();return e&&e.isConnected?e:null}let n=_||_p();return Ru(t)||n||null}return()=>{y.off(`openchange`,t);let r=vd(e),i=H(),a=yd(v,r)||i.some(e=>e===r||yd(e,r))||k&&Ed(k.nodesRef.current,x(),!1).some(e=>yd(e.context?.elements.floating,r)),o=D.current,s=n();queueMicrotask(()=>{let t=vp(s),n=typeof o!=`boolean`;o&&!j.current&&C(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,V,D,b,y,k,_,x,H]),Z(()=>{if(!id||g||!v)return;let e=vd(Kd(v));!C(e)||!Cd(e)||yd(v,e)&&e.blur()},[g,v]),Z(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),Z(()=>{if(!(r||!V))return yp(V,T),()=>{queueMicrotask(hp)}},[r,V,T]);let ae=!r&&(s?!w:!0)&&(B||s);return(0,Y.jsxs)(G.Fragment,{children:[ae&&(0,Y.jsx)(Lf,{"data-type":`inside`,ref:L,onFocus:e=>{if(s){let e=ie();Bf(e[e.length-1])}else A?.portalNode&&(j.current=!1,pf(e,A.portalNode)?df(_)?.focus():Ru(d??A.beforeOutsideRef)?.focus())}}),n,ae&&(0,Y.jsx)(Lf,{"data-type":`inside`,ref:R,onFocus:e=>{s?Bf(ie()[0]):A?.portalNode&&(c&&(j.current=!0),pf(e,A.portalNode)?ff(_)?.focus():Ru(u??A.afterOutsideRef)?.focus())}})]})}function xp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=pu}=t,d=G.useRef(void 0),f=Lu(),p=xf(),m=G.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Md(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=bd(i);if(Cd(y)){let e=wu(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=wu(u,i,b);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Md(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Nd(f))),g=wu(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return G.useMemo(()=>i?{reference:m}:Vl,[i,m])}var Sp={intentional:`onClick`,sloppy:`onPointerDown`};function Cp(){return!1}function wp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Tp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Cp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=dp(p),h=X(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,y=X(()=>l),b=G.useRef(!1),w=G.useRef(!1),T=G.useRef(!1),{escapeKey:E,outsidePress:O}=wp(f),k=G.useRef(null),A=xf(),j=xf(),M=X(()=>{j.clear(),a.current.insideReactTree=!1}),P=G.useRef(!1),ee=G.useRef(``),F=X(u),I=X(e=>{if(!r||!o||!s||e.key!==`Escape`||P.current)return;let t=a.current.floatingContext?.nodeId,i=m?Ed(m.nodesRef.current,t):[];if(!E&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=wu(Su,kd(e)?e.nativeEvent:e);n.setOpen(!1,c),!E&&!c.isPropagationAllowed&&e.stopPropagation()}),L=X(()=>{a.current.insideReactTree=!0,j.start(0,M)});G.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=E,a.current.__outsidePressBubbles=O;let e=new bf,t=new bf;function c(){e.clear(),P.current=!0}function l(){e.start(v()?5:0,()=>{P.current=!1})}function u(){T.current=!0,t.start(0,()=>{T.current=!1})}function d(){b.current=!1,w.current=!1}function f(){let e=ee.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&Ed(m.nodesRef.current,t).some(t=>xd(e,t.context?.elements.floating));return xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||r}function j(e){if(p(e)){M();return}if(a.current.insideReactTree){M();return}let r=bd(e),i=`[${Rf(`inert`)}]`,o=D(r)?r.getRootNode():null,s=Array.from((te(o)?o:Kd(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>yd(e,r))))return;let l=D(r)?r:null;for(;l&&!S(l);){let e=x(l);if(S(e)||!D(e))break;l=e}if(s.length&&D(r)&&!Sd(r)&&!yd(r,n.select(`floatingElement`))&&s.every(e=>!yd(l,e)))return;if(C(r)&&!(`touches`in e)){let t=S(r),n=N(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&T.current){t.clear(),T.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?Ed(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,wu(mu,e)),M()}function F(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||j(e)}function L(e){if(f()!==`sloppy`||!n.select(`open`)||!o||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(k.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},A.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function R(e,t){let n=bd(e);if(!n)return;let r=gf(n,e.type,()=>{t(e),r()})}function ne(e){ee.current=`touch`,R(e,L)}function re(e){A.clear(),e.type===`pointerdown`&&(ee.current=e.pointerType),!(e.type===`mousedown`&&k.current&&!k.current.dismissOnMouseDown)&&R(e,e=>{e.type===`pointerdown`?F(e):j(e)})}function z(e){if(!b.current)return;let n=w.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),T.current=!0,M())}}}function B(e){if(f()!==`sloppy`||!k.current||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-k.current.startX),i=Math.abs(t.clientY-k.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(k.current.dismissOnTouchEnd=!0),a>10&&(j(e),A.clear(),k.current=null)}function V(e){R(e,B)}function ie(e){f()!==`sloppy`||!k.current||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||(k.current.dismissOnTouchEnd&&j(e),A.clear(),k.current=null)}function H(e){R(e,ie)}let ae=Kd(i),oe=jf(s&&jf(gf(ae,`keydown`,I),gf(ae,`compositionstart`,c),gf(ae,`compositionend`,l)),_&&jf(gf(ae,`click`,re,!0),gf(ae,`pointerdown`,re,!0),gf(ae,`pointerup`,z,!0),gf(ae,`pointercancel`,z,!0),gf(ae,`mousedown`,re,!0),gf(ae,`mouseup`,z,!0),gf(ae,`touchstart`,ne,!0),gf(ae,`touchmove`,V,!0),gf(ae,`touchend`,H,!0)));return()=>{oe(),e.clear(),t.clear(),d(),T.current=!1}},[a,i,s,_,g,r,o,E,O,I,M,y,m,n,A]),G.useEffect(M,[g,M]);let R=G.useMemo(()=>({onKeyDown:I,[Sp[d]]:e=>{F()&&n.setOpen(!1,wu(pu,e.nativeEvent))},...d!==`intentional`&&{onClick(e){F()&&n.setOpen(!1,wu(`trigger-press`,e.nativeEvent))}}}),[I,n,d,F]),ne=X(e=>{if(!r||!o||e.button!==0)return;let t=bd(e.nativeEvent);yd(n.select(`floatingElement`),t)&&(b.current||(b.current=!0,w.current=!1))}),re=X(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(w.current=!0)}),z=G.useMemo(()=>({onKeyDown:I,onPointerDown:re,onMouseDown:re,onClickCapture:L,onMouseDownCapture(e){L(),ne(e)},onPointerDownCapture(e){L(),ne(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[I,L,ne,re]);return G.useMemo(()=>o?{reference:R,floating:z,trigger:R}:{},[o,R,z])}var Ep=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Ol(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Dp=e((e=>{var t=r(),n=ce();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Op=e(((e,t)=>{t.exports=Dp()})),kp=[],Ap=void 0;function jp(){return Ap}function Mp(e){kp.push(e)}var Np=ce(),Pp=Op(),Fp=Il(19)?Lp:Rp;function Q(e,t,n,r,i){return Fp(e,t,n,r,i)}function Ip(e,t,n,r,i){let a=G.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Np.useSyncExternalStore)(e.subscribe,a,a)}Mp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Np.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Lp(e,t,n,r,i){let a=jp();if(!a)return Ip(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Rp(e,t,n,r,i){return(0,Pp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var zp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Q(this,e,t,n,r)}},Bp=class extends zp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){G.useDebugValue(e),Z(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;Z(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Z(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){G.useDebugValue(e);let n=t!==void 0;Z(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return G.useDebugValue(e),Q(this,this.selectors[e],t,n,r)}useContextCallback(e,t){G.useDebugValue(e);let n=X(t??zl);this.context[e]=n}useStateSetter(e){let t=G.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Vp={open:Ep(e=>e.open),transitionStatus:Ep(e=>e.transitionStatus),domReferenceElement:Ep(e=>e.domReferenceElement),referenceElement:Ep(e=>e.positionReference??e.referenceElement),floatingElement:Ep(e=>e.floatingElement),floatingId:Ep(e=>e.floatingId)},Hp=class extends Bp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:sp(),nested:n,triggerElements:i},Vp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Nd(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},Up=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Wp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Au(),a=up()!=null,o=ml(()=>new Hp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Up,floatingId:i,syncOnly:!1,nested:a})).current;return Z(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=D(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Gp(e={}){let{nodeId:t,externalTree:n}=e,r=Wp(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=G.useState(null),c=G.useRef(null),l=dp(n);Z(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=y({...e,elements:{...a,...o&&{reference:o}}}),d=G.useCallback(e=>{let t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=G.useState(void 0),[m,h]=G.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=D(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=G.useCallback(e=>{(D(e)||e===null)&&(c.current=e,p(e)),(D(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!D(e))&&u.refs.setReference(e)},[u.refs,p]),v=G.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),b=G.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),x=G.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),S=i.useState(`open`),C=i.useState(`floatingId`),w=G.useMemo(()=>({...u,dataRef:i.context.dataRef,open:S,onOpenChange:i.setOpen,events:i.context.events,floatingId:C,refs:b,elements:x,nodeId:t,rootStore:i}),[u,b,x,t,i,S,C]);return Z(()=>{i.context.dataRef.current.floatingContext=w;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),G.useMemo(()=>({...u,context:w,refs:b,elements:x,rootStore:i}),[u,b,x,w,i])}function Kp(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=G.useCallback(t=>qp(t,e,`reference`),t),o=G.useCallback(t=>qp(t,e,`floating`),n),s=G.useCallback(t=>qp(t,e,`item`),r),c=G.useCallback(t=>qp(t,e,`trigger`),i);return G.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function qp(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[pd]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Yp=`Escape`;function Xp(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Zp(e,t){return Xp(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Qp(e,t,n){return Xp(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function $p(e,t,n){return Xp(t,n?e===md:e===hd,e===_d)}function em(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Yp:Xp(t,n?e===hd:e===md,e===gd)}function tm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,parentOrientation:S,cols:w=1,id:T,resetOnPointerLeave:E=!0,externalTree:D}=t,O=Mf(Td(i)),k=up(),A=dp(D);Z(()=>{o.current.orientation=x},[o,x]);let j=wd(a),M=G.useRef(_),N=G.useRef(d??-1),P=G.useRef(null),ee=G.useRef(!0),F=X(e=>{l(N.current===-1?null:N.current,e)}),te=G.useRef(F),I=G.useRef(!!i),L=G.useRef(r),R=G.useRef(!1),ne=G.useRef(!1),re=G.useRef(null),z=Mf(b),B=Mf(r),V=Mf(d),ie=Mf(E),H=X(()=>{function e(e){g?A?.events.emit(`virtualfocus`,e):re.current=Bf(e,{sync:R.current,preventScroll:!0})}let t=s.current[N.current],n=ne.current;t&&e(t),(R.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[N.current]||t;r&&(t||e(r),U&&(n||!ee.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Z(()=>{u&&(r&&i?(N.current=d??-1,M.current&&d!=null&&(ne.current=!0,F())):I.current&&(N.current=-1,te.current()))},[u,r,i,d,F]),Z(()=>{if(u){if(!r){R.current=!1;return}if(i)if(c==null){if(R.current=!1,V.current!=null)return;if(I.current&&(N.current=-1,H()),(!L.current||!I.current)&&M.current&&(P.current!=null||M.current===!0&&P.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(N.current=P.current==null||Qp(P.current,x,h)||m?Id(s):Ld(s),P.current=null,F())};t()}}else Fd(s.current,c)||(N.current=c,H(),ne.current=!1)}},[u,r,i,c,V,m,s,x,h,F,H,z]),Z(()=>{if(!u||i||!A||g||!I.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===k)?.context?.elements.floating,n=vd(Kd(i)),r=e.some(e=>e.context&&yd(e.context.elements.floating,n));t&&!r&&ee.current&&t.focus({preventScroll:!0})},[u,i,A,k,g]),Z(()=>{te.current=F,L.current=r,I.current=!!i}),Z(()=>{r||(P.current=null,M.current=_)},[r,_]);let ae=c!=null,oe=X(e=>{if(!B.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&(N.current!==t||c!==t)&&(N.current=t,F(e))}),U=G.useMemo(()=>({onFocus(e){R.current=!0,oe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){R.current=!0,ne.current=!1,v&&oe(e)},onPointerLeave(e){if(!B.current||!ee.current||e.pointerType===`touch`)return;R.current=!0;let t=e.relatedTarget;if(!(!v||s.current.includes(t))&&ie.current&&(re.current?.(),re.current=null,N.current=-1,F(e),!g)){let e=O.current,t=vd(Kd(e));e&&yd(e,t)&&e.focus({preventScroll:!0})}}}),[oe,B,O,v,s,F,ie,g]),se=G.useCallback(()=>S??A?.nodesRef.current.find(e=>e.id===k)?.context?.dataRef?.current.orientation,[k,A,S]),ce=X(e=>{if(ee.current=!1,R.current=!0,e.which===229||!B.current&&e.currentTarget===O.current)return;if(m&&em(e.key,x,h,w)){Zp(e.key,se())||Od(e),n.setOpen(!1,wu(Cu,e.nativeEvent)),C(a)&&(g?A?.events.emit(`virtualfocus`,a):a.focus());return}let t=N.current,i=Id(s,b),o=Ld(s,b);if(j||(e.key===`Home`&&(Od(e),N.current=i,F(e)),e.key===`End`&&(Od(e),N.current=o,F(e))),w>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=Bd(t,w,!1),r=n.findIndex(e=>e!=null&&!Ud(s.current,e,b)),a=n.reduce((e,t,n)=>t!=null&&!Ud(s.current,t,b)?n:e,-1),c=n[zd(n.map(e=>e==null?null:s.current[e]),{event:e,orientation:x,loopFocus:p,rtl:h,cols:w,disabledIndices:Hd([...(typeof b==`function`?null:b)||s.current.map((e,t)=>Ud(s.current,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:Vd(N.current>o?i:N.current,t,n,w,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(N.current=c,F(e)),x===`both`)return}if(Zp(e.key,x)){if(Od(e),r&&!g&&vd(e.currentTarget.ownerDocument)===e.currentTarget){N.current=Qp(e.key,x,h)?i:o,F(e);return}Qp(e.key,x,h)?p?t>=o?f&&t!==s.current.length?N.current=-1:(R.current=!1,N.current=i):N.current=Rd(s.current,{startingIndex:t,disabledIndices:b}):N.current=Math.min(o,Rd(s.current,{startingIndex:t,disabledIndices:b})):p?t<=i?f&&t!==-1?N.current=s.current.length:(R.current=!1,N.current=o):N.current=Rd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b}):N.current=Math.max(i,Rd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b})),Fd(s.current,N.current)&&(N.current=-1),F(e)}}),le=G.useMemo(()=>g&&r&&ae&&{"aria-activedescendant":`${T}-${c}`},[g,r,ae,T,c]),ue=G.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...j?{}:le,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=bd(e.nativeEvent);if(t&&!yd(O.current,t))return;Od(e),n.setOpen(!1,wu(xu,e.nativeEvent)),C(a)&&a.focus();return}ce(e)},onPointerMove(){ee.current=!0}}),[le,ce,O,x,j,n,r,g,a]),de=G.useMemo(()=>{function e(e){_===`auto`&&Ad(e.nativeEvent)&&(M.current=!g)}function t(e){M.current=_,_===`auto`&&jd(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);ee.current=!1;let r=e.key.startsWith(`Arrow`),i=$p(e.key,se(),h),a=Zp(e.key,x),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return ce(e);if(!(!t&&!y&&r)){if(o){let t=Zp(e.key,se());P.current=m&&t?null:e.key}if(m){i&&(Od(e),t?(N.current=Id(s,z.current),F(e)):n.setOpen(!0,wu(Cu,e.nativeEvent,e.currentTarget)));return}a&&(V.current!=null&&(N.current=V.current),Od(e),!t&&y?n.setOpen(!0,wu(Cu,e.nativeEvent,e.currentTarget)):ce(e),t&&F(e))}},onFocus(e){n.select(`open`)&&!g&&(N.current=-1,F(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ce,z,_,s,m,F,n,y,x,se,h,V,g]),fe=G.useMemo(()=>({...le,...de}),[le,de]);return G.useMemo(()=>u?{reference:fe,floating:ue,item:U,trigger:de}:{},[u,fe,ue,de,U])}function nm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=xf(),m=G.useRef(``),h=G.useRef(f??s??-1),g=G.useRef(null);Z(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),Z(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=X(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=X(e=>{function t(e){let t=o?.current[e];return!t||Gd(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(Od(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(Od(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=X(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=yd(r,t),o=yd(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=G.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=G.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return G.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}function rm(e){let t=G.useRef(``),n=G.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:G.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function im(e,t){let n=G.useRef(e),r=X(t);Z(()=>{n.current!==e&&r(n.current)},[e,r]),Z(()=>{n.current=e},[e])}function am(e){let[t,n]=G.useState(null),r=X((t,r)=>{e||n(r||(ad?`touch`:``))});im(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=rm(r);return G.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}var om=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=zu.startingStyle]=`startingStyle`,e[e.endingStyle=zu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),sm=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),cm={[sm.popupOpen]:``},lm={[sm.popupOpen]:``,[sm.pressed]:``},um={[om.open]:``},dm={[om.closed]:``},fm={[om.anchorHidden]:``},pm={open(e){return e?cm:null}},mm={open(e){return e?lm:null}},hm={open(e){return e?um:dm},anchorHidden(e){return e?fm:null}};function gm(e){return Il(19)?e:e?`true`:void 0}var _m=G.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Y.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),vm=G.createContext(void 0),ym=G.createContext(void 0),bm=G.createContext(void 0),xm=G.createContext(``);function Sm(){let e=G.useContext(vm);if(!e)throw Error(Ol(22));return e}function Cm(){let e=G.useContext(ym);if(!e)throw Error(Ol(23));return e}function wm(){let e=G.useContext(bm);if(!e)throw Error(Ol(24));return e}function Tm(){return G.useContext(xm)}var Em=(e,t)=>Object.is(e,t);function Dm(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Om(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:Dm(t,e,n))}function km(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:Dm(e,t,n))}function Am(e,t,n){return e.filter(e=>!Dm(t,e,n))}function jm(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Mm(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Nm(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Mm(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Pm(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return jm(e)}function Fm(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?jm(e.value):jm(e)}var $={id:Ep(e=>e.id),labelId:Ep(e=>e.labelId),items:Ep(e=>e.items),selectedValue:Ep(e=>e.selectedValue),hasSelectionChips:Ep(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:Ep(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:Ep((e,t)=>t?Nm(e.items):!1),open:Ep(e=>e.open),mounted:Ep(e=>e.mounted),forceMounted:Ep(e=>e.forceMounted),inline:Ep(e=>e.inline),activeIndex:Ep(e=>e.activeIndex),selectedIndex:Ep(e=>e.selectedIndex),isActive:Ep((e,t)=>e.activeIndex===t),isSelected:Ep((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Dm(t,e,n)):Dm(t,r,n)}),transitionStatus:Ep(e=>e.transitionStatus),popupProps:Ep(e=>e.popupProps),inputProps:Ep(e=>e.inputProps),triggerProps:Ep(e=>e.triggerProps),getItemProps:Ep(e=>e.getItemProps),positionerElement:Ep(e=>e.positionerElement),listElement:Ep(e=>e.listElement),triggerElement:Ep(e=>e.triggerElement),inputElement:Ep(e=>e.inputElement),inputGroupElement:Ep(e=>e.inputGroupElement),popupSide:Ep(e=>e.popupSide),openMethod:Ep(e=>e.openMethod),inputInsidePopup:Ep(e=>e.inputInsidePopup),selectionMode:Ep(e=>e.selectionMode),name:Ep(e=>e.name),form:Ep(e=>e.form),disabled:Ep(e=>e.disabled),readOnly:Ep(e=>e.readOnly),required:Ep(e=>e.required),grid:Ep(e=>e.grid),virtualized:Ep(e=>e.virtualized),itemToStringLabel:Ep(e=>e.itemToStringLabel),isItemEqualToValue:Ep(e=>e.isItemEqualToValue),modal:Ep(e=>e.modal),autoHighlight:Ep(e=>e.autoHighlight),submitOnItemClick:Ep(e=>e.submitOnItemClick)},Im=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Lm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Rm={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},zm={disabled:!1,...Rm},Bm={valid(e){return e===null?null:e?{[Im.valid]:``}:{[Im.invalid]:``}}},Vm=G.createContext({invalid:void 0,name:void 0,validityData:{state:Lm,errors:[],error:``,value:``,initialValue:null},setValidityData:zl,disabled:void 0,touched:Rm.touched,setTouched:zl,dirty:Rm.dirty,setDirty:zl,filled:Rm.filled,setFilled:zl,focused:Rm.focused,setFocused:zl,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:zm,markedDirtyRef:{current:!1},registerFieldControl:zl,validation:{getValidationProps:(e=Vl)=>e,getInputValidationProps:(e=Vl)=>e,inputRef:{current:null},commit:async()=>{}}});function Hm(e=!0){let t=G.useContext(Vm);if(t.setValidityData===zl&&!e)throw Error(Ol(28));return t}function Um(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Hm(),s=G.useRef(null);s.current||=Symbol(),Z(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Wm=G.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:zl,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Gm(){return G.useContext(Wm)}var Km=G.createContext({controlId:void 0,registerControlId:zl,labelId:void 0,setLabelId:zl,messageIds:[],setMessageIds:zl,getDescriptionProps:e=>e});function qm(){return G.useContext(Km)}function Jm(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=qm(),o=ju(t),s=n?i:void 0,c=ml(()=>Symbol(`labelable-control`)),l=G.useRef(!1),u=G.useRef(t!=null),d=X(()=>{!l.current||a===zl||(l.current=!1,a(c.current,void 0))});return Z(()=>{if(a===zl)return;let e;if(n){let n=r?.current;e=D(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),G.useEffect(()=>d,[d]),i??o}function Ym(e,t){return(n,r)=>{if(n==null)return!1;let i=Pm(n,t);return e.contains(i,r)}}function Xm(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=Pm(r,t),o=n==null?``:Pm(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var Zm=new Map;function Qm(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${$m(e.locale)}|${JSON.stringify(t)}`,r=Zm.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=Pm(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Pm(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Pm(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return Zm.set(n,a),a}function $m(e){return Array.isArray(e)?e.map(e=>$m(e)).join(`,`):e==null?``:String(e)}var eh=Qm,th=Symbol(`none`),nh={value:th,index:-1};function rh(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u=`none`,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:_,grid:v=!1,items:y,filteredItems:b,filter:x,openOnInputClick:S=!0,autoHighlight:C=!1,keepHighlight:w=!1,highlightItemOnHover:T=!0,loopFocus:E=!0,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:k=Em,virtualized:A=!1,inline:j=!1,fillInputOnItemPress:M=!0,modal:N=!1,limit:P=-1,autoComplete:ee=`list`,formAutoComplete:F,locale:te,submitOnItemClick:I=!1}=e,{clearErrors:L}=Gm(),{setDirty:R,validityData:ne,shouldValidateOnChange:re,setFilled:z,name:B,disabled:V,setTouched:ie,setFocused:H,validationMode:ae,validation:oe}=Hm(),U=Jm({id:t}),se=eh({locale:te}),[ce,le]=G.useState(!1),[ue,de]=G.useState(null),fe=G.useRef([]),pe=G.useRef([]),me=G.useRef(null),he=G.useRef(null),W=G.useRef(null),ge=G.useRef(null),_e=G.useRef(null),ve=G.useRef(!0),ye=G.useRef(!1),be=G.useRef(null),xe=G.useRef(null),Se=G.useRef(null),Ce=G.useRef(nh),we=G.useRef(null),Te=G.useRef([]),Ee=G.useRef([]),K=V||m,De=B??f,Oe=u===`multiple`,q=u===`single`,ke=s!==void 0||o!==void 0,Ae=y!==void 0,je=b!==void 0,Me;Me=C===`always`?`always`:C?`input-change`:!1;let[Ne,Pe]=fl({controlled:i,default:Oe?r??Bl:r,name:`Combobox`,state:`selectedValue`}),Fe=G.useMemo(()=>x===null?()=>!0:x===void 0?q&&!ce?Xm(se,D,Ne):Ym(se,D):x,[x,q,Ne,ce,se,D]),Ie=ml(()=>ke?o??``:q?Pm(Ne,D):``).current,[Le,Re]=fl({controlled:s,default:Ie,name:`Combobox`,state:`inputValue`}),[ze,Be]=fl({controlled:c,default:l,name:`Combobox`,state:`open`}),Ve=Mm(y),He=ue??(Le===``?``:String(Le).trim()),Ue=q?Pm(Ne,D):``,We=q&&!ce&&He!==``&&Ue!==``&&Ue.length===He.length&&se.contains(Ue,He),Ge=We?``:He,Ke=Ae&&je&&We,qe=G.useMemo(()=>y?Ve?y.flatMap(e=>e.items):y:Bl,[y,Ve]),Je=G.useMemo(()=>{if(b&&!Ke)return b;if(!y)return Bl;if(Ve){let e=y,t=[],n=0;for(let r of e){if(P>-1&&n>=P)break;let e=Ge===``?r.items:r.items.filter(e=>Fe(e,Ge,D));if(e.length===0)continue;let i=P>-1?P-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Ge===``)return P>-1?qe.slice(0,P):qe;let e=[];for(let t of qe){if(P>-1&&e.length>=P)break;Fe(t,Ge,D)&&e.push(t)}return e},[b,Ke,y,Ve,Ge,P,Fe,D,qe]),Ye=G.useMemo(()=>Ve?Je.flatMap(e=>e.items):Je,[Je,Ve]),Xe=ml(()=>new zp({id:U,labelId:void 0,selectedValue:Ne,open:ze,filter:Fe,query:He,items:y,selectionMode:u,listRef:fe,labelsRef:pe,popupRef:me,emptyRef:_e,inputRef:he,startDismissRef:W,endDismissRef:ge,keyboardActiveRef:ve,chipsContainerRef:be,clearRef:xe,valuesRef:Te,allValuesRef:Ee,selectionEventRef:Se,name:De,form:p,disabled:K,readOnly:h,required:g,grid:v,isGrouped:Ve,virtualized:A,openOnInputClick:S,itemToStringLabel:D,isItemEqualToValue:k,modal:N,autoHighlight:Me,submitOnItemClick:I,hasInputValue:ke,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:j,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,onOpenChangeComplete:n||zl,setOpen:zl,setInputValue:zl,setSelectedValue:zl,setIndices:zl,onItemHighlighted:zl,handleSelection:zl,getItemProps:()=>Vl,forceMount:zl,requestSubmit:zl})).current,Ze=u===`none`?Le:Ne,Qe=G.useMemo(()=>u===`none`?Ze:Array.isArray(Ne)?Ne.map(e=>Fm(e,O)):Fm(Ne,O),[Ze,O,u,Ne]),$e=X(d),et=X(n),tt=Q(Xe,$.activeIndex),nt=Q(Xe,$.selectedIndex),rt=Q(Xe,$.positionerElement),it=Q(Xe,$.listElement),at=Q(Xe,$.triggerElement),ot=Q(Xe,$.inputElement),st=Q(Xe,$.inputGroupElement),ct=Q(Xe,$.inline),lt=Q(Xe,$.inputInsidePopup),ut=Mf(at),{mounted:dt,setMounted:ft,transitionStatus:pt}=Gu(ze),{openMethod:mt,triggerProps:ht}=am(ze),gt=X(()=>Qe);Um(lt?ut:he,{id:U,value:Ze,getValue:gt});let _t=X(()=>{y?pe.current=Ye.map(e=>Pm(e,D)):Xe.set(`forceMounted`,!0)}),vt=G.useRef(Ne);Z(()=>{Ne!==vt.current&&_t()},[_t,Ne]);let yt=X(e=>{Xe.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Ce.current!==nh&&(Ce.current=nh,$e(void 0,Tu(t,void 0,{index:-1})));else{let n=Te.current[e.activeIndex];Ce.current={value:n,index:e.activeIndex},$e(n,Tu(t,void 0,{index:e.activeIndex}))}}),bt=X((t,n)=>{if(ye.current=n.reason===yu,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&le(!0),we.current={hasQuery:e},e&&Me&&Xe.state.activeIndex==null&&Xe.set(`activeIndex`,0)}}Re(t)}}),xt=X((t,n)=>{if(ze!==t&&(n.reason===`escape-key`&&Ae&&Ye.length===0&&!Xe.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(!t&&ce&&(q?(ct||de(He),He===``&&le(!1)):Oe&&(ct||lt?yt({activeIndex:null}):de(He),bt(``,wu(yu,n.event)))),Be(t),!t&<&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ie(!0),H(!1),ae===`onBlur`)))){let e=u===`none`?Le:Ne;oe.commit(e)}}),St=X((e,t)=>{a?.(e,t),!t.isCanceled&&(Pe(e),(u===`none`&&me.current&&M||q&&!Xe.state.inputInsidePopup)&&bt(Pm(e,D),wu(t.reason,t.event)),q&&e!=null&&t.reason!==`input-change`&&ce&&!ct&&de(He))}),Ct=X((e,t)=>{let n=t;if(n===void 0){if(tt===null)return;n=Te.current[tt]}let r=bd(e),i=Se.current??e;Se.current=null;let a=wu(hu,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&xt(!1,a);return}if(Oe){let e=Array.isArray(Ne)?Ne:[];if(St(Om(e,n,Xe.state.isItemEqualToValue)?Am(e,n,Xe.state.isItemEqualToValue):[...e,n],a),!(he.current&&he.current.value.trim()!==``))return;Xe.state.inputInsidePopup?bt(``,wu(yu,a.event)):xt(!1,a)}else St(n,a),xt(!1,a)}),wt=X(()=>{if(!Xe.state.submitOnItemClick)return;let e=oe.inputRef.current?.form??Xe.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Tt=X(()=>{if(ft(!1),et?.(!1),le(!1),de(null),yt(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Oe&&he.current&&he.current.value!==``&&!ye.current&&bt(``,wu(yu)),q)if(Xe.state.inputInsidePopup)he.current&&he.current.value!==``&&bt(``,wu(yu));else{let e=Pm(Ne,D);he.current&&he.current.value!==e&&bt(e,wu(e===``?yu:fu))}}),Et=G.useMemo(()=>ct&&rt?{current:rt.closest(`[role="dialog"]`)}:me,[ct,rt]);_f({enabled:!e.actionsRef,open:ze,ref:Et,onComplete(){ze||Tt()}}),G.useImperativeHandle(e.actionsRef,()=>({unmount:Tt}),[Tt]),Z(function(){if(ze||u===`none`)return;let e=y?qe:Ee.current;if(Oe){let t=Array.isArray(Ne)?Ne:[],n=t[t.length-1],r=km(e,n,k);yt({selectedIndex:r===-1?null:r})}else{let t=km(e,Ne,k);yt({selectedIndex:t===-1?null:t})}},[ze,Ne,y,u,qe,Oe,k,yt]),Z(()=>{y&&(Te.current=Ye,fe.current.length=Ye.length)},[y,Ye]),Z(()=>{let e=we.current;if(e&&(e.hasQuery?Me&&Xe.set(`activeIndex`,0):Me===`always`&&Xe.set(`activeIndex`,0),we.current=null),!ze&&!ct)return;let t=Ae||je?Ye:Te.current,n=Xe.state.activeIndex;if(n==null){if(Me===`always`&&t.length>0){Xe.set(`activeIndex`,0);return}Ce.current!==nh&&(Ce.current=nh,Xe.state.onItemHighlighted(void 0,Tu(fu,void 0,{index:-1})));return}if(n>=t.length){Ce.current!==nh&&(Ce.current=nh,Xe.state.onItemHighlighted(void 0,Tu(fu,void 0,{index:-1}))),Xe.set(`activeIndex`,null);return}let r=t[n],i=Ce.current.value,a=i!==th&&Dm(r,i,Xe.state.isItemEqualToValue);(Ce.current.index!==n||!a)&&(Ce.current={value:r,index:n},Xe.state.onItemHighlighted(r,Tu(fu,void 0,{index:n})))},[tt,Me,je,Ae,Ye,ct,ze,Xe]),Z(()=>{if(u===`none`){z(String(Le)!==``);return}z(Oe?Array.isArray(Ne)&&Ne.length>0:Ne!=null)},[z,u,Le,Ne,Oe]),G.useEffect(()=>{Ae&&Me&&Ye.length===0&&yt({activeIndex:null})},[Ae,Me,Ye.length,yt]),im(He,()=>{!ze||He===``||He===String(Ie)||le(!0)}),im(Ne,()=>{if(u!==`none`&&(L(De),R(Ne!==ne.initialValue),re()?oe.commit(Ne):oe.commit(Ne,!0),q&&!ke&&!lt)){let e=Pm(Ne,D);Le!==e&&bt(e,wu(fu))}}),im(Le,()=>{u===`none`&&(L(De),R(Le!==ne.initialValue),re()?oe.commit(Le):oe.commit(Le,!0))}),im(y,()=>{if(!q||ke||lt||ce)return;let e=Pm(Ne,D);Le!==e&&bt(e,wu(fu))});let Dt=Wp({open:ct?!0:ze,onOpenChange:xt,elements:{reference:lt?at:ot,floating:rt}}),Ot,kt;ct||(Ot=v?`grid`:`listbox`,kt=ze?`true`:`false`);let{getReferenceProps:At,getFloatingProps:jt,getItemProps:Mt}=Kp([G.useMemo(()=>{let e=ot?.tagName===`INPUT`,t=ot==null||e,n=t||ze,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=kt,r[`aria-haspopup`]=Ot,r[`aria-controls`]=ze?it?.id:void 0,r[`aria-autocomplete`]=ee),{reference:r,floating:{role:`presentation`}}},[ot,ze,kt,Ot,it?.id,ee]),xp(Dt,{enabled:!h&&!K&&S,event:`mousedown-only`,toggle:!1,touchOpenDelay:lt?0:100,reason:bu}),Tp(Dt,{enabled:!h&&!K&&!ct,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:ct?!0:void 0,outsidePress(e){let t=bd(e);return!yd(at,t)&&!yd(xe.current,t)&&!yd(be.current,t)&&!yd(st,t)}}),tm(Dt,{enabled:!h&&!K,id:U,listRef:fe,activeIndex:tt,selectedIndex:nt,virtual:!0,loopFocus:E,allowEscape:E&&!Me,focusItemOnOpen:ce||u===`none`&&!Me?!1:`auto`,focusItemOnHover:T,resetOnPointerLeave:!w,cols:v?2:1,orientation:v?`horizontal`:void 0,disabledIndices:Bl,onNavigate(e,t){!t&&!ze||pt===`ending`||yt(t?{activeIndex:e,type:ve.current?`keyboard`:`pointer`}:{activeIndex:e})}})]);vf(()=>{Xe.update({inline:j,popupProps:jt(),inputProps:At(),triggerProps:ht,getItemProps:Mt,setOpen:xt,setInputValue:bt,setSelectedValue:St,setIndices:yt,onItemHighlighted:$e,handleSelection:Ct,forceMount:_t,requestSubmit:wt})}),Z(()=>{Xe.update({id:U,selectedValue:Ne,open:ze,mounted:dt,transitionStatus:pt,items:y,inline:j,popupProps:jt(),inputProps:At(),triggerProps:ht,openMethod:mt,getItemProps:Mt,selectionMode:u,name:De,form:p,disabled:K,readOnly:h,required:g,grid:v,isGrouped:Ve,virtualized:A,onOpenChangeComplete:et,openOnInputClick:S,itemToStringLabel:D,modal:N,autoHighlight:Me,isItemEqualToValue:k,submitOnItemClick:I,hasInputValue:ke,requestSubmit:wt})},[Xe,U,Ne,ze,dt,pt,y,jt,At,Mt,mt,ht,u,De,K,h,g,oe,v,Ve,A,et,S,D,N,k,I,ke,j,wt,Me,p]);let Nt=kl(_,oe.inputRef),Pt=G.useMemo(()=>({query:He,hasItems:Ae,filteredItems:Je,flatFilteredItems:Ye}),[He,Ae,Je,Ye]),Ft=G.useMemo(()=>Array.isArray(Ze)?``:Fm(Ze,O),[Ze,O]),It=Oe&&Array.isArray(Ne)&&Ne.length>0,Lt=Oe||u===`none`?void 0:De,Rt=G.useMemo(()=>!Oe||!Array.isArray(Ne)||!De?null:Ne.map(e=>{let t=Fm(e,O);return(0,Y.jsx)(`input`,{type:`hidden`,form:p,name:De,value:t},t)}),[Oe,Ne,p,De,O]),zt=(0,Y.jsxs)(G.Fragment,{children:[e.children,(0,Y.jsx)(`input`,{...oe.getInputValidationProps({onFocus(){if(lt){at?.focus();return}(he.current||at)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=wu(fu,e.nativeEvent);function r(){if(Oe)return;if(u===`none`){R(t!==ne.initialValue),bt(t,n),re()&&oe.commit(t);return}let e=Te.current.find(e=>Fm(e,O).toLowerCase()===t.toLowerCase()||Pm(e,D).toLowerCase()===t.toLowerCase());e!=null&&(R(e!==ne.initialValue),St?.(e,n),re()&&oe.commit(e))}y?r():(_t(),queueMicrotask(r))}}),id:U&&Lt==null?`${U}-hidden-input`:void 0,form:p,name:Lt,autoComplete:F,disabled:K,required:g&&!It,readOnly:h,value:Ft,ref:Nt,style:Lt?If:Ff,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Rt]});return(0,Y.jsx)(vm.Provider,{value:Xe,children:(0,Y.jsx)(ym.Provider,{value:Dt,children:(0,Y.jsx)(bm.Provider,{value:Pt,children:(0,Y.jsx)(xm.Provider,{value:Le,children:zt})})})})}var ih={...mm,...Bm,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null};function ah(e){let t=e.getBoundingClientRect(),n=A(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function oh(e,t){return e??t}var sh=2,ch=G.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=Hm(),{labelId:h}=qm(),g=Sm(),{filteredItems:_}=wm(),v=Q(g,$.selectionMode),y=Q(g,$.disabled),b=Q(g,$.readOnly),x=Q(g,$.required),S=Q(g,$.mounted),C=Q(g,$.popupSide),w=Q(g,$.positionerElement),T=Q(g,$.listElement),E=Q(g,$.triggerProps),D=Q(g,$.triggerElement),O=Q(g,$.inputInsidePopup),k=Q(g,$.id),A=Q(g,$.labelId),j=Q(g,$.open),M=Q(g,$.selectedValue),N=Q(g,$.activeIndex),P=Q(g,$.selectedIndex),ee=Q(g,$.hasSelectedValue),F=Cm(),te=Tm(),I=xf(),L=u||y||a,R=_.length===0,ne=S&&w?C:null;Jm({id:O?o:void 0});let re=O?o??k:o,z=oh(h,A),B=G.useRef(``);function V(e){B.current=e.pointerType}let ie=F.useState(`domReferenceElement`);G.useEffect(()=>{O&&D&&D!==ie&&F.set(`domReferenceElement`,D)},[D,ie,F,O]);let{reference:H}=nm(F,{enabled:!j&&!b&&!y&&v===`single`,listRef:g.state.labelsRef,activeIndex:N,selectedIndex:P,onMatch(e){let t=g.state.valuesRef.current[e];t!==void 0&&g.state.setSelectedValue(t,wu(`none`))}}),{reference:ae}=xp(F,{enabled:!b&&!y,event:`mousedown`}),{buttonRef:oe,getButtonProps:U}=Zu({native:i,disabled:L}),se={...l,open:j,disabled:L,popupSide:ne,listEmpty:R,placeholder:v===`none`?!1:!ee};return ou(`button`,e,{ref:[t,oe,X(e=>{g.set(`triggerElement`,e)})],state:se,props:[E,ae,H,{id:re,tabIndex:O?0:-1,role:O?`combobox`:void 0,"aria-expanded":j?`true`:`false`,"aria-haspopup":O?`dialog`:`listbox`,"aria-controls":j?T?.id:void 0,"aria-required":O&&x||void 0,"aria-labelledby":z,onPointerDown:V,onPointerEnter:V,onFocus(){f(!0),!(L||b)&&I.start(0,g.state.forceMount)},onBlur(e){if(!yd(w,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?te:M;m.commit(e)}},onMouseDown(e){if(L||b||(O||F.set(`domReferenceElement`,e.currentTarget),g.state.forceMount(),B.current!==`touch`&&(g.state.inputRef.current?.focus(),O||e.preventDefault()),j))return;let t=Kd(e.currentTarget);function n(e){if(!D)return;let t=bd(e),n=g.state.positionerElement,r=g.state.listElement;if(yd(D,t)||yd(n,t)||yd(r,t)||t===D)return;let i=ah(D),a=e.clientX>=i.left-sh&&e.clientX<=i.right+sh,o=e.clientY>=i.top-sh&&e.clientY<=i.bottom+sh;a&&o||g.state.setOpen(!1,wu(`cancel-open`,e))}O&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){L||b||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Od(e),g.state.setOpen(!0,wu(Cu,e.nativeEvent)),g.state.inputRef.current?.focus())}},m?m.getValidationProps(c):c,U],stateAttributesMapping:ih})}),lh=G.createContext(void 0);function uh(){return G.useContext(lh)}var dh=G.createContext(void 0);function fh(e){let t=G.useContext(dh);if(t===void 0&&!e)throw Error(Ol(21));return t}var ph=G.forwardRef(function(e,t){let n=Sm(),{buttonRef:r,getButtonProps:i}=Zu({native:!1});return(0,Y.jsx)(`span`,{ref:kl(t,r),...i({onClick:X(e=>{n.state.setOpen(!1,wu(gu,e.nativeEvent,e.currentTarget))})}),"aria-label":`Dismiss`,tabIndex:void 0,style:If})}),mh=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,setFocused:d,validationMode:f,validation:p}=Hm(),{labelId:m}=qm(),h=uh(),g=!!fh(!0),_=Sm(),{filteredItems:v}=wm(),y=Tm(),b=El(),x=Q(_,$.required),S=Q(_,$.disabled),C=Q(_,$.readOnly),w=Q(_,$.name),T=Q(_,$.form),E=Q(_,$.selectionMode),D=Q(_,$.autoHighlight),O=Q(_,$.inputProps),k=Q(_,$.triggerProps),A=Q(_,$.open),j=Q(_,$.mounted),M=Q(_,$.selectedValue),N=Q(_,$.popupSide),P=Q(_,$.positionerElement),ee=Q(_,$.id),F=Q(_,$.inline),te=Q(_,$.modal),I=!!D,L=j&&P?N:null,R=l||S||i,ne=v.length===0,re=g||F,z=!re||te,B=ju(a??(re?void 0:ee)),V=oh(m,void 0),ie=g?Rm:c,[H,ae]=G.useState(null),oe=G.useRef(!1),U=G.useRef(null),se=G.useRef(!1),ce=X(e=>{let t=g||_.state.inline;t&&!_.state.hasInputValue&&_.state.setInputValue(``,wu(fu)),_.update({inputElement:e,inputInsidePopup:t})}),le=g||!p?s:p.getValidationProps(s),ue={...ie,open:A,disabled:R,readOnly:C,popupSide:L,listEmpty:ne};function de(e){if(!h)return;let t,{highlightedChipIndex:n}=h,r=h.chipsRef.current.length;if(n!==void 0){if(e.key===`ArrowLeft`)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===`ArrowRight`)e.preventDefault(),t=n=M.length-1?M.length-2:n;t=r>=0?r:void 0,_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===`ArrowLeft`&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let fe=ou(`input`,e,{state:ue,ref:[t,_.state.inputRef,ce],props:[O,k,{type:`text`,value:e.value??H??y,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":V,disabled:R,readOnly:C,required:E===`none`?x:void 0,form:T,...E===`none`&&w&&{name:w},id:B,onFocus(){if(d(!0),!F||!se.current)return;se.current=!1;let e=U.current;e==null||!Object.hasOwn(_.state.valuesRef.current,e)||_.state.setIndices({activeIndex:e})},onBlur(){u(!0),d(!1);let e=_.state.activeIndex;if(F&&e!==null&&D!==`always`&&(U.current=e,se.current=!0,_.state.setIndices({activeIndex:null})),f===`onBlur`){let e=E===`none`?y:M;p.commit(e)}},onCompositionStart(e){cd||(oe.current=!0,ae(e.currentTarget.value))},onCompositionEnd(e){oe.current=!1;let t=e.currentTarget.value;ae(null),_.state.setInputValue(t,wu(vu,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=oe.current||!n;if(oe.current){let t=e.currentTarget.value;ae(t),t===``&&!_.state.openOnInputClick&&!_.state.inputInsidePopup&&_.state.setOpen(!1,wu(yu,e.nativeEvent));let n=t.trim(),i=I&&n!==``;!C&&!R&&n&&r&&(_.state.setOpen(!0,wu(vu,e.nativeEvent)),I||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!i&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}_.state.setInputValue(e.currentTarget.value,wu(vu,e.nativeEvent));let i=e.currentTarget.value===``,a=wu(yu,e.nativeEvent);i&&!_.state.inputInsidePopup&&(E===`single`&&_.state.setSelectedValue(null,a),_.state.openOnInputClick||_.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!C&&!R&&o&&r&&(_.state.setOpen(!0,wu(vu,e.nativeEvent)),I||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!I&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(R||C||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;_.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){Od(e);let n=od&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Od(e);let i=od&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=wu(Su,e.nativeEvent),r=E===`multiple`?[]:null;_.state.setInputValue(``,n),_.state.setSelectedValue(r,n),!t&&!_.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(h&&e.key===`Backspace`&&t.value===``&&h.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=h.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`}),_.state.setSelectedValue(r,wu(fu,e.nativeEvent));return}let i=h?.highlightedChipIndex!==void 0,a=de(e);if(h?.setHighlightedChipIndex(a),a===void 0?i&&_.state.inputRef.current?.focus():h?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=_.state.activeIndex,n=e.nativeEvent;if(t===null){if(F)return;_.state.setOpen(!1,wu(fu,n));return}Od(e);let r=_.state.listRef.current[t];r&&(_.state.selectionEventRef.current=n,r.click(),_.state.selectionEventRef.current=null)}},onPointerMove(){_.state.keyboardActiveRef.current=!1},onPointerDown(){_.state.keyboardActiveRef.current=!1}},le],stateAttributesMapping:ih});return(0,Y.jsxs)(G.Fragment,{children:[A&&z&&(0,Y.jsx)(ph,{ref:_.state.startDismissRef}),fe]})}),hh={...Hu,...pm},gh=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Hm(),u=Sm(),d=Q(u,$.selectionMode),f=Q(u,$.disabled),p=Q(u,$.readOnly),m=Q(u,$.open),h=Q(u,$.selectedValue),g=Q(u,$.hasSelectionChips),_=Tm(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=Zu({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Gu(v),T={disabled:y,open:m,transitionStatus:C};_f({open:v,ref:u.state.clearRef,onComplete(){v||w(!1)}});let E=ou(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,wu(_u,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(h)?[]:null,wu(_u,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,x],stateAttributesMapping:hh});return o||S?E:null}),_h=G.createContext(null);function vh(){return G.useContext(_h)}function yh(e){let{children:t}=e,{filteredItems:n}=wm(),r=vh(),i=r?r.items:n;return i?(0,Y.jsx)(G.Fragment,{children:i.map(t)}):null}var bh=G.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Sm(),l=Cm(),u=!!fh(!0),{filteredItems:d,hasItems:f}=wm(),p=Q(c,$.selectionMode),m=Q(c,$.grid),h=Q(c,$.popupProps),g=Q(c,$.virtualized),_=p===`multiple`,v=d.length===0,y=X(e=>{c.set(`positionerElement`,e)}),b=X(e=>{c.set(`listElement`,e)}),x=G.useMemo(()=>typeof o==`function`?n||=(0,Y.jsx)(yh,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=ou(`div`,e,{state:S,ref:[t,b,u?null:y],props:[h,{children:x,tabIndex:-1,id:C,role:m?`grid`:`listbox`,"aria-multiselectable":_?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Od(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return g?w:(0,Y.jsx)(xl,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),xh=G.createContext(void 0);function Sh(){let e=G.useContext(xh);if(e===void 0)throw Error(Ol(20));return e}var Ch=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Sm(),a=Q(i,$.mounted),o=Q(i,$.forceMounted);return a||n||o?(0,Y.jsx)(xh.Provider,{value:n,children:(0,Y.jsx)(op,{ref:t,...r})}):null}),wh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:p=`real`}=m(e,t)||{};if(l==null)return{};let g=d(u),_={x:n,y:r},v=h(i),y=f(v),b=await o.getDimensions(l),x=v===`y`,S=x?`top`:`left`,C=x?`bottom`:`right`,w=x?`clientHeight`:`clientWidth`,T=a.reference[y]+a.reference[v]-_[v]-a.floating[y],E=_[v]-a.reference[v],D=p===`real`?await o.getOffsetParent?.(l):s.floating,O=s.floating[w]||a.floating[y];(!O||!await o.isElement?.(D))&&(O=s.floating[w]||a.floating[y]);let k=T/2-E/2,A=O/2-b[y]/2-1,j=Math.min(g[S],A),M=Math.min(g[C],A),N=j,P=O-b[y]-M,te=O/2-b[y]/2+k,I=F(N,te,P),L=!c.arrow&&ee(i)!=null&&te!==I&&a.reference[y]/2-(te({...wh(e),options:[e,t]}),Eh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await j().fn(e)).data?.referenceHidden||a}}}},Dh={sideX:`left`,sideY:`top`};function Oh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function kh(e,t,n){let{rects:r,placement:i}=e;return{side:Oh(t,p(i),n),align:ee(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ah(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,D]=G.useState(null);!h&&C!==null&&D(null);let j=g.side||`flip`,N=g.align||`flip`,P=g.fallbackAxisSide||`end`,F=typeof t==`function`?t:void 0,te=X(F),I=F?te:t,L=Mf(t),R=Mf(h),ne=El()===`rtl`,re=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ne?`left`:`right`,"inline-start":ne?`right`:`left`}[r],z=a===`center`?re:`${re}-${a}`,B=c,V=+(r===`bottom`),ie=+(r===`top`),H=+(r===`right`),ae=+(r===`left`);typeof B==`number`?B={top:B+V,right:B+ae,bottom:B+ie,left:B+H}:B&&={top:(B.top||0)+V,right:(B.right||0)+ae,bottom:(B.bottom||0)+ie,left:(B.left||0)+H};let oe={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:B},U=G.useRef(null),se=Mf(i),ce=Mf(o),le=[_(e=>{let t=kh(e,r,ne),n=typeof se.current==`function`?se.current(t):se.current,i=typeof ce.current==`function`?ce.current(t):ce.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],ue=N===`none`&&j!==`shift`,de=!ue&&(l||v||j===`shift`),fe=j===`none`?null:O({...oe,padding:{top:B.top+1,right:B.right+1,bottom:B.bottom+1,left:B.left+1},mainAxis:!v&&j===`flip`,crossAxis:N===`flip`?`alignment`:!1,fallbackAxisSideDirection:P}),pe=ue?null:k(e=>{let t=Kd(e.elements.floating).documentElement;return{...oe,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:N!==`none`,crossAxis:de,limiter:l||v?void 0:w(e=>{if(!U.current)return{};let{width:t,height:n}=U.current.getBoundingClientRect(),r=T(p(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})}},[oe,l,v,B,N]);j===`shift`||N===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(M({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!R.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=A(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Th(()=>({element:U.current||Kd(U.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=p(a),l=T(c),u=U.current,d=n.arrow?.x||0,f=n.arrow?.y||0,m=u?.clientWidth||0,h=u?.clientHeight||0,g=d+m/2,_=f+h/2,v=Math.abs(n.shift?.y||0),y=o.reference.height/2,b=typeof i==`function`?i(kh(e,r,ne)):i,x=v>b,S={top:`${g}px calc(100% + ${b}px)`,bottom:`${g}px ${-b}px`,left:`calc(100% + ${b}px) ${_}px`,right:`${-b}px ${_}px`}[c],C=`${g}px ${o.reference.y+y-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&x?C:S),{}}},Eh,b),Z(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=G.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:W,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=Gp({rootContext:m,open:f?h:void 0,placement:z,middleware:le,strategy:n,whileElementsMounted:f?void 0:(...e)=>E(...e,me),nodeId:y,externalTree:S}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||Dh,Ee=Se?n:`fixed`,K=G.useMemo(()=>{let e=b?{position:Ee,[we]:ge,[Te]:_e}:{position:Ee,...Ce};return Se||(e.opacity=0),e},[b,Ee,we,ge,Te,_e,Ce,Se]),De=G.useRef(null);Z(()=>{if(!h)return;let e=L.current,t=typeof e==`function`?e():e,n=(jh(t)?t.current:t)||null;n!==De.current&&(he.setPositionReference(n),De.current=n)},[h,he,I,L]),G.useEffect(()=>{if(!h)return;let e=L.current;typeof e!=`function`&&jh(e)&&e.current!==De.current&&(he.setPositionReference(e.current),De.current=e.current)},[h,he,I,L]),G.useEffect(()=>{if(f&&h&&W.domReference&&W.floating)return E(W.domReference,W.floating,ye,me)},[f,h,W,ye,me]);let Oe=p(be),q=Oh(r,Oe,ne),ke=ee(be)||`center`,Ae=!!ve.hide?.referenceHidden;Z(()=>{x&&h&&Se&&D(Oe)},[x,h,Se,Oe]);let je=G.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Me=ve.arrow?.centerOffset!==0;return G.useMemo(()=>({positionerStyles:K,arrowStyles:je,arrowRef:U,arrowUncentered:Me,side:q,align:ke,physicalSide:Oe,anchorHidden:Ae,refs:he,context:xe,isPositioned:Se,update:ye}),[K,je,U,Me,q,ke,Oe,Ae,he,xe,Se,ye])}function jh(e){return e!=null&&`current`in e}function Mh(e){return e===`starting`?$f:Vl}function Nh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ou(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mh(r),i],stateAttributesMapping:hm})}var Ph=20;function Fh(e,t,n,r){let[i,a]=G.useState(!1);Z(()=>{if(!e||!t||n==null){a(!1);return}let r=Kd(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ph)},[e,t,n]),Af(e&&(!t||i),r)}var Ih=G.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ep,style:g,..._}=e,v=Sm(),{filteredItems:y}=wm(),b=Cm(),x=Sh(),S=Q(v,$.modal),C=Q(v,$.open),w=Q(v,$.mounted),T=Q(v,$.openMethod),E=Q(v,$.positionerElement),D=Q(v,$.triggerElement),O=Q(v,$.inputElement),k=Q(v,$.inputGroupElement),A=Q(v,$.inputInsidePopup),j=Q(v,$.transitionStatus),M=y.length===0,N=Ah({anchor:i??(A?D:k??O),floatingRootContext:b,positionMethod:a,mounted:w,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:h,lazyFlip:!0});Fh(C&&S,T===`touch`,E,D);let P={open:C,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};Z(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let ee=X(e=>{v.set(`positionerElement`,e)}),F=Nh(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,ee],hidden:!w,inert:!C});return(0,Y.jsxs)(dh.Provider,{value:N,children:[w&&S&&(0,Y.jsx)(_m,{inert:gm(!C),cutout:k??O??D}),F]})}),Lh={...hm,...Hu},Rh=G.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Sm(),l=fh(),u=Cm(),{filteredItems:d}=wm(),f=Q(c,$.mounted),p=Q(c,$.open),m=Q(c,$.openMethod),h=Q(c,$.transitionStatus),g=Q(c,$.inputInsidePopup),_=Q(c,$.inputElement),v=Q(c,$.modal),y=d.length===0;_f({open:p,ref:c.state.popupRef,onComplete(){p&&c.state.onOpenChangeComplete(!0)}});let b=ou(`div`,e,{state:{open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:y},ref:[t,c.state.popupRef],props:[{role:g?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=bd(e.nativeEvent);m!==`touch`&&(yd(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},Mh(h),s],stateAttributesMapping:Lh}),x=a===void 0?g?e=>e===`touch`?c.state.popupRef.current:_:!1:a,S;S=o??(g?void 0:!1);let C=!g||v;return(0,Y.jsx)(bp,{context:u,disabled:!f,modal:C,openInteractionType:m,initialFocus:x,returnFocus:S,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,Y.jsxs)(G.Fragment,{children:[b,C&&(0,Y.jsx)(ph,{ref:c.state.endDismissRef})]})})}),zh=G.createContext(void 0);function Bh(){let e=G.useContext(zh);if(!e)throw Error(Ol(19));return e}var Vh=G.createContext(!1);function Hh(){return G.useContext(Vh)}var Uh=G.memo(G.forwardRef(function(e,t){let{render:n,className:r,value:i=null,index:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=G.useRef(!1),d=G.useRef(null),f=qu({index:a,textRef:d,indexGuessBehavior:Ku.GuessFromOrder}),p=Sm(),m=Hh(),{flatFilteredItems:h,hasItems:g}=wm(),_=Q(p,$.open),v=Q(p,$.selectionMode),y=Q(p,$.readOnly),b=Q(p,$.virtualized),x=Q(p,$.isItemEqualToValue),S=v!==`none`,C=a??(b?km(h,i,x):f.index),w=f.index!==-1,T=Q(p,$.id),E=Q(p,$.isActive,C),D=Q(p,$.isSelected,i),O=Q(p,$.getItemProps),k=G.useRef(null),A=T!=null&&w?`${T}-${C}`:void 0,j=D&&S;Z(()=>{if(!(w&&(b||a!=null)))return;let e=p.state.listRef.current;return e[C]=k.current,()=>{delete e[C]}},[w,b,C,a,p]),Z(()=>{if(!w||g)return;let e=p.state.valuesRef.current;return e[C]=i,v!==`none`&&p.state.allValuesRef.current.push(i),()=>{delete e[C]}},[w,g,C,i,p,v]),Z(()=>{if(!_){u.current=!1;return}if(!w||g)return;let e=p.state.selectedValue;Dm(i,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,g,_,p,C,i,x]);let M={disabled:o,selected:j,highlighted:E},N=O({active:E,selected:j});N.id=void 0,N.onFocus=void 0;let{getButtonProps:P,buttonRef:ee}=Zu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function F(e){function t(){p.state.handleSelection(e,i)}p.state.submitOnItemClick?(Uu.flushSync(t),p.state.requestSubmit()):t()}let te={id:A,role:m?`gridcell`:`option`,"aria-selected":S?j:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){o||y||F(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(o||y||e.button!==0||t||!E)&&F(e.nativeEvent)}},I=ou(`div`,e,{ref:[ee,t,f.ref,k],state:M,props:[N,te,l,P]}),L=G.useMemo(()=>({selected:j,textRef:d}),[j,d]);return(0,Y.jsx)(zh.Provider,{value:L,children:I})}));function Wh(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,Y.jsx)(rh,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Gh=G.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Bh();return n||r?(0,Y.jsx)(Kh,{...e,ref:t}):null}),Kh=G.memo(G.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Bh(),c=G.useRef(null),{transitionStatus:l,setMounted:u}=Gu(s),d=ou(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Hu});return _f({open:s,ref:c,onComplete(){s||u(!1)}}),d}));function qh(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30`,`h-9 min-w-0 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50`,`has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Jh=s(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3`,"block-end":`order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3`}},defaultVariants:{align:`inline-start`}});function Yh(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=I(Jh({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,Y.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Xh,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Xh(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Zh=s(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Qh(e){let t=(0,Ce.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,l=a===void 0?`ghost`:a,u=o===void 0?`xs`:o,d;t[6]!==n||t[7]!==u?(d=I(Zh({size:u}),n),t[6]=n,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==r||t[10]!==u||t[11]!==d||t[12]!==s||t[13]!==l?(f=(0,Y.jsx)(c,{type:s,"data-size":u,variant:l,className:d,...r}),t[9]=r,t[10]=u,t[11]=d,t[12]=s,t[13]=l,t[14]=f):f=t[14],f}function $h(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(ue,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var eg=Wh;function tg(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=I(`[&_svg:not([class*='size-'])]:size-4`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(ne,{"data-slot":`combobox-trigger-icon`,className:`pointer-events-none size-4 text-muted-foreground`}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,Y.jsxs)(ch,{"data-slot":`combobox-trigger`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function ng(e){let t=(0,Ce.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Qh,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=I(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(l,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,Y.jsx)(gh,{"data-slot":`combobox-clear`,render:i,className:a,...r,children:o}),t[7]=r,t[8]=a,t[9]=s):s=t[9],s}function rg(e){let t=(0,Ce.c)(28),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,disabled:a,showTrigger:o,showClear:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?!1:a,l=o===void 0?!0:o,u=s===void 0?!1:s,d;t[7]===r?d=t[8]:(d=I(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,Y.jsx)($h,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,Y.jsx)(mh,{render:f,...i}),t[11]=i,t[12]=f,t[13]=p):p=t[13];let m;t[14]!==c||t[15]!==l?(m=l&&(0,Y.jsx)(Qh,{size:`icon-xs`,variant:`ghost`,asChild:!0,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:c,children:(0,Y.jsx)(tg,{})}),t[14]=c,t[15]=l,t[16]=m):m=t[16];let h;t[17]!==c||t[18]!==u?(h=u&&(0,Y.jsx)(ng,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,Y.jsxs)(Yh,{align:`inline-end`,children:[m,h]}),t[20]=m,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==n||t[24]!==d||t[25]!==p||t[26]!==g?(_=(0,Y.jsxs)(qh,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function ig(e){let t=(0,Ce.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,anchor:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`bottom`:a,u=o===void 0?6:o,d=s===void 0?`start`:s,f=c===void 0?0:c,p=!!n,m;t[8]===r?m=t[9]:(m=I(`group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[8]=r,t[9]=m);let h;t[10]!==i||t[11]!==p||t[12]!==m?(h=(0,Y.jsx)(Rh,{"data-slot":`combobox-content`,"data-chips":p,className:m,...i}),t[10]=i,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;return t[14]!==d||t[15]!==f||t[16]!==n||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,Y.jsx)(Ch,{children:(0,Y.jsx)(Ih,{side:l,sideOffset:u,align:d,alignOffset:f,anchor:n,className:`isolate z-50`,children:h})}),t[14]=d,t[15]=f,t[16]=n,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}function ag(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(bh,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function og(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=I(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(Gh,{"data-slot":`combobox-item-indicator`,render:(0,Y.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Y.jsx)(R,{className:`pointer-events-none size-4 pointer-coarse:size-5`})}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,Y.jsxs)(Uh,{"data-slot":`combobox-item`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}var sg=[`npm`,`pnpm`,`yarn`,`bun`];function cg(e){let t=(0,Ce.c)(67),{options:n,baseUrl:r,className:i,onValueChange:a}=e,o=r===void 0?``:r,{selectedManager:s,setSelectedManager:l}=H(),[u,d]=(0,G.useState)(n[0]?.value||``),[f,p]=(0,G.useState)(``),m;t[0]===f?m=t[1]:(m=e=>e.label.toLowerCase().includes(f.toLowerCase())||e.value.toLowerCase().includes(f.toLowerCase()),t[0]=f,t[1]=m);let h=n.filter(m),g;if(t[2]!==n||t[3]!==u){let e;t[5]===u?e=t[6]:(e=e=>e.value===u,t[5]=u,t[6]=e),g=n.find(e),t[2]=n,t[3]=u,t[4]=g}else g=t[4];let _=g,v={bun:`bunx --bun shadcn@latest add ${o}/r/${_?.code}.json`,npm:`npx shadcn@latest add ${o}/r/${_?.code}.json`,pnpm:`pnpm dlx shadcn@latest add ${o}/r/${_?.code}.json`,yarn:`yarn dlx shadcn@latest add ${o}/r/${_?.code}.json`},y=sg.filter(e=>v[e]),b=v[s]??``,{highlightedCode:x}=V(b,`bash`),{copy:S}=ie(),[C,w]=(0,G.useState)(!1),T,E;t[7]===C?(T=t[8],E=t[9]):(T=()=>{if(C){let e=setTimeout(()=>{w(!1)},2e3);return()=>clearTimeout(e)}},E=[C],t[7]=C,t[8]=T,t[9]=E),(0,G.useEffect)(T,E);let D=async()=>{await S(b),se.success(`${s} command copied to clipboard!`),w(!0)},O;t[10]===i?O=t[11]:(O=I(`group/package-manager relative min-w-0 rounded-lg border`,i),t[10]=i,t[11]=O);let k;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(ae,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),t[12]=k):k=t[12];let A=oe,j;t[13]===l?j=t[14]:(j=e=>l(e),t[13]=l,t[14]=j);let M=y.map(ug),N;t[15]!==A||t[16]!==s||t[17]!==j||t[18]!==M?(N=(0,Y.jsx)(`div`,{children:(0,Y.jsx)(A,{value:s,onChange:j,tabs:M,tabsClassName:`p-1 bg-primary/10 shrink-0`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `})}),t[15]=A,t[16]=s,t[17]=j,t[18]=M,t[19]=N):N=t[19];let P;t[20]!==N||t[21]!==k?(P=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[k,N]}),t[20]=N,t[21]=k,t[22]=P):P=t[22];let ee=eg,F;t[23]===a?F=t[24]:(F=e=>{e&&(d(e),a?.(e))},t[23]=a,t[24]=F);let te;t[25]!==n||t[26]!==u?(te=n.find(e=>e.value===u)?.label||`Select option...`,t[25]=n,t[26]=u,t[27]=te):te=t[27];let L;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>p(e.target.value),t[28]=L):L=t[28];let ne;t[29]!==f||t[30]!==te?(ne=(0,Y.jsx)(rg,{placeholder:te,value:f,onChange:L,showTrigger:!0,showClear:!1,className:`h-8 max-w-42 min-w-0`}),t[29]=f,t[30]=te,t[31]=ne):ne=t[31];let z=ig,B=ag,U=h.map(lg),ce;t[32]!==B||t[33]!==U?(ce=(0,Y.jsx)(B,{children:U}),t[32]=B,t[33]=U,t[34]=ce):ce=t[34];let le;t[35]!==z||t[36]!==ce?(le=(0,Y.jsx)(z,{children:ce}),t[35]=z,t[36]=ce,t[37]=le):le=t[37];let ue;t[38]!==ee||t[39]!==u||t[40]!==F||t[41]!==ne||t[42]!==le?(ue=(0,Y.jsxs)(ee,{value:u,onValueChange:F,children:[ne,le]}),t[38]=ee,t[39]=u,t[40]=F,t[41]=ne,t[42]=le,t[43]=ue):ue=t[43];let de=C?`opacity-100`:`pointer-events-none opacity-0`,fe;t[44]===de?fe=t[45]:(fe=I(`text-xs text-green-500 transition-opacity duration-200`,de),t[44]=de,t[45]=fe);let pe;t[46]===fe?pe=t[47]:(pe=(0,Y.jsx)(`span`,{className:fe,children:`Copied`}),t[46]=fe,t[47]=pe);let me;t[48]===C?me=t[49]:(me=C?(0,Y.jsx)(R,{className:`size-4`}):(0,Y.jsx)(re,{className:`size-4`}),t[48]=C,t[49]=me);let he;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`}),t[50]=he):he=t[50];let W;t[51]!==D||t[52]!==me?(W=(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:D,className:`transition-opacity hover:opacity-100`,children:[me,he]}),t[51]=D,t[52]=me,t[53]=W):W=t[53];let ge;t[54]!==pe||t[55]!==W?(ge=(0,Y.jsxs)(`div`,{className:`flex w-22 items-center justify-end gap-1`,children:[pe,W]}),t[54]=pe,t[55]=W,t[56]=ge):ge=t[56];let _e;t[57]!==P||t[58]!==ue||t[59]!==ge?(_e=(0,Y.jsxs)(`div`,{className:`flex items-center justify-between border-b bg-muted/50 px-3 py-2`,children:[P,ue,ge]}),t[57]=P,t[58]=ue,t[59]=ge,t[60]=_e):_e=t[60];let ve;t[61]===x?ve=t[62]:(ve=(0,Y.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,Y.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,Y.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,Y.jsx)(`span`,{dangerouslySetInnerHTML:{__html:x}})})})}),t[61]=x,t[62]=ve);let ye;return t[63]!==_e||t[64]!==ve||t[65]!==O?(ye=(0,Y.jsxs)(`div`,{className:O,children:[_e,ve]}),t[63]=_e,t[64]=ve,t[65]=O,t[66]=ye):ye=t[66],ye}function lg(e){return(0,Y.jsx)(og,{value:e.value,children:e.label},e.value)}function ug(e){return{id:e,label:e}}Aa.registerPlugin(tl);function dg(e){let n=(0,Ce.c)(28),{animations:r,categories:i}=e,{url:a}=t().props,[o,s]=(0,G.useState)(r[0]?.name??`animate-bounce`),c;n[0]===r?c=n[1]:(c=r.map(pg),n[0]=r,n[1]=c);let l=c,u;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(le,{as:`h1`,title:`Animate.css Animations`,description:`Click any animation card to view and copy the code. 100+ - CSS-based animations available.`}),n[2]=u):u=n[2];let d;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(le,{as:`h2`,title:`About`,description:`is a library of CSS animations that you can use directly in - your components. Simply add the animation class name to any - element to animate it.`}),n[3]=d):d=n[3];let f,p;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsxs)(`ul`,{className:`mb-6 list-disc pl-6 text-muted-foreground`,children:[(0,Y.jsx)(`li`,{children:`100+ built-in animation types`}),(0,Y.jsx)(`li`,{children:`Simple CSS class-based animations`}),(0,Y.jsx)(`li`,{children:`Works with any HTML element`}),(0,Y.jsx)(`li`,{children:`Fully customizable duration and timing`}),(0,Y.jsx)(`li`,{children:`Repeat and loop support`}),(0,Y.jsx)(`li`,{children:`Works with Tailwind CSS`})]}),p=(0,Y.jsx)(`h2`,{className:`mt-8 mb-2 text-2xl font-semibold text-foreground`,children:`Installation`}),n[4]=f,n[5]=p):(f=n[4],p=n[5]);let m=a,h;n[6]!==l||n[7]!==m?(h=(0,Y.jsx)(cg,{className:`my-4`,options:l,baseUrl:m,onValueChange:s}),n[6]=l,n[7]=m,n[8]=h):h=n[8];let g;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`h2`,{className:`mt-8 mb-4 text-2xl font-semibold text-foreground`,children:`Usage`}),n[9]=g):g=n[9];let _;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(`h3`,{className:`mb-2 text-lg font-medium text-foreground`,children:`Basic Usage`}),n[10]=_):_=n[10];let v=`
- Bouncing Content -
`,y;n[11]===v?y=n[12]:(y=(0,Y.jsx)(`div`,{className:`space-y-4`,children:(0,Y.jsxs)(`div`,{children:[_,(0,Y.jsx)(dl,{language:`html`,code:v})]})}),n[11]=v,n[12]=y);let b,x,S,C;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Y.jsx)(`h2`,{className:`mt-8 mb-2 text-2xl font-semibold text-foreground`,children:`Installation all animations`}),x=(0,Y.jsx)(U,{code:`animate-css/animate-all`}),S=(0,Y.jsx)(`h2`,{className:`mt-8 mb-4 text-2xl font-semibold text-foreground`,children:`Code Examples`}),C=(0,Y.jsx)(`p`,{className:`text-balance text-muted-foreground`,children:`Click on any animation card below to view and copy the code.`}),n[13]=b,n[14]=x,n[15]=S,n[16]=C):(b=n[13],x=n[14],S=n[15],C=n[16]);let w;n[17]!==y||n[18]!==h?(w=(0,Y.jsxs)(`div`,{className:`mb-12`,children:[d,f,p,h,g,y,b,x,S,C]}),n[17]=y,n[18]=h,n[19]=w):w=n[19];let T;if(n[20]!==r||n[21]!==i){let e;n[23]===r?e=n[24]:(e=e=>(0,Y.jsxs)(`section`,{className:`mb-12`,children:[(0,Y.jsx)(`h2`,{className:`mb-6 text-2xl font-semibold text-foreground`,children:e}),(0,Y.jsx)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3`,children:r.filter(t=>t.category===e&&t.name!==`animate-all`).map(fg)})]},e),n[23]=r,n[24]=e),T=i.map(e),n[20]=r,n[21]=i,n[22]=T}else T=n[22];let E;return n[25]!==w||n[26]!==T?(E=(0,Y.jsxs)(z,{className:`pt-4`,children:[u,w,T]}),n[25]=w,n[26]=T,n[27]=E):E=n[27],E}function fg(e){return(0,Y.jsx)(mg,{anim:e},e.name)}function pg(e){return{value:e.name,label:e.text,code:`animate-css/`+e.name}}dg.layout=B;function mg(e){let t=(0,Ce.c)(45),{anim:n}=e,r=`
`,i=` ${n.text}`,a;t[0]!==r||t[1]!==i?(a=[r,i,`
`],t[0]=r,t[1]=i,t[2]=a):a=t[2];let o=a.join(` -`),s=(0,G.useRef)(null),l=(0,G.useRef)(null),{copy:u}=ie(),d,f;t[3]===n.name?(d=t[4],f=t[5]):(d=()=>{l.current&&s.current&&tl.create({trigger:s.current,start:`top 80%`,end:`bottom 20%`,onEnter:()=>l.current?.classList.add(n.name),onLeave:()=>l.current?.classList.remove(n.name),onEnterBack:()=>l.current?.classList.add(n.name),onLeaveBack:()=>l.current?.classList.remove(n.name),markers:!1})},f=[n.name],t[3]=n.name,t[4]=d,t[5]=f),Ia(d,f);let p;t[6]===n.title?p=t[7]:(p=(0,Y.jsx)(fe,{children:(0,Y.jsx)(de,{className:`flex items-baseline justify-between overflow-clip capitalize`,children:(0,Y.jsx)(`span`,{children:n.title})})}),t[6]=n.title,t[7]=p);let m;t[8]===n.text?m=t[9]:(m=(0,Y.jsx)(pe,{className:`aspect-video overflow-hidden`,children:(0,Y.jsx)(`div`,{className:`grid aspect-video max-w-full place-items-center overflow-clip rounded-md bg-radial from-muted to-muted/50 text-center font-bebas-neue! text-sm text-[clamp(1.5rem,10vw+2rem,3rem)] font-medium text-foreground/40 transition-all delay-300 group-hover:repeat-infinite!`,children:(0,Y.jsx)(`div`,{ref:l,children:n.text})})}),t[8]=n.text,t[9]=m);let h;t[10]!==p||t[11]!==m?(h=(0,Y.jsx)(he,{asChild:!0,children:(0,Y.jsxs)(me,{ref:s,className:`group cursor-pointer transition-colors hover:bg-muted/50`,children:[p,m]})}),t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;t[13]===n.name?g=t[14]:(g=n.name.replace(`animate-`,``),t[13]=n.name,t[14]=g);let _;t[15]===g?_=t[16]:(_=(0,Y.jsx)(ve,{className:`capitalize`,children:g}),t[15]=g,t[16]=_);let v;t[17]===n.category?v=t[18]:(v=(0,Y.jsxs)(W,{children:[`Animation type: `,n.category]}),t[17]=n.category,t[18]=v);let y;t[19]!==_||t[20]!==v?(y=(0,Y.jsxs)(ge,{children:[_,v]}),t[19]=_,t[20]=v,t[21]=y):y=t[21];let b=`grid aspect-video w-full place-items-center text-center font-bebas-neue text-[clamp(0.75rem,9vw+2rem,5rem)] font-medium delay-1000 ${n.name} repeat-infinite`,x;t[22]!==n.text||t[23]!==b?(x=(0,Y.jsx)(`div`,{className:b,children:n.text}),t[22]=n.text,t[23]=b,t[24]=x):x=t[24];let S;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(Se,{className:`size-4`})}),t[25]=S):S=t[25];let C;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(be,{className:`size-4`})}),t[26]=C):C=t[26];let w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Y.jsx)(`div`,{className:`absolute inset-y-0 right-0 border-l border-border/25 bg-background/10 backdrop-blur-sm`,children:(0,Y.jsxs)(`div`,{className:`sticky top-0 flex shrink-0 flex-col items-center justify-start space-y-4 p-4`,children:[S,C,(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(xe,{className:`size-4`})})]})}),t[27]=w):w=t[27];let T;t[28]===x?T=t[29]:(T=(0,Y.jsx)(`div`,{className:`flex items-start rounded-md border border-border bg-card/30`,children:(0,Y.jsxs)(`div`,{className:`relative flex-1 overflow-hidden rounded-md bg-radial from-muted to-muted/50 py-8`,children:[x,w]})}),t[28]=x,t[29]=T);let E=`animate-css/${n.name}`,D;t[30]===E?D=t[31]:(D=(0,Y.jsx)(U,{code:E}),t[30]=E,t[31]=D);let O;t[32]===o?O=t[33]:(O=(0,Y.jsx)(dl,{variant:`default`,language:`html`,code:o,showCopyButton:!0}),t[32]=o,t[33]=O);let k;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none sticky inset-x-0 -bottom-8 h-20 bg-linear-0 from-background to-transparent`}),t[34]=k):k=t[34];let A;t[35]!==T||t[36]!==D||t[37]!==O?(A=(0,Y.jsxs)(`div`,{className:`no-scrollbar relative -mx-4 max-h-[60vh] overflow-y-auto px-4 pt-1 pb-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,children:[T,D,O,k]}),t[35]=T,t[36]=D,t[37]=O,t[38]=A):A=t[38];let j;t[39]!==y||t[40]!==A?(j=(0,Y.jsxs)(_e,{className:`max-h-[80vh] w-full sm:max-w-3xl`,children:[y,A]}),t[39]=y,t[40]=A,t[41]=j):j=t[41];let M;return t[42]!==j||t[43]!==h?(M=(0,Y.jsxs)(ye,{children:[h,j]}),t[42]=j,t[43]=h,t[44]=M):M=t[44],M}export{dg as default}; \ No newline at end of file diff --git a/public/build/assets/animate-css-DjHmIVWH.js b/public/build/assets/animate-css-DjHmIVWH.js new file mode 100644 index 0000000..cfc604e --- /dev/null +++ b/public/build/assets/animate-css-DjHmIVWH.js @@ -0,0 +1,7 @@ +import{_ as e,f as t,i as n,m as r,p as i,r as a,x as o}from"./wayfinder-DGNmxDkm.js";import{n as s,t as c}from"./button-CJIRvoa4.js";import{p as l}from"./dist-Cw-hV1_S.js";import{C as u,D as d,E as f,O as p,S as m,T as h,_ as g,a as _,b as v,c as y,d as b,f as x,g as S,h as C,i as w,k as T,l as E,m as D,n as O,o as k,p as A,r as j,s as M,u as N,v as P,w as ee,x as F,y as te}from"./floating-ui.react-dom-DuoUqJja.js";import{n as I,t as L}from"./createLucideIcon-BN-jDSEO.js";import{t as R}from"./check-CWekFaHD.js";import{t as ne}from"./chevron-down-BXFNulw6.js";import{t as re}from"./copy-DVuxs_qN.js";import{a as z,t as B}from"./main-layout-BDfUDiNw.js";import{a as V,i as ie,n as H,o as ae,r as oe,t as U}from"./registry-installer-BbAk2A5r.js";import{t as se}from"./shim-B1jYWA9-.js";import{A as ce,T as le,r as ue}from"./app-0l60ScAC.js";import"./textarea-CdB2elwd.js";import{a as de,n as fe,o as pe,t as me}from"./card-D_BkPXgE.js";import{c as he,i as W,o as ge,r as _e,s as ve,t as ye}from"./dialog-D0ulBexn.js";var be=L(`Heart`,[[`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`,key:`c3ymky`}]]),xe=L(`Share`,[[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}],[`polyline`,{points:`16 6 12 2 8 6`,key:`m901s6`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`15`,key:`1p0rca`}]]),Se=L(`ThumbsUp`,[[`path`,{d:`M7 10v12`,key:`1qc93n`}],[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}]]),G=o(r()),Ce=n();function we(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ee={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},K={duration:.5,overwrite:!1,delay:0},De,Oe,q,ke=1e8,Ae=1/ke,je=Math.PI*2,Me=je/4,Ne=0,Pe=Math.sqrt,Fe=Math.cos,Ie=Math.sin,Le=function(e){return typeof e==`string`},Re=function(e){return typeof e==`function`},ze=function(e){return typeof e==`number`},Be=function(e){return e===void 0},Ve=function(e){return typeof e==`object`},He=function(e){return e!==!1},Ue=function(){return typeof window<`u`},We=function(e){return Re(e)||Le(e)},Ge=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},Ke=Array.isArray,qe=/random\([^)]+\)/g,Je=/,\s*/g,Ye=/(?:-?\.?\d|\.)+/gi,Xe=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ze=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$e=/[+-]=-?[.\d]+/,et=/[^,'"\[\]\s]+/gi,tt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,nt,rt,it,at,ot={},st={},ct,lt=function(e){return(st=Vt(e,ot))&&si},ut=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},dt=function(e,t){return!t&&console.warn(e)},ft=function(e,t){return e&&(ot[e]=t)&&st&&(st[e]=t)||ot},pt=function(){return 0},mt={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},gt={suppressEvents:!0},_t={},vt=[],yt={},bt,xt={},St={},Ct=30,wt=[],Tt=``,Et=function(e){var t=e[0],n,r;if(Ve(t)||Re(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=wt.length;r--&&!wt[r].targetTest(t););n=wt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _r(e[r],n)))||e.splice(r,1);return e},Dt=function(e){return e._gsap||Et(Tn(e))[0]._gsap},Ot=function(e,t,n){return(n=e[t])&&Re(n)?e[t]():Be(n)&&e.getAttribute&&e.getAttribute(t)||n},kt=function(e,t){return(e=e.split(`,`)).forEach(t)||e},At=function(e){return Math.round(e*1e5)/1e5||0},jt=function(e){return Math.round(e*1e7)/1e7||0},Mt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Nt=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},qt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Jt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Yt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Xt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Zt=function(e,t,n,r){return e._startAt&&(Oe?e._startAt.revert(ht):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Qt=function e(t){return!t||t._ts&&e(t.parent)},$t=function(e){return e._repeat?en(e._tTime,e=e.duration()+e._rDelay)*e:0},en=function(e,t){var n=Math.floor(e=jt(e/t));return e&&n===e?n-1:n},tn=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},nn=function(e){return e._end=jt(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ae)||0))},rn=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=jt(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),nn(e),n._dirty||Yt(n,e)),e},an=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startAe)&&t.render(n,!0)),Yt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Ae}},on=function(e,t,n,r){return t.parent&&Jt(t),t._start=jt((ze(n)?n:n||e!==nt?gn(e,n,t):e._time)+t._delay),t._end=jt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Kt(e,t,`_first`,`_last`,e._sort?`_start`:0),un(t)||(e._recent=t),r||an(e,t),e._ts<0&&rn(e,e._tTime),e},sn=function(e,t){return(ot.ScrollTrigger||ut(`scrollTrigger`,t))&&ot.ScrollTrigger.create(t,e)},cn=function(e,t,n,r,i){if(Er(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!Oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&bt!==rr.frame)return vt.push(e),e._lazy=[i,r],1},ln=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},un=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},dn=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&ln(e)&&!(!e._initted&&un(e))||(e._ts<0||e._dp._ts<0)&&!un(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=yn(0,e._tDur,t),l=en(s,o),e._yoyo&&l&1&&(a=1-a),l!==en(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||Oe||r||e._zTime===Ae||!t&&e._zTime){if(!e._initted&&cn(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?Ae:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Zt(e,t,n,!0),e._onUpdate&&!n&&Hn(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Hn(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Jt(e,1),!n&&!Oe&&(Hn(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},fn=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&rn(e,e._tTime=e._tDur*o),e.parent&&nn(e),n||Yt(e.parent,e),e},mn=function(e){return e instanceof yr?Yt(e):pn(e,e._dur)},hn={_start:0,endTime:pt,totalDuration:pt},gn=function e(t,n,r){var i=t.labels,a=t._recent||hn,o=t.duration()>=ke?a.endTime(!1):t._dur,s,c,l;return Le(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(Ke(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},_n=function(e,t,n){var r=ze(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=He(s.vars.inherit)&&s.parent;a.immediateRender=He(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Nr(t[0],a,t[i+1])},vn=function(e,t){return e||e===0?t(e):t},yn=function(e,t,n){return nt?t:n},bn=function(e,t){return!Le(e)||!(t=tt.exec(e))?``:t[1]},xn=function(e,t,n){return vn(n,function(n){return yn(e,t,n)})},Sn=[].slice,Cn=function(e,t){return e&&Ve(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Ve(e[0]))&&!e.nodeType&&e!==rt},wn=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return Le(e)&&!t||Cn(e,1)?(r=n).push.apply(r,Tn(e)):n.push(e)})||n},Tn=function(e,t,n){return q&&!t&&q.selector?q.selector(e):Le(e)&&!n&&(it||!ir())?Sn.call((t||at).querySelectorAll(e),0):Ke(e)?wn(e,n):Cn(e)?Sn.call(e,0):e?[e]:[]},En=function(e){return e=Tn(e)[0]||dt(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Tn(t,n.querySelectorAll?n:n===e?dt(`Invalid scope`)||at.createElement(`div`):e)}},Dn=function(e){return e.sort(function(){return .5-Math.random()})},On=function(e){if(Re(e))return e;var t=Ve(e)?e:{each:e},n=fr(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return Le(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,ke])[1],!S){for(b=-ke;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=bn(t.amount||t.each)||0,n=n&&f<0?dr(n):n}return f=(p[e]-p.min)/p.max||0,jt(p.b+(n?n(f):f)*p.v)+p.u}},kn=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=jt(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(ze(n)?0:bn(n))}},An=function(e,t){var n=Ke(e),r,i;return!n&&Ve(e)&&(r=n=e.radius||ke,e.values?(e=Tn(e.values),(i=!ze(e[0]))&&(r*=r)):e=kn(e.increment)),vn(t,n?Re(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=ke,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},Rn=function(e){return e.replace(qe,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(Je);return jn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},zn=function(e,t,n,r,i){var a=t-e,o=r-n;return vn(i,function(t){return n+((t-e)/a*o||0)})},Bn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=Le(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(Ke(t)&&!Ke(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Hn=function(e,t,n){var r=e.vars,i=r[t],a=q,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&vt.length&&Pt(),o&&(q=o),l=s?i.apply(c,s):i.call(c),q=a,l},Un=function(e){return Jt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Oe),e.progress()<1&&Hn(e,`onInterrupt`),e},Wn,Gn=[],Kn=function(e){if(e)if(e=!e.name&&e.default||e,Ue()||e.headless){var t=e.name,n=Re(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:pt,render:Hr,add:xr,kill:Wr,modifier:Ur,rawVars:0},a={targetTest:0,get:0,getSetter:Rr,aliases:{},register:0};if(ir(),e!==r){if(xt[t])return;zt(r,zt(Ut(e,i),a)),Vt(r.prototype,Vt(i,Ut(e,a))),xt[r.prop=t]=r,e.targetTest&&(wt.push(r),_t[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ft(t,r),e.register&&e.register(si,r,qr)}else Gn.push(e)},qn=255,Jn={aqua:[0,qn,qn],lime:[0,qn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,qn],navy:[0,0,128],white:[qn,qn,qn],olive:[128,128,0],yellow:[qn,qn,0],orange:[qn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[qn,0,0],pink:[qn,192,203],cyan:[0,qn,qn],transparent:[qn,qn,qn,0]},Yn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*qn+.5|0},Xn=function(e,t,n){var r=e?ze(e)?[e>>16,e>>8&qn,e&qn]:0:Jn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jn[e])r=Jn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&qn,r&qn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&qn,e&qn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Ye),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yn(s+1/3,i,a),r[1]=Yn(s,i,a),r[2]=Yn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Xe),n&&r.length<4&&(r[3]=1),r}else r=e.match(Ye)||Jn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/qn,a=r[1]/qn,o=r[2]/qn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),ir=function(){return!nr&&rr.wake()},ar={},or=/^[\d.\-M][\d.\-,\s]/,sr=/["']/g,cr=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cr(t[1])]:lr(e).split(`,`).map(Lt)):ar._CE&&or.test(e)?ar._CE(``,e):n},dr=function(e){return function(t){return 1-e(1-t)}},fr=function(e,t){return e&&(Re(e)?e:ar[e]||ur(e))||t},pr=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return kt(e,function(e){for(var t in ar[e]=ot[e]=i,ar[a=e.toLowerCase()]=n,i)ar[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=ar[e+`.`+t]=i[t]}),i},mr=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hr=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/je*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Ie((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mr(s);return a=je/a,c.config=function(n,r){return e(t,n,r)},c},gr=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mr(r);return i.config=function(n){return e(t,n)},i};kt(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pr(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),ar.Linear.easeNone=ar.none=ar.Linear.easeIn,pr(`Elastic`,hr(`in`),hr(`out`),hr()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,pn(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(ir(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(rn(this,e),!n._dp||n.parent||an(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&on(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Ae||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),It(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+$t(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+$t(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?en(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-Ae?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?tn(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Ae?0:this._rts,this.totalTime(yn(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),nn(this),Xt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ir(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ae&&(this._tTime-=Ae)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=jt(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&on(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(He(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?tn(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=gt);var t=Oe;return Oe=e,Ft(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),Oe=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,mn(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,mn(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(gn(this,e),He(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,He(t)),this._dur||(this._zTime=-Ae),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-Ae:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ae,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=Re(e)?e:Rt,a=function(){var e=t.then;t.then=null,n&&n(),Re(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Un(this)},e}();zt(vr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ae,_prom:0,_ps:!1,_rts:1});var yr=function(e){Te(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=He(t.sortChildren),nt&&on(t.parent||nt,we(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&sn(we(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return _n(0,arguments,this),this},n.from=function(e,t,n){return _n(1,arguments,this),this},n.fromTo=function(e,t,n,r){return _n(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Wt(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Nr(e,t,gn(this,n),1),this},n.call=function(e,t,n){return on(this,Nr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Nr(e,n,gn(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Wt(n).immediateRender=He(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Wt(r).immediateRender=He(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:jt(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==nt&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=jt(o%f),o===i?(d=this._repeat,c=a):(_=jt(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=en(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:jt(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Hn(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=fn(this,jt(r),jt(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Hn(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-Ae);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||Oe&&Ft(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-Ae:Ae);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-Ae)._zTime=c>=r?1:-1,this._ts))return this._start=g,nn(this),this.render(e,t,n);this._onUpdate&&!t&&Hn(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Jt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Hn(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(ze(t)||(t=gn(this,t,e)),!(e instanceof vr)){if(Ke(e))return e.forEach(function(e){return n.add(e,t)}),this;if(Le(e))return this.addLabel(e,t);if(Re(e))e=Nr.delayedCall(0,e);else return this}return this===e?this:on(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-ke);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Nr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return Le(e)?this.removeLabel(e):Re(e)?this.killTweensOf(e):(e.parent===this&&qt(this,e),e===this._recent&&(this._recent=this._last),Yt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jt(rr.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=gn(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Nr.delayedCall(0,t||pt,n);return r.data=`isPause`,this._hasPause=1,on(this,r,gn(this,e))},n.removePause=function(e){var t=this._first;for(e=gn(this,e);t;)t._start===e&&t.data===`isPause`&&Jt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)wr!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Tn(e),i=this._first,a=ze(t),o;i;)i instanceof Nr?Nt(i._targets,r)&&(a?(!wr||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=gn(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Nr.to(n,zt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||Ae,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&pn(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,zt({startAt:{time:gn(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Vn(this,gn(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Vn(this,gn(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Ae)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=jt(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Yt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Yt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=ke,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,on(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=jt(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;pn(n,n===nt&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(nt._ts&&(It(nt,tn(e,nt)),bt=rr.frame),rr.frame>=Ct){Ct+=Ee.autoSleep||120;var t=nt._first;if((!t||!t._ts)&&Ee.autoSleep&&rr._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rr.sleep()}}},t}(vr);zt(yr.prototype,{_lock:0,_hasPause:0,_forcing:0});var br=function(e,t,n,r,i,a,o){var s=new qr(this._pt,e,t,0,1,Vr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Rn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Qe)||[];u=Qe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Mt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Qe.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||kr(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-Ae&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=en(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(jt(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(cn(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Jt(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Hn(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nr||rr.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Er(this,a),o=this._ease(a/this._dur),Dr(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(rn(this,0),this.parent||Kt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Un(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Oe),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,wr&&wr.vars.overwrite!==!0)._first||Un(this),this.parent&&n!==this.timeline.totalDuration()&&pn(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Tn(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Gt(r,i))return t===`all`&&(this._pt=0),Un(this);for(s=this._op=this._op||[],t!==`all`&&(Le(t)&&(d={},kt(t,function(e){return d[e]=1}),t=d),t=Or(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&qt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Un(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return _n(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return _n(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return nt.killTweensOf(e,t,n)},t}(vr);zt(Nr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),kt(`staggerTo,staggerFrom,staggerFromTo`,function(e){Nr[e]=function(){var t=new yr,n=Sn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Pr=function(e,t,n){return e[t]=n},Fr=function(e,t,n){return e[t](n)},Ir=function(e,t,n,r){return e[t](r.fp,n)},Lr=function(e,t,n){return e.setAttribute(t,n)},Rr=function(e,t){return Re(e[t])?Fr:Be(e[t])&&e.setAttribute?Lr:Pr},zr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Br=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Vr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Hr=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Ur=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Wr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?qt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Gr=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Kr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},qr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||zr,this.d=o||this,this.set=s||Pr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Gr,this.m=e,this.mt=n,this.tween=t},e}();kt(Tt+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return _t[e]=1}),ot.TweenMax=ot.TweenLite=Nr,ot.TimelineLite=ot.TimelineMax=yr,nt=new yr({sortChildren:!1,defaults:K,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),Ee.stringFilter=tr;var Jr=[],Yr={},Xr=[],Zr=0,Qr=0,$r=function(e){return(Yr[e]||Xr).map(function(e){return e()})},ei=function(){var e=Date.now(),t=[];e-Zr>2&&($r(`matchMediaInit`),Jr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=rt.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),$r(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Zr=e,$r(`matchMedia`))},ti=function(){function e(e,t){this.selector=t&&En(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Qr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){Re(e)&&(n=t,t=e,e=Re);var r=this,i=function(){var e=q,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=En(n)),q=r,a=t.apply(r,arguments),Re(a)&&r._r.push(a),q=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===Re?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=q;q=null,e(this),q=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Nr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof yr?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Nr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Jr.length;r--;)Jr[r].id===this.id&&Jr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),ni=function(){function e(e){this.contexts=[],this.scope=e,q&&q.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Ve(e)||(e={matches:e});var r=new ti(0,n||this.scope),i=r.conditions={},a,o,s;for(o in q&&!r.selector&&(r.selector=q.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=rt.matchMedia(e[o]),a&&(Jr.indexOf(r)<0&&Jr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(ei):a.addEventListener(`change`,ei)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ri={registerPlugin:function(){[...arguments].forEach(function(e){return Kn(e)})},timeline:function(e){return new yr(e)},getTweensOf:function(e,t){return nt.getTweensOf(e,t)},getProperty:function(e,t,n,r){Le(e)&&(e=Tn(e)[0]);var i=Dt(e||{}).get,a=n?Rt:Lt;return n===`native`&&(n=``),e&&(t?a((xt[t]&&xt[t].get||i)(e,t,n,r)):function(t,n,r){return a((xt[t]&&xt[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Tn(e),e.length>1){var r=e.map(function(e){return si.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=xt[t],o=Dt(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Wn._pt=0,r.init(e,n?t+n:t,Wn,0,[e]),r.render(1,r),Wn._pt&&Hr(1,Wn)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=si.to(e,zt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return nt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fr(e.ease,K.ease)),Ht(K,e||{})},config:function(e){return Ht(Ee,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!xt[e]&&!ot[e]&&dt(t+` effect requires `+e+` plugin.`)}),St[t]=function(e,t,r){return n(Tn(e),zt(t||{},i),r)},a&&(yr.prototype[t]=function(e,n,r){return this.add(St[t](e,Ve(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){ar[e]=fr(t)},parseEase:function(e,t){return arguments.length?fr(e,t):ar},getById:function(e){return nt.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new yr(e),r,i;for(n.smoothChildTiming=He(e.smoothChildTiming),nt.remove(n),n._dp=0,n._time=n._tTime=nt._time,r=nt._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Nr&&r.vars.onComplete===r._targets[0]))&&on(n,r,r._start-r._delay),r=i;return on(nt,n,0),n},context:function(e,t){return e?new ti(e,t):q},matchMedia:function(e){return new ni(e)},matchMediaRefresh:function(){return Jr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ei()},addEventListener:function(e,t){var n=Yr[e]||(Yr[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Yr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:In,wrapYoyo:Ln,distribute:On,random:jn,snap:An,normalize:Pn,getUnit:bn,clamp:xn,splitColor:Xn,toArray:Tn,selector:En,mapRange:zn,pipe:Mn,unitize:Nn,interpolate:Bn,shuffle:Dn},install:lt,effects:St,ticker:rr,updateRoot:yr.updateRoot,plugins:xt,globalTimeline:nt,core:{PropTween:qr,globals:ft,Tween:Nr,Timeline:yr,Animation:vr,getCache:Dt,_removeLinkedListItem:qt,reverting:function(){return Oe},context:function(e){return e&&q&&(q.data.push(e),e._ctx=q),q},suppressOverwrites:function(e){return De=e}}};kt(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return ri[e]=Nr[e]}),rr.add(yr.updateRoot),Wn=ri.to({},{duration:0});var ii=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},ai=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=ii(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},oi=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(Le(n)&&(r={},kt(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}ai(e,n)}}}},si=ri.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)Oe?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},oi(`roundProps`,kn),oi(`modifiers`),oi(`snap`,An))||ri;Nr.version=yr.version=si.version=`3.15.0`,ct=1,Ue()&&ir(),ar.Power0,ar.Power1,ar.Power2,ar.Power3,ar.Power4,ar.Linear,ar.Quad,ar.Cubic,ar.Quart,ar.Quint,ar.Strong,ar.Elastic,ar.Back,ar.SteppedEase,ar.Bounce,ar.Sine,ar.Expo,ar.Circ;var ci,li,ui,di,fi,pi,mi,hi=function(){return typeof window<`u`},gi={},_i=180/Math.PI,vi=Math.PI/180,yi=Math.atan2,bi=1e8,xi=/([A-Z])/g,Si=/(left|right|width|margin|padding|x)/i,Ci=/[\s,\(]\S/,wi={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Ti=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ei=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Di=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Oi=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ki=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Ai=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ji=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Mi=function(e,t,n){return e.style[t]=n},Ni=function(e,t,n){return e.style.setProperty(t,n)},Pi=function(e,t,n){return e._gsap[t]=n},Fi=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Ii=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Li=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Ri=`transform`,zi=Ri+`Origin`,Bi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in gi&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=wi[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=aa(i,e)}):this.tfm[t]=o.x?o[t]:aa(i,t),t===zi&&(this.tfm.zOrigin=o.zOrigin);else return wi.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Ri)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(zi,n,``)),t=Ri}(a||n)&&this.props.push(t,n,a[t])},Vi=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Hi=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?qi[i]:``)+e},Yi=function(){hi()&&window.document&&(ci=window,li=ci.document,ui=li.documentElement,fi=Gi(`div`)||{style:{}},Gi(`div`),Ri=Ji(Ri),zi=Ri+`Origin`,fi.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Wi=!!Ji(`perspective`),mi=si.core.reverting,di=1)},Xi=function(e){var t=e.ownerSVGElement,n=Gi(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),ui.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),ui.removeChild(n),i},Zi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Qi=function(e){var t,n;try{t=e.getBBox()}catch{t=Xi(e),n=1}return t&&(t.width||t.height)||n||(t=Xi(e)),t&&!t.width&&!t.x&&!t.y?{x:+Zi(e,[`x`,`cx`,`x1`])||0,y:+Zi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},$i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Qi(e))},ea=function(e,t){if(t){var n=e.style,r;t in gi&&t!==zi&&(t=Ri),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(xi,`-$1`).toLowerCase())):n.removeAttribute(t)}},ta=function(e,t,n,r,i,a){var o=new qr(e._pt,t,n,0,1,a?ji:Ai);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},na={deg:1,rad:1,turn:1},ra={grid:1,flex:1},ia=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=fi.style,c=Si.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||na[i]||na[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&$i(t),(p||o===`%`)&&(gi[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],At(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===li||!h.appendChild)&&(h=li.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rr.time&&!g.uncache)return At(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:ea(t,n)}else (p||o===`%`)&&!ra[Ki(h,`display`)]&&(s.position=Ki(t,`position`)),h===t&&(s.position=`static`),h.appendChild(fi),m=fi[u],h.removeChild(fi),s.position=`absolute`;return c&&p&&(g=Dt(h),g.time=rr.time,g.width=h[u]),At(f?m*a/d:m&&a?d/m*a:0)},aa=function(e,t,n,r){var i;return di||Yi(),t in wi&&t!==`transform`&&(t=wi[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),gi[t]&&t!==`transform`?(i=_a(e,r),i=t===`transformOrigin`?i.svg?i.origin:va(Ki(e,zi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ua[t]&&ua[t](e,t,n)||Ki(e,t)||Ot(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?ia(e,t,i,n)+n:i},oa=function(e,t,n,r){if(!n||n===`none`){var i=Ji(t,e,1),a=i&&Ki(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Ki(e,`borderTopColor`))}var o=new qr(this._pt,e.style,t,0,1,Vr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Ki(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Ki(e,t)||r,m?e.style[t]=m:ea(e,t)),l=[n,r],tr(l),n=l[0],r=l[1],d=n.match(Ze)||[],b=r.match(Ze)||[],b.length){for(;u=Ze.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Mt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Ze.lastIndex-v.length,v||(v=v||Ee.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=ia(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],gi[o]&&(s=1,o=o===`transformOrigin`?zi:Ri),ea(n,o);s&&(ea(n,Ri),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,_a(n,1),a.uncache=1,Vi(r)))}},ua={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new qr(e._pt,t,n,0,0,la);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},da=[1,0,0,1,0,0],fa={},pa=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ma=function(e){var t=Ki(e,Ri);return pa(t)?da:t.substr(7).match(Xe).map(At)},ha=function(e,t){var n=e._gsap||Dt(e),r=e.style,i=ma(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?da:i):(i===da&&!e.offsetParent&&e!==ui&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,ui.appendChild(e)),i=ma(e),s?r.display=s:ea(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):ui.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ga=function(e,t,n,r,i,a){var o=e._gsap,s=i||ha(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==da&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Qi(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[zi]=`0px 0px`,a&&(ta(a,o,`xOrigin`,c,y),ta(a,o,`yOrigin`,l,b),ta(a,o,`xOffset`,u,o.xOffset),ta(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},_a=function(e,t){var n=e._gsap||new _r(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Ki(e,zi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,F,te,I,L,R;return n.svg=!!(e.getCTM&&$i(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[Ri]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[Ri]===`none`?``:s[Ri])),r.scale=r.rotate=r.translate=`none`),S=ha(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),ga(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==da&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?yi(D,E)*_i:0,_=O||k?yi(O,k)*_i+m:0,_&&(p*=Math.abs(Math.cos(_*vi))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(R=S[6],I=S[7],ee=S[8],F=S[9],te=S[10],L=S[11],l=S[12],u=S[13],d=S[14],C=yi(R,te),h=C*_i,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ee*T,N=j*w+F*T,P=R*w+te*T,ee=A*-T+ee*w,F=j*-T+F*w,te=R*-T+te*w,L=I*-T+L*w,A=M,j=N,R=P),C=yi(-O,te),g=C*_i,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ee*T,N=D*w-F*T,P=O*w-te*T,L=k*T+L*w,E=M,D=N,O=P),C=yi(D,E),m=C*_i,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=At(Math.sqrt(E*E+D*D+O*O)),p=At(Math.sqrt(j*j+R*R)),C=yi(A,j),_=Math.abs(C)>2e-4?C*_i:0,y=L?1/(L<0?-L:L):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!pa(Ki(e,Ri)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=At(f),n.scaleY=At(p),n.rotation=At(m)+o,n.rotationX=At(h)+o,n.rotationY=At(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[zi]=va(c)),n.xOffset=n.yOffset=0,n.force3D=Ee.force3D,n.renderTransform=n.svg?Ta:Wi?wa:ba,n.uncache=0,n},va=function(e){return(e=e.split(` `))[0]+` `+e[1]},ya=function(e,t,n){var r=bn(t);return At(parseFloat(t)+parseFloat(ia(e,`x`,n+`px`,r)))+r},ba=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,wa(e,t)},xa=`0deg`,Sa=`0px`,Ca=`) `,wa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==xa||l!==xa)){var x=parseFloat(l)*vi,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*vi,w=Math.cos(x),a=ya(_,a,S*w*-v),o=ya(_,o,-Math.sin(x)*-v),s=ya(_,s,C*w*-v+v)}h!==Sa&&(y+=`perspective(`+h+Ca),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Sa||o!==Sa||s!==Sa)&&(y+=s!==Sa||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Ca),c!==xa&&(y+=`rotate(`+c+Ca),l!==xa&&(y+=`rotateY(`+l+Ca),u!==xa&&(y+=`rotateX(`+u+Ca),(d!==xa||f!==xa)&&(y+=`skew(`+d+`, `+f+Ca),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Ca),_.style[Ri]=y||`translate(0, 0)`},Ta=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=vi,c*=vi,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=vi,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=At(b),x=At(x),S=At(S),C=At(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=ia(f,`x`,a,`px`),y=ia(f,`y`,o,`px`)),(p||m||h||g)&&(v=At(v+p-(p*b+m*S)+h),y=At(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=At(v+r/100*w.width),y=At(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Ri]=w)},Ea=function(e,t,n,r,i){var a=360,o=Le(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?_i:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*bi)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*bi)%a-~~(s/a)*a)),e._pt=u=new qr(e._pt,t,n,r,s,Ei),u.e=c,u.u=`deg`,e._props.push(n),u},Da=function(e,t){for(var n in t)e[n]=t[n];return e},Oa=function(e,t,n){var r=Da({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[Ri]=t,o=_a(n,1),ea(n,Ri),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Ri],a[Ri]=t,o=_a(n,1),a[Ri]=c),gi)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=bn(c),p=bn(l),u=f===p?parseFloat(c):ia(n,s,c,p),d=parseFloat(l),e._pt=new qr(e._pt,o,s,u,d-u,Ti),e._pt.u=p||0,e._props.push(s));Da(o,r)};kt(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ua[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return aa(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ka={name:`css`,register:Yi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in di||Yi(),this.styles=this.styles||Ui(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(xt[m]&&Cr(m,t,n,r,e,i)))){if(f=typeof l,p=ua[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Rn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$n.lastIndex=0,$n.test(c)||(h=bn(c),g=bn(l),g?h!==g&&(c=ia(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],Le(c)&&~c.indexOf(`random(`)&&(c=Rn(c)),bn(c+``)||c===`auto`||(c+=Ee.units[m]||bn(aa(e,m))||``),(c+``).charAt(1)===`=`&&(c=aa(e,m))):c=aa(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in wi&&(m===`autoAlpha`&&(d===1&&aa(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),ta(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=wi[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in gi,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Ki(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Ki(e,`perspective`),T?e.style.perspective=T:ea(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||_a(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new qr(this._pt,o,Ri,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new qr(this._pt,b,`scaleY`,b.scaleY,(_?Mt(b.scaleY,_+u):u)-b.scaleY||0,Ti),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(zi,0,o[zi]),l=ca(l),b.svg?ga(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&ta(this,b,`zOrigin`,b.zOrigin,g),ta(this,o,m,va(c),va(l)));continue}else if(m===`svgOrigin`){ga(e,l,1,x,0,this);continue}else if(m in fa){Ea(this,b,m,d,_?Mt(d,_+l):l);continue}else if(m===`smoothOrigin`){ta(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Oa(this,l,e);continue}}else m in o||(m=Ji(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Ci.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=bn(l)||(m in Ee.units?Ee.units[m]:h),h!==g&&(d=ia(e,m,c,g)),this._pt=new qr(this._pt,v?b:o,m,d,(_?Mt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?ki:Ti),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=Oi):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Di);else if(m in o)oa.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){ut(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Kr(this)},render:function(e,t){if(t.tween._time||!mi())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:aa,aliases:wi,getSetter:function(e,t,n){var r=wi[t];return r&&r.indexOf(`,`)<0&&(t=r),t in gi&&t!==zi&&(e._gsap.x||aa(e,`x`))?n&&pi===n?t===`scale`?Fi:Pi:(pi=n||{})&&(t===`scale`?Ii:Li):e.style&&!Be(e.style[t])?Mi:~t.indexOf(`-`)?Ni:Rr(e,t)},core:{_removeProperty:ea,_getMatrix:ha}};si.utils.checkPrefix=Ji,si.core.getStyleSaver=Ui,(function(e,t,n,r){var i=kt(e+`,`+t+`,`+n,function(e){gi[e]=1});kt(t,function(e){Ee.units[e]=`deg`,fa[e]=1}),wi[i[13]]=e+`,`+t,kt(r,function(e){var t=e.split(`:`);wi[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),kt(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){Ee.units[e]=`px`}),si.registerPlugin(ka);var Aa=si.registerPlugin(ka)||si;Aa.core.Tween;var ja=typeof document<`u`?G.useLayoutEffect:G.useEffect,Ma=e=>e&&!Array.isArray(e)&&typeof e==`object`,Na=[],Pa={},Fa=Aa,Ia=(e,t=Na)=>{let n=Pa;Ma(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Na):Ma(t)&&(n=t,t=`dependencies`in n?n.dependencies:Na),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,G.useRef)(!1),o=(0,G.useRef)(Fa.context(()=>{},r)),s=(0,G.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&ja(()=>(a.current=!0,()=>o.current.revert()),Na),ja(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};Ia.register=e=>{Fa=e},Ia.headless=!0;function La(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=ro();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},xo=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},So=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Co=function(){qa=za.core.globals().ScrollTrigger,qa&&qa.core&&ao()},wo=function(e){return za=e||Qa(),!Ba&&za&&typeof document<`u`&&document.body&&(Va=window,Ha=document,Ua=Ha.documentElement,Wa=Ha.body,Ja=[Va,Ha,Ua,Wa],za.utils.clamp,Za=za.core.context||function(){},Ka=`onpointerenter`in Wa?`pointer`:`mouse`,Ga=To.isTouch=Va.matchMedia&&Va.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Va||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Xa=To.eventTypes=(`ontouchstart`in Ua?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Ua?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return $a=0},500),Ba=1),qa||Co(),Ba};ho.op=go,to.cache=0;var To=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Ba||wo(za)||console.warn(`Please gsap.registerPlugin(Observer)`),qa||Co();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,ee=e.onEnable,F=e.onDisable,te=e.onClick,I=e.scrollSpeed,L=e.capture,R=e.allowClicks,ne=e.lockAxis,re=e.onLockAxis;this.target=i=_o(i)||Ua,this.vars=e,u&&=za.utils.toArray(u),t||=1e-9,n||=0,d||=1,I||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Va.getComputedStyle(Wa).lineHeight)||22;var z,B,V,ie,H,ae,oe,U=this,se=0,ce=0,le=e.passive||!s&&e.passive!==!1,ue=yo(i,ho),de=yo(i,go),fe=ue(),pe=de(),me=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Xa[0]===`pointerdown`,he=so(i),W=i.ownerDocument||Ha,ge=[0,0,0],_e=[0,0,0],ve=0,ye=function(){return ve=ro()},be=function(e,t){return(U.event=e)&&u&&vo(e.target,u)||t&&me&&e.pointerType!==`touch`||A&&A(e,t)},xe=function(){U._vx.reset(),U._vy.reset(),B.pause(),c&&c(U)},Se=function(){var e=U.deltaX=So(ge),n=U.deltaY=So(_e),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(U,e,n,ge,_e),r&&(v&&U.deltaX>0&&v(U),y&&U.deltaX<0&&y(U),S&&S(U),T&&U.deltaX<0!=se<0&&T(U),se=U.deltaX,ge[0]=ge[1]=ge[2]=0),i&&(x&&U.deltaY>0&&x(U),b&&U.deltaY<0&&b(U),C&&C(U),E&&U.deltaY<0!=ce<0&&E(U),ce=U.deltaY,_e[0]=_e[1]=_e[2]=0),(ie||V)&&(k&&k(U),V&&=(p&&V===1&&p(U),h&&h(U),0),ie=!1),ae&&!(ae=!1)&&re&&re(U),H&&=(P(U),!1),z=0},G=function(e,t,n){ge[n]+=e,_e[n]+=t,U._vx.update(e),U._vy.update(t),o?z||=requestAnimationFrame(Se):Se()},Ce=function(e,t){ne&&!oe&&(U.axis=oe=Math.abs(e)>Math.abs(t)?`x`:`y`,ae=!0),oe!==`y`&&(ge[2]+=e,U._vx.update(e,!0)),oe!==`x`&&(_e[2]+=t,U._vy.update(t,!0)),o?z||=requestAnimationFrame(Se):Se()},we=function(e){if(!be(e,1)){e=xo(e,s);var t=e.clientX,r=e.clientY,i=t-U.x,a=r-U.y,o=U.isDragging;U.x=t,U.y=r,(o||(i||a)&&(Math.abs(U.startX-t)>=n||Math.abs(U.startY-r)>=n))&&(V||=o?2:1,o||(U.isDragging=!0),Ce(i,a))}},Te=U.onPress=function(e){be(e,1)||e&&e.button||(U.axis=oe=null,B.pause(),U.isPressed=!0,e=xo(e),se=ce=0,U.startX=U.x=e.clientX,U.startY=U.y=e.clientY,U._vx.reset(),U._vy.reset(),co(j?i:W,Xa[1],we,le,!0),U.deltaX=U.deltaY=0,g&&g(U))},Ee=U.onRelease=function(e){if(!be(e,1)){lo(j?i:W,Xa[1],we,!0);var t=!isNaN(U.y-U.startY),n=U.isDragging,r=n&&(Math.abs(U.x-U.startX)>3||Math.abs(U.y-U.startY)>3),a=xo(e);!r&&t&&(U._vx.reset(),U._vy.reset(),s&&R&&za.delayedCall(.08,function(){if(ro()-ve>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(W.createEvent){var t=W.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Va,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),U.isDragging=U.isGesturing=U.isPressed=!1,c&&n&&!j&&B.restart(!0),V&&Se(),m&&n&&m(U),_&&_(U,r)}},K=function(e){return e.touches&&e.touches.length>1&&(U.isGesturing=!0)&&M(e,U.isDragging)},De=function(){return(U.isGesturing=!1)||N(U)},Oe=function(e){if(!be(e)){var t=ue(),n=de();G((t-fe)*I,(n-pe)*I,1),fe=t,pe=n,c&&B.restart(!0)}},q=function(e){if(!be(e)){e=xo(e,s),P&&(H=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Va.innerHeight:1)*d;G(e.deltaX*t,e.deltaY*t,0),c&&!j&&B.restart(!0)}},ke=function(e){if(!be(e)){var t=e.clientX,n=e.clientY,r=t-U.x,i=n-U.y;U.x=t,U.y=n,ie=!0,c&&B.restart(!0),(r||i)&&Ce(r,i)}},Ae=function(e){U.event=e,D(U)},je=function(e){U.event=e,O(U)},Me=function(e){return be(e)||xo(e,s)&&te(U)};B=U._dc=za.delayedCall(l||.25,xe).pause(),U.deltaX=U.deltaY=0,U._vx=bo(0,50,!0),U._vy=bo(0,50,!0),U.scrollX=ue,U.scrollY=de,U.isDragging=U.isGesturing=U.isPressed=!1,Za(this),U.enable=function(e){return U.isEnabled||(co(he?W:i,`scroll`,po),r.indexOf(`scroll`)>=0&&co(he?W:i,`scroll`,Oe,le,L),r.indexOf(`wheel`)>=0&&co(i,`wheel`,q,le,L),(r.indexOf(`touch`)>=0&&Ga||r.indexOf(`pointer`)>=0)&&(co(i,Xa[0],Te,le,L),co(W,Xa[2],Ee),co(W,Xa[3],Ee),R&&co(i,`click`,ye,!0,!0),te&&co(i,`click`,Me),M&&co(W,`gesturestart`,K),N&&co(W,`gestureend`,De),D&&co(i,Ka+`enter`,Ae),O&&co(i,Ka+`leave`,je),k&&co(i,Ka+`move`,ke)),U.isEnabled=!0,U.isDragging=U.isGesturing=U.isPressed=ie=V=!1,U._vx.reset(),U._vy.reset(),fe=ue(),pe=de(),e&&e.type&&Te(e),ee&&ee(U)),U},U.disable=function(){U.isEnabled&&(eo.filter(function(e){return e!==U&&so(e.target)}).length||lo(he?W:i,`scroll`,po),U.isPressed&&(U._vx.reset(),U._vy.reset(),lo(j?i:W,Xa[1],we,!0)),lo(he?W:i,`scroll`,Oe,L),lo(i,`wheel`,q,L),lo(i,Xa[0],Te,L),lo(W,Xa[2],Ee),lo(W,Xa[3],Ee),lo(i,`click`,ye,!0),lo(i,`click`,Me),lo(W,`gesturestart`,K),lo(W,`gestureend`,De),lo(i,Ka+`enter`,Ae),lo(i,Ka+`leave`,je),lo(i,Ka+`move`,ke),U.isEnabled=U.isPressed=U.isDragging=!1,F&&F(U))},U.kill=U.revert=function(){U.disable();var e=eo.indexOf(U);e>=0&&eo.splice(e,1),Ya===U&&(Ya=0)},eo.push(U),j&&so(i)&&(Ya=U),U.enable(f)},Ra(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();To.version=`3.15.0`,To.create=function(e){return new To(e)},To.register=wo,To.getAll=function(){return eo.slice()},To.getById=function(e){return eo.filter(function(t){return t.vars.id===e})[0]},Qa()&&za.registerPlugin(To);var J,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as=1,os=Date.now,ss=os(),cs=0,ls=0,us=function(e,t,n){var r=Es(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},ds=function(e,t){return t&&(!Es(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},fs=function e(){return ls&&requestAnimationFrame(e)},ps=function(){return Ro=1},ms=function(){return Ro=0},hs=function(e){return e},gs=function(e){return Math.round(e*1e5)/1e5||0},_s=function(){return typeof window<`u`},vs=function(){return J||_s()&&(J=window.gsap)&&J.registerPlugin&&J},ys=function(e){return!!~jo.indexOf(e)},bs=function(e){return(e===`Height`?ts:Do[`inner`+e])||ko[`client`+e]||Ao[`client`+e]},xs=function(e){return oo(e,`getBoundingClientRect`)||(ys(e)?function(){return Jc.width=Do.innerWidth,Jc.height=ts,Jc}:function(){return Zs(e)})},Ss=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=oo(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?bs(i):e[`client`+i])||0}},Cs=function(e,t){return!t||~no.indexOf(e)?xs(e):function(){return Jc}},ws=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=oo(e,n))?a()-xs(e)()[i]:ys(e)?(ko[n]||Ao[n])-bs(r):e[n]-e[`offset`+r])},Ts=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in lc?lc[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},dc=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=Oo.createElement(`div`),m=ys(n)||oo(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?Ao:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===go?Fs:Is)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],fc(p,0,r,_),p},fc=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Gs]=1,i[`border`+o+Gs]=0,i[n.p]=t+`px`,J.set(e,i)},pc=[],mc={},hc,gc=function(){return os()-cs>34&&(hc||=requestAnimationFrame(zc))},_c=function(){(!qo||!qo.isPressed||qo.startX>Ao.clientWidth)&&(to.cache++,qo?hc||=requestAnimationFrame(zc):zc(),cs||Cc(`scrollStart`),cs=os())},vc=function(){Xo=Do.innerWidth,Yo=Do.innerHeight},yc=function(e){to.cache++,(e===!0||!Lo&&!Ko&&!Oo.fullscreenElement&&!Oo.webkitFullscreenElement&&(!Jo||Xo!==Do.innerWidth||Math.abs(Do.innerHeight-Yo)>Do.innerHeight*.25))&&Mo.restart(!0)},bc={},xc=[],Sc=function e(){return ac(tl,`scrollEnd`,e)||Fc(!0)},Cc=function(e){return bc[e]&&bc[e].map(function(e){return e()})||xc},wc=[],Tc=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Pc(!1),rs=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),to.forEach(function(e){Ds(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Oc($o,1),Mo.pause(),Ac++,kc=2,zc(2),pc.forEach(function(e){return Ds(e.vars.onRefresh)&&e.vars.onRefresh(e)}),kc=tl.isRefreshing=!1,Cc(`refresh`)},Ic=0,Lc=1,Rc,zc=function(e){if(e===2||!kc&&!ns){tl.isUpdating=!0,Rc&&Rc.update(0);var t=pc.length,n=os(),r=n-ss>=50,i=t&&pc[0].scroll();if(Lc=Ic>i?-1:1,kc||(Ic=i),r&&(cs&&!Ro&&n-cs>200&&(cs=0,Cc(`scrollEnd`)),Fo=ss,ss=n),Lc<0){for(Bo=t;Bo-- >0;)pc[Bo]&&pc[Bo].update(0,r);Lc=1}else for(Bo=0;Bo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,fc(a,C,r,w&&C>20||!w&&(u?Math.max(Ao[h],ko[h]):a.parentNode[h])<=C+1),u&&(c=Zs(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+qs))}return f&&_&&(h=Zs(_),f.seek(d),g=Zs(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},Xc=/(webkit|moz|length|cssText|inset)/i,Zc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===Ao){for(a in e._stOrig=i.cssText,o=Js(e),o)!+a&&!Xc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;J.core.getCache(e).uncache=1,t.appendChild(e)}},Qc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},$c=function(e,t,n){var r={};r[t.p]=`+=`+n,J.set(e,r)},el=function(e,t){var n=yo(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Qc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){to.cache++,t.tween&&zc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=J.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ic(e,`wheel`,n.wheelHandler),tl.isTouch&&ic(e,`touchmove`,n.wheelHandler),i},tl=function(){function e(t,n){Eo||e.register(J)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Qo(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!ls){this.update=this.refresh=this.kill=hs;return}t=Xs(Es(t)||Os(t)||t.nodeType?{trigger:t}:t,cc);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?ho:go,T=!l&&l!==0,E=_o(t.scroller||Do),D=J.core.getCache(E),O=ys(E),k=(`pinType`in t?t.pinType:oo(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:cc.markers,N=O?0:parseFloat(Js(E)[`border`+w.p2+Gs])||0,P=this,ee=t.onRefreshInit&&function(){return t.onRefreshInit(P)},F=Ss(E,O,w),te=Cs(E,O),I=0,L=0,R=0,ne=yo(E,w),re,z,B,V,ie,H,ae,oe,U,se,ce,le,ue,de,fe,pe,me,he,W,ge,_e,ve,ye,be,xe,Se,G,Ce,we,Te,Ee,K,De,Oe,q,ke,Ae,je,Me;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):ne,V=ne(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(Wo=1,t.refreshPriority===-9999&&(Rc=P)),D.tweenScroll=D.tweenScroll||{top:el(E,go),left:el(E,ho)},P.tweenTo=re=D.tweenScroll[w.p],P.scrubDuration=function(e){De=Os(e)&&e,De?K?K.duration(e):K=J.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:De,paused:!0,onComplete:function(){return h&&h(P)}}):(K&&K.progress(1).kill(),K=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Te=0,o||=n.vars.id),v&&((!ks(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in Ao.style&&J.set(O?[Ao,ko]:E,{scrollBehavior:`auto`}),to.forEach(function(e){return Ds(e)&&e.target===(O?Oo.scrollingElement||ko:E)&&(e.smooth=!1)}),B=Ds(v.snapTo)?v.snapTo:v.snapTo===`labels`?ec(n):v.snapTo===`labelsDirectional`?nc(n):v.directional===!1?J.utils.snap(v.snapTo):function(e,t){return tc(v.snapTo)(e,os()-L<500?0:t.direction)},Oe=v.duration||{min:.1,max:2},Oe=ks(Oe)?Po(Oe.min,Oe.max):Po(Oe,Oe),q=J.delayedCall(v.delay||De/2||.1,function(){var e=ne(),t=os()-L<500,r=re.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!Ro&&I!==e){var i=(e-H)/de,a=n&&!T?n.totalProgress():i,o=t?0:(a-Ee)/(os()-Fo)*1e3||0,s=J.utils.clamp(-i,1-i,Ms(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=B(c,P),Os(l)||(l=c),u=Math.max(0,Math.round(H+l*de)),e<=ae&&e>=H&&u!==e){if(r&&!r._initted&&r.data<=Ms(u-e))return;v.inertia===!1&&(s=l-i),re(u,{duration:Oe(Ms(Math.max(Ms(c-a),Ms(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Ms(u-e),onInterrupt:function(){return q.restart(!0)&&p&&js(P,p)},onComplete:function(){P.update(),I=ne(),n&&!T&&(K?K.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Te=Ee=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&js(P,m)}},e,s*de,u-e-s*de),f&&js(P,f,re.tween)}}else P.isActive&&I!==e&&q.restart(!0)}).pause()),o&&(mc[o]=P),u=P.trigger=_o(u||d!==!0&&d),Me=u&&u._gsap&&u._gsap.stRevert,Me&&=Me(P),d=d===!0?u:_o(d),Es(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Ws||(f=!f&&d.parentNode&&d.parentNode.style&&Js(d.parentNode).display===`flex`?!1:Us),P.pin=d,z=J.core.getCache(d),z.spacer?fe=z.pinState:(b&&(b=_o(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),z.spacerIsNative=!!b,b&&(z.spacerState=Kc(b))),z.spacer=he=b||Oo.createElement(`div`),he.classList.add(`pin-spacer`),o&&he.classList.add(`pin-spacer-`+o),z.pinState=fe=Kc(d)),t.force3D!==!1&&J.set(d,{force3D:!0}),P.spacer=he=z.spacer,we=Js(d),be=we[f+w.os2],ge=J.getProperty(d),_e=J.quickSetter(d,w.a,qs),Uc(d,he,we),me=Kc(d)),M){le=ks(M)?Xs(M,sc):sc,se=dc(`scroller-start`,o,E,w,le,0),ce=dc(`scroller-end`,o,E,w,le,0,se),W=se[`offset`+w.op.d2];var Ne=_o(oo(E,`content`)||E);oe=this.markerStart=dc(`start`,o,Ne,w,le,W,0,x),U=this.markerEnd=dc(`end`,o,Ne,w,le,W,0,x),x&&(je=J.quickSetter([oe,U],w.a,qs)),!k&&!(no.length&&oo(E,`fixedMarkers`)===!0)&&(Ys(O?Ao:E),J.set([se,ce],{force3D:!0}),Se=J.quickSetter(se,w.a,qs),Ce=J.quickSetter(ce,w.a,qs))}if(x){var Pe=x.vars.onUpdate,Fe=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Pe&&Pe.apply(x,Fe||[])})}if(P.previous=function(){return pc[pc.indexOf(P)-1]},P.next=function(){return pc[pc.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Lo;r!==P.isReverted&&(r&&(ke=Math.max(ne(),P.scroll.rec||0),R=P.progress,Ae=n&&n.progress()),oe&&[oe,U,se,ce].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Lo=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Hc(d,he,fe):Uc(d,he,Js(d),xe)),r||P.update(r),Lo=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((Lo||!P.enabled)&&!i)){if(d&&r&&cs){ic(e,`scrollEnd`,Sc);return}!kc&&ee&&ee(P),Lo=P,re.tween&&!a&&(re.tween.kill(),re.tween=0),K&&K.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=F(),l=te(),m=x?x.duration():ws(E,w),h=de<=.01||!de,g=0,_=o||0,v=ks(a)?a.end:t.end,b=t.endTrigger||u,S=ks(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&_o(t.pinnedContainer,P),D=u&&Math.max(0,pc.indexOf(P))||0,A=D,j,z,B,le,W,_e,be,Se,Ce,we,Te,Ee,De;for(M&&ks(a)&&(Ee=J.getProperty(se,w.p),De=J.getProperty(ce,w.p));A-- >0;)_e=pc[A],_e.end||_e.refresh(0,1)||(Lo=P),be=_e.pin,be&&(be===u||be===d||be===C)&&!_e.isReverted&&(we||=[],we.unshift(_e),_e.revert(!0,!0)),_e!==pc[A]&&(D--,A--);for(Ds(S)&&(S=S(P)),S=us(S,`start`,P),H=Yc(S,u,s,w,ne(),oe,se,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Ds(v)&&(v=v(P)),Es(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Es(S)?S.split(` `)[0]:``)+v:(g=uc(v.substr(2),s),v=Es(S)?S:(x?J.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,H):H)+g,b=u)),v=us(v,`end`,P),ae=Math.max(H,Yc(v||(b?`100% 0`:m),b,s,w,ne()+g,U,ce,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)_e=pc[A]||{},be=_e.pin,be&&_e.start-_e._pinPush<=H&&!x&&_e.end>0&&(j=_e.end-(P._startClamp?Math.max(0,_e.start):_e.start),(be===u&&_e.start-_e._pinPush=ws(E,w)))j=Js(d),le=w===go,B=ne(),ve=parseFloat(ge(w.a))+_,!m&&ae>1&&(Te=(O?Oo.scrollingElement||ko:E).style,Te={style:Te,value:Te[`overflow`+w.a.toUpperCase()]},O&&Js(Ao)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Te.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Uc(d,he,j),me=Kc(d),z=Zs(d,!0),Se=k&&yo(E,le?ho:go)(),f?(xe=[f+w.os2,de+_+qs],xe.t=he,A=f===Us?Qs(d,w)+de+_:0,A&&(xe.push(w.d,A+qs),he.style.flexBasis!==`auto`&&(he.style.flexBasis=A+qs)),Gc(xe),C&&pc.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&ne(ke)):(A=Qs(d,w),A&&he.style.flexBasis!==`auto`&&(he.style.flexBasis=A+qs)),k&&(W={top:z.top+(le?B-H:Se)+qs,left:z.left+(le?Se:B-H)+qs,boxSizing:`border-box`,position:`fixed`},W[Ls]=W[`max`+Gs]=Math.ceil(z.width)+qs,W[Rs]=W[`max`+Ks]=Math.ceil(z.height)+qs,W[Ws]=W[Ws+Vs]=W[Ws+zs]=W[Ws+Hs]=W[Ws+Bs]=`0`,W[Us]=j[Us],W[Us+Vs]=j[Us+Vs],W[Us+zs]=j[Us+zs],W[Us+Hs]=j[Us+Hs],W[Us+Bs]=j[Us+Bs],pe=qc(fe,W,y),kc&&ne(0)),n?(Ce=n._initted,Go(1),n.render(n.duration(),!0,!0),ye=ge(w.a)-ve+de+_,G=Math.abs(de-ye)>1,k&&G&&pe.splice(pe.length-2,2),n.render(0,!0,!0),Ce||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Go(0)):ye=de,Te&&(Te.value?Te.style[`overflow`+w.a.toUpperCase()]=Te.value:Te.style.removeProperty(`overflow-`+w.a));else if(u&&ne()&&!x)for(z=u.parentNode;z&&z!==Ao;)z._pinOffset&&(H-=z._pinOffset,ae-=z._pinOffset),z=z.parentNode;we&&we.forEach(function(e){return e.revert(!1,!0)}),P.start=H,P.end=ae,V=ie=kc?ke:ne(),!x&&!kc&&(V0?pc.slice(0,t).reverse():pc.slice(t+1);return(Es(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=H:e.start>=ae})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=kc===!0?ke:P.scroll(),c=e?0:(o-H)/de,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,ee;if(t&&(ie=V,V=x?ne():o,v&&(Ee=Te,Te=n&&!T?n.totalProgress():u)),m&&d&&!Lo&&!as&&cs&&(!u&&Ho+(o-ie)/(os()-Fo)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Lo&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],ee=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||ee)&&(ee||l||!n)&&(Ds(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(K&&!Lo&&!as?(K._dp._time-K._start!==K._time&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo(`totalProgress`,u,n._tTime/n._tDur):(K.vars.totalProgress=u,K.invalidate().restart())):n&&n.totalProgress(u,!!(Lo&&(L||e)))),d){if(e&&f&&(he.style[f+w.os2]=be),!k)_e(gs(ve+ye*u));else if(O){if(N=!e&&u>p&&ae+1>o&&o+1>=ws(E,w),y)if(!e&&(h||N)){var F=Zs(d,!0),te=o-H;Zc(d,Ao,F.top+(w===go?te:0)+qs,F.left+(w===go?0:te)+qs)}else Zc(d,he);Gc(h||N?pe:me),G&&u<1&&h||_e(ve+(u===1&&!N?ye:0))}}v&&!re.tween&&!Lo&&!as&&q.restart(!0),a&&(M||_&&u&&(u<1||!is))&&No(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Lo?(T&&(ee&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!is)&&(s&&M&&js(P,s),A[b]&&js(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&js(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(Os(S)?S:2500)&&(As(P.callbackAnimation),K?K.progress(1):As(n,D===`reverse`?1:!u,1))):T&&i&&!Lo&&i(P)}if(Ce){var I=x?o/x.duration()*(x._caScrollDist||0):o;Se(I+ +!!se._isFlipped),Ce(I)}je&&je(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ic(E,`resize`,yc),O||ic(E,`scroll`,_c),ee&&ic(e,`refreshInit`,ee),t!==!1&&(P.progress=R=0,V=ie=I=ne()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&re?re.tween:K},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:ds(e,n&&!!P._startClamp),end:ds(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(xe&&e){var t=xe.indexOf(w.d)+1;xe[t]=parseFloat(xe[t])+e+qs,xe[1]=parseFloat(xe[1])+e+qs,Gc(xe)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||K&&K.pause(),ke=0,z&&(z.uncache=1),ee&&ac(e,`refreshInit`,ee),q&&(q.pause(),re.tween&&re.tween.kill()&&(re.tween=0)),!O)){for(var r=pc.length;r--;)if(pc[r].scroller===E&&pc[r]!==P)return;ac(E,`resize`,yc),O||ac(E,`scroll`,_c)}},P.kill=function(e,r){P.disable(e,r),K&&!r&&K.kill(),o&&delete mc[o];var i=pc.indexOf(P);i>=0&&pc.splice(i,1),i===Bo&&Lc>0&&Bo--,i=0,pc.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||kc||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),oe&&[oe,U,se,ce].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Rc===P&&(Rc=0),d&&(z&&(z.uncache=1),i=0,pc.forEach(function(e){return e.pin===d&&i++}),i||(z.spacer=0)),t.onKill&&t.onKill(P)},pc.push(P),P.enable(!1,!1),Me&&Me(P),n&&n.add&&!de){var Ie=P.update;P.update=function(){P.update=Ie,to.cache++,H||ae||P.refresh()},J.delayedCall(.01,P.update),de=.01,H=ae=0}else P.refresh();d&&Mc()},e.register=function(t){return Eo||=(J=t||vs(),_s()&&window.document&&e.enable(),ls),Eo},e.defaults=function(e){if(e)for(var t in e)cc[t]=e[t];return cc},e.disable=function(e,t){ls=0,pc.forEach(function(n){return n[t?`kill`:`disable`](e)}),ac(Do,`wheel`,_c),ac(Oo,`scroll`,_c),clearInterval(Io),ac(Oo,`touchcancel`,hs),ac(Ao,`touchstart`,hs),rc(ac,Oo,`pointerdown,touchstart,mousedown`,ps),rc(ac,Oo,`pointerup,touchend,mouseup`,ms),Mo.kill(),Ts(ac);for(var n=0;n0&&r.left+i0&&r.top+i=0&&wc.splice(t,5),wc.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),J.core.getCache(e),Qo())}}):wc},tl.revert=function(e,t){return Dc(!e,t)},tl.create=function(e,t){return new tl(e,t)},tl.refresh=function(e){return e?yc(!0):(Eo||tl.register())&&Fc(!0)},tl.update=function(e){return++to.cache&&zc(e===!0?2:0)},tl.clearScrollMemory=Oc,tl.maxScroll=function(e,t){return ws(e,t?ho:go)},tl.getScrollFunc=function(e,t){return yo(_o(e),t?ho:go)},tl.getById=function(e){return mc[e]},tl.getAll=function(){return pc.filter(function(e){return e.vars.id!==`ScrollSmoother`})},tl.isScrolling=function(){return!!cs},tl.snapDirectional=tc,tl.addEventListener=function(e,t){var n=bc[e]||(bc[e]=[]);~n.indexOf(t)||n.push(t)},tl.removeEventListener=function(e,t){var n=bc[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},tl.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=J.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Ds(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Ds(a)&&(a=a(),ic(tl,`refresh`,function(){return a=t.batchMax()})),No(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(tl.create(t))}),n};var nl=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},rl=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(To.isTouch?` pinch-zoom`:``):`none`,t===ko&&e(Ao,n)},il={auto:1,scroll:1},al=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||J.core.getCache(i),o=os(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==Ao&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(il[(s=Js(i)).overflowY]||il[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!ys(i)&&(il[(s=Js(i)).overflowY]||il[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},ol=function(e,t,n,r){return To.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=al,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ic(Oo,To.eventTypes[0],ll,!1,!0)},onDisable:function(){return ac(Oo,To.eventTypes[0],ll,!0)}})},sl=/(input|label|select|textarea)/i,cl,ll=function(e){var t=sl.test(e.target.tagName);(t||cl)&&(e._gsapAllow=!0,cl=t)},ul=function(e){ks(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=_o(e.target)||ko,l=J.core.globals().ScrollSmoother,u=l&&l.get(),d=Zo&&(e.content&&_o(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=yo(c,go),p=yo(c,ho),m=1,h=(To.isTouch&&Do.visualViewport?Do.visualViewport.scale*Do.visualViewport.width:Do.outerWidth)/Do.innerWidth,g=0,_=Ds(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=ol(c,e.type,!0,i),x=function(){return y=!1},S=hs,C=hs,w=function(){s=ws(c,go),C=Po(+!!Zo,s),n&&(S=Po(0,ws(c,ho))),v=Ac},T=function(){d._gsap.y=gs(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=gs(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=gs((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=to.cache,zc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&J.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Zo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=gs((Do.visualViewport&&Do.visualViewport.scale||1)/h),D.pause(),e!==m&&rl(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=Ac},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{to.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=nl(p,i,o,ws(c,ho)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=nl(f,i,o,ws(c,go)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Zo&&D.vars.scrollY>=s||i>=s-1)&&J.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),os()-g>1e3&&(v=0,g=os())},e.onChange=function(e,t,r,i,a){if(Ac!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&zc()},e.onEnable=function(){rl(c,n?!1:`x`),tl.addEventListener(`refresh`,j),ic(Do,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){rl(c,!0),ac(Do,`resize`,j),tl.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new To(e),o.iOS=Zo,Zo&&!f()&&f(1),Zo&&J.ticker.add(hs),A=o._dc,D=J.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Qc(f,f(),function(){return D.pause()})},onUpdate:zc,onComplete:A.vars.onComplete}),o};tl.sort=function(e){if(Ds(e))return pc.sort(e);var t=Do.pageYOffset||0;return tl.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Do.innerHeight}),pc.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},tl.observe=function(e){return new To(e)},tl.normalizeScroll=function(e){if(e===void 0)return qo;if(e===!0&&qo)return qo.enable();if(e===!1){qo&&qo.kill(),qo=e;return}var t=e instanceof To?e:ul(e);return qo&&qo.target===t.target&&qo.kill(),ys(t.target)&&(qo=t),t},tl.core={_getVelocityProp:bo,_inputObserver:ol,_scrollers:to,_proxies:no,bridge:{ss:function(){cs||Cc(`scrollStart`),cs=os()},ref:function(){return Lo}}},vs()&&J.registerPlugin(tl);var Y=a();function dl(e){let t=(0,Ce.c)(31),{code:n,language:r,className:i,variant:a,showCopyButton:o}=e,s=r===void 0?`bash`:r,l=a===void 0?`default`:a,u=o===void 0?!0:o,[d,f]=(0,G.useState)(!1),{normalizedLanguage:p,highlightedCode:m}=V(n,s),{copy:h}=ie(),g;t[0]!==n||t[1]!==h?(g=async()=>{await h(n)?(f(!0),ce.success(`Copied to clipboard`),setTimeout(()=>f(!1),2e3)):ce.error(`Failed to copy to clipboard`)},t[0]=n,t[1]=h,t[2]=g):g=t[2];let _=g,v;t[3]===i?v=t[4]:(v=I(`group/code-block relative rounded-md border border-border bg-muted/30 text-sm`,i),t[3]=i,t[4]=v);let y;t[5]!==d||t[6]!==_||t[7]!==p||t[8]!==u||t[9]!==l?(y=l===`default`&&(0,Y.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border bg-muted/50 px-3 py-2`,children:[(0,Y.jsx)(`span`,{className:`font-mono text-xs font-semibold text-muted-foreground`,children:p}),u&&(0,Y.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,Y.jsx)(`span`,{className:I(`text-xs text-green-500 transition-opacity duration-200`,d?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:_,className:`transition-opacity hover:opacity-100`,children:[d?(0,Y.jsx)(R,{className:`size-4 text-green-500`}):(0,Y.jsx)(re,{className:`size-4`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]})]}),t[5]=d,t[6]=_,t[7]=p,t[8]=u,t[9]=l,t[10]=y):y=t[10];let b;t[11]!==d||t[12]!==_||t[13]!==u||t[14]!==l?(b=l===`minimal`&&u&&(0,Y.jsxs)(`div`,{className:`absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover/code-block:opacity-100`,children:[(0,Y.jsx)(`span`,{className:I(`text-xs text-green-500 transition-opacity duration-200`,d?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:_,children:[d?(0,Y.jsx)(R,{className:`size-4 text-green-500`}):(0,Y.jsx)(re,{className:`size-4`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),t[11]=d,t[12]=_,t[13]=u,t[14]=l,t[15]=b):b=t[15];let x=l===`default`?`rounded-none! p-3!`:`rounded-md! p-4!`,S;t[16]===x?S=t[17]:(S=I(`m-0! font-mono! text-sm leading-relaxed`,x),t[16]=x,t[17]=S);let C;t[18]===m?C=t[19]:(C=(0,Y.jsx)(`span`,{dangerouslySetInnerHTML:{__html:m}}),t[18]=m,t[19]=C);let w;t[20]!==s||t[21]!==C?(w=(0,Y.jsx)(`code`,{"data-language":s,suppressHydrationWarning:!0,children:C}),t[20]=s,t[21]=C,t[22]=w):w=t[22];let T;t[23]!==w||t[24]!==S?(T=(0,Y.jsx)(`div`,{className:`overflow-x-auto`,children:(0,Y.jsx)(`pre`,{className:S,children:w})}),t[23]=w,t[24]=S,t[25]=T):T=t[25];let E;return t[26]!==T||t[27]!==v||t[28]!==y||t[29]!==b?(E=(0,Y.jsxs)(`div`,{className:v,children:[y,b,T]}),t[26]=T,t[27]=v,t[28]=y,t[29]=b,t[30]=E):E=t[30],E}function fl({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=G.useRef(e!==void 0),[a,o]=G.useState(t);return[i?e:a,G.useCallback(e=>{i||o(e)},[])]}var pl={};function ml(e,t){let n=G.useRef(pl);return n.current===pl&&(n.current=e(t)),n}var hl=G[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],gl=hl&&hl!==G.useLayoutEffect?hl:e=>e();function X(e){let t=ml(_l).current;return t.next=e,gl(t.effect),t.trampoline}function _l(){let e={next:void 0,callback:vl,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function vl(){}var Z=typeof document<`u`?G.useLayoutEffect:()=>{},yl=G.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function bl(){return G.useContext(yl)}function xl(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=X(i),o=G.useRef(0),s=ml(Cl).current,c=ml(Sl).current,[l,u]=G.useState(0),d=G.useRef(l),f=X((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=X(e=>{c.delete(e),d.current+=1,u(d.current)}),m=G.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(wl).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);Z(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),Z(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),Z(()=>()=>{n.current=[]},[n]),Z(()=>()=>{r&&(r.current=[])},[r]);let h=X(e=>(s.add(e),()=>{s.delete(e)}));Z(()=>{s.forEach(e=>e(m))},[s,m]);let g=G.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,Y.jsx)(yl.Provider,{value:g,children:t})}function Sl(){return new Map}function Cl(){return new Set}function wl(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var Tl=G.createContext(void 0);function El(){return G.useContext(Tl)?.direction??`ltr`}function Dl(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ol=Dl(`https://base-ui.com/production-error`,`Base UI`);function kl(e,t,n,r){let i=ml(jl).current;return Ml(i,e,t,n,r)&&Pl(i,[e,t,n,r]),i.callback}function Al(e){let t=ml(jl).current;return Nl(t,e)&&Pl(t,e),t.callback}function jl(){return{callback:null,cleanup:null,refs:[]}}function Ml(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Nl(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Pl(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Ll(e){if(!G.isValidElement(e))return null;let t=e,n=t.props;return(Il(19)?n?.ref:t.ref)??null}function Rl(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function zl(){}var Bl=Object.freeze([]),Vl=Object.freeze({});function Hl(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Ul(e,t){return typeof e==`function`?e(t):e}function Wl(e,t){return typeof e==`function`?e(t):e}var Gl={};function Kl(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Jl(t);let a=Jl(e);return t&&(a=Yl(a,t)),n&&(a=Yl(a,n)),r&&(a=Yl(a,r)),i&&(a=Yl(a,i)),a}function ql(e){if(e.length===0)return Gl;if(e.length===1)return Jl(e[0]);let t=Jl(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function $l(e){return typeof e==`function`}function eu(e,t){return $l(e)?e(t):e??Gl}function tu(e,t){return t?e?(...n)=>{let r=n[0];if(au(r)){let i=r;ru(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:nu(t):e}function nu(e){return e&&((...t)=>{let n=t[0];return au(n)&&ru(n),e(...t)})}function ru(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function iu(e,t){return t?e?t+` `+e:t:e}function au(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function ou(e,t,n={}){let r=t.render,i=su(t,n);return n.enabled===!1?null:uu(e,r,i,n.state??Vl)}function su(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Vl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Ul(n,a):void 0,d=l?Wl(r,a):void 0,f=l?Hl(a,c):Vl,p=l&&s?cu(s):void 0,m=l?Rl(f,p)??{}:Vl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Al([m.ref,Ll(i),...o]):m.ref=kl(m.ref,Ll(i),o):kl(null,null)),l?(u!==void 0&&(m.className=iu(m.className,u)),d!==void 0&&(m.style=Rl(m.style,d)),m):Vl}function cu(e){return Array.isArray(e)?ql(e):Kl(void 0,e)}var lu=Symbol.for(`react.lazy`);function uu(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Kl(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===lu&&(i=G.Children.toArray(t)[0]),G.cloneElement(i,e)}if(e&&typeof e==`string`)return du(e,n);throw Error(Ol(8))}function du(e,t){return e===`button`?(0,G.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,G.createElement)(`img`,{alt:``,...t,key:t.key}):G.createElement(e,t)}var fu=`none`,pu=`trigger-press`,mu=`outside-press`,hu=`item-press`,gu=`close-press`,_u=`clear-press`,vu=`input-change`,yu=`input-clear`,bu=`input-press`,xu=`focus-out`,Su=`escape-key`,Cu=`list-navigation`;function wu(e,t,n,r){let i=!1,a=!1,o=r??Vl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Tu(e,t,n){let r=n??Vl;return{reason:e,event:t??new Event(`base-ui`),...r}}var Eu={...G},Du=0;function Ou(e,t=`mui`){let[n,r]=G.useState(e),i=e||n;return G.useEffect(()=>{n??(Du+=1,r(`${t}-${Du}`))},[n,t]),i}var ku=Eu.useId;function Au(e,t){if(ku!==void 0){let n=ku();return e??(t?`${t}-${n}`:n)}return Ou(e,t)}function ju(e){return Au(e,`base-ui`)}var Mu=[];function Nu(e){G.useEffect(e,Mu)}var Pu=null;globalThis.requestAnimationFrame;var Fu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Iu=class e{static create(){return new e}static request(e){return Fu.request(e)}static cancel(e){return Fu.cancel(e)}currentId=Pu;request(e){this.cancel(),this.currentId=Fu.request(()=>{this.currentId=Pu,e()})}cancel=()=>{this.currentId!==Pu&&(Fu.cancel(this.currentId),this.currentId=Pu)};disposeEffect=()=>this.cancel};function Lu(){let e=ml(Iu.create).current;return Nu(e.disposeEffect),e}function Ru(e){return e==null?e:`current`in e?e.current:e}var zu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Bu={[zu.startingStyle]:``},Vu={[zu.endingStyle]:``},Hu={transitionStatus(e){return e===`starting`?Bu:e===`ending`?Vu:null}},Uu=o(i());function Wu(e,t=!1,n=!0){let r=Lu();return X((i,a=null)=>{r.cancel();let o=Ru(e);if(o==null)return;let s=o,c=()=>{Uu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=zu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Gu(e,t=!1,n=!1){let[r,i]=G.useState(e&&t?`idle`:void 0),[a,o]=G.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),Z(()=>{if(!e&&a&&r!==`ending`&&n){let e=Iu.request(()=>{i(`ending`)});return()=>{Iu.cancel(e)}}},[e,a,r,n]),Z(()=>{if(!e||t)return;let n=Iu.request(()=>{i(void 0)});return()=>{Iu.cancel(n)}},[t,e]),Z(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Iu.request(()=>{i(`idle`)});return()=>{Iu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var Ku=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function qu(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=bl(),f=G.useRef(-1),[p,m]=G.useState(a??(i===Ku.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=G.useRef(null),g=G.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return Z(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),Z(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),G.useMemo(()=>({ref:g,index:p}),[p,g])}var Ju=G.createContext(void 0);function Yu(e=!1){let t=G.useContext(Ju);if(t===void 0&&!e)throw Error(Ol(16));return t}function Xu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:G.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Zu(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=G.useRef(null),s=Yu(!0),c=a??s!==void 0,{props:l}=Xu({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=G.useCallback(()=>{let e=o.current;Qu(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Z(u,[u]),{getButtonProps:G.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Kl({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(ru(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Qu(a),l=!i&&$u(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(ru(e),a?.(e),e.target===e.currentTarget&&i&&c&&Qu(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:X(e=>{o.current=e,u()})}}function Qu(e){return C(e)&&e.tagName===`BUTTON`}function $u(e){return!!(e?.tagName===`A`&&e?.href)}var ed=typeof navigator<`u`,td=ud(),nd=fd(),rd=dd(),id=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),ad=td.platform===`MacIntel`&&td.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(td.platform),od=ed&&/firefox/i.test(rd),sd=ed&&/apple/i.test(navigator.vendor);ed&&/Edg/i.test(rd);var cd=ed&&/android/i.test(nd)||/android/i.test(rd);ed&&nd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var ld=rd.includes(`jsdom/`);function ud(){if(!ed)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function dd(){if(!ed)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function fd(){if(!ed)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var pd=`data-base-ui-focusable`,md=`ArrowLeft`,hd=`ArrowRight`,gd=`ArrowUp`,_d=`ArrowDown`;function vd(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function yd(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&te(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function bd(e){return`composedPath`in e?e.composedPath()[0]:e.target}function xd(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Sd(e){return e.matches(`html,body`)}function Cd(e){return C(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function wd(e){return e?e.getAttribute(`role`)===`combobox`&&Cd(e):!1}function Td(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ed(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ed(e,t.id,n)])}function Dd(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Od(e){e.preventDefault(),e.stopPropagation()}function kd(e){return`nativeEvent`in e}function Ad(e){return e.pointerType===``&&e.isTrusted?!0:cd&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function jd(e){return ld?!1:!cd&&e.width===0&&e.height===0||cd&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Md(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Nd(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Pd(e,t,n){return Math.floor(e/t)!==n}function Fd(e,t){return t<0||t>=e.length}function Id(e,t){return Rd(e.current,{disabledIndices:t})}function Ld(e,t){return Rd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Rd(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Ud(e,a,r));return a}function zd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:d,stopEvent:f=!1}){let p=d,m;if(t.key===`ArrowUp`?m=`up`:t.key===`ArrowDown`&&(m=`down`),m){let n=[],a=[],h=!1,g=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;g+=1;let o=e.closest(`[role="row"]`);o&&(h=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let _=!1,v=0;if(h)for(let e of n){let t=e.length;t>v&&(v=t),t!==o&&(_=!0)}let y=_&&g{if(!_||d===-1)return;let c=a[d];if(c==null)return;let l=n[c].indexOf(d),u=o===`up`?-1:1;for(let o=c+u,f=0;f=n.length){if(!r||y)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,d,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Ud(e,n,s))return n}}},S=t=>{if(!y||d===-1)return;let n=d%b,i=t===`up`?-b:b,a=l-l%b,o=u(l/b)+1;for(let t=d-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+b-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Ud(e,r,s))return r}};f&&Od(t);let C=x(m)??S(m);if(C!==void 0)p=C;else if(d===-1)p=m===`up`?l:c;else if(p=Rd(e,{startingIndex:d,amount:b,decrement:m===`up`,disabledIndices:s}),r){if(m===`up`&&(d-be?r:r-b,i&&(p=i(t,d,p))}m===`down`&&d+b>l&&(p=Rd(e,{startingIndex:d%b-b,amount:b,disabledIndices:s}),i&&(p=i(t,d,p)))}Fd(e,p)&&(p=d)}if(n===`both`){let n=u(d/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(f&&Od(t),d%o===o-1?r&&(p=Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p))):(p=Rd(e,{startingIndex:d,disabledIndices:s}),r&&Pd(p,o,n)&&(p=Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p)))),Pd(p,o,n)&&(p=d)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(f&&Od(t),d%o===0?r&&(p=Rd(e,{startingIndex:d+(o-d%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,d,p))):(p=Rd(e,{startingIndex:d,decrement:!0,disabledIndices:s}),r&&Pd(p,o,n)&&(p=Rd(e,{startingIndex:d+(o-d%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,d,p)))),Pd(p,o,n)&&(p=d));let c=u(l/o)===n;Fd(e,p)&&(r&&c?(p=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Rd(e,{startingIndex:d-d%o-1,disabledIndices:s}),i&&(p=i(t,d,p))):p=d)}return p}function Bd(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Vd(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Hd(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Ud(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Gd(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Wd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Gd(e,t=e?N(e):null){return!e||!e.isConnected||!t||Wd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}function Kd(e){return e?.ownerDocument||document}var qd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Jd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return te(n)?n.host:null}function Yd(e){for(let t of Array.from(e.children))if(b(t)===`summary`)return t;return null}function Xd(e,t){let n=Yd(t);return!!n&&(e===n||yd(n,e))}function Zd(e){let t=e?b(e):``;return e!=null&&e.matches(qd)&&(t!==`summary`||e.parentElement!=null&&b(e.parentElement)===`details`&&Yd(e.parentElement)===e)&&(t!==`details`||Yd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Qd(e){if(!Zd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Jd(t)){let n=t!==e,r=b(t)===`slot`;if(t.hasAttribute(`inert`)||n&&b(t)===`details`&&!t.open&&!Xd(e,t)||t.hasAttribute(`hidden`)||!r&&!$d(t,n))return!1}return!0}function $d(e,t){let n=N(e);return t?n.display!==`none`:Gd(e,n)}function ef(e){let t=e.tabIndex;if(t<0){let t=b(e);if(t===`details`||t===`audio`||t===`video`||C(e)&&e.isContentEditable)return 0}return t}function tf(e){if(b(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function nf(e,t){let n=tf(e);if(!n)return!0;let r=t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form})===n}function rf(e){if(C(e)&&b(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return C(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function af(e,t){rf(e).forEach(e=>{Zd(e)&&t.push(e),af(e,t)})}function of(e,t,n){rf(e).forEach(e=>{C(e)&&e.matches(t)&&n.push(e),of(e,t,n)})}function sf(e){return Qd(e)&&ef(e)>=0}function cf(e){let t=[];return af(e,t),t.filter(Qd)}function lf(e){let t=cf(e);return t.filter(e=>ef(e)>=0&&nf(e,t))}function uf(e,t){let n=lf(e),r=n.length;if(r===0)return;let i=vd(Kd(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function df(e){return uf(Kd(e).body,1)||e}function ff(e){return uf(Kd(e).body,-1)||e}function pf(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!yd(n,r)}function mf(e){lf(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function hf(e){let t=[];of(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function gf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _f(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=X(i),o=Wu(r,n,!1);G.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function vf(e){let t=G.useRef(!0);t.current&&(t.current=!1,e())}var yf=0,bf=class e{static create(){return new e}currentId=yf;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=yf,t()},e)}isStarted(){return this.currentId!==yf}clear=()=>{this.currentId!==yf&&(clearTimeout(this.currentId),this.currentId=yf)};disposeEffect=()=>this.clear};function xf(){let e=ml(bf.create).current;return Nu(e.disposeEffect),e}var Sf={},Cf={},wf=``;function Tf(e){if(typeof document>`u`)return!1;let t=Kd(e);return A(t).innerWidth-t.documentElement.clientWidth>0}function Ef(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Kd(e),n=t.documentElement,r=t.body,i=P(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Df(e){let t=Kd(e),n=t.documentElement,r=t.body,i=P(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Of(e){let t=Kd(e),n=t.documentElement,r=t.body,i=A(n),a=0,o=0,s=!1,c=Iu.create();if(id&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Sf={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},wf=n.style.scrollBehavior,Cf={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=P(n)?n:r;if(s=Ef(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Sf),Object.assign(r.style,Cf),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=wf)}function d(){u(),c.request(l)}l();let f=gf(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var kf=new class{lockCount=0;restore=null;timeoutLock=bf.create();timeoutUnlock=bf.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Kd(e).documentElement,n=A(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=zl;return}let r=ad||!Tf(e);this.restore=r?Df(e):Of(e)}};function Af(e=!0,t=null){Z(()=>{if(e)return kf.acquire(t)},[e,t])}function jf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Pf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Ff={...Pf,position:`fixed`,top:0,left:0},If={...Pf,position:`absolute`},Lf=G.forwardRef(function(e,t){let[n,r]=G.useState();Z(()=>{sd&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Y.jsx)(`span`,{...e,ref:t,style:Ff,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Rf(e){return`data-base-ui-${e}`}var zf=0;function Bf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(zf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),zl;let o=requestAnimationFrame(a);return zf=o,()=>{zf===o&&(cancelAnimationFrame(o),zf=0)}}var Vf={inert:new WeakMap,"aria-hidden":new WeakMap},Hf=`data-base-ui-inert`,Uf={inert:new WeakSet,"aria-hidden":new WeakSet},Wf=new WeakMap,Gf=0;function Kf(e){return Uf[e]}function qf(e){return e?te(e)?e.host:qf(e.parentNode):null}var Jf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=qf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Yf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Xf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{b(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Zf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Jf(t,e),u=i?Jf(t,a):[],d=new Set(u),f=i?Xf(t,Yf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Vf[o],n=Kf(o);c=n,s=e;let r=Jf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Xf(t,Yf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Wf.get(e)||0)+1;Wf.set(e,t),m.push(e),t===1&&e.setAttribute(Hf,``)}),Gf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Wf.get(e)||0)-1;Wf.set(e,t),t||e.removeAttribute(Hf)}),--Gf,Gf||(Vf.inert=new WeakMap,Vf[`aria-hidden`]=new WeakMap,Uf.inert=new WeakSet,Uf[`aria-hidden`]=new WeakSet,Wf=new WeakMap)}}function Qf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Kd(e[0]).body;return Zf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var $f={style:{transition:`none`}},ep={fallbackAxisSide:`none`},tp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},np=G.createContext(null),rp=()=>G.useContext(np),ip=Rf(`portal`);function ap(e={}){let{ref:t,container:n,componentProps:r=Vl,elementProps:i}=e,a=Au(),o=rp()?.portalNode,[s,c]=G.useState(null),[l,u]=G.useState(null),d=X(e=>{e!==null&&u(e)}),f=G.useRef(null);Z(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(g(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=ou(`div`,r,{ref:[t,d],props:[{id:a,[ip]:``},i]});return{portalNode:l,portalSubtree:s&&p?Uu.createPortal(p,s):null}}var op=G.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=ap({container:r,ref:t,componentProps:e,elementProps:c}),d=G.useRef(null),f=G.useRef(null),p=G.useRef(null),m=G.useRef(null),[h,g]=G.useState(null),_=G.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;G.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&pf(e)&&(e.type===`focusin`?_.current&&=(hf(l),!1):(mf(l),_.current=!0))}return jf(gf(l,`focusin`,e,!0),gf(l,`focusout`,e,!0))},[l,v]),G.useEffect(()=>{!l||y!==!1||(hf(l),_.current=!1)},[y,l]);let x=G.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,Y.jsxs)(G.Fragment,{children:[u,(0,Y.jsxs)(np.Provider,{value:x,children:[b&&l&&(0,Y.jsx)(Lf,{"data-type":`outside`,ref:d,onFocus:e=>{pf(e,l)?p.current?.focus():ff(h?h.domReference:null)?.focus()}}),b&&l&&(0,Y.jsx)(`span`,{"aria-owns":l.id,style:tp}),l&&Uu.createPortal(n,l),b&&l&&(0,Y.jsx)(Lf,{"data-type":`outside`,ref:f,onFocus:e=>{pf(e,l)?m.current?.focus():(df(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,wu(`focus-out`,e.nativeEvent)))}})]})]})});function sp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var cp=G.createContext(null),lp=G.createContext(null),up=()=>G.useContext(cp)?.id||null,dp=e=>{let t=G.useContext(lp);return e??t};function fp(e,t){let n=A(bd(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var pp=20,mp=[];function hp(){mp=mp.filter(e=>e.deref()?.isConnected)}function gp(e){hp(),e&&b(e)!==`body`&&(mp.push(new WeakRef(e)),mp.length>pp&&(mp=mp.slice(-pp)))}function _p(){return hp(),mp[mp.length-1]?.deref()}function vp(e){return e?sf(e)?e:lf(e)[0]||e:null}function yp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=cf(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return sf(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function bp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=X(()=>b.current.floatingContext?.nodeId),S=i===!1,w=wd(_)&&S,T=G.useRef([`content`]),E=Mf(i),D=Mf(a),O=Mf(l),k=dp(p),A=rp(),j=G.useRef(!1),M=G.useRef(!1),N=G.useRef(!1),P=G.useRef(null),ee=G.useRef(``),F=G.useRef(``),te=G.useRef(null),I=G.useRef(null),L=kl(te,f,A?.beforeInsideRef),R=kl(I,A?.afterInsideRef),ne=xf(),re=xf(),z=Lu(),B=A!=null,V=Td(v),ie=X((e=V)=>e?lf(e):[]),H=X(()=>m?.().filter(e=>e!=null)??[]);G.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&yd(V,vd(Kd(V)))&&ie().length===0&&!w&&Od(e)}return gf(Kd(V),`keydown`,e)},[r,_,V,s,T,w,ie]),G.useEffect(()=>{if(r||!g)return;let e=Kd(V);function t(){N.current=!1}function n(e){let t=bd(e),n=H();N.current=!(yd(v,t)||yd(_,t)||yd(A?.portalNode,t)||n.some(e=>e===t||yd(e,t))),F.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){F.current=`keyboard`}return jf(gf(e,`pointerdown`,n,!0),gf(e,`pointerup`,t,!0),gf(e,`pointercancel`,t,!0),gf(e,`keydown`,i,!0))},[r,v,_,V,g,A,H]),G.useEffect(()=>{if(r||!c)return;let e=Kd(V);function t(){M.current=!0,re.start(0,()=>{M.current=!1})}function n(e){let t=bd(e);sf(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=bd(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=H(),f=n?.hasAttribute(Rf(`focus-guard`))&&[te.current,I.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,Ru(d),Ru(u)].includes(n),p=!(yd(_,n)||yd(v,n)||yd(n,v)||yd(A?.portalNode,n)||l.some(e=>e===n||yd(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>yd(e,n))||f||k&&(Ed(k.nodesRef.current,a).find(e=>yd(e.context?.elements.floating,n)||yd(e.context?.elements.domReference,n))||Dd(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Td(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&V&&yp(V,T),o&&r!==_&&!Gd(i)&&vd(e)===e.body){if(C(V)&&(V.focus(),o===`popup`)){z.request(()=>{V.focus()});return}let e=ie(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;C(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(w||!s)&&n&&p&&!M.current&&(w||n!==_p())&&(j.current=!0,h.setOpen(!1,wu(xu,t)))})}function a(){N.current||(b.current.insideReactTree=!0,ne.start(0,()=>{b.current.insideReactTree=!1}))}let l=C(_)?_:null;if(!(!v&&!l))return jf(l&&gf(l,`focusout`,i),l&&gf(l,`pointerdown`,t),v&&gf(v,`focusin`,n),v&&gf(v,`focusout`,i),v&&A&&gf(v,`focusout`,a,!0))},[r,_,v,V,s,k,A,h,c,o,ie,w,x,T,b,ne,re,z,u,d,H]),G.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${Rf(`portal`)}]`)||[]),t=(k?Dd(k.nodesRef.current,x()):[]).find(e=>wd(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Qf([v,...e,te.current,I.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...H(),t,Ru(d),Ru(u),w?_:null].filter(e=>e!=null),{ariaHidden:s||w,mark:!1}),i=Qf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,T,A,w,k,x,u,d,H]),Z(()=>{if(!g||r||!C(V))return;let e=vd(Kd(V));queueMicrotask(()=>{let t=E.current,n=typeof t==`function`?t(O.current||``):t;if(n===void 0||n===!1||yd(V,e))return;let r=null,i=()=>(r??=ie(V),r[0]||V),a;a=n===!0||n===null?i():Ru(n),a||=i(),Bf(a,{preventScroll:a===V})})},[r,g,V,S,ie,E,O]),Z(()=>{if(r||!V)return;let e=Kd(V);gp(vd(e));function t(e){if(e.open||(ee.current=fp(e.nativeEvent,F.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(Ad(e.nativeEvent)||jd(e.nativeEvent))j.current=!1;else{let e=!1;Kd(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=D.current,t=typeof e==`function`?e(ee.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||_p();return e&&e.isConnected?e:null}let n=_||_p();return Ru(t)||n||null}return()=>{y.off(`openchange`,t);let r=vd(e),i=H(),a=yd(v,r)||i.some(e=>e===r||yd(e,r))||k&&Ed(k.nodesRef.current,x(),!1).some(e=>yd(e.context?.elements.floating,r)),o=D.current,s=n();queueMicrotask(()=>{let t=vp(s),n=typeof o!=`boolean`;o&&!j.current&&C(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,V,D,b,y,k,_,x,H]),Z(()=>{if(!id||g||!v)return;let e=vd(Kd(v));!C(e)||!Cd(e)||yd(v,e)&&e.blur()},[g,v]),Z(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),Z(()=>{if(!(r||!V))return yp(V,T),()=>{queueMicrotask(hp)}},[r,V,T]);let ae=!r&&(s?!w:!0)&&(B||s);return(0,Y.jsxs)(G.Fragment,{children:[ae&&(0,Y.jsx)(Lf,{"data-type":`inside`,ref:L,onFocus:e=>{if(s){let e=ie();Bf(e[e.length-1])}else A?.portalNode&&(j.current=!1,pf(e,A.portalNode)?df(_)?.focus():Ru(d??A.beforeOutsideRef)?.focus())}}),n,ae&&(0,Y.jsx)(Lf,{"data-type":`inside`,ref:R,onFocus:e=>{s?Bf(ie()[0]):A?.portalNode&&(c&&(j.current=!0),pf(e,A.portalNode)?ff(_)?.focus():Ru(u??A.afterOutsideRef)?.focus())}})]})}function xp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=pu}=t,d=G.useRef(void 0),f=Lu(),p=xf(),m=G.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Md(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=bd(i);if(Cd(y)){let e=wu(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=wu(u,i,b);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Md(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Nd(f))),g=wu(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return G.useMemo(()=>i?{reference:m}:Vl,[i,m])}var Sp={intentional:`onClick`,sloppy:`onPointerDown`};function Cp(){return!1}function wp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Tp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=Cp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,m=dp(p),h=X(typeof c==`function`?c:()=>!1),g=typeof c==`function`?h:c,_=g!==!1,y=X(()=>l),b=G.useRef(!1),w=G.useRef(!1),T=G.useRef(!1),{escapeKey:E,outsidePress:O}=wp(f),k=G.useRef(null),A=xf(),j=xf(),M=X(()=>{j.clear(),a.current.insideReactTree=!1}),P=G.useRef(!1),ee=G.useRef(``),F=X(u),I=X(e=>{if(!r||!o||!s||e.key!==`Escape`||P.current)return;let t=a.current.floatingContext?.nodeId,i=m?Ed(m.nodesRef.current,t):[];if(!E&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=wu(Su,kd(e)?e.nativeEvent:e);n.setOpen(!1,c),!E&&!c.isPropagationAllowed&&e.stopPropagation()}),L=X(()=>{a.current.insideReactTree=!0,j.start(0,M)});G.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=E,a.current.__outsidePressBubbles=O;let e=new bf,t=new bf;function c(){e.clear(),P.current=!0}function l(){e.start(v()?5:0,()=>{P.current=!1})}function u(){T.current=!0,t.start(0,()=>{T.current=!1})}function d(){b.current=!1,w.current=!1}function f(){let e=ee.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=a.current.floatingContext?.nodeId,r=m&&Ed(m.nodesRef.current,t).some(t=>xd(e,t.context?.elements.floating));return xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||r}function j(e){if(p(e)){M();return}if(a.current.insideReactTree){M();return}let r=bd(e),i=`[${Rf(`inert`)}]`,o=D(r)?r.getRootNode():null,s=Array.from((te(o)?o:Kd(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>yd(e,r))))return;let l=D(r)?r:null;for(;l&&!S(l);){let e=x(l);if(S(e)||!D(e))break;l=e}if(s.length&&D(r)&&!Sd(r)&&!yd(r,n.select(`floatingElement`))&&s.every(e=>!yd(l,e)))return;if(C(r)&&!(`touches`in e)){let t=S(r),n=N(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(h(e))return;if(f()===`intentional`&&T.current){t.clear(),T.current=!1;return}if(typeof g==`function`&&!g(e))return;let u=a.current.floatingContext?.nodeId,d=m?Ed(m.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,wu(mu,e)),M()}function F(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||j(e)}function L(e){if(f()!==`sloppy`||!n.select(`open`)||!o||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(k.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},A.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function R(e,t){let n=bd(e);if(!n)return;let r=gf(n,e.type,()=>{t(e),r()})}function ne(e){ee.current=`touch`,R(e,L)}function re(e){A.clear(),e.type===`pointerdown`&&(ee.current=e.pointerType),!(e.type===`mousedown`&&k.current&&!k.current.dismissOnMouseDown)&&R(e,e=>{e.type===`pointerdown`?F(e):j(e)})}function z(e){if(!b.current)return;let n=w.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!h(e)){if(n){u();return}typeof g==`function`&&!g(e)||(t.clear(),T.current=!0,M())}}}function B(e){if(f()!==`sloppy`||!k.current||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-k.current.startX),i=Math.abs(t.clientY-k.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(k.current.dismissOnTouchEnd=!0),a>10&&(j(e),A.clear(),k.current=null)}function V(e){R(e,B)}function ie(e){f()!==`sloppy`||!k.current||xd(e,n.select(`floatingElement`))||xd(e,n.select(`domReferenceElement`))||(k.current.dismissOnTouchEnd&&j(e),A.clear(),k.current=null)}function H(e){R(e,ie)}let ae=Kd(i),oe=jf(s&&jf(gf(ae,`keydown`,I),gf(ae,`compositionstart`,c),gf(ae,`compositionend`,l)),_&&jf(gf(ae,`click`,re,!0),gf(ae,`pointerdown`,re,!0),gf(ae,`pointerup`,z,!0),gf(ae,`pointercancel`,z,!0),gf(ae,`mousedown`,re,!0),gf(ae,`mouseup`,z,!0),gf(ae,`touchstart`,ne,!0),gf(ae,`touchmove`,V,!0),gf(ae,`touchend`,H,!0)));return()=>{oe(),e.clear(),t.clear(),d(),T.current=!1}},[a,i,s,_,g,r,o,E,O,I,M,y,m,n,A]),G.useEffect(M,[g,M]);let R=G.useMemo(()=>({onKeyDown:I,[Sp[d]]:e=>{F()&&n.setOpen(!1,wu(pu,e.nativeEvent))},...d!==`intentional`&&{onClick(e){F()&&n.setOpen(!1,wu(`trigger-press`,e.nativeEvent))}}}),[I,n,d,F]),ne=X(e=>{if(!r||!o||e.button!==0)return;let t=bd(e.nativeEvent);yd(n.select(`floatingElement`),t)&&(b.current||(b.current=!0,w.current=!1))}),re=X(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(w.current=!0)}),z=G.useMemo(()=>({onKeyDown:I,onPointerDown:re,onMouseDown:re,onClickCapture:L,onMouseDownCapture(e){L(),ne(e)},onPointerDownCapture(e){L(),ne(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[I,L,ne,re]);return G.useMemo(()=>o?{reference:R,floating:z,trigger:R}:{},[o,R,z])}var Ep=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Ol(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Dp=e((e=>{var t=r(),n=se();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Op=e(((e,t)=>{t.exports=Dp()})),kp=[],Ap=void 0;function jp(){return Ap}function Mp(e){kp.push(e)}var Np=se(),Pp=Op(),Fp=Il(19)?Lp:Rp;function Q(e,t,n,r,i){return Fp(e,t,n,r,i)}function Ip(e,t,n,r,i){let a=G.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Np.useSyncExternalStore)(e.subscribe,a,a)}Mp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Np.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Lp(e,t,n,r,i){let a=jp();if(!a)return Ip(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Rp(e,t,n,r,i){return(0,Pp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var zp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Q(this,e,t,n,r)}},Bp=class extends zp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){G.useDebugValue(e),Z(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;Z(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Z(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){G.useDebugValue(e);let n=t!==void 0;Z(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return G.useDebugValue(e),Q(this,this.selectors[e],t,n,r)}useContextCallback(e,t){G.useDebugValue(e);let n=X(t??zl);this.context[e]=n}useStateSetter(e){let t=G.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Vp={open:Ep(e=>e.open),transitionStatus:Ep(e=>e.transitionStatus),domReferenceElement:Ep(e=>e.domReferenceElement),referenceElement:Ep(e=>e.positionReference??e.referenceElement),floatingElement:Ep(e=>e.floatingElement),floatingId:Ep(e=>e.floatingId)},Hp=class extends Bp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:sp(),nested:n,triggerElements:i},Vp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Nd(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},Up=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Wp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Au(),a=up()!=null,o=ml(()=>new Hp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Up,floatingId:i,syncOnly:!1,nested:a})).current;return Z(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=D(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Gp(e={}){let{nodeId:t,externalTree:n}=e,r=Wp(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=G.useState(null),c=G.useRef(null),l=dp(n);Z(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=y({...e,elements:{...a,...o&&{reference:o}}}),d=G.useCallback(e=>{let t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=G.useState(void 0),[m,h]=G.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=D(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=G.useCallback(e=>{(D(e)||e===null)&&(c.current=e,p(e)),(D(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!D(e))&&u.refs.setReference(e)},[u.refs,p]),v=G.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),b=G.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),x=G.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),S=i.useState(`open`),C=i.useState(`floatingId`),w=G.useMemo(()=>({...u,dataRef:i.context.dataRef,open:S,onOpenChange:i.setOpen,events:i.context.events,floatingId:C,refs:b,elements:x,nodeId:t,rootStore:i}),[u,b,x,t,i,S,C]);return Z(()=>{i.context.dataRef.current.floatingContext=w;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),G.useMemo(()=>({...u,context:w,refs:b,elements:x,rootStore:i}),[u,b,x,w,i])}function Kp(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=G.useCallback(t=>qp(t,e,`reference`),t),o=G.useCallback(t=>qp(t,e,`floating`),n),s=G.useCallback(t=>qp(t,e,`item`),r),c=G.useCallback(t=>qp(t,e,`trigger`),i);return G.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function qp(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[pd]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Yp=`Escape`;function Xp(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Zp(e,t){return Xp(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Qp(e,t,n){return Xp(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function $p(e,t,n){return Xp(t,n?e===md:e===hd,e===_d)}function em(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Yp:Xp(t,n?e===hd:e===md,e===gd)}function tm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,parentOrientation:S,cols:w=1,id:T,resetOnPointerLeave:E=!0,externalTree:D}=t,O=Mf(Td(i)),k=up(),A=dp(D);Z(()=>{o.current.orientation=x},[o,x]);let j=wd(a),M=G.useRef(_),N=G.useRef(d??-1),P=G.useRef(null),ee=G.useRef(!0),F=X(e=>{l(N.current===-1?null:N.current,e)}),te=G.useRef(F),I=G.useRef(!!i),L=G.useRef(r),R=G.useRef(!1),ne=G.useRef(!1),re=G.useRef(null),z=Mf(b),B=Mf(r),V=Mf(d),ie=Mf(E),H=X(()=>{function e(e){g?A?.events.emit(`virtualfocus`,e):re.current=Bf(e,{sync:R.current,preventScroll:!0})}let t=s.current[N.current],n=ne.current;t&&e(t),(R.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[N.current]||t;r&&(t||e(r),U&&(n||!ee.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Z(()=>{u&&(r&&i?(N.current=d??-1,M.current&&d!=null&&(ne.current=!0,F())):I.current&&(N.current=-1,te.current()))},[u,r,i,d,F]),Z(()=>{if(u){if(!r){R.current=!1;return}if(i)if(c==null){if(R.current=!1,V.current!=null)return;if(I.current&&(N.current=-1,H()),(!L.current||!I.current)&&M.current&&(P.current!=null||M.current===!0&&P.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(N.current=P.current==null||Qp(P.current,x,h)||m?Id(s):Ld(s),P.current=null,F())};t()}}else Fd(s.current,c)||(N.current=c,H(),ne.current=!1)}},[u,r,i,c,V,m,s,x,h,F,H,z]),Z(()=>{if(!u||i||!A||g||!I.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===k)?.context?.elements.floating,n=vd(Kd(i)),r=e.some(e=>e.context&&yd(e.context.elements.floating,n));t&&!r&&ee.current&&t.focus({preventScroll:!0})},[u,i,A,k,g]),Z(()=>{te.current=F,L.current=r,I.current=!!i}),Z(()=>{r||(P.current=null,M.current=_)},[r,_]);let ae=c!=null,oe=X(e=>{if(!B.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&(N.current!==t||c!==t)&&(N.current=t,F(e))}),U=G.useMemo(()=>({onFocus(e){R.current=!0,oe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){R.current=!0,ne.current=!1,v&&oe(e)},onPointerLeave(e){if(!B.current||!ee.current||e.pointerType===`touch`)return;R.current=!0;let t=e.relatedTarget;if(!(!v||s.current.includes(t))&&ie.current&&(re.current?.(),re.current=null,N.current=-1,F(e),!g)){let e=O.current,t=vd(Kd(e));e&&yd(e,t)&&e.focus({preventScroll:!0})}}}),[oe,B,O,v,s,F,ie,g]),se=G.useCallback(()=>S??A?.nodesRef.current.find(e=>e.id===k)?.context?.dataRef?.current.orientation,[k,A,S]),ce=X(e=>{if(ee.current=!1,R.current=!0,e.which===229||!B.current&&e.currentTarget===O.current)return;if(m&&em(e.key,x,h,w)){Zp(e.key,se())||Od(e),n.setOpen(!1,wu(Cu,e.nativeEvent)),C(a)&&(g?A?.events.emit(`virtualfocus`,a):a.focus());return}let t=N.current,i=Id(s,b),o=Ld(s,b);if(j||(e.key===`Home`&&(Od(e),N.current=i,F(e)),e.key===`End`&&(Od(e),N.current=o,F(e))),w>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=Bd(t,w,!1),r=n.findIndex(e=>e!=null&&!Ud(s.current,e,b)),a=n.reduce((e,t,n)=>t!=null&&!Ud(s.current,t,b)?n:e,-1),c=n[zd(n.map(e=>e==null?null:s.current[e]),{event:e,orientation:x,loopFocus:p,rtl:h,cols:w,disabledIndices:Hd([...(typeof b==`function`?null:b)||s.current.map((e,t)=>Ud(s.current,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:Vd(N.current>o?i:N.current,t,n,w,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(N.current=c,F(e)),x===`both`)return}if(Zp(e.key,x)){if(Od(e),r&&!g&&vd(e.currentTarget.ownerDocument)===e.currentTarget){N.current=Qp(e.key,x,h)?i:o,F(e);return}Qp(e.key,x,h)?p?t>=o?f&&t!==s.current.length?N.current=-1:(R.current=!1,N.current=i):N.current=Rd(s.current,{startingIndex:t,disabledIndices:b}):N.current=Math.min(o,Rd(s.current,{startingIndex:t,disabledIndices:b})):p?t<=i?f&&t!==-1?N.current=s.current.length:(R.current=!1,N.current=o):N.current=Rd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b}):N.current=Math.max(i,Rd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b})),Fd(s.current,N.current)&&(N.current=-1),F(e)}}),le=G.useMemo(()=>g&&r&&ae&&{"aria-activedescendant":`${T}-${c}`},[g,r,ae,T,c]),ue=G.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...j?{}:le,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=bd(e.nativeEvent);if(t&&!yd(O.current,t))return;Od(e),n.setOpen(!1,wu(xu,e.nativeEvent)),C(a)&&a.focus();return}ce(e)},onPointerMove(){ee.current=!0}}),[le,ce,O,x,j,n,r,g,a]),de=G.useMemo(()=>{function e(e){_===`auto`&&Ad(e.nativeEvent)&&(M.current=!g)}function t(e){M.current=_,_===`auto`&&jd(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);ee.current=!1;let r=e.key.startsWith(`Arrow`),i=$p(e.key,se(),h),a=Zp(e.key,x),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return ce(e);if(!(!t&&!y&&r)){if(o){let t=Zp(e.key,se());P.current=m&&t?null:e.key}if(m){i&&(Od(e),t?(N.current=Id(s,z.current),F(e)):n.setOpen(!0,wu(Cu,e.nativeEvent,e.currentTarget)));return}a&&(V.current!=null&&(N.current=V.current),Od(e),!t&&y?n.setOpen(!0,wu(Cu,e.nativeEvent,e.currentTarget)):ce(e),t&&F(e))}},onFocus(e){n.select(`open`)&&!g&&(N.current=-1,F(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ce,z,_,s,m,F,n,y,x,se,h,V,g]),fe=G.useMemo(()=>({...le,...de}),[le,de]);return G.useMemo(()=>u?{reference:fe,floating:ue,item:U,trigger:de}:{},[u,fe,ue,de,U])}function nm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=xf(),m=G.useRef(``),h=G.useRef(f??s??-1),g=G.useRef(null);Z(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),Z(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=X(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=X(e=>{function t(e){let t=o?.current[e];return!t||Gd(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(Od(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(Od(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=X(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=yd(r,t),o=yd(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=G.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=G.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return G.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}function rm(e){let t=G.useRef(``),n=G.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:G.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function im(e,t){let n=G.useRef(e),r=X(t);Z(()=>{n.current!==e&&r(n.current)},[e,r]),Z(()=>{n.current=e},[e])}function am(e){let[t,n]=G.useState(null),r=X((t,r)=>{e||n(r||(ad?`touch`:``))});im(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=rm(r);return G.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}var om=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=zu.startingStyle]=`startingStyle`,e[e.endingStyle=zu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),sm=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),cm={[sm.popupOpen]:``},lm={[sm.popupOpen]:``,[sm.pressed]:``},um={[om.open]:``},dm={[om.closed]:``},fm={[om.anchorHidden]:``},pm={open(e){return e?cm:null}},mm={open(e){return e?lm:null}},hm={open(e){return e?um:dm},anchorHidden(e){return e?fm:null}};function gm(e){return Il(19)?e:e?`true`:void 0}var _m=G.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Y.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),vm=G.createContext(void 0),ym=G.createContext(void 0),bm=G.createContext(void 0),xm=G.createContext(``);function Sm(){let e=G.useContext(vm);if(!e)throw Error(Ol(22));return e}function Cm(){let e=G.useContext(ym);if(!e)throw Error(Ol(23));return e}function wm(){let e=G.useContext(bm);if(!e)throw Error(Ol(24));return e}function Tm(){return G.useContext(xm)}var Em=(e,t)=>Object.is(e,t);function Dm(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Om(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:Dm(t,e,n))}function km(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:Dm(e,t,n))}function Am(e,t,n){return e.filter(e=>!Dm(t,e,n))}function jm(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Mm(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Nm(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Mm(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Pm(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return jm(e)}function Fm(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?jm(e.value):jm(e)}var $={id:Ep(e=>e.id),labelId:Ep(e=>e.labelId),items:Ep(e=>e.items),selectedValue:Ep(e=>e.selectedValue),hasSelectionChips:Ep(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:Ep(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:Ep((e,t)=>t?Nm(e.items):!1),open:Ep(e=>e.open),mounted:Ep(e=>e.mounted),forceMounted:Ep(e=>e.forceMounted),inline:Ep(e=>e.inline),activeIndex:Ep(e=>e.activeIndex),selectedIndex:Ep(e=>e.selectedIndex),isActive:Ep((e,t)=>e.activeIndex===t),isSelected:Ep((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Dm(t,e,n)):Dm(t,r,n)}),transitionStatus:Ep(e=>e.transitionStatus),popupProps:Ep(e=>e.popupProps),inputProps:Ep(e=>e.inputProps),triggerProps:Ep(e=>e.triggerProps),getItemProps:Ep(e=>e.getItemProps),positionerElement:Ep(e=>e.positionerElement),listElement:Ep(e=>e.listElement),triggerElement:Ep(e=>e.triggerElement),inputElement:Ep(e=>e.inputElement),inputGroupElement:Ep(e=>e.inputGroupElement),popupSide:Ep(e=>e.popupSide),openMethod:Ep(e=>e.openMethod),inputInsidePopup:Ep(e=>e.inputInsidePopup),selectionMode:Ep(e=>e.selectionMode),name:Ep(e=>e.name),form:Ep(e=>e.form),disabled:Ep(e=>e.disabled),readOnly:Ep(e=>e.readOnly),required:Ep(e=>e.required),grid:Ep(e=>e.grid),virtualized:Ep(e=>e.virtualized),itemToStringLabel:Ep(e=>e.itemToStringLabel),isItemEqualToValue:Ep(e=>e.isItemEqualToValue),modal:Ep(e=>e.modal),autoHighlight:Ep(e=>e.autoHighlight),submitOnItemClick:Ep(e=>e.submitOnItemClick)},Im=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Lm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Rm={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},zm={disabled:!1,...Rm},Bm={valid(e){return e===null?null:e?{[Im.valid]:``}:{[Im.invalid]:``}}},Vm=G.createContext({invalid:void 0,name:void 0,validityData:{state:Lm,errors:[],error:``,value:``,initialValue:null},setValidityData:zl,disabled:void 0,touched:Rm.touched,setTouched:zl,dirty:Rm.dirty,setDirty:zl,filled:Rm.filled,setFilled:zl,focused:Rm.focused,setFocused:zl,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:zm,markedDirtyRef:{current:!1},registerFieldControl:zl,validation:{getValidationProps:(e=Vl)=>e,getInputValidationProps:(e=Vl)=>e,inputRef:{current:null},commit:async()=>{}}});function Hm(e=!0){let t=G.useContext(Vm);if(t.setValidityData===zl&&!e)throw Error(Ol(28));return t}function Um(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Hm(),s=G.useRef(null);s.current||=Symbol(),Z(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Wm=G.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:zl,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Gm(){return G.useContext(Wm)}var Km=G.createContext({controlId:void 0,registerControlId:zl,labelId:void 0,setLabelId:zl,messageIds:[],setMessageIds:zl,getDescriptionProps:e=>e});function qm(){return G.useContext(Km)}function Jm(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=qm(),o=ju(t),s=n?i:void 0,c=ml(()=>Symbol(`labelable-control`)),l=G.useRef(!1),u=G.useRef(t!=null),d=X(()=>{!l.current||a===zl||(l.current=!1,a(c.current,void 0))});return Z(()=>{if(a===zl)return;let e;if(n){let n=r?.current;e=D(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),G.useEffect(()=>d,[d]),i??o}function Ym(e,t){return(n,r)=>{if(n==null)return!1;let i=Pm(n,t);return e.contains(i,r)}}function Xm(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=Pm(r,t),o=n==null?``:Pm(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var Zm=new Map;function Qm(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${$m(e.locale)}|${JSON.stringify(t)}`,r=Zm.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=Pm(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Pm(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Pm(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return Zm.set(n,a),a}function $m(e){return Array.isArray(e)?e.map(e=>$m(e)).join(`,`):e==null?``:String(e)}var eh=Qm,th=Symbol(`none`),nh={value:th,index:-1};function rh(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u=`none`,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:_,grid:v=!1,items:y,filteredItems:b,filter:x,openOnInputClick:S=!0,autoHighlight:C=!1,keepHighlight:w=!1,highlightItemOnHover:T=!0,loopFocus:E=!0,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:k=Em,virtualized:A=!1,inline:j=!1,fillInputOnItemPress:M=!0,modal:N=!1,limit:P=-1,autoComplete:ee=`list`,formAutoComplete:F,locale:te,submitOnItemClick:I=!1}=e,{clearErrors:L}=Gm(),{setDirty:R,validityData:ne,shouldValidateOnChange:re,setFilled:z,name:B,disabled:V,setTouched:ie,setFocused:H,validationMode:ae,validation:oe}=Hm(),U=Jm({id:t}),se=eh({locale:te}),[ce,le]=G.useState(!1),[ue,de]=G.useState(null),fe=G.useRef([]),pe=G.useRef([]),me=G.useRef(null),he=G.useRef(null),W=G.useRef(null),ge=G.useRef(null),_e=G.useRef(null),ve=G.useRef(!0),ye=G.useRef(!1),be=G.useRef(null),xe=G.useRef(null),Se=G.useRef(null),Ce=G.useRef(nh),we=G.useRef(null),Te=G.useRef([]),Ee=G.useRef([]),K=V||m,De=B??f,Oe=u===`multiple`,q=u===`single`,ke=s!==void 0||o!==void 0,Ae=y!==void 0,je=b!==void 0,Me;Me=C===`always`?`always`:C?`input-change`:!1;let[Ne,Pe]=fl({controlled:i,default:Oe?r??Bl:r,name:`Combobox`,state:`selectedValue`}),Fe=G.useMemo(()=>x===null?()=>!0:x===void 0?q&&!ce?Xm(se,D,Ne):Ym(se,D):x,[x,q,Ne,ce,se,D]),Ie=ml(()=>ke?o??``:q?Pm(Ne,D):``).current,[Le,Re]=fl({controlled:s,default:Ie,name:`Combobox`,state:`inputValue`}),[ze,Be]=fl({controlled:c,default:l,name:`Combobox`,state:`open`}),Ve=Mm(y),He=ue??(Le===``?``:String(Le).trim()),Ue=q?Pm(Ne,D):``,We=q&&!ce&&He!==``&&Ue!==``&&Ue.length===He.length&&se.contains(Ue,He),Ge=We?``:He,Ke=Ae&&je&&We,qe=G.useMemo(()=>y?Ve?y.flatMap(e=>e.items):y:Bl,[y,Ve]),Je=G.useMemo(()=>{if(b&&!Ke)return b;if(!y)return Bl;if(Ve){let e=y,t=[],n=0;for(let r of e){if(P>-1&&n>=P)break;let e=Ge===``?r.items:r.items.filter(e=>Fe(e,Ge,D));if(e.length===0)continue;let i=P>-1?P-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Ge===``)return P>-1?qe.slice(0,P):qe;let e=[];for(let t of qe){if(P>-1&&e.length>=P)break;Fe(t,Ge,D)&&e.push(t)}return e},[b,Ke,y,Ve,Ge,P,Fe,D,qe]),Ye=G.useMemo(()=>Ve?Je.flatMap(e=>e.items):Je,[Je,Ve]),Xe=ml(()=>new zp({id:U,labelId:void 0,selectedValue:Ne,open:ze,filter:Fe,query:He,items:y,selectionMode:u,listRef:fe,labelsRef:pe,popupRef:me,emptyRef:_e,inputRef:he,startDismissRef:W,endDismissRef:ge,keyboardActiveRef:ve,chipsContainerRef:be,clearRef:xe,valuesRef:Te,allValuesRef:Ee,selectionEventRef:Se,name:De,form:p,disabled:K,readOnly:h,required:g,grid:v,isGrouped:Ve,virtualized:A,openOnInputClick:S,itemToStringLabel:D,isItemEqualToValue:k,modal:N,autoHighlight:Me,submitOnItemClick:I,hasInputValue:ke,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:j,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,onOpenChangeComplete:n||zl,setOpen:zl,setInputValue:zl,setSelectedValue:zl,setIndices:zl,onItemHighlighted:zl,handleSelection:zl,getItemProps:()=>Vl,forceMount:zl,requestSubmit:zl})).current,Ze=u===`none`?Le:Ne,Qe=G.useMemo(()=>u===`none`?Ze:Array.isArray(Ne)?Ne.map(e=>Fm(e,O)):Fm(Ne,O),[Ze,O,u,Ne]),$e=X(d),et=X(n),tt=Q(Xe,$.activeIndex),nt=Q(Xe,$.selectedIndex),rt=Q(Xe,$.positionerElement),it=Q(Xe,$.listElement),at=Q(Xe,$.triggerElement),ot=Q(Xe,$.inputElement),st=Q(Xe,$.inputGroupElement),ct=Q(Xe,$.inline),lt=Q(Xe,$.inputInsidePopup),ut=Mf(at),{mounted:dt,setMounted:ft,transitionStatus:pt}=Gu(ze),{openMethod:mt,triggerProps:ht}=am(ze),gt=X(()=>Qe);Um(lt?ut:he,{id:U,value:Ze,getValue:gt});let _t=X(()=>{y?pe.current=Ye.map(e=>Pm(e,D)):Xe.set(`forceMounted`,!0)}),vt=G.useRef(Ne);Z(()=>{Ne!==vt.current&&_t()},[_t,Ne]);let yt=X(e=>{Xe.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Ce.current!==nh&&(Ce.current=nh,$e(void 0,Tu(t,void 0,{index:-1})));else{let n=Te.current[e.activeIndex];Ce.current={value:n,index:e.activeIndex},$e(n,Tu(t,void 0,{index:e.activeIndex}))}}),bt=X((t,n)=>{if(ye.current=n.reason===yu,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&le(!0),we.current={hasQuery:e},e&&Me&&Xe.state.activeIndex==null&&Xe.set(`activeIndex`,0)}}Re(t)}}),xt=X((t,n)=>{if(ze!==t&&(n.reason===`escape-key`&&Ae&&Ye.length===0&&!Xe.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(!t&&ce&&(q?(ct||de(He),He===``&&le(!1)):Oe&&(ct||lt?yt({activeIndex:null}):de(He),bt(``,wu(yu,n.event)))),Be(t),!t&<&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ie(!0),H(!1),ae===`onBlur`)))){let e=u===`none`?Le:Ne;oe.commit(e)}}),St=X((e,t)=>{a?.(e,t),!t.isCanceled&&(Pe(e),(u===`none`&&me.current&&M||q&&!Xe.state.inputInsidePopup)&&bt(Pm(e,D),wu(t.reason,t.event)),q&&e!=null&&t.reason!==`input-change`&&ce&&!ct&&de(He))}),Ct=X((e,t)=>{let n=t;if(n===void 0){if(tt===null)return;n=Te.current[tt]}let r=bd(e),i=Se.current??e;Se.current=null;let a=wu(hu,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&xt(!1,a);return}if(Oe){let e=Array.isArray(Ne)?Ne:[];if(St(Om(e,n,Xe.state.isItemEqualToValue)?Am(e,n,Xe.state.isItemEqualToValue):[...e,n],a),!(he.current&&he.current.value.trim()!==``))return;Xe.state.inputInsidePopup?bt(``,wu(yu,a.event)):xt(!1,a)}else St(n,a),xt(!1,a)}),wt=X(()=>{if(!Xe.state.submitOnItemClick)return;let e=oe.inputRef.current?.form??Xe.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Tt=X(()=>{if(ft(!1),et?.(!1),le(!1),de(null),yt(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Oe&&he.current&&he.current.value!==``&&!ye.current&&bt(``,wu(yu)),q)if(Xe.state.inputInsidePopup)he.current&&he.current.value!==``&&bt(``,wu(yu));else{let e=Pm(Ne,D);he.current&&he.current.value!==e&&bt(e,wu(e===``?yu:fu))}}),Et=G.useMemo(()=>ct&&rt?{current:rt.closest(`[role="dialog"]`)}:me,[ct,rt]);_f({enabled:!e.actionsRef,open:ze,ref:Et,onComplete(){ze||Tt()}}),G.useImperativeHandle(e.actionsRef,()=>({unmount:Tt}),[Tt]),Z(function(){if(ze||u===`none`)return;let e=y?qe:Ee.current;if(Oe){let t=Array.isArray(Ne)?Ne:[],n=t[t.length-1],r=km(e,n,k);yt({selectedIndex:r===-1?null:r})}else{let t=km(e,Ne,k);yt({selectedIndex:t===-1?null:t})}},[ze,Ne,y,u,qe,Oe,k,yt]),Z(()=>{y&&(Te.current=Ye,fe.current.length=Ye.length)},[y,Ye]),Z(()=>{let e=we.current;if(e&&(e.hasQuery?Me&&Xe.set(`activeIndex`,0):Me===`always`&&Xe.set(`activeIndex`,0),we.current=null),!ze&&!ct)return;let t=Ae||je?Ye:Te.current,n=Xe.state.activeIndex;if(n==null){if(Me===`always`&&t.length>0){Xe.set(`activeIndex`,0);return}Ce.current!==nh&&(Ce.current=nh,Xe.state.onItemHighlighted(void 0,Tu(fu,void 0,{index:-1})));return}if(n>=t.length){Ce.current!==nh&&(Ce.current=nh,Xe.state.onItemHighlighted(void 0,Tu(fu,void 0,{index:-1}))),Xe.set(`activeIndex`,null);return}let r=t[n],i=Ce.current.value,a=i!==th&&Dm(r,i,Xe.state.isItemEqualToValue);(Ce.current.index!==n||!a)&&(Ce.current={value:r,index:n},Xe.state.onItemHighlighted(r,Tu(fu,void 0,{index:n})))},[tt,Me,je,Ae,Ye,ct,ze,Xe]),Z(()=>{if(u===`none`){z(String(Le)!==``);return}z(Oe?Array.isArray(Ne)&&Ne.length>0:Ne!=null)},[z,u,Le,Ne,Oe]),G.useEffect(()=>{Ae&&Me&&Ye.length===0&&yt({activeIndex:null})},[Ae,Me,Ye.length,yt]),im(He,()=>{!ze||He===``||He===String(Ie)||le(!0)}),im(Ne,()=>{if(u!==`none`&&(L(De),R(Ne!==ne.initialValue),re()?oe.commit(Ne):oe.commit(Ne,!0),q&&!ke&&!lt)){let e=Pm(Ne,D);Le!==e&&bt(e,wu(fu))}}),im(Le,()=>{u===`none`&&(L(De),R(Le!==ne.initialValue),re()?oe.commit(Le):oe.commit(Le,!0))}),im(y,()=>{if(!q||ke||lt||ce)return;let e=Pm(Ne,D);Le!==e&&bt(e,wu(fu))});let Dt=Wp({open:ct?!0:ze,onOpenChange:xt,elements:{reference:lt?at:ot,floating:rt}}),Ot,kt;ct||(Ot=v?`grid`:`listbox`,kt=ze?`true`:`false`);let{getReferenceProps:At,getFloatingProps:jt,getItemProps:Mt}=Kp([G.useMemo(()=>{let e=ot?.tagName===`INPUT`,t=ot==null||e,n=t||ze,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=kt,r[`aria-haspopup`]=Ot,r[`aria-controls`]=ze?it?.id:void 0,r[`aria-autocomplete`]=ee),{reference:r,floating:{role:`presentation`}}},[ot,ze,kt,Ot,it?.id,ee]),xp(Dt,{enabled:!h&&!K&&S,event:`mousedown-only`,toggle:!1,touchOpenDelay:lt?0:100,reason:bu}),Tp(Dt,{enabled:!h&&!K&&!ct,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:ct?!0:void 0,outsidePress(e){let t=bd(e);return!yd(at,t)&&!yd(xe.current,t)&&!yd(be.current,t)&&!yd(st,t)}}),tm(Dt,{enabled:!h&&!K,id:U,listRef:fe,activeIndex:tt,selectedIndex:nt,virtual:!0,loopFocus:E,allowEscape:E&&!Me,focusItemOnOpen:ce||u===`none`&&!Me?!1:`auto`,focusItemOnHover:T,resetOnPointerLeave:!w,cols:v?2:1,orientation:v?`horizontal`:void 0,disabledIndices:Bl,onNavigate(e,t){!t&&!ze||pt===`ending`||yt(t?{activeIndex:e,type:ve.current?`keyboard`:`pointer`}:{activeIndex:e})}})]);vf(()=>{Xe.update({inline:j,popupProps:jt(),inputProps:At(),triggerProps:ht,getItemProps:Mt,setOpen:xt,setInputValue:bt,setSelectedValue:St,setIndices:yt,onItemHighlighted:$e,handleSelection:Ct,forceMount:_t,requestSubmit:wt})}),Z(()=>{Xe.update({id:U,selectedValue:Ne,open:ze,mounted:dt,transitionStatus:pt,items:y,inline:j,popupProps:jt(),inputProps:At(),triggerProps:ht,openMethod:mt,getItemProps:Mt,selectionMode:u,name:De,form:p,disabled:K,readOnly:h,required:g,grid:v,isGrouped:Ve,virtualized:A,onOpenChangeComplete:et,openOnInputClick:S,itemToStringLabel:D,modal:N,autoHighlight:Me,isItemEqualToValue:k,submitOnItemClick:I,hasInputValue:ke,requestSubmit:wt})},[Xe,U,Ne,ze,dt,pt,y,jt,At,Mt,mt,ht,u,De,K,h,g,oe,v,Ve,A,et,S,D,N,k,I,ke,j,wt,Me,p]);let Nt=kl(_,oe.inputRef),Pt=G.useMemo(()=>({query:He,hasItems:Ae,filteredItems:Je,flatFilteredItems:Ye}),[He,Ae,Je,Ye]),Ft=G.useMemo(()=>Array.isArray(Ze)?``:Fm(Ze,O),[Ze,O]),It=Oe&&Array.isArray(Ne)&&Ne.length>0,Lt=Oe||u===`none`?void 0:De,Rt=G.useMemo(()=>!Oe||!Array.isArray(Ne)||!De?null:Ne.map(e=>{let t=Fm(e,O);return(0,Y.jsx)(`input`,{type:`hidden`,form:p,name:De,value:t},t)}),[Oe,Ne,p,De,O]),zt=(0,Y.jsxs)(G.Fragment,{children:[e.children,(0,Y.jsx)(`input`,{...oe.getInputValidationProps({onFocus(){if(lt){at?.focus();return}(he.current||at)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=wu(fu,e.nativeEvent);function r(){if(Oe)return;if(u===`none`){R(t!==ne.initialValue),bt(t,n),re()&&oe.commit(t);return}let e=Te.current.find(e=>Fm(e,O).toLowerCase()===t.toLowerCase()||Pm(e,D).toLowerCase()===t.toLowerCase());e!=null&&(R(e!==ne.initialValue),St?.(e,n),re()&&oe.commit(e))}y?r():(_t(),queueMicrotask(r))}}),id:U&&Lt==null?`${U}-hidden-input`:void 0,form:p,name:Lt,autoComplete:F,disabled:K,required:g&&!It,readOnly:h,value:Ft,ref:Nt,style:Lt?If:Ff,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Rt]});return(0,Y.jsx)(vm.Provider,{value:Xe,children:(0,Y.jsx)(ym.Provider,{value:Dt,children:(0,Y.jsx)(bm.Provider,{value:Pt,children:(0,Y.jsx)(xm.Provider,{value:Le,children:zt})})})})}var ih={...mm,...Bm,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null};function ah(e){let t=e.getBoundingClientRect(),n=A(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function oh(e,t){return e??t}var sh=2,ch=G.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=Hm(),{labelId:h}=qm(),g=Sm(),{filteredItems:_}=wm(),v=Q(g,$.selectionMode),y=Q(g,$.disabled),b=Q(g,$.readOnly),x=Q(g,$.required),S=Q(g,$.mounted),C=Q(g,$.popupSide),w=Q(g,$.positionerElement),T=Q(g,$.listElement),E=Q(g,$.triggerProps),D=Q(g,$.triggerElement),O=Q(g,$.inputInsidePopup),k=Q(g,$.id),A=Q(g,$.labelId),j=Q(g,$.open),M=Q(g,$.selectedValue),N=Q(g,$.activeIndex),P=Q(g,$.selectedIndex),ee=Q(g,$.hasSelectedValue),F=Cm(),te=Tm(),I=xf(),L=u||y||a,R=_.length===0,ne=S&&w?C:null;Jm({id:O?o:void 0});let re=O?o??k:o,z=oh(h,A),B=G.useRef(``);function V(e){B.current=e.pointerType}let ie=F.useState(`domReferenceElement`);G.useEffect(()=>{O&&D&&D!==ie&&F.set(`domReferenceElement`,D)},[D,ie,F,O]);let{reference:H}=nm(F,{enabled:!j&&!b&&!y&&v===`single`,listRef:g.state.labelsRef,activeIndex:N,selectedIndex:P,onMatch(e){let t=g.state.valuesRef.current[e];t!==void 0&&g.state.setSelectedValue(t,wu(`none`))}}),{reference:ae}=xp(F,{enabled:!b&&!y,event:`mousedown`}),{buttonRef:oe,getButtonProps:U}=Zu({native:i,disabled:L}),se={...l,open:j,disabled:L,popupSide:ne,listEmpty:R,placeholder:v===`none`?!1:!ee};return ou(`button`,e,{ref:[t,oe,X(e=>{g.set(`triggerElement`,e)})],state:se,props:[E,ae,H,{id:re,tabIndex:O?0:-1,role:O?`combobox`:void 0,"aria-expanded":j?`true`:`false`,"aria-haspopup":O?`dialog`:`listbox`,"aria-controls":j?T?.id:void 0,"aria-required":O&&x||void 0,"aria-labelledby":z,onPointerDown:V,onPointerEnter:V,onFocus(){f(!0),!(L||b)&&I.start(0,g.state.forceMount)},onBlur(e){if(!yd(w,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?te:M;m.commit(e)}},onMouseDown(e){if(L||b||(O||F.set(`domReferenceElement`,e.currentTarget),g.state.forceMount(),B.current!==`touch`&&(g.state.inputRef.current?.focus(),O||e.preventDefault()),j))return;let t=Kd(e.currentTarget);function n(e){if(!D)return;let t=bd(e),n=g.state.positionerElement,r=g.state.listElement;if(yd(D,t)||yd(n,t)||yd(r,t)||t===D)return;let i=ah(D),a=e.clientX>=i.left-sh&&e.clientX<=i.right+sh,o=e.clientY>=i.top-sh&&e.clientY<=i.bottom+sh;a&&o||g.state.setOpen(!1,wu(`cancel-open`,e))}O&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){L||b||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Od(e),g.state.setOpen(!0,wu(Cu,e.nativeEvent)),g.state.inputRef.current?.focus())}},m?m.getValidationProps(c):c,U],stateAttributesMapping:ih})}),lh=G.createContext(void 0);function uh(){return G.useContext(lh)}var dh=G.createContext(void 0);function fh(e){let t=G.useContext(dh);if(t===void 0&&!e)throw Error(Ol(21));return t}var ph=G.forwardRef(function(e,t){let n=Sm(),{buttonRef:r,getButtonProps:i}=Zu({native:!1});return(0,Y.jsx)(`span`,{ref:kl(t,r),...i({onClick:X(e=>{n.state.setOpen(!1,wu(gu,e.nativeEvent,e.currentTarget))})}),"aria-label":`Dismiss`,tabIndex:void 0,style:If})}),mh=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,setFocused:d,validationMode:f,validation:p}=Hm(),{labelId:m}=qm(),h=uh(),g=!!fh(!0),_=Sm(),{filteredItems:v}=wm(),y=Tm(),b=El(),x=Q(_,$.required),S=Q(_,$.disabled),C=Q(_,$.readOnly),w=Q(_,$.name),T=Q(_,$.form),E=Q(_,$.selectionMode),D=Q(_,$.autoHighlight),O=Q(_,$.inputProps),k=Q(_,$.triggerProps),A=Q(_,$.open),j=Q(_,$.mounted),M=Q(_,$.selectedValue),N=Q(_,$.popupSide),P=Q(_,$.positionerElement),ee=Q(_,$.id),F=Q(_,$.inline),te=Q(_,$.modal),I=!!D,L=j&&P?N:null,R=l||S||i,ne=v.length===0,re=g||F,z=!re||te,B=ju(a??(re?void 0:ee)),V=oh(m,void 0),ie=g?Rm:c,[H,ae]=G.useState(null),oe=G.useRef(!1),U=G.useRef(null),se=G.useRef(!1),ce=X(e=>{let t=g||_.state.inline;t&&!_.state.hasInputValue&&_.state.setInputValue(``,wu(fu)),_.update({inputElement:e,inputInsidePopup:t})}),le=g||!p?s:p.getValidationProps(s),ue={...ie,open:A,disabled:R,readOnly:C,popupSide:L,listEmpty:ne};function de(e){if(!h)return;let t,{highlightedChipIndex:n}=h,r=h.chipsRef.current.length;if(n!==void 0){if(e.key===`ArrowLeft`)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===`ArrowRight`)e.preventDefault(),t=n=M.length-1?M.length-2:n;t=r>=0?r:void 0,_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===`ArrowLeft`&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let fe=ou(`input`,e,{state:ue,ref:[t,_.state.inputRef,ce],props:[O,k,{type:`text`,value:e.value??H??y,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":V,disabled:R,readOnly:C,required:E===`none`?x:void 0,form:T,...E===`none`&&w&&{name:w},id:B,onFocus(){if(d(!0),!F||!se.current)return;se.current=!1;let e=U.current;e==null||!Object.hasOwn(_.state.valuesRef.current,e)||_.state.setIndices({activeIndex:e})},onBlur(){u(!0),d(!1);let e=_.state.activeIndex;if(F&&e!==null&&D!==`always`&&(U.current=e,se.current=!0,_.state.setIndices({activeIndex:null})),f===`onBlur`){let e=E===`none`?y:M;p.commit(e)}},onCompositionStart(e){cd||(oe.current=!0,ae(e.currentTarget.value))},onCompositionEnd(e){oe.current=!1;let t=e.currentTarget.value;ae(null),_.state.setInputValue(t,wu(vu,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=oe.current||!n;if(oe.current){let t=e.currentTarget.value;ae(t),t===``&&!_.state.openOnInputClick&&!_.state.inputInsidePopup&&_.state.setOpen(!1,wu(yu,e.nativeEvent));let n=t.trim(),i=I&&n!==``;!C&&!R&&n&&r&&(_.state.setOpen(!0,wu(vu,e.nativeEvent)),I||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!i&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}_.state.setInputValue(e.currentTarget.value,wu(vu,e.nativeEvent));let i=e.currentTarget.value===``,a=wu(yu,e.nativeEvent);i&&!_.state.inputInsidePopup&&(E===`single`&&_.state.setSelectedValue(null,a),_.state.openOnInputClick||_.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!C&&!R&&o&&r&&(_.state.setOpen(!0,wu(vu,e.nativeEvent)),I||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!I&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(R||C||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;_.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){Od(e);let n=od&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Od(e);let i=od&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=wu(Su,e.nativeEvent),r=E===`multiple`?[]:null;_.state.setInputValue(``,n),_.state.setSelectedValue(r,n),!t&&!_.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(h&&e.key===`Backspace`&&t.value===``&&h.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=h.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`}),_.state.setSelectedValue(r,wu(fu,e.nativeEvent));return}let i=h?.highlightedChipIndex!==void 0,a=de(e);if(h?.setHighlightedChipIndex(a),a===void 0?i&&_.state.inputRef.current?.focus():h?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=_.state.activeIndex,n=e.nativeEvent;if(t===null){if(F)return;_.state.setOpen(!1,wu(fu,n));return}Od(e);let r=_.state.listRef.current[t];r&&(_.state.selectionEventRef.current=n,r.click(),_.state.selectionEventRef.current=null)}},onPointerMove(){_.state.keyboardActiveRef.current=!1},onPointerDown(){_.state.keyboardActiveRef.current=!1}},le],stateAttributesMapping:ih});return(0,Y.jsxs)(G.Fragment,{children:[A&&z&&(0,Y.jsx)(ph,{ref:_.state.startDismissRef}),fe]})}),hh={...Hu,...pm},gh=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Hm(),u=Sm(),d=Q(u,$.selectionMode),f=Q(u,$.disabled),p=Q(u,$.readOnly),m=Q(u,$.open),h=Q(u,$.selectedValue),g=Q(u,$.hasSelectionChips),_=Tm(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=Zu({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Gu(v),T={disabled:y,open:m,transitionStatus:C};_f({open:v,ref:u.state.clearRef,onComplete(){v||w(!1)}});let E=ou(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,wu(_u,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(h)?[]:null,wu(_u,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,x],stateAttributesMapping:hh});return o||S?E:null}),_h=G.createContext(null);function vh(){return G.useContext(_h)}function yh(e){let{children:t}=e,{filteredItems:n}=wm(),r=vh(),i=r?r.items:n;return i?(0,Y.jsx)(G.Fragment,{children:i.map(t)}):null}var bh=G.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Sm(),l=Cm(),u=!!fh(!0),{filteredItems:d,hasItems:f}=wm(),p=Q(c,$.selectionMode),m=Q(c,$.grid),h=Q(c,$.popupProps),g=Q(c,$.virtualized),_=p===`multiple`,v=d.length===0,y=X(e=>{c.set(`positionerElement`,e)}),b=X(e=>{c.set(`listElement`,e)}),x=G.useMemo(()=>typeof o==`function`?n||=(0,Y.jsx)(yh,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=ou(`div`,e,{state:S,ref:[t,b,u?null:y],props:[h,{children:x,tabIndex:-1,id:C,role:m?`grid`:`listbox`,"aria-multiselectable":_?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Od(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return g?w:(0,Y.jsx)(xl,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),xh=G.createContext(void 0);function Sh(){let e=G.useContext(xh);if(e===void 0)throw Error(Ol(20));return e}var Ch=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Sm(),a=Q(i,$.mounted),o=Q(i,$.forceMounted);return a||n||o?(0,Y.jsx)(xh.Provider,{value:n,children:(0,Y.jsx)(op,{ref:t,...r})}):null}),wh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:p=`real`}=m(e,t)||{};if(l==null)return{};let g=d(u),_={x:n,y:r},v=h(i),y=f(v),b=await o.getDimensions(l),x=v===`y`,S=x?`top`:`left`,C=x?`bottom`:`right`,w=x?`clientHeight`:`clientWidth`,T=a.reference[y]+a.reference[v]-_[v]-a.floating[y],E=_[v]-a.reference[v],D=p===`real`?await o.getOffsetParent?.(l):s.floating,O=s.floating[w]||a.floating[y];(!O||!await o.isElement?.(D))&&(O=s.floating[w]||a.floating[y]);let k=T/2-E/2,A=O/2-b[y]/2-1,j=Math.min(g[S],A),M=Math.min(g[C],A),N=j,P=O-b[y]-M,te=O/2-b[y]/2+k,I=F(N,te,P),L=!c.arrow&&ee(i)!=null&&te!==I&&a.reference[y]/2-(te({...wh(e),options:[e,t]}),Eh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await j().fn(e)).data?.referenceHidden||a}}}},Dh={sideX:`left`,sideY:`top`};function Oh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function kh(e,t,n){let{rects:r,placement:i}=e;return{side:Oh(t,p(i),n),align:ee(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ah(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,D]=G.useState(null);!h&&C!==null&&D(null);let j=g.side||`flip`,N=g.align||`flip`,P=g.fallbackAxisSide||`end`,F=typeof t==`function`?t:void 0,te=X(F),I=F?te:t,L=Mf(t),R=Mf(h),ne=El()===`rtl`,re=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ne?`left`:`right`,"inline-start":ne?`right`:`left`}[r],z=a===`center`?re:`${re}-${a}`,B=c,V=+(r===`bottom`),ie=+(r===`top`),H=+(r===`right`),ae=+(r===`left`);typeof B==`number`?B={top:B+V,right:B+ae,bottom:B+ie,left:B+H}:B&&={top:(B.top||0)+V,right:(B.right||0)+ae,bottom:(B.bottom||0)+ie,left:(B.left||0)+H};let oe={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:B},U=G.useRef(null),se=Mf(i),ce=Mf(o),le=[_(e=>{let t=kh(e,r,ne),n=typeof se.current==`function`?se.current(t):se.current,i=typeof ce.current==`function`?ce.current(t):ce.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,ne,r])],ue=N===`none`&&j!==`shift`,de=!ue&&(l||v||j===`shift`),fe=j===`none`?null:O({...oe,padding:{top:B.top+1,right:B.right+1,bottom:B.bottom+1,left:B.left+1},mainAxis:!v&&j===`flip`,crossAxis:N===`flip`?`alignment`:!1,fallbackAxisSideDirection:P}),pe=ue?null:k(e=>{let t=Kd(e.elements.floating).documentElement;return{...oe,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:N!==`none`,crossAxis:de,limiter:l||v?void 0:w(e=>{if(!U.current)return{};let{width:t,height:n}=U.current.getBoundingClientRect(),r=T(p(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})}},[oe,l,v,B,N]);j===`shift`||N===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(M({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!R.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=A(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Th(()=>({element:U.current||Kd(U.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=p(a),l=T(c),u=U.current,d=n.arrow?.x||0,f=n.arrow?.y||0,m=u?.clientWidth||0,h=u?.clientHeight||0,g=d+m/2,_=f+h/2,v=Math.abs(n.shift?.y||0),y=o.reference.height/2,b=typeof i==`function`?i(kh(e,r,ne)):i,x=v>b,S={top:`${g}px calc(100% + ${b}px)`,bottom:`${g}px ${-b}px`,left:`calc(100% + ${b}px) ${_}px`,right:`${-b}px ${_}px`}[c],C=`${g}px ${o.reference.y+y-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&x?C:S),{}}},Eh,b),Z(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=G.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:W,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=Gp({rootContext:m,open:f?h:void 0,placement:z,middleware:le,strategy:n,whileElementsMounted:f?void 0:(...e)=>E(...e,me),nodeId:y,externalTree:S}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||Dh,Ee=Se?n:`fixed`,K=G.useMemo(()=>{let e=b?{position:Ee,[we]:ge,[Te]:_e}:{position:Ee,...Ce};return Se||(e.opacity=0),e},[b,Ee,we,ge,Te,_e,Ce,Se]),De=G.useRef(null);Z(()=>{if(!h)return;let e=L.current,t=typeof e==`function`?e():e,n=(jh(t)?t.current:t)||null;n!==De.current&&(he.setPositionReference(n),De.current=n)},[h,he,I,L]),G.useEffect(()=>{if(!h)return;let e=L.current;typeof e!=`function`&&jh(e)&&e.current!==De.current&&(he.setPositionReference(e.current),De.current=e.current)},[h,he,I,L]),G.useEffect(()=>{if(f&&h&&W.domReference&&W.floating)return E(W.domReference,W.floating,ye,me)},[f,h,W,ye,me]);let Oe=p(be),q=Oh(r,Oe,ne),ke=ee(be)||`center`,Ae=!!ve.hide?.referenceHidden;Z(()=>{x&&h&&Se&&D(Oe)},[x,h,Se,Oe]);let je=G.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Me=ve.arrow?.centerOffset!==0;return G.useMemo(()=>({positionerStyles:K,arrowStyles:je,arrowRef:U,arrowUncentered:Me,side:q,align:ke,physicalSide:Oe,anchorHidden:Ae,refs:he,context:xe,isPositioned:Se,update:ye}),[K,je,U,Me,q,ke,Oe,Ae,he,xe,Se,ye])}function jh(e){return e!=null&&`current`in e}function Mh(e){return e===`starting`?$f:Vl}function Nh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ou(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mh(r),i],stateAttributesMapping:hm})}var Ph=20;function Fh(e,t,n,r){let[i,a]=G.useState(!1);Z(()=>{if(!e||!t||n==null){a(!1);return}let r=Kd(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ph)},[e,t,n]),Af(e&&(!t||i),r)}var Ih=G.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ep,style:g,..._}=e,v=Sm(),{filteredItems:y}=wm(),b=Cm(),x=Sh(),S=Q(v,$.modal),C=Q(v,$.open),w=Q(v,$.mounted),T=Q(v,$.openMethod),E=Q(v,$.positionerElement),D=Q(v,$.triggerElement),O=Q(v,$.inputElement),k=Q(v,$.inputGroupElement),A=Q(v,$.inputInsidePopup),j=Q(v,$.transitionStatus),M=y.length===0,N=Ah({anchor:i??(A?D:k??O),floatingRootContext:b,positionMethod:a,mounted:w,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:h,lazyFlip:!0});Fh(C&&S,T===`touch`,E,D);let P={open:C,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};Z(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let ee=X(e=>{v.set(`positionerElement`,e)}),F=Nh(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,ee],hidden:!w,inert:!C});return(0,Y.jsxs)(dh.Provider,{value:N,children:[w&&S&&(0,Y.jsx)(_m,{inert:gm(!C),cutout:k??O??D}),F]})}),Lh={...hm,...Hu},Rh=G.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Sm(),l=fh(),u=Cm(),{filteredItems:d}=wm(),f=Q(c,$.mounted),p=Q(c,$.open),m=Q(c,$.openMethod),h=Q(c,$.transitionStatus),g=Q(c,$.inputInsidePopup),_=Q(c,$.inputElement),v=Q(c,$.modal),y=d.length===0;_f({open:p,ref:c.state.popupRef,onComplete(){p&&c.state.onOpenChangeComplete(!0)}});let b=ou(`div`,e,{state:{open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:y},ref:[t,c.state.popupRef],props:[{role:g?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=bd(e.nativeEvent);m!==`touch`&&(yd(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},Mh(h),s],stateAttributesMapping:Lh}),x=a===void 0?g?e=>e===`touch`?c.state.popupRef.current:_:!1:a,S;S=o??(g?void 0:!1);let C=!g||v;return(0,Y.jsx)(bp,{context:u,disabled:!f,modal:C,openInteractionType:m,initialFocus:x,returnFocus:S,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,Y.jsxs)(G.Fragment,{children:[b,C&&(0,Y.jsx)(ph,{ref:c.state.endDismissRef})]})})}),zh=G.createContext(void 0);function Bh(){let e=G.useContext(zh);if(!e)throw Error(Ol(19));return e}var Vh=G.createContext(!1);function Hh(){return G.useContext(Vh)}var Uh=G.memo(G.forwardRef(function(e,t){let{render:n,className:r,value:i=null,index:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=G.useRef(!1),d=G.useRef(null),f=qu({index:a,textRef:d,indexGuessBehavior:Ku.GuessFromOrder}),p=Sm(),m=Hh(),{flatFilteredItems:h,hasItems:g}=wm(),_=Q(p,$.open),v=Q(p,$.selectionMode),y=Q(p,$.readOnly),b=Q(p,$.virtualized),x=Q(p,$.isItemEqualToValue),S=v!==`none`,C=a??(b?km(h,i,x):f.index),w=f.index!==-1,T=Q(p,$.id),E=Q(p,$.isActive,C),D=Q(p,$.isSelected,i),O=Q(p,$.getItemProps),k=G.useRef(null),A=T!=null&&w?`${T}-${C}`:void 0,j=D&&S;Z(()=>{if(!(w&&(b||a!=null)))return;let e=p.state.listRef.current;return e[C]=k.current,()=>{delete e[C]}},[w,b,C,a,p]),Z(()=>{if(!w||g)return;let e=p.state.valuesRef.current;return e[C]=i,v!==`none`&&p.state.allValuesRef.current.push(i),()=>{delete e[C]}},[w,g,C,i,p,v]),Z(()=>{if(!_){u.current=!1;return}if(!w||g)return;let e=p.state.selectedValue;Dm(i,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,g,_,p,C,i,x]);let M={disabled:o,selected:j,highlighted:E},N=O({active:E,selected:j});N.id=void 0,N.onFocus=void 0;let{getButtonProps:P,buttonRef:ee}=Zu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function F(e){function t(){p.state.handleSelection(e,i)}p.state.submitOnItemClick?(Uu.flushSync(t),p.state.requestSubmit()):t()}let te={id:A,role:m?`gridcell`:`option`,"aria-selected":S?j:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){o||y||F(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(o||y||e.button!==0||t||!E)&&F(e.nativeEvent)}},I=ou(`div`,e,{ref:[ee,t,f.ref,k],state:M,props:[N,te,l,P]}),L=G.useMemo(()=>({selected:j,textRef:d}),[j,d]);return(0,Y.jsx)(zh.Provider,{value:L,children:I})}));function Wh(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,Y.jsx)(rh,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Gh=G.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Bh();return n||r?(0,Y.jsx)(Kh,{...e,ref:t}):null}),Kh=G.memo(G.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Bh(),c=G.useRef(null),{transitionStatus:l,setMounted:u}=Gu(s),d=ou(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Hu});return _f({open:s,ref:c,onComplete(){s||u(!1)}}),d}));function qh(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30`,`h-9 min-w-0 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50`,`has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Jh=s(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3`,"block-end":`order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3`}},defaultVariants:{align:`inline-start`}});function Yh(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=I(Jh({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,Y.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Xh,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Xh(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Zh=s(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Qh(e){let t=(0,Ce.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,l=a===void 0?`ghost`:a,u=o===void 0?`xs`:o,d;t[6]!==n||t[7]!==u?(d=I(Zh({size:u}),n),t[6]=n,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==r||t[10]!==u||t[11]!==d||t[12]!==s||t[13]!==l?(f=(0,Y.jsx)(c,{type:s,"data-size":u,variant:l,className:d,...r}),t[9]=r,t[10]=u,t[11]=d,t[12]=s,t[13]=l,t[14]=f):f=t[14],f}function $h(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(le,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var eg=Wh;function tg(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=I(`[&_svg:not([class*='size-'])]:size-4`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(ne,{"data-slot":`combobox-trigger-icon`,className:`pointer-events-none size-4 text-muted-foreground`}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,Y.jsxs)(ch,{"data-slot":`combobox-trigger`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function ng(e){let t=(0,Ce.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Qh,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=I(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(l,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,Y.jsx)(gh,{"data-slot":`combobox-clear`,render:i,className:a,...r,children:o}),t[7]=r,t[8]=a,t[9]=s):s=t[9],s}function rg(e){let t=(0,Ce.c)(28),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,disabled:a,showTrigger:o,showClear:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?!1:a,l=o===void 0?!0:o,u=s===void 0?!1:s,d;t[7]===r?d=t[8]:(d=I(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,Y.jsx)($h,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,Y.jsx)(mh,{render:f,...i}),t[11]=i,t[12]=f,t[13]=p):p=t[13];let m;t[14]!==c||t[15]!==l?(m=l&&(0,Y.jsx)(Qh,{size:`icon-xs`,variant:`ghost`,asChild:!0,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:c,children:(0,Y.jsx)(tg,{})}),t[14]=c,t[15]=l,t[16]=m):m=t[16];let h;t[17]!==c||t[18]!==u?(h=u&&(0,Y.jsx)(ng,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,Y.jsxs)(Yh,{align:`inline-end`,children:[m,h]}),t[20]=m,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==n||t[24]!==d||t[25]!==p||t[26]!==g?(_=(0,Y.jsxs)(qh,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function ig(e){let t=(0,Ce.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,anchor:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`bottom`:a,u=o===void 0?6:o,d=s===void 0?`start`:s,f=c===void 0?0:c,p=!!n,m;t[8]===r?m=t[9]:(m=I(`group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[8]=r,t[9]=m);let h;t[10]!==i||t[11]!==p||t[12]!==m?(h=(0,Y.jsx)(Rh,{"data-slot":`combobox-content`,"data-chips":p,className:m,...i}),t[10]=i,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;return t[14]!==d||t[15]!==f||t[16]!==n||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,Y.jsx)(Ch,{children:(0,Y.jsx)(Ih,{side:l,sideOffset:u,align:d,alignOffset:f,anchor:n,className:`isolate z-50`,children:h})}),t[14]=d,t[15]=f,t[16]=n,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}function ag(e){let t=(0,Ce.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(bh,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function og(e){let t=(0,Ce.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=I(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(Gh,{"data-slot":`combobox-item-indicator`,render:(0,Y.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Y.jsx)(R,{className:`pointer-events-none size-4 pointer-coarse:size-5`})}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,Y.jsxs)(Uh,{"data-slot":`combobox-item`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}var sg=[`npm`,`pnpm`,`yarn`,`bun`];function cg(e){let t=(0,Ce.c)(67),{options:n,baseUrl:r,className:i,onValueChange:a}=e,o=r===void 0?``:r,{selectedManager:s,setSelectedManager:l}=H(),[u,d]=(0,G.useState)(n[0]?.value||``),[f,p]=(0,G.useState)(``),m;t[0]===f?m=t[1]:(m=e=>e.label.toLowerCase().includes(f.toLowerCase())||e.value.toLowerCase().includes(f.toLowerCase()),t[0]=f,t[1]=m);let h=n.filter(m),g;if(t[2]!==n||t[3]!==u){let e;t[5]===u?e=t[6]:(e=e=>e.value===u,t[5]=u,t[6]=e),g=n.find(e),t[2]=n,t[3]=u,t[4]=g}else g=t[4];let _=g,v={bun:`bunx --bun shadcn@latest add ${o}/r/${_?.code}.json`,npm:`npx shadcn@latest add ${o}/r/${_?.code}.json`,pnpm:`pnpm dlx shadcn@latest add ${o}/r/${_?.code}.json`,yarn:`yarn dlx shadcn@latest add ${o}/r/${_?.code}.json`},y=sg.filter(e=>v[e]),b=v[s]??``,{highlightedCode:x}=V(b,`bash`),{copy:S}=ie(),[C,w]=(0,G.useState)(!1),T,E;t[7]===C?(T=t[8],E=t[9]):(T=()=>{if(C){let e=setTimeout(()=>{w(!1)},2e3);return()=>clearTimeout(e)}},E=[C],t[7]=C,t[8]=T,t[9]=E),(0,G.useEffect)(T,E);let D=async()=>{await S(b),ce.success(`${s} command copied to clipboard!`),w(!0)},O;t[10]===i?O=t[11]:(O=I(`group/package-manager relative min-w-0 rounded-lg border`,i),t[10]=i,t[11]=O);let k;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(ae,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),t[12]=k):k=t[12];let A=oe,j;t[13]===l?j=t[14]:(j=e=>l(e),t[13]=l,t[14]=j);let M=y.map(ug),N;t[15]!==A||t[16]!==s||t[17]!==j||t[18]!==M?(N=(0,Y.jsx)(`div`,{children:(0,Y.jsx)(A,{value:s,onChange:j,tabs:M,tabsClassName:`p-1 bg-primary/10 shrink-0`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `})}),t[15]=A,t[16]=s,t[17]=j,t[18]=M,t[19]=N):N=t[19];let P;t[20]!==N||t[21]!==k?(P=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[k,N]}),t[20]=N,t[21]=k,t[22]=P):P=t[22];let ee=eg,F;t[23]===a?F=t[24]:(F=e=>{e&&(d(e),a?.(e))},t[23]=a,t[24]=F);let te;t[25]!==n||t[26]!==u?(te=n.find(e=>e.value===u)?.label||`Select option...`,t[25]=n,t[26]=u,t[27]=te):te=t[27];let L;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>p(e.target.value),t[28]=L):L=t[28];let ne;t[29]!==f||t[30]!==te?(ne=(0,Y.jsx)(rg,{placeholder:te,value:f,onChange:L,showTrigger:!0,showClear:!1,className:`h-8 max-w-42 min-w-0`}),t[29]=f,t[30]=te,t[31]=ne):ne=t[31];let z=ig,B=ag,U=h.map(lg),se;t[32]!==B||t[33]!==U?(se=(0,Y.jsx)(B,{children:U}),t[32]=B,t[33]=U,t[34]=se):se=t[34];let le;t[35]!==z||t[36]!==se?(le=(0,Y.jsx)(z,{children:se}),t[35]=z,t[36]=se,t[37]=le):le=t[37];let ue;t[38]!==ee||t[39]!==u||t[40]!==F||t[41]!==ne||t[42]!==le?(ue=(0,Y.jsxs)(ee,{value:u,onValueChange:F,children:[ne,le]}),t[38]=ee,t[39]=u,t[40]=F,t[41]=ne,t[42]=le,t[43]=ue):ue=t[43];let de=C?`opacity-100`:`pointer-events-none opacity-0`,fe;t[44]===de?fe=t[45]:(fe=I(`text-xs text-green-500 transition-opacity duration-200`,de),t[44]=de,t[45]=fe);let pe;t[46]===fe?pe=t[47]:(pe=(0,Y.jsx)(`span`,{className:fe,children:`Copied`}),t[46]=fe,t[47]=pe);let me;t[48]===C?me=t[49]:(me=C?(0,Y.jsx)(R,{className:`size-4`}):(0,Y.jsx)(re,{className:`size-4`}),t[48]=C,t[49]=me);let he;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Y.jsx)(`span`,{className:`sr-only`,children:`Copy`}),t[50]=he):he=t[50];let W;t[51]!==D||t[52]!==me?(W=(0,Y.jsxs)(c,{variant:`ghost`,size:`icon`,onClick:D,className:`transition-opacity hover:opacity-100`,children:[me,he]}),t[51]=D,t[52]=me,t[53]=W):W=t[53];let ge;t[54]!==pe||t[55]!==W?(ge=(0,Y.jsxs)(`div`,{className:`flex w-22 items-center justify-end gap-1`,children:[pe,W]}),t[54]=pe,t[55]=W,t[56]=ge):ge=t[56];let _e;t[57]!==P||t[58]!==ue||t[59]!==ge?(_e=(0,Y.jsxs)(`div`,{className:`flex items-center justify-between border-b bg-muted/50 px-3 py-2`,children:[P,ue,ge]}),t[57]=P,t[58]=ue,t[59]=ge,t[60]=_e):_e=t[60];let ve;t[61]===x?ve=t[62]:(ve=(0,Y.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,Y.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,Y.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,Y.jsx)(`span`,{dangerouslySetInnerHTML:{__html:x}})})})}),t[61]=x,t[62]=ve);let ye;return t[63]!==_e||t[64]!==ve||t[65]!==O?(ye=(0,Y.jsxs)(`div`,{className:O,children:[_e,ve]}),t[63]=_e,t[64]=ve,t[65]=O,t[66]=ye):ye=t[66],ye}function lg(e){return(0,Y.jsx)(og,{value:e.value,children:e.label},e.value)}function ug(e){return{id:e,label:e}}Aa.registerPlugin(tl);function dg(e){let n=(0,Ce.c)(28),{animations:r,categories:i}=e,{url:a}=t().props,[o,s]=(0,G.useState)(r[0]?.name??`animate-bounce`),c;n[0]===r?c=n[1]:(c=r.map(pg),n[0]=r,n[1]=c);let l=c,u;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(ue,{as:`h1`,title:`Animate.css Animations`,description:`Click any animation card to view and copy the code. 100+ + CSS-based animations available.`}),n[2]=u):u=n[2];let d;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(ue,{as:`h2`,title:`About`,description:`is a library of CSS animations that you can use directly in + your components. Simply add the animation class name to any + element to animate it.`}),n[3]=d):d=n[3];let f,p;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsxs)(`ul`,{className:`mb-6 list-disc pl-6 text-muted-foreground`,children:[(0,Y.jsx)(`li`,{children:`100+ built-in animation types`}),(0,Y.jsx)(`li`,{children:`Simple CSS class-based animations`}),(0,Y.jsx)(`li`,{children:`Works with any HTML element`}),(0,Y.jsx)(`li`,{children:`Fully customizable duration and timing`}),(0,Y.jsx)(`li`,{children:`Repeat and loop support`}),(0,Y.jsx)(`li`,{children:`Works with Tailwind CSS`})]}),p=(0,Y.jsx)(`h2`,{className:`mt-8 mb-2 text-2xl font-semibold text-foreground`,children:`Installation`}),n[4]=f,n[5]=p):(f=n[4],p=n[5]);let m=a,h;n[6]!==l||n[7]!==m?(h=(0,Y.jsx)(cg,{className:`my-4`,options:l,baseUrl:m,onValueChange:s}),n[6]=l,n[7]=m,n[8]=h):h=n[8];let g;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`h2`,{className:`mt-8 mb-4 text-2xl font-semibold text-foreground`,children:`Usage`}),n[9]=g):g=n[9];let _;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(`h3`,{className:`mb-2 text-lg font-medium text-foreground`,children:`Basic Usage`}),n[10]=_):_=n[10];let v=`
+ Bouncing Content +
`,y;n[11]===v?y=n[12]:(y=(0,Y.jsx)(`div`,{className:`space-y-4`,children:(0,Y.jsxs)(`div`,{children:[_,(0,Y.jsx)(dl,{language:`html`,code:v})]})}),n[11]=v,n[12]=y);let b,x,S,C;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Y.jsx)(`h2`,{className:`mt-8 mb-2 text-2xl font-semibold text-foreground`,children:`Installation all animations`}),x=(0,Y.jsx)(U,{code:`animate-css/animate-all`}),S=(0,Y.jsx)(`h2`,{className:`mt-8 mb-4 text-2xl font-semibold text-foreground`,children:`Code Examples`}),C=(0,Y.jsx)(`p`,{className:`text-balance text-muted-foreground`,children:`Click on any animation card below to view and copy the code.`}),n[13]=b,n[14]=x,n[15]=S,n[16]=C):(b=n[13],x=n[14],S=n[15],C=n[16]);let w;n[17]!==y||n[18]!==h?(w=(0,Y.jsxs)(`div`,{className:`mb-12`,children:[d,f,p,h,g,y,b,x,S,C]}),n[17]=y,n[18]=h,n[19]=w):w=n[19];let T;if(n[20]!==r||n[21]!==i){let e;n[23]===r?e=n[24]:(e=e=>(0,Y.jsxs)(`section`,{className:`mb-12`,children:[(0,Y.jsx)(`h2`,{className:`mb-6 text-2xl font-semibold text-foreground`,children:e}),(0,Y.jsx)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3`,children:r.filter(t=>t.category===e&&t.name!==`animate-all`).map(fg)})]},e),n[23]=r,n[24]=e),T=i.map(e),n[20]=r,n[21]=i,n[22]=T}else T=n[22];let E;return n[25]!==w||n[26]!==T?(E=(0,Y.jsxs)(z,{className:`pt-4`,children:[u,w,T]}),n[25]=w,n[26]=T,n[27]=E):E=n[27],E}function fg(e){return(0,Y.jsx)(mg,{anim:e},e.name)}function pg(e){return{value:e.name,label:e.text,code:`animate-css/`+e.name}}dg.layout=B;function mg(e){let t=(0,Ce.c)(45),{anim:n}=e,r=`
`,i=` ${n.text}`,a;t[0]!==r||t[1]!==i?(a=[r,i,`
`],t[0]=r,t[1]=i,t[2]=a):a=t[2];let o=a.join(` +`),s=(0,G.useRef)(null),l=(0,G.useRef)(null),{copy:u}=ie(),d,f;t[3]===n.name?(d=t[4],f=t[5]):(d=()=>{l.current&&s.current&&tl.create({trigger:s.current,start:`top 80%`,end:`bottom 20%`,onEnter:()=>l.current?.classList.add(n.name),onLeave:()=>l.current?.classList.remove(n.name),onEnterBack:()=>l.current?.classList.add(n.name),onLeaveBack:()=>l.current?.classList.remove(n.name),markers:!1})},f=[n.name],t[3]=n.name,t[4]=d,t[5]=f),Ia(d,f);let p;t[6]===n.title?p=t[7]:(p=(0,Y.jsx)(de,{children:(0,Y.jsx)(pe,{className:`flex items-baseline justify-between overflow-clip capitalize`,children:(0,Y.jsx)(`span`,{children:n.title})})}),t[6]=n.title,t[7]=p);let m;t[8]===n.text?m=t[9]:(m=(0,Y.jsx)(fe,{className:`aspect-video overflow-hidden`,children:(0,Y.jsx)(`div`,{className:`grid aspect-video max-w-full place-items-center overflow-clip rounded-md bg-radial from-muted to-muted/50 text-center font-bebas-neue! text-sm text-[clamp(1.5rem,10vw+2rem,3rem)] font-medium text-foreground/40 transition-all delay-300 group-hover:repeat-infinite!`,children:(0,Y.jsx)(`div`,{ref:l,children:n.text})})}),t[8]=n.text,t[9]=m);let h;t[10]!==p||t[11]!==m?(h=(0,Y.jsx)(he,{asChild:!0,children:(0,Y.jsxs)(me,{ref:s,className:`group cursor-pointer transition-colors hover:bg-muted/50`,children:[p,m]})}),t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;t[13]===n.name?g=t[14]:(g=n.name.replace(`animate-`,``),t[13]=n.name,t[14]=g);let _;t[15]===g?_=t[16]:(_=(0,Y.jsx)(ve,{className:`capitalize`,children:g}),t[15]=g,t[16]=_);let v;t[17]===n.category?v=t[18]:(v=(0,Y.jsxs)(W,{children:[`Animation type: `,n.category]}),t[17]=n.category,t[18]=v);let y;t[19]!==_||t[20]!==v?(y=(0,Y.jsxs)(ge,{children:[_,v]}),t[19]=_,t[20]=v,t[21]=y):y=t[21];let b=`grid aspect-video w-full place-items-center text-center font-bebas-neue text-[clamp(0.75rem,9vw+2rem,5rem)] font-medium delay-1000 ${n.name} repeat-infinite`,x;t[22]!==n.text||t[23]!==b?(x=(0,Y.jsx)(`div`,{className:b,children:n.text}),t[22]=n.text,t[23]=b,t[24]=x):x=t[24];let S;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(Se,{className:`size-4`})}),t[25]=S):S=t[25];let C;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(be,{className:`size-4`})}),t[26]=C):C=t[26];let w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Y.jsx)(`div`,{className:`absolute inset-y-0 right-0 border-l border-border/25 bg-background/10 backdrop-blur-sm`,children:(0,Y.jsxs)(`div`,{className:`sticky top-0 flex shrink-0 flex-col items-center justify-start space-y-4 p-4`,children:[S,C,(0,Y.jsx)(c,{variant:`ghost`,size:`icon`,children:(0,Y.jsx)(xe,{className:`size-4`})})]})}),t[27]=w):w=t[27];let T;t[28]===x?T=t[29]:(T=(0,Y.jsx)(`div`,{className:`flex items-start rounded-md border border-border bg-card/30`,children:(0,Y.jsxs)(`div`,{className:`relative flex-1 overflow-hidden rounded-md bg-radial from-muted to-muted/50 py-8`,children:[x,w]})}),t[28]=x,t[29]=T);let E=`animate-css/${n.name}`,D;t[30]===E?D=t[31]:(D=(0,Y.jsx)(U,{code:E}),t[30]=E,t[31]=D);let O;t[32]===o?O=t[33]:(O=(0,Y.jsx)(dl,{variant:`default`,language:`html`,code:o,showCopyButton:!0}),t[32]=o,t[33]=O);let k;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Y.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none sticky inset-x-0 -bottom-8 h-20 bg-linear-0 from-background to-transparent`}),t[34]=k):k=t[34];let A;t[35]!==T||t[36]!==D||t[37]!==O?(A=(0,Y.jsxs)(`div`,{className:`no-scrollbar relative -mx-4 max-h-[60vh] overflow-y-auto px-4 pt-1 pb-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,children:[T,D,O,k]}),t[35]=T,t[36]=D,t[37]=O,t[38]=A):A=t[38];let j;t[39]!==y||t[40]!==A?(j=(0,Y.jsxs)(_e,{className:`max-h-[80vh] w-full sm:max-w-3xl`,children:[y,A]}),t[39]=y,t[40]=A,t[41]=j):j=t[41];let M;return t[42]!==j||t[43]!==h?(M=(0,Y.jsxs)(ye,{children:[h,j]}),t[42]=j,t[43]=h,t[44]=M):M=t[44],M}export{dg as default}; \ No newline at end of file diff --git a/public/build/assets/app-0l60ScAC.js b/public/build/assets/app-0l60ScAC.js new file mode 100644 index 0000000..4bb3ca2 --- /dev/null +++ b/public/build/assets/app-0l60ScAC.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/animate-css-DjHmIVWH.js","assets/wayfinder-DGNmxDkm.js","assets/floating-ui.react-dom-DuoUqJja.js","assets/button-CJIRvoa4.js","assets/createLucideIcon-BN-jDSEO.js","assets/dist-Cw-hV1_S.js","assets/dist-CE9c1Q26.js","assets/main-layout-BDfUDiNw.js","assets/check-CWekFaHD.js","assets/github-D7dT9N2Y.js","assets/sun-DKOQEsNV.js","assets/placeholder-pattern-B0M5WUpE.js","assets/use-appearance-QmpypXC6.js","assets/registry-installer-BbAk2A5r.js","assets/copy-DVuxs_qN.js","assets/chevron-down-BXFNulw6.js","assets/shim-B1jYWA9-.js","assets/card-D_BkPXgE.js","assets/dialog-D0ulBexn.js","assets/textarea-CdB2elwd.js","assets/confirm-password-DXqCvmLh.js","assets/label-shgfY21t.js","assets/dist-Hfu0N5sY.js","assets/password-input-uWAWfR_8.js","assets/input-error-B7LHFA6O.js","assets/spinner-CO4WEyCd.js","assets/loader-circle-kx-CiozJ.js","assets/confirm-B_yzhW7J.js","assets/forgot-password-BQY-LsgH.js","assets/text-link-UmmgvXHR.js","assets/password-4MQY-sCe.js","assets/login-DDiqb3zu.js","assets/checkbox-DlkBWsch.js","assets/dist-CNJ93GkG.js","assets/dist-B2I70joJ.js","assets/socialite-BKXn5KQb.js","assets/register-3WIwjGeo.js","assets/reset-password-DA1t4sje.js","assets/two-factor-challenge-G3MKbV9v.js","assets/use-two-factor-auth-BvOwR0Xx.js","assets/verify-email-DF33-d5n.js","assets/verification-DWj8pCN5.js","assets/dashboard-BT6uuLKU.js","assets/fonts-CMXsOM2l.js","assets/badge-BqJn0VCH.js","assets/home-B2lItTUn.js","assets/glow-radial-C29beylo.js","assets/dist-BXzvTKID.js","assets/alert-D8f1uXWR.js","assets/appearance-iJRh14ZS.js","assets/profile-BEn4K4cJ.js","assets/security-DmqLPAqs.js","assets/themes-DsbD3i65.js","assets/welcome-BbYySG9A.js"])))=>i.map(i=>d[i]); +import{c as e,f as t,g as n,h as r,i,l as a,m as o,n as s,p as c,r as l,x as u}from"./wayfinder-DGNmxDkm.js";import{n as d,t as f}from"./use-appearance-QmpypXC6.js";import{i as p,n as m,r as h,t as g}from"./dist-CE9c1Q26.js";import{a as _,n as v,o as y,r as b,t as x}from"./button-CJIRvoa4.js";import{_ as S,a as C,c as w,d as T,f as E,g as D,h as O,i as ee,l as k,m as te,n as ne,o as A,p as re,r as j,s as ie,t as ae,u as oe}from"./dist-Cw-hV1_S.js";import{a as se,c as M,l as ce,n as le,o as ue,r as de,s as fe,t as N}from"./dist-BXzvTKID.js";import{n as P,r as pe,t as F}from"./createLucideIcon-BN-jDSEO.js";import{t as I}from"./dist-Hfu0N5sY.js";import{t as me}from"./shim-B1jYWA9-.js";var L=i(),R=u(o(),1),he=u(c(),1);function ge(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var _e=e=>{switch(e){case`success`:return be;case`info`:return Se;case`warning`:return xe;case`error`:return Ce;default:return null}},ve=Array(12).fill(0),ye=({visible:e,className:t})=>R.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},R.createElement(`div`,{className:`sonner-spinner`},ve.map((e,t)=>R.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),be=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),xe=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Se=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Ce=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),we=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},R.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),R.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Te=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Ee=1,z=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Ee++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],R.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Oe(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Ee++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=(e,t)=>{let n=t?.id||Ee++;return z.addToast({title:e,...t,id:n}),n},Oe=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ke=Object.assign(De,{success:z.success,info:z.info,warning:z.warning,error:z.error,custom:z.custom,message:z.message,promise:z.promise,dismiss:z.dismiss,loading:z.loading},{getHistory:()=>z.toasts,getToasts:()=>z.getActiveToasts()});ge(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Ae(e){return e.label!==void 0}var je=3,Me=`24px`,Ne=`16px`,Pe=4e3,Fe=356,Ie=14,Le=45,Re=200;function B(...e){return e.filter(Boolean).join(` `)}function ze(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Be=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=R.useState(null),[O,ee]=R.useState(null),[k,te]=R.useState(!1),[ne,A]=R.useState(!1),[re,j]=R.useState(!1),[ie,ae]=R.useState(!1),[oe,se]=R.useState(!1),[M,ce]=R.useState(0),[le,ue]=R.useState(0),de=R.useRef(n.duration||y||Pe),fe=R.useRef(null),N=R.useRef(null),P=c===0,pe=c+1<=o,F=n.type,I=n.dismissible!==!1,me=n.className||``,L=n.descriptionClassName||``,he=R.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ge=R.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ve=R.useMemo(()=>n.duration||y||Pe,[n.duration,y]),be=R.useRef(0),xe=R.useRef(0),Se=R.useRef(0),Ce=R.useRef(null),[Ee,z]=b.split(`-`),De=R.useMemo(()=>s.reduce((e,t,n)=>n>=he?e:e+t.height,0),[s,he]),Oe=Te(),ke=n.invert||t,je=F===`loading`;xe.current=R.useMemo(()=>he*x+De,[he,De]),R.useEffect(()=>{de.current=ve},[ve]),R.useEffect(()=>{te(!0)},[]),R.useEffect(()=>{let e=N.current;if(e){let t=e.getBoundingClientRect().height;return ue(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),R.useLayoutEffect(()=>{if(!k)return;let e=N.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ue(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[k,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Me=R.useCallback(()=>{A(!0),ce(xe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Re)},[n,d,a,xe]);R.useEffect(()=>{if(n.promise&&F===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Oe?(()=>{if(Se.current{n.onAutoClose==null||n.onAutoClose.call(n,n),Me()},de.current)),()=>clearTimeout(e)},[u,i,n,F,Oe,Me]),R.useEffect(()=>{n.delete&&(Me(),n.onDismiss==null||n.onDismiss.call(n,n))},[Me,n.delete]);function Ne(){return w?.loading?R.createElement(`div`,{className:B(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":F===`loading`},w.loading):R.createElement(ye,{className:B(C?.loader,n?.classNames?.loader),visible:F===`loading`})}let Fe=n.icon||w?.[F]||_e(F);return R.createElement(`li`,{tabIndex:0,ref:N,className:B(_,me,C?.toast,n?.classNames?.toast,C?.default,C?.[F],n?.classNames?.[F]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":oe,"data-removed":ne,"data-visible":pe,"data-y-position":Ee,"data-x-position":z,"data-index":c,"data-front":P,"data-swiping":re,"data-dismissible":I,"data-type":F,"data-invert":ke,"data-swipe-out":ie,"data-swipe-direction":O,"data-expanded":!!(u||S&&k),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ne?M:xe.current}px`,"--initial-height":S?`auto`:`${le}px`,...m,...n.style},onDragEnd:()=>{j(!1),D(null),Ce.current=null},onPointerDown:e=>{e.button!==2&&(je||!I||(fe.current=new Date,ce(xe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(j(!0),Ce.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ie||!I)return;Ce.current=null;let e=Number(N.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(N.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-fe.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Le||a>.11){ce(xe.current),n.onDismiss==null||n.onDismiss.call(n,n),ee(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Me(),ae(!0);return}else{var o,s;(o=N.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=N.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}se(!1),j(!1),D(null)},onPointerMove:t=>{var n,r;if(!Ce.current||!I||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ce.current.y,a=t.clientX-Ce.current.x,o=e.swipeDirections??ze(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&se(!0),(n=N.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=N.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&F!==`loading`?R.createElement(`button`,{"aria-label":T,"data-disabled":je,"data-close-button":!0,onClick:je||!I?()=>{}:()=>{Me(),n.onDismiss==null||n.onDismiss.call(n,n)},className:B(C?.closeButton,n?.classNames?.closeButton)},w?.close??we):null,(F||n.icon||n.promise)&&n.icon!==null&&(w?.[F]!==null||n.icon)?R.createElement(`div`,{"data-icon":``,className:B(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ne():null,n.type===`loading`?null:Fe):null,R.createElement(`div`,{"data-content":``,className:B(C?.content,n?.classNames?.content)},R.createElement(`div`,{"data-title":``,className:B(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?R.createElement(`div`,{"data-description":``,className:B(v,L,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),R.isValidElement(n.cancel)?n.cancel:n.cancel&&Ae(n.cancel)?R.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Ae(n.cancel)&&I&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Me())},className:B(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,R.isValidElement(n.action)?n.action:n.action&&Ae(n.action)?R.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Ae(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Me())},className:B(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Ve(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function He(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Ne:Me;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Ue=R.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=je,toastOptions:g,dir:_=Ve(),gap:v=Ie,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=R.useState([]),C=R.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=R.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=R.useState([]),[D,O]=R.useState(!1),[ee,k]=R.useState(!1),[te,ne]=R.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),A=R.useRef(null),re=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),j=R.useRef(null),ie=R.useRef(!1),ae=R.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||z.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return R.useEffect(()=>z.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{he.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),R.useEffect(()=>{if(d!==`system`){ne(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ne(`dark`):ne(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ne(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ne(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),R.useEffect(()=>{x.length<=1&&O(!1)},[x]),R.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=A.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===A.current||A.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),R.useEffect(()=>{if(A.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,ie.current=!1)}},[A.current]),R.createElement(`section`,{ref:t,"aria-label":`${b} ${re}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?R.createElement(`ol`,{key:t,dir:_===`auto`?Ve():_,tabIndex:-1,ref:A,className:c,"data-sonner-toaster":!0,"data-sonner-theme":te,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Fe}px`,"--gap":`${v}px`,...m,...He(l,u)},onBlur:e=>{ie.current&&!e.currentTarget.contains(e.relatedTarget)&&(ie.current=!1,j.current&&=(j.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ie.current||(ie.current=!0,j.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{ee||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||k(!0)},onPointerUp:()=>k(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>R.createElement(Be,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ee,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ae,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))});function We(){let e=(0,L.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,R.useEffect)(Ge,t)}function Ge(){return r.on(`flash`,Ke)}function Ke(e){let t=e.detail?.flash?.toast;t&&ke[t.type](t.message)}var V=l();function qe(e){let t=(0,L.c)(6),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{appearance:r}=d();We();let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},t[2]=i):i=t[2];let a;return t[3]!==r||t[4]!==n?(a=(0,V.jsx)(Ue,{theme:r,className:`toaster group`,position:`bottom-right`,style:i,...n}),t[3]=r,t[4]=n,t[5]=a):a=t[5],a}function Je(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Ye(i,...t)]}function Ye(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Xe(e){let t=Ze(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(et);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ze(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=nt(n),i=tt(r,n.props);return n.type!==R.Fragment&&(i.ref=t?_(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qe=Symbol(`radix.slottable`);function $e(e){let t=({children:e})=>(0,V.jsx)(V.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Qe,t}function et(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Qe}function tt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function nt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rt=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Xe(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),[it,at]=Je(`Tooltip`,[ce]),ot=ce(),st=`TooltipProvider`,ct=700,lt=`tooltip.open`,[ut,dt]=it(st),ft=e=>{let{__scopeTooltip:t,delayDuration:n=ct,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=R.useRef(!0),s=R.useRef(!1),c=R.useRef(0);return R.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,V.jsx)(ut,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:R.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};ft.displayName=st;var pt=`Tooltip`,[mt,ht]=it(pt),gt=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=dt(pt,e.__scopeTooltip),l=ot(t),[u,d]=R.useState(null),f=O(),p=R.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,_=R.useRef(!1),[v,y]=g({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(lt))):c.onClose(),a?.(e)},caller:pt}),b=R.useMemo(()=>v?_.current?`delayed-open`:`instant-open`:`closed`,[v]),x=R.useCallback(()=>{window.clearTimeout(p.current),p.current=0,_.current=!1,y(!0)},[y]),S=R.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),C=R.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{_.current=!0,y(!0),p.current=0},h)},[h,y]);return R.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,V.jsx)(M,{...l,children:(0,V.jsx)(mt,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:R.useCallback(()=>{c.isOpenDelayedRef.current?C():x()},[c.isOpenDelayedRef,C,x]),onTriggerLeave:R.useCallback(()=>{m?S():(window.clearTimeout(p.current),p.current=0)},[S,m]),onOpen:x,onClose:S,disableHoverableContent:m,children:n})})};gt.displayName=pt;var _t=`TooltipTrigger`,vt=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=ht(_t,n),a=dt(_t,n),o=ot(n),s=y(t,R.useRef(null),i.onTriggerChange),c=R.useRef(!1),l=R.useRef(!1),u=R.useCallback(()=>c.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,V.jsx)(se,{asChild:!0,...o,children:(0,V.jsx)(rt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:p(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:p(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:p(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:p(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:p(e.onBlur,i.onClose),onClick:p(e.onClick,i.onClose)})})});vt.displayName=_t;var yt=`TooltipPortal`,[bt,xt]=it(yt,{forceMount:void 0}),St=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ht(yt,t);return(0,V.jsx)(bt,{scope:t,forceMount:n,children:(0,V.jsx)(m,{present:n||a.open,children:(0,V.jsx)(te,{asChild:!0,container:i,children:r})})})};St.displayName=yt;var Ct=`TooltipContent`,wt=R.forwardRef((e,t)=>{let n=xt(Ct,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ht(Ct,e.__scopeTooltip);return(0,V.jsx)(m,{present:r||o.open,children:o.disableHoverableContent?(0,V.jsx)(kt,{side:i,...a,ref:t}):(0,V.jsx)(Tt,{side:i,...a,ref:t})})}),Tt=R.forwardRef((e,t)=>{let n=ht(Ct,e.__scopeTooltip),r=dt(Ct,e.__scopeTooltip),i=R.useRef(null),a=y(t,i),[o,s]=R.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=R.useCallback(()=>{s(null),d(!1)},[d]),p=R.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nt(r,Mt(r,n.getBoundingClientRect())),a=Pt(t.getBoundingClientRect());s(It([...i,...a])),d(!0)},[d]);return R.useEffect(()=>()=>f(),[f]),R.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),R.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ft(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,V.jsx)(kt,{...e,ref:a})}),[Et,Dt]=it(pt,{isInside:!1}),Ot=$e(`TooltipContent`),kt=R.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=ht(Ct,n),l=ot(n),{onClose:u}=c;return R.useEffect(()=>(document.addEventListener(lt,u),()=>document.removeEventListener(lt,u)),[u]),R.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,V.jsx)(D,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,V.jsxs)(fe,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,V.jsx)(Ot,{children:r}),(0,V.jsx)(Et,{scope:n,isInside:!0,children:(0,V.jsx)(de,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});wt.displayName=Ct;var At=`TooltipArrow`,jt=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=ot(n);return Dt(At,n).isInside?null:(0,V.jsx)(ue,{...i,...r,ref:t})});jt.displayName=At;function Mt(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Nt(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Pt(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Ft(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function It(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),Lt(t)}function Lt(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Rt=ft,zt=gt,Bt=vt,Vt=St,Ht=wt,Ut=jt;function Wt(e){let t=(0,L.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,V.jsx)(Rt,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Gt(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(zt,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function Kt(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Bt,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function qt(e){let t=(0,L.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?4:a,s;t[5]===r?s=t[6]:(s=P(`bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Ut,{className:`bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,V.jsx)(Vt,{children:(0,V.jsxs)(Ht,{"data-slot":`tooltip-content`,sideOffset:o,className:s,...i,children:[n,c]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Jt(e){let t={},n={background:`background`,foreground:`foreground`,card:`card`,"card-foreground":`card-foreground`,popover:`popover`,"popover-foreground":`popover-foreground`,primary:`primary`,"primary-foreground":`primary-foreground`,secondary:`secondary`,"secondary-foreground":`secondary-foreground`,muted:`muted`,"muted-foreground":`muted-foreground`,accent:`accent`,"accent-foreground":`accent-foreground`,destructive:`destructive`,"destructive-foreground":`destructive-foreground`,border:`border`,input:`input`,ring:`ring`,"chart-1":`chart-1`,"chart-2":`chart-2`,"chart-3":`chart-3`,"chart-4":`chart-4`,"chart-5":`chart-5`,sidebar:`sidebar`,"sidebar-foreground":`sidebar-foreground`,"sidebar-primary":`sidebar-primary`,"sidebar-primary-foreground":`sidebar-primary-foreground`,"sidebar-accent":`sidebar-accent`,"sidebar-accent-foreground":`sidebar-accent-foreground`,"sidebar-border":`sidebar-border`,"sidebar-ring":`sidebar-ring`};for(let[r,i]of Object.entries(e)){let e=r.startsWith(`--`)?r:`--${r}`;t[e]=i;let a=e.slice(2);n[a]&&(t[`--color-${n[a]}`]=i)}return t}var Yt=`color-theme`,Xt=null,Zt=[],Qt=new Set;function $t(){if(typeof window>`u`)return null;try{let e=localStorage.getItem(Yt);return e?JSON.parse(e):null}catch{return null}}function en(){if(typeof window>`u`)return`light`;let e=localStorage.getItem(`appearance`);return e===`dark`?`dark`:e===`light`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function tn(){Zt.forEach(e=>{document.documentElement.style.removeProperty(e)}),Zt=[]}function nn(e,t){tn();let n=Jt({...e.varsTheme??{},...t===`dark`?e.varsDark??{}:e.varsLight??{}});Zt=Object.keys(n),Object.entries(n).forEach(([e,t])=>{document.documentElement.style.setProperty(e,t)})}function rn(){Qt.forEach(e=>e())}function an(e){return Qt.add(e),()=>Qt.delete(e)}function on(){return Xt}function sn(){return null}function cn(){if(typeof window>`u`)return;let e=$t();e&&(Xt=e.name,nn(e,en()))}function ln(e){let t={name:e.name,varsLight:e.cssVars?.light??e.vars_light??{},varsDark:e.cssVars?.dark??e.vars_dark??{},varsTheme:e.cssVars?.theme??e.vars_theme??{}};Xt=e.name,localStorage.setItem(Yt,JSON.stringify(t)),nn(t,en()),rn()}function un(){Xt=null,localStorage.removeItem(Yt),tn(),rn()}function dn(){let e=(0,L.c)(7),t=(0,R.useSyncExternalStore)(an,on,sn),{resolvedAppearance:n}=d(),r,i;e[0]!==n||e[1]!==t?(r=()=>{let e=$t();e&&e.name===t&&nn(e,n)},i=[n,t],e[0]=n,e[1]=t,e[2]=r,e[3]=i):(r=e[2],i=e[3]),(0,R.useEffect)(r,i);let a=t!==null,o;return e[4]!==a||e[5]!==t?(o={themeName:t,setColorTheme:ln,clearColorTheme:un,isThemeActive:a},e[4]=a,e[5]=t,e[6]=o):o=e[6],o}var fn=F(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),pn=F(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),mn=F(`ChevronsUpDown`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),hn=F(`FolderGit2`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`path`,{d:`M18 19c-2.8 0-5-2.2-5-5v8`,key:`pkpw2h`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),gn=F(`LayoutGrid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),_n=F(`LogOut`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),vn=F(`PanelLeftClose`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),yn=F(`PanelLeftOpen`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),bn=F(`Settings`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);function xn(e){let t=(0,L.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=P(`border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,V.jsx)(`input`,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Sn=`Separator`,Cn=`horizontal`,wn=[`horizontal`,`vertical`],Tn=R.forwardRef((e,t)=>{let{decorative:n,orientation:r=Cn,...i}=e,a=En(r)?r:Cn,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,V.jsx)(I.div,{"data-orientation":a,...o,...i,ref:t})});Tn.displayName=Sn;function En(e){return wn.includes(e)}var Dn=Tn;function On(e){let t=(0,L.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,orientation:i,decorative:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`horizontal`:i,s=a===void 0?!0:a,c;t[5]===n?c=t[6]:(c=P(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,n),t[5]=n,t[6]=c);let l;return t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==c?(l=(0,V.jsx)(Dn,{"data-slot":`separator-root`,decorative:s,orientation:o,className:c,...r}),t[7]=s,t[8]=o,t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var kn=me();function An(){return(0,kn.useSyncExternalStore)(jn,()=>!0,()=>!1)}function jn(){return()=>{}}function Mn(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Nn(i,...t)]}function Nn(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Pn(e){let t=Fn(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(Ln);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Fn(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=zn(n),i=Rn(r,n.props);return n.type!==R.Fragment&&(i.ref=t?_(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var In=Symbol(`radix.slottable`);function Ln(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}function Rn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function zn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bn=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Pn(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vn(e,t){e&&he.flushSync(()=>e.dispatchEvent(t))}function Hn(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Un(i,...t)]}function Un(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Wn(e){let t=Gn(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(qn);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Gn(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=Yn(n),i=Jn(r,n.props);return n.type!==R.Fragment&&(i.ref=t?_(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kn=Symbol(`radix.slottable`);function qn(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Kn}function Jn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Yn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xn=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Wn(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Zn=`rovingFocusGroup.onEntryFocus`,Qn={bubbles:!1,cancelable:!0},$n=`RovingFocusGroup`,[er,tr,nr]=le($n),[rr,ir]=Hn($n,[nr]),[ar,or]=rr($n),sr=R.forwardRef((e,t)=>(0,V.jsx)(er.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(er.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(cr,{...e,ref:t})})}));sr.displayName=$n;var cr=R.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=R.useRef(null),m=y(t,f),h=N(a),[_,v]=g({prop:o,defaultProp:s??null,onChange:c,caller:$n}),[b,x]=R.useState(!1),C=S(l),w=tr(n),T=R.useRef(!1),[E,D]=R.useState(0);return R.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Zn,C),()=>e.removeEventListener(Zn,C)},[C]),(0,V.jsx)(ar,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:_,onItemFocus:R.useCallback(e=>v(e),[v]),onItemShiftTab:R.useCallback(()=>x(!0),[]),onFocusableItemAdd:R.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:R.useCallback(()=>D(e=>e-1),[]),children:(0,V.jsx)(Xn.div,{tabIndex:b||E===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:`none`,...e.style},onMouseDown:p(e.onMouseDown,()=>{T.current=!0}),onFocus:p(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(Zn,Qn);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);mr([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),u)}}T.current=!1}),onBlur:p(e.onBlur,()=>x(!1))})})}),lr=`RovingFocusGroupItem`,ur=R.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=O(),l=a||c,u=or(lr,n),d=u.currentTabStopId===l,f=tr(n),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=u;return R.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),(0,V.jsx)(er.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,V.jsx)(Xn.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:p(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:p(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:p(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=pr(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?hr(n,r+1):n.slice(r+1)}setTimeout(()=>mr(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:g!=null}):o})})});ur.displayName=lr;var dr={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function fr(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function pr(e,t,n){let r=fr(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return dr[r]}function mr(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gr=sr,_r=ur,vr=[`Enter`,` `],yr=[`ArrowDown`,`PageUp`,`Home`],br=[`ArrowUp`,`PageDown`,`End`],xr=[...yr,...br],Sr={ltr:[...vr,`ArrowRight`],rtl:[...vr,`ArrowLeft`]},Cr={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},wr=`Menu`,[Tr,Er,Dr]=le(wr),[Or,kr]=Mn(wr,[Dr,ce,ir]),Ar=ce(),jr=ir(),[Mr,Nr]=Or(wr),[Pr,Fr]=Or(wr),Ir=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ar(t),[c,l]=R.useState(null),u=R.useRef(!1),d=S(a),f=N(i);return R.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,V.jsx)(M,{...s,children:(0,V.jsx)(Mr,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,V.jsx)(Pr,{scope:t,onClose:R.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Ir.displayName=wr;var Lr=`MenuAnchor`,Rr=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ar(n);return(0,V.jsx)(se,{...i,...r,ref:t})});Rr.displayName=Lr;var zr=`MenuPortal`,[Br,Vr]=Or(zr,{forceMount:void 0}),Hr=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Nr(zr,t);return(0,V.jsx)(Br,{scope:t,forceMount:n,children:(0,V.jsx)(m,{present:n||a.open,children:(0,V.jsx)(te,{asChild:!0,container:i,children:r})})})};Hr.displayName=zr;var H=`MenuContent`,[Ur,Wr]=Or(H),Gr=R.forwardRef((e,t)=>{let n=Vr(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nr(H,e.__scopeMenu),o=Fr(H,e.__scopeMenu);return(0,V.jsx)(Tr.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(m,{present:r||a.open,children:(0,V.jsx)(Tr.Slot,{scope:e.__scopeMenu,children:o.modal?(0,V.jsx)(Kr,{...i,ref:t}):(0,V.jsx)(qr,{...i,ref:t})})})})}),Kr=R.forwardRef((e,t)=>{let n=Nr(H,e.__scopeMenu),r=R.useRef(null),i=y(t,r);return R.useEffect(()=>{let e=r.current;if(e)return k(e)},[]),(0,V.jsx)(Yr,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),qr=R.forwardRef((e,t)=>{let n=Nr(H,e.__scopeMenu);return(0,V.jsx)(Yr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Jr=Pn(`MenuContent.ScrollLock`),Yr=R.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:m,disableOutsideScroll:h,...g}=e,_=Nr(H,n),v=Fr(H,n),b=Ar(n),x=jr(n),S=Er(n),[C,w]=R.useState(null),O=R.useRef(null),ee=y(t,O,_.onContentChange),k=R.useRef(0),te=R.useRef(``),ne=R.useRef(0),A=R.useRef(null),re=R.useRef(`right`),j=R.useRef(0),ie=h?oe:R.Fragment,ae=h?{as:Jr,allowPinchZoom:!0}:void 0,se=e=>{let t=te.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ni(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){te.current=t,window.clearTimeout(k.current),t!==``&&(k.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};R.useEffect(()=>()=>window.clearTimeout(k.current),[]),T();let M=R.useCallback(e=>re.current===A.current?.side&&Fi(e,A.current?.area),[]);return(0,V.jsx)(Ur,{scope:n,searchRef:te,onItemEnter:R.useCallback(e=>{M(e)&&e.preventDefault()},[M]),onItemLeave:R.useCallback(e=>{M(e)||(O.current?.focus(),w(null))},[M]),onTriggerLeave:R.useCallback(e=>{M(e)&&e.preventDefault()},[M]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:R.useCallback(e=>{A.current=e},[]),children:(0,V.jsx)(ie,{...ae,children:(0,V.jsx)(E,{asChild:!0,trapped:i,onMountAutoFocus:p(a,e=>{e.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,V.jsx)(D,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:m,children:(0,V.jsx)(gr,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:p(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,V.jsx)(fe,{role:`menu`,"aria-orientation":`vertical`,"data-state":Oi(_.open),"data-radix-menu-content":``,dir:v.dir,...b,...g,ref:ee,style:{outline:`none`,...g.style},onKeyDown:p(g.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&se(e.key));let i=O.current;if(e.target!==i||!xr.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);br.includes(e.key)&&a.reverse(),ji(a)}),onBlur:p(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),te.current=``)}),onPointerMove:p(e.onPointerMove,Ii(e=>{let t=e.target,n=j.current!==e.clientX;e.currentTarget.contains(t)&&n&&(re.current=e.clientX>j.current?`right`:`left`,j.current=e.clientX)}))})})})})})})});Gr.displayName=H;var Xr=`MenuGroup`,Zr=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)(Bn.div,{role:`group`,...r,ref:t})});Zr.displayName=Xr;var Qr=`MenuLabel`,$r=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)(Bn.div,{...r,ref:t})});$r.displayName=Qr;var ei=`MenuItem`,ti=`menu.itemSelect`,ni=R.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=R.useRef(null),o=Fr(ei,e.__scopeMenu),s=Wr(ei,e.__scopeMenu),c=y(t,a),l=R.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ti,{bubbles:!0,cancelable:!0});e.addEventListener(ti,e=>r?.(e),{once:!0}),Vn(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,V.jsx)(ri,{...i,ref:c,disabled:n,onClick:p(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:p(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:p(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||vr.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ni.displayName=ei;var ri=R.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Wr(ei,n),s=jr(n),c=R.useRef(null),l=y(t,c),[u,d]=R.useState(!1),[f,m]=R.useState(``);return R.useEffect(()=>{let e=c.current;e&&m((e.textContent??``).trim())},[a.children]),(0,V.jsx)(Tr.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,V.jsx)(_r,{asChild:!0,...s,focusable:!r,children:(0,V.jsx)(Bn.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:p(e.onPointerMove,Ii(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:p(e.onPointerLeave,Ii(e=>o.onItemLeave(e))),onFocus:p(e.onFocus,()=>d(!0)),onBlur:p(e.onBlur,()=>d(!1))})})})}),ii=`MenuCheckboxItem`,ai=R.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,V.jsx)(pi,{scope:e.__scopeMenu,checked:n,children:(0,V.jsx)(ni,{role:`menuitemcheckbox`,"aria-checked":ki(n)?`mixed`:n,...i,ref:t,"data-state":Ai(n),onSelect:p(i.onSelect,()=>r?.(ki(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ai.displayName=ii;var oi=`MenuRadioGroup`,[si,ci]=Or(oi,{value:void 0,onValueChange:()=>{}}),li=R.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=S(r);return(0,V.jsx)(si,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,V.jsx)(Zr,{...i,ref:t})})});li.displayName=oi;var ui=`MenuRadioItem`,di=R.forwardRef((e,t)=>{let{value:n,...r}=e,i=ci(ui,e.__scopeMenu),a=n===i.value;return(0,V.jsx)(pi,{scope:e.__scopeMenu,checked:a,children:(0,V.jsx)(ni,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Ai(a),onSelect:p(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});di.displayName=ui;var fi=`MenuItemIndicator`,[pi,mi]=Or(fi,{checked:!1}),hi=R.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=mi(fi,n);return(0,V.jsx)(m,{present:r||ki(a.checked)||a.checked===!0,children:(0,V.jsx)(Bn.span,{...i,ref:t,"data-state":Ai(a.checked)})})});hi.displayName=fi;var gi=`MenuSeparator`,_i=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)(Bn.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});_i.displayName=gi;var vi=`MenuArrow`,yi=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ar(n);return(0,V.jsx)(ue,{...i,...r,ref:t})});yi.displayName=vi;var bi=`MenuSub`,[xi,Si]=Or(bi),Ci=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Nr(bi,t),o=Ar(t),[s,c]=R.useState(null),[l,u]=R.useState(null),d=S(i);return R.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,V.jsx)(M,{...o,children:(0,V.jsx)(Mr,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,V.jsx)(xi,{scope:t,contentId:O(),triggerId:O(),trigger:s,onTriggerChange:c,children:n})})})};Ci.displayName=bi;var wi=`MenuSubTrigger`,Ti=R.forwardRef((e,t)=>{let n=Nr(wi,e.__scopeMenu),r=Fr(wi,e.__scopeMenu),i=Si(wi,e.__scopeMenu),a=Wr(wi,e.__scopeMenu),o=R.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=R.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return R.useEffect(()=>u,[u]),R.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,V.jsx)(Rr,{asChild:!0,...l,children:(0,V.jsx)(ri,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Oi(n.open),...e,ref:_(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:p(e.onPointerMove,Ii(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:p(e.onPointerLeave,Ii(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:p(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Sr[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ti.displayName=wi;var Ei=`MenuSubContent`,Di=R.forwardRef((e,t)=>{let n=Vr(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nr(H,e.__scopeMenu),o=Fr(H,e.__scopeMenu),s=Si(Ei,e.__scopeMenu),c=R.useRef(null),l=y(t,c);return(0,V.jsx)(Tr.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(m,{present:r||a.open,children:(0,V.jsx)(Tr.Slot,{scope:e.__scopeMenu,children:(0,V.jsx)(Yr,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:p(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:p(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:p(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Cr[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Di.displayName=Ei;function Oi(e){return e?`open`:`closed`}function ki(e){return e===`indeterminate`}function Ai(e){return ki(e)?`indeterminate`:e?`checked`:`unchecked`}function ji(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mi(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ni(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Mi(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Pi(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Fi(e,t){return t?Pi({x:e.clientX,y:e.clientY},t):!1}function Ii(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Li=Ir,Ri=Rr,zi=Hr,Bi=Gr,Vi=Zr,Hi=$r,Ui=ni,Wi=ai,Gi=li,Ki=di,qi=hi,Ji=_i,Yi=yi,Xi=Ti,Zi=Di;function Qi(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,$i(i,...t)]}function $i(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ea(e){let t=ta(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(ra);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ta(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=aa(n),i=ia(r,n.props);return n.type!==R.Fragment&&(i.ref=t?_(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var na=Symbol(`radix.slottable`);function ra(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===na}function ia(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function aa(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oa=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ea(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),sa=`DropdownMenu`,[ca,la]=Qi(sa,[kr]),U=kr(),[ua,da]=ca(sa),fa=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=U(t),l=R.useRef(null),[u,d]=g({prop:i,defaultProp:a??!1,onChange:o,caller:sa});return(0,V.jsx)(ua,{scope:t,triggerId:O(),triggerRef:l,contentId:O(),open:u,onOpenChange:d,onOpenToggle:R.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,V.jsx)(Li,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};fa.displayName=sa;var pa=`DropdownMenuTrigger`,ma=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=da(pa,n),o=U(n);return(0,V.jsx)(Ri,{asChild:!0,...o,children:(0,V.jsx)(oa.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:_(t,a.triggerRef),onPointerDown:p(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:p(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});ma.displayName=pa;var ha=`DropdownMenuPortal`,ga=e=>{let{__scopeDropdownMenu:t,...n}=e,r=U(t);return(0,V.jsx)(zi,{...r,...n})};ga.displayName=ha;var _a=`DropdownMenuContent`,va=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=da(_a,n),a=U(n),o=R.useRef(!1);return(0,V.jsx)(Bi,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:p(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});va.displayName=_a;var ya=`DropdownMenuGroup`,ba=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Vi,{...i,...r,ref:t})});ba.displayName=ya;var xa=`DropdownMenuLabel`,Sa=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Hi,{...i,...r,ref:t})});Sa.displayName=xa;var Ca=`DropdownMenuItem`,wa=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Ui,{...i,...r,ref:t})});wa.displayName=Ca;var Ta=`DropdownMenuCheckboxItem`,Ea=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Wi,{...i,...r,ref:t})});Ea.displayName=Ta;var Da=`DropdownMenuRadioGroup`,Oa=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Gi,{...i,...r,ref:t})});Oa.displayName=Da;var ka=`DropdownMenuRadioItem`,Aa=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Ki,{...i,...r,ref:t})});Aa.displayName=ka;var ja=`DropdownMenuItemIndicator`,Ma=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(qi,{...i,...r,ref:t})});Ma.displayName=ja;var Na=`DropdownMenuSeparator`,Pa=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Ji,{...i,...r,ref:t})});Pa.displayName=Na;var Fa=`DropdownMenuArrow`,Ia=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Yi,{...i,...r,ref:t})});Ia.displayName=Fa;var La=`DropdownMenuSubTrigger`,Ra=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Xi,{...i,...r,ref:t})});Ra.displayName=La;var za=`DropdownMenuSubContent`,Ba=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(Zi,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Ba.displayName=za;var Va=fa,Ha=ma,Ua=ga,Wa=va,Ga=ba,Ka=Sa,qa=wa,Ja=Pa;function Ya(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(A,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Xa(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(w,{"data-slot":`sheet-trigger`,...n}),t[2]=n,t[3]=r),r}function Za(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(C,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Qa(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(ee,{"data-slot":`sheet-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function $a(e){let t=(0,L.c)(20),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Qa,{}),t[6]=l):l=t[6];let u=s===`right`&&`inset-y-0 right-0 h-full w-4/5 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,d=s===`left`&&`inset-y-0 left-0 h-full w-4/5 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,f=s===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,p=s===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,m;t[7]!==r||t[8]!==u||t[9]!==d||t[10]!==f||t[11]!==p?(m=P(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,u,d,f,p,r),t[7]=r,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;t[13]===c?h=t[14]:(h=c&&(0,V.jsxs)(ae,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,V.jsx)(re,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[13]=c,t[14]=h);let g;return t[15]!==n||t[16]!==i||t[17]!==m||t[18]!==h?(g=(0,V.jsxs)(Za,{children:[l,(0,V.jsxs)(ne,{"data-slot":`sheet-content`,className:m,...i,children:[n,h]})]}),t[15]=n,t[16]=i,t[17]=m,t[18]=h,t[19]=g):g=t[19],g}function eo(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-1.5 p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sheet-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function to(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`font-semibold text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(ie,{"data-slot":`sheet-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function no(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(j,{"data-slot":`sheet-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ro(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`bg-primary/10 animate-pulse rounded-md`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`skeleton`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var io=typeof window>`u`?void 0:window.matchMedia(`(max-width: 767px)`);function ao(e){return io?(io.addEventListener(`change`,e),()=>{io.removeEventListener(`change`,e)}):()=>{}}function oo(){return io?.matches??!1}function so(){return!1}function co(){return(0,R.useSyncExternalStore)(ao,oo,so)}var lo=`sidebar_state`,uo=3600*24*7,fo=`16rem`,po=`18rem`,mo=`3rem`,ho=`b`,go=R.createContext(null);function _o(){let e=R.useContext(go);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function vo(e){let t=(0,L.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=co(),[d,f]=R.useState(!1),[p,m]=R.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${lo}=${t}; path=/; max-age=${uo}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(bo):_(yo),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===ho&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),R.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":fo,"--sidebar-width-icon":mo,...s},t[24]=s,t[25]=T);let E=T,D;t[26]===r?D=t[27]:(D=P(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),t[26]=r,t[27]=D);let O;t[28]!==n||t[29]!==a||t[30]!==E||t[31]!==D?(O=(0,V.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:E,className:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=E,t[31]=D,t[32]=O):O=t[32];let ee;return t[33]!==w||t[34]!==O?(ee=(0,V.jsx)(go.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=ee):ee=t[35],ee}function yo(e){return!e}function bo(e){return!e}function xo(e){let t=(0,L.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offcanvas`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=_o();if(u===`none`){let e;t[7]===r?e=t[8]:(e=P(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar`,className:e,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsxs)(eo,{className:`sr-only`,children:[(0,V.jsx)(to,{children:`Sidebar`}),(0,V.jsx)(no,{children:`Displays the mobile sidebar.`})]}),t[13]=e):e=t[13];let r;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(r={"--sidebar-width":po},t[14]=r):r=t[14];let a;t[15]===n?a=t[16]:(a=(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=a);let o;t[17]!==c||t[18]!==a?(o=(0,V.jsx)($a,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:r,side:c,children:a}),t[17]=c,t[18]=a,t[19]=o):o=t[19];let s;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==o?(s=(0,V.jsxs)(Ya,{open:p,onOpenChange:m,...i,children:[e,o]}),t[20]=p,t[21]=i,t[22]=m,t[23]=o,t[24]=s):s=t[24],s}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=P(`relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,V.jsx)(`div`,{className:_}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=P(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,V.jsx)(`div`,{"data-sidebar":`sidebar`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,V.jsx)(`div`,{className:x,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,V.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":f,"data-collapsible":h,"data-variant":l,"data-side":c,"data-slot":`sidebar`,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function So(e){let t=(0,L.c)(18),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a,isMobile:o,state:s}=_o(),c;t[4]===n?c=t[5]:(c=P(`h-7 w-7`,n),t[4]=n,t[5]=c);let l;t[6]!==r||t[7]!==a?(l=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=l):l=t[8];let u;t[9]!==o||t[10]!==s?(u=o||s===`collapsed`?(0,V.jsx)(yn,{}):(0,V.jsx)(vn,{}),t[9]=o,t[10]=s,t[11]=u):u=t[11];let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle sidebar`}),t[12]=d):d=t[12];let f;return t[13]!==i||t[14]!==c||t[15]!==l||t[16]!==u?(f=(0,V.jsxs)(x,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:c,onClick:l,...i,children:[u,d]}),t[13]=i,t[14]=c,t[15]=l,t[16]=u,t[17]=f):f=t[17],f}function Co(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`bg-background relative flex max-w-full min-h-svh flex-1 flex-col`,`peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`main`,{"data-slot":`sidebar-inset`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wo(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function To(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Eo(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Do(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`relative flex w-full min-w-0 flex-col p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oo(e){let t=(0,L.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,asChild:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i!==void 0&&i?b:`div`,o;t[4]===n?o=t[5]:(o=P(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,V.jsx)(a,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function ko(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`w-full text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ao(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex w-full min-w-0 flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jo(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Mo=v(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function No(e){let t=(0,L.c)(28),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({asChild:i,isActive:a,variant:o,size:s,tooltip:c,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=i===void 0?!1:i,u=a===void 0?!1:a,d=o===void 0?`default`:o,f=s===void 0?`default`:s,p=l?b:`button`,{isMobile:m,state:h}=_o(),g;t[8]!==n||t[9]!==f||t[10]!==d?(g=P(Mo({variant:d,size:f}),n),t[8]=n,t[9]=f,t[10]=d,t[11]=g):g=t[11];let _;t[12]!==p||t[13]!==u||t[14]!==r||t[15]!==f||t[16]!==g?(_=(0,V.jsx)(p,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":f,"data-active":u,className:g,...r}),t[12]=p,t[13]=u,t[14]=r,t[15]=f,t[16]=g,t[17]=_):_=t[17];let v=_;if(!c)return v;if(typeof c==`string`){let e;t[18]===c?e=t[19]:(e={children:c},t[18]=c,t[19]=e),c=e}let y;t[20]===v?y=t[21]:(y=(0,V.jsx)(Kt,{asChild:!0,children:v}),t[20]=v,t[21]=y);let x=h!==`collapsed`||m,S;t[22]!==x||t[23]!==c?(S=(0,V.jsx)(qt,{side:`right`,align:`center`,hidden:x,...c}),t[22]=x,t[23]=c,t[24]=S):S=t[24];let C;return t[25]!==y||t[26]!==S?(C=(0,V.jsxs)(Gt,{children:[y,S]}),t[25]=y,t[26]=S,t[27]=C):C=t[27],C}function Po(e){let t=(0,L.c)(10),n,r,i;if(t[0]===e?(n=t[1],r=t[2],i=t[3]):({variant:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i),(i===void 0?`sidebar`:i)===`sidebar`){let e;return t[4]!==n||t[5]!==r?(e=(0,V.jsx)(Co,{...r,children:n}),t[4]=n,t[5]=r,t[6]=e):e=t[6],e}let a;return t[7]!==n||t[8]!==r?(a=(0,V.jsx)(`main`,{className:`mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl`,...r,children:n}),t[7]=n,t[8]=r,t[9]=a):a=t[9],a}function Fo(e){let n=(0,L.c)(5),{children:r,variant:i}=e,a=i===void 0?`sidebar`:i,o=t().props.sidebarOpen;if(a===`header`){let e;return n[0]===r?e=n[1]:(e=(0,V.jsx)(`div`,{className:`flex min-h-screen w-full flex-col`,children:r}),n[0]=r,n[1]=e),e}let s;return n[2]!==r||n[3]!==o?(s=(0,V.jsx)(vo,{defaultOpen:o,children:r}),n[2]=r,n[3]=o,n[4]=s):s=n[4],s}function Io(e){let t=(0,L.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.2 5.63325L8.6 0.855469L0 5.63325V32.1434L16.2 41.1434L32.4 32.1434V23.699L40 19.4767V9.85547L31.4 5.07769L22.8 9.85547V18.2999L17.2 21.411V5.63325ZM38 18.2999L32.4 21.411V15.2545L38 12.1434V18.2999ZM36.9409 10.4439L31.4 13.5221L25.8591 10.4439L31.4 7.36561L36.9409 10.4439ZM24.8 18.2999V12.1434L30.4 15.2545V21.411L24.8 18.2999ZM23.8 20.0323L29.3409 23.1105L16.2 30.411L10.6591 27.3328L23.8 20.0323ZM7.6 27.9212L15.2 32.1434V38.2999L2 30.9666V7.92116L7.6 11.0323V27.9212ZM8.6 9.29991L3.05913 6.22165L8.6 3.14339L14.1409 6.22165L8.6 9.29991ZM30.4 24.8101L17.2 32.1434V38.2999L30.4 30.9666V24.8101ZM9.6 11.0323L15.2 7.92117V22.5221L9.6 25.6333V11.0323Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,V.jsx)(`svg`,{...e,viewBox:`0 0 40 42`,xmlns:`http://www.w3.org/2000/svg`,children:n}),t[1]=e,t[2]=r),r}function Lo(){let e=(0,L.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground`,children:(0,V.jsx)(Io,{className:`size-5 fill-current text-white dark:text-black`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(V.Fragment,{children:[t,(0,V.jsx)(`div`,{className:`ml-1 grid flex-1 text-left text-sm`,children:(0,V.jsx)(`span`,{className:`mb-0.5 truncate leading-tight font-semibold`,children:`Laravel Starter Kit`})})]}),e[1]=n):n=e[1],n}function Ro(e){let t=(0,L.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({items:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=`group-data-[collapsible=icon]:p-0 ${n||``}`,o;t[4]===r?o=t[5]:(o=r.map(zo),t[4]=r,t[5]=o);let s;t[6]===o?s=t[7]:(s=(0,V.jsx)(ko,{children:(0,V.jsx)(Ao,{children:o})}),t[6]=o,t[7]=s);let c;return t[8]!==i||t[9]!==a||t[10]!==s?(c=(0,V.jsx)(Do,{...i,className:a,children:s}),t[8]=i,t[9]=a,t[10]=s,t[11]=c):c=t[11],c}function zo(e){return(0,V.jsx)(jo,{children:(0,V.jsx)(No,{asChild:!0,className:`text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100`,children:(0,V.jsxs)(`a`,{href:pe(e.href),target:`_blank`,rel:`noopener noreferrer`,children:[e.icon&&(0,V.jsx)(e.icon,{className:`h-5 w-5`}),(0,V.jsx)(`span`,{children:e.title})]})})},e.title)}function Bo(){let e=(0,L.c)(13),n=t(),r;e[0]===n.url?r=e[1]:(r=new URL(n.url,typeof window<`u`?window.location.origin:`http://localhost`),e[0]=n.url,e[1]=r);let i=r.pathname,a;e[2]===i?a=e[3]:(a=(e,t,n)=>{let r=n===void 0?!1:n,a=t??i,o=pe(e),s=e=>r?a.startsWith(e):e===a;if(!o.startsWith(`http`))return s(o);try{return s(new URL(o).pathname)}catch{return!1}},e[2]=i,e[3]=a);let o=a,s;e[4]===o?s=e[5]:(s=(e,t)=>o(e,t,!0),e[4]=o,e[5]=s);let c=s,l;e[6]===o?l=e[7]:(l=(e,t,n)=>{let r=n===void 0?null:n;return o(e)?t:r},e[6]=o,e[7]=l);let u=l,d;return e[8]!==i||e[9]!==c||e[10]!==o||e[11]!==u?(d={currentUrl:i,isCurrentUrl:o,isCurrentOrParentUrl:c,whenCurrentUrl:u},e[8]=i,e[9]=c,e[10]=o,e[11]=u,e[12]=d):d=e[12],d}function Vo(t){let n=(0,L.c)(10),{items:r}=t,i;n[0]===r?i=n[1]:(i=r===void 0?[]:r,n[0]=r,n[1]=i);let a=i,{isCurrentUrl:o}=Bo(),s;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(Oo,{children:`Platform`}),n[2]=s):s=n[2];let c;if(n[3]!==o||n[4]!==a){let t;n[6]===o?t=n[7]:(t=t=>(0,V.jsx)(jo,{children:(0,V.jsx)(No,{asChild:!0,isActive:o(t.href),tooltip:{children:t.title},children:(0,V.jsxs)(e,{href:t.href,prefetch:!0,children:[t.icon&&(0,V.jsx)(t.icon,{}),(0,V.jsx)(`span`,{children:t.title})]})})},t.title),n[6]=o,n[7]=t),c=a.map(t),n[3]=o,n[4]=a,n[5]=c}else c=n[5];let l;return n[8]===c?l=n[9]:(l=(0,V.jsxs)(Do,{className:`px-2 py-0`,children:[s,(0,V.jsx)(Ao,{children:c})]}),n[8]=c,n[9]=l),l}function Ho(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Va,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function Uo(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Ha,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function Wo(e){let t=(0,L.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,sideOffset:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?4:i,o;t[4]===n?o=t[5]:(o=P(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,V.jsx)(Ua,{children:(0,V.jsx)(Wa,{"data-slot":`dropdown-menu-content`,sideOffset:a,className:o,...r})}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function Go(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Ga,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function Ko(e){let t=(0,L.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=P(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,V.jsx)(qa,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function qo(e){let t=(0,L.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=P(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,V.jsx)(Ka,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function Jo(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`bg-border -mx-1 my-1 h-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(Ja,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Yo(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Xo(i,...t)]}function Xo(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Zo=`Avatar`,[Qo,$o]=Yo(Zo),[es,ts]=Qo(Zo),ns=R.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=R.useState(`idle`);return(0,V.jsx)(es,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,V.jsx)(I.span,{...r,ref:t})})});ns.displayName=Zo;var rs=`AvatarImage`,is=R.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=ts(rs,n),s=cs(r,a),c=S(e=>{i(e),o.onImageLoadingStatusChange(e)});return h(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,V.jsx)(I.img,{...a,ref:t,src:r}):null});is.displayName=rs;var as=`AvatarFallback`,os=R.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=ts(as,n),[o,s]=R.useState(r===void 0);return R.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,V.jsx)(I.span,{...i,ref:t}):null});os.displayName=as;function ss(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function cs(e,{referrerPolicy:t,crossOrigin:n}){let r=An(),i=R.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=R.useState(()=>ss(a,e));return h(()=>{s(ss(a,e))},[a,e]),h(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var ls=ns,us=is,ds=os;function fs(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(ls,{"data-slot":`avatar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ps(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`aspect-square size-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(us,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ms(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`bg-muted flex size-full items-center justify-center rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(ds,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hs(){return gs}function gs(e){let t=e.trim().split(` `);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`.toUpperCase()}function _s(e){let t=(0,L.c)(22),{user:n,showEmail:r}=e,i=r===void 0?!1:r,a=hs(),o;t[0]!==n.avatar||t[1]!==n.name?(o=(0,V.jsx)(ps,{src:n.avatar,alt:n.name}),t[0]=n.avatar,t[1]=n.name,t[2]=o):o=t[2];let s;t[3]!==a||t[4]!==n.name?(s=a(n.name),t[3]=a,t[4]=n.name,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,V.jsx)(ms,{className:`rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white`,children:s}),t[6]=s,t[7]=c);let l;t[8]!==o||t[9]!==c?(l=(0,V.jsxs)(fs,{className:`h-8 w-8 overflow-hidden rounded-full`,children:[o,c]}),t[8]=o,t[9]=c,t[10]=l):l=t[10];let u;t[11]===n.name?u=t[12]:(u=(0,V.jsx)(`span`,{className:`truncate font-medium`,children:n.name}),t[11]=n.name,t[12]=u);let d;t[13]!==i||t[14]!==n.email?(d=i&&(0,V.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n.email}),t[13]=i,t[14]=n.email,t[15]=d):d=t[15];let f;t[16]!==u||t[17]!==d?(f=(0,V.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[u,d]}),t[16]=u,t[17]=d,t[18]=f):f=t[18];let p;return t[19]!==l||t[20]!==f?(p=(0,V.jsxs)(V.Fragment,{children:[l,f]}),t[19]=l,t[20]=f,t[21]=p):p=t[21],p}function vs(){return ys}function ys(){document.body.style.removeProperty(`pointer-events`)}var W=e=>({url:W.url(e),method:`get`});W.definition={methods:[`get`,`head`],url:`/login`},W.url=e=>W.definition.url+s(e),W.get=e=>({url:W.url(e),method:`get`}),W.head=e=>({url:W.url(e),method:`head`});var bs=e=>({action:W.url(e),method:`get`});bs.get=e=>({action:W.url(e),method:`get`}),bs.head=e=>({action:W.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),W.form=bs;var G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/logout`},G.url=e=>G.definition.url+s(e),G.post=e=>({url:G.url(e),method:`post`});var xs=e=>({action:G.url(e),method:`post`});xs.post=e=>({action:G.url(e),method:`post`}),G.form=xs;var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/register`},K.url=e=>K.definition.url+s(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var Ss=e=>({action:K.url(e),method:`get`});Ss.get=e=>({action:K.url(e),method:`get`}),Ss.head=e=>({action:K.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),K.form=Ss;var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/`},q.url=e=>q.definition.url+s(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var Cs=e=>({action:q.url(e),method:`get`});Cs.get=e=>({action:q.url(e),method:`get`}),Cs.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=Cs;var J=e=>({url:J.url(e),method:`get`});J.definition={methods:[`get`,`head`],url:`/dashboard`},J.url=e=>J.definition.url+s(e),J.get=e=>({url:J.url(e),method:`get`}),J.head=e=>({url:J.url(e),method:`head`});var ws=e=>({action:J.url(e),method:`get`});ws.get=e=>({action:J.url(e),method:`get`}),ws.head=e=>({action:J.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),J.form=ws;var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/settings/profile`},Y.url=e=>Y.definition.url+s(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var Ts=e=>({action:Y.url(e),method:`get`});Ts.get=e=>({action:Y.url(e),method:`get`}),Ts.head=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Y.form=Ts;var X=e=>({url:X.url(e),method:`patch`});X.definition={methods:[`patch`],url:`/settings/profile`},X.url=e=>X.definition.url+s(e),X.patch=e=>({url:X.url(e),method:`patch`});var Es=e=>({action:X.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});Es.patch=e=>({action:X.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),X.form=Es;var Z=e=>({url:Z.url(e),method:`delete`});Z.definition={methods:[`delete`],url:`/settings/profile`},Z.url=e=>Z.definition.url+s(e),Z.delete=e=>({url:Z.url(e),method:`delete`});var Ds=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});Ds.delete=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Z.form=Ds,Object.assign(Y,Y),Object.assign(X,X),Object.assign(Z,Z);function Os(t){let n=(0,L.c)(18),{user:i}=t,a=vs(),o;n[0]===a?o=n[1]:(o=()=>{a(),r.flushAll()},n[0]=a,n[1]=o);let s=o,c;n[2]===i?c=n[3]:(c=(0,V.jsx)(qo,{className:`p-0 font-normal`,children:(0,V.jsx)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:(0,V.jsx)(_s,{user:i,showEmail:!0})})}),n[2]=i,n[3]=c);let l;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Jo,{}),n[4]=l):l=n[4];let u;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=Y(),n[5]=u):u=n[5];let d;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(bn,{className:`mr-2`}),n[6]=d):d=n[6];let f;n[7]===a?f=n[8]:(f=(0,V.jsx)(Go,{children:(0,V.jsx)(Ko,{asChild:!0,children:(0,V.jsxs)(e,{className:`block w-full cursor-pointer`,href:u,prefetch:!0,onClick:a,children:[d,`Settings`]})})}),n[7]=a,n[8]=f);let p;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,V.jsx)(Jo,{}),n[9]=p):p=n[9];let m;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=G(),n[10]=m):m=n[10];let h;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,V.jsx)(_n,{className:`mr-2`}),n[11]=h):h=n[11];let g;n[12]===s?g=n[13]:(g=(0,V.jsx)(Ko,{asChild:!0,children:(0,V.jsxs)(e,{className:`block w-full cursor-pointer`,href:m,as:`button`,onClick:s,"data-test":`logout-button`,children:[h,`Log out`]})}),n[12]=s,n[13]=g);let _;return n[14]!==g||n[15]!==c||n[16]!==f?(_=(0,V.jsxs)(V.Fragment,{children:[c,l,f,p,g]}),n[14]=g,n[15]=c,n[16]=f,n[17]=_):_=n[17],_}function ks(){let e=(0,L.c)(13),{auth:n}=t().props,{state:r}=_o(),i=co();if(!n.user)return null;let a;e[0]===n.user?a=e[1]:(a=(0,V.jsx)(_s,{user:n.user}),e[0]=n.user,e[1]=a);let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(mn,{className:`ml-auto size-4`}),e[2]=o):o=e[2];let s;e[3]===a?s=e[4]:(s=(0,V.jsx)(Uo,{asChild:!0,children:(0,V.jsxs)(No,{size:`lg`,className:`group text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent`,"data-test":`sidebar-menu-button`,children:[a,o]})}),e[3]=a,e[4]=s);let c=i?`bottom`:r===`collapsed`?`left`:`bottom`,l;e[5]===n.user?l=e[6]:(l=(0,V.jsx)(Os,{user:n.user}),e[5]=n.user,e[6]=l);let u;e[7]!==c||e[8]!==l?(u=(0,V.jsx)(Wo,{className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,align:`end`,side:c,children:l}),e[7]=c,e[8]=l,e[9]=u):u=e[9];let d;return e[10]!==s||e[11]!==u?(d=(0,V.jsx)(Ao,{children:(0,V.jsx)(jo,{children:(0,V.jsxs)(Ho,{children:[s,u]})})}),e[10]=s,e[11]=u,e[12]=d):d=e[12],d}var As=[{title:`Dashboard`,href:J(),icon:gn}],js=[{title:`Repository`,href:`https://github.com/laravel/react-starter-kit`,icon:hn},{title:`Documentation`,href:`https://laravel.com/docs/starter-kits#react`,icon:fn}];function Ms(){let t=(0,L.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=J(),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(wo,{children:(0,V.jsx)(Ao,{children:(0,V.jsx)(jo,{children:(0,V.jsx)(No,{size:`lg`,asChild:!0,children:(0,V.jsx)(e,{href:n,prefetch:!0,children:(0,V.jsx)(Lo,{})})})})})}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(Eo,{children:(0,V.jsx)(Vo,{items:As})}),t[2]=i):i=t[2];let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsxs)(xo,{collapsible:`icon`,variant:`inset`,children:[r,i,(0,V.jsxs)(To,{children:[(0,V.jsx)(Ro,{items:js,className:`mt-auto`}),(0,V.jsx)(ks,{})]})]}),t[3]=a):a=t[3],a}function Ns(e){let t=(0,L.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...n}),t[2]=n,t[3]=r),r}function Ps(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fs(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`inline-flex items-center gap-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Is(e){let t=(0,L.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?b:`a`,o;t[4]===r?o=t[5]:(o=P(`hover:text-foreground transition-colors`,r),t[4]=r,t[5]=o);let s;return t[6]!==a||t[7]!==i||t[8]!==o?(s=(0,V.jsx)(a,{"data-slot":`breadcrumb-link`,className:o,...i}),t[6]=a,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function Ls(e){let t=(0,L.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-foreground font-normal`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rs(e){let t=(0,L.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=P(`[&>svg]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=n??(0,V.jsx)(pn,{}),t[6]=n,t[7]=o);let s;return t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,V.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:a,...i,children:o}),t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function zs(t){let n=(0,L.c)(4),{breadcrumbs:r}=t,i;n[0]===r?i=n[1]:(i=r.length>0&&(0,V.jsx)(Ns,{children:(0,V.jsx)(Ps,{children:r.map((t,n)=>{let i=n===r.length-1;return(0,V.jsxs)(R.Fragment,{children:[(0,V.jsx)(Fs,{children:i?(0,V.jsx)(Ls,{children:t.title}):(0,V.jsx)(Is,{asChild:!0,children:(0,V.jsx)(e,{href:t.href,children:t.title})})}),!i&&(0,V.jsx)(Rs,{})]},n)})})}),n[0]=r,n[1]=i);let a;return n[2]===i?a=n[3]:(a=(0,V.jsx)(V.Fragment,{children:i}),n[2]=i,n[3]=a),a}function Bs(e){let t=(0,L.c)(5),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(So,{className:`-ml-1`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=(0,V.jsx)(`header`,{className:`flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a,(0,V.jsx)(zs,{breadcrumbs:i})]})}),t[3]=i,t[4]=o),o}function Vs(e){let t=(0,L.c)(8),{children:n,breadcrumbs:r}=e,i;t[0]===r?i=t[1]:(i=r===void 0?[]:r,t[0]=r,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(Ms,{}),t[2]=o):o=t[2];let s;t[3]===a?s=t[4]:(s=(0,V.jsx)(Bs,{breadcrumbs:a}),t[3]=a,t[4]=s);let c;return t[5]!==n||t[6]!==s?(c=(0,V.jsxs)(Fo,{variant:`sidebar`,children:[o,(0,V.jsxs)(Po,{variant:`sidebar`,className:`overflow-x-hidden`,children:[s,n]})]}),t[5]=n,t[6]=s,t[7]=c):c=t[7],c}function Hs(e){let t=(0,L.c)(5),{breadcrumbs:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n===void 0?[]:n,t[0]=n,t[1]=i);let a=i,o;return t[2]!==a||t[3]!==r?(o=(0,V.jsx)(Vs,{breadcrumbs:a,children:r}),t[2]=a,t[3]=r,t[4]=o):o=t[4],o}function Us(t){let n=(0,L.c)(17),{children:r,title:i,description:a}=t,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=q(),n[0]=o):o=n[0];let s;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(`div`,{className:`mb-1 flex h-9 w-9 items-center justify-center rounded-md`,children:(0,V.jsx)(Io,{className:`size-9 fill-current text-[var(--foreground)] dark:text-white`})}),n[1]=s):s=n[1];let c;n[2]===i?c=n[3]:(c=(0,V.jsxs)(e,{href:o,className:`flex flex-col items-center gap-2 font-medium`,children:[s,(0,V.jsx)(`span`,{className:`sr-only`,children:i})]}),n[2]=i,n[3]=c);let l;n[4]===i?l=n[5]:(l=(0,V.jsx)(`h1`,{className:`text-xl font-medium`,children:i}),n[4]=i,n[5]=l);let u;n[6]===a?u=n[7]:(u=(0,V.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:a}),n[6]=a,n[7]=u);let d;n[8]!==l||n[9]!==u?(d=(0,V.jsxs)(`div`,{className:`space-y-2 text-center`,children:[l,u]}),n[8]=l,n[9]=u,n[10]=d):d=n[10];let f;n[11]!==c||n[12]!==d?(f=(0,V.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[c,d]}),n[11]=c,n[12]=d,n[13]=f):f=n[13];let p;return n[14]!==r||n[15]!==f?(p=(0,V.jsx)(`div`,{className:`flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10`,children:(0,V.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[f,r]})})}),n[14]=r,n[15]=f,n[16]=p):p=n[16],p}function Ws(e){let t=(0,L.c)(4),{title:n,description:r,children:i}=e,a=n===void 0?``:n,o=r===void 0?``:r,s;return t[0]!==i||t[1]!==o||t[2]!==a?(s=(0,V.jsx)(Us,{title:a,description:o,children:i}),t[0]=i,t[1]=o,t[2]=a,t[3]=s):s=t[3],s}function Gs(e){let t=(0,L.c)(10),{title:n,description:r,variant:i,as:a}=e,o=i===void 0?`default`:i,s=a===void 0?`h1`:a,c=o===`small`?``:`mb-8 space-y-0.5`,l=o===`small`?`mb-0.5 text-base font-medium`:`text-xl font-semibold tracking-tight`,u;t[0]!==s||t[1]!==l||t[2]!==n?(u=(0,V.jsx)(s,{className:l,children:n}),t[0]=s,t[1]=l,t[2]=n,t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r&&(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r}),t[4]=r,t[5]=d);let f;return t[6]!==c||t[7]!==u||t[8]!==d?(f=(0,V.jsxs)(`header`,{className:c,children:[u,d]}),t[6]=c,t[7]=u,t[8]=d,t[9]=f):f=t[9],f}var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/settings/appearance`},Q.url=e=>Q.definition.url+s(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var Ks=e=>({action:Q.url(e),method:`get`});Ks.get=e=>({action:Q.url(e),method:`get`}),Ks.head=e=>({action:Q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Q.form=Ks,Object.assign(Q,Q);var $=e=>({url:$.url(e),method:`get`});$.definition={methods:[`get`,`head`],url:`/settings/security`},$.url=e=>$.definition.url+s(e),$.get=e=>({url:$.url(e),method:`get`}),$.head=e=>({url:$.url(e),method:`head`});var qs=e=>({action:$.url(e),method:`get`});qs.get=e=>({action:$.url(e),method:`get`}),qs.head=e=>({action:$.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),$.form=qs,Object.assign($,$);var Js=[{title:`Profile`,href:Y(),icon:null},{title:`Security`,href:$(),icon:null},{title:`Appearance`,href:Q(),icon:null}];function Ys(t){let n=(0,L.c)(11),{children:r}=t,{isCurrentOrParentUrl:i}=Bo(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(Gs,{title:`Settings`,description:`Manage your profile and account settings`}),n[0]=a):a=n[0];let o;n[1]===i?o=n[2]:(o=Js.map((t,n)=>(0,V.jsx)(x,{size:`sm`,variant:`ghost`,asChild:!0,className:P(`w-full justify-start`,{"bg-muted":i(t.href)}),children:(0,V.jsxs)(e,{href:t.href,children:[t.icon&&(0,V.jsx)(t.icon,{className:`h-4 w-4`}),t.title]})},`${pe(t.href)}-${n}`)),n[1]=i,n[2]=o);let s;n[3]===o?s=n[4]:(s=(0,V.jsx)(`aside`,{className:`w-full max-w-xl lg:w-48`,children:(0,V.jsx)(`nav`,{className:`flex flex-col space-y-1 space-x-0`,"aria-label":`Settings`,children:o})}),n[3]=o,n[4]=s);let c;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(On,{className:`my-6 lg:hidden`}),n[5]=c):c=n[5];let l;n[6]===r?l=n[7]:(l=(0,V.jsx)(`div`,{className:`flex-1 md:max-w-2xl`,children:(0,V.jsx)(`section`,{className:`max-w-xl space-y-12`,children:r})}),n[6]=r,n[7]=l);let u;return n[8]!==s||n[9]!==l?(u=(0,V.jsxs)(`div`,{className:`px-4 py-6`,children:[a,(0,V.jsxs)(`div`,{className:`flex flex-col lg:flex-row lg:space-x-12`,children:[s,c,l]})]}),n[8]=s,n[9]=l,n[10]=u):u=n[10],u}var Xs=`Laravel`;a({resolve:async(e,t)=>{let r=Object.assign({"./pages/animate-css/index.tsx":()=>n(()=>import(`./animate-css-DjHmIVWH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),"./pages/auth/confirm-password.tsx":()=>n(()=>import(`./confirm-password-DXqCvmLh.js`),__vite__mapDeps([20,1,3,4,21,22,23,24,25,26,27])),"./pages/auth/forgot-password.tsx":()=>n(()=>import(`./forgot-password-BQY-LsgH.js`),__vite__mapDeps([28,1,3,4,21,22,26,24,29,30,27])),"./pages/auth/login.tsx":()=>n(()=>import(`./login-DDiqb3zu.js`),__vite__mapDeps([31,1,32,6,3,4,33,34,8,21,22,35,23,9,24,29,25,26,30,27])),"./pages/auth/register.tsx":()=>n(()=>import(`./register-3WIwjGeo.js`),__vite__mapDeps([36,1,3,4,21,22,35,23,9,24,29,25,26])),"./pages/auth/reset-password.tsx":()=>n(()=>import(`./reset-password-DA1t4sje.js`),__vite__mapDeps([37,1,3,4,21,22,23,24,25,26,30,27])),"./pages/auth/two-factor-challenge.tsx":()=>n(()=>import(`./two-factor-challenge-G3MKbV9v.js`),__vite__mapDeps([38,1,3,4,39,24])),"./pages/auth/verify-email.tsx":()=>n(()=>import(`./verify-email-DF33-d5n.js`),__vite__mapDeps([40,1,3,4,29,25,26,41])),"./pages/dashboard.tsx":()=>n(()=>import(`./dashboard-BT6uuLKU.js`),__vite__mapDeps([42,1,11])),"./pages/fonts/index.tsx":()=>n(()=>import(`./fonts-CMXsOM2l.js`),__vite__mapDeps([43,1,7,3,4,5,6,8,9,10,11,12,13,14,44,17])),"./pages/home.tsx":()=>n(()=>import(`./home-B2lItTUn.js`),__vite__mapDeps([45,1,46,6,3,4,47,2,5,34,33,7,8,9,10,11,12,15,32,21,22,13,14,48,44,17,19])),"./pages/settings/appearance.tsx":()=>n(()=>import(`./appearance-iJRh14ZS.js`),__vite__mapDeps([49,1,4,10,12])),"./pages/settings/profile.tsx":()=>n(()=>import(`./profile-BEn4K4cJ.js`),__vite__mapDeps([50,1,3,4,21,22,23,24,18,5,6,41])),"./pages/settings/security.tsx":()=>n(()=>import(`./security-DmqLPAqs.js`),__vite__mapDeps([51,1,3,4,21,22,39,8,14,23,24,48,17,18,5,6,25,26,12])),"./pages/themes/index.tsx":()=>n(()=>import(`./themes-DsbD3i65.js`),__vite__mapDeps([52,1,46,6,3,4,47,2,5,34,33,7,8,9,10,11,12,15,17])),"./pages/welcome.tsx":()=>n(()=>import(`./welcome-BbYySG9A.js`),__vite__mapDeps([53,1]))}),i=await(r[`./pages/${e}.tsx`]||r[`./pages/${e}.jsx`]||r[`./Pages/${e}.tsx`]||r[`./Pages/${e}.jsx`])?.();if(!i)throw Error(`Page not found: ${e}`);return i.default??i},title:e=>e?`${e} - ${Xs}`:Xs,layout:e=>{switch(!0){case e===`welcome`:return null;case e.startsWith(`auth/`):return Ws;case e.startsWith(`settings/`):return[Hs,Ys];default:return Hs}},strictMode:!0,withApp(e){return(0,V.jsxs)(Wt,{delayDuration:0,children:[(0,V.jsx)(`div`,{className:`pt-16`,children:e}),(0,V.jsx)(qe,{})]})},progress:{color:`var(--primary)`}}),f(),cn();export{ke as A,ir as C,ln as D,un as E,dn as O,gr as S,xn as T,no as _,J as a,Xa as b,G as c,ms as d,ps as f,$a as g,Ya as h,Y as i,Jt as k,K as l,ro as m,Q as n,q as o,co as p,Gs as r,W as s,$ as t,fs as u,eo as v,On as w,_r as x,to as y}; \ No newline at end of file diff --git a/public/build/assets/app-B4i8odKZ.css b/public/build/assets/app-B4i8odKZ.css deleted file mode 100644 index 286c5a7..0000000 --- a/public/build/assets/app-B4i8odKZ.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-mask-linear:linear-gradient(#fff, #fff);--tw-mask-radial:linear-gradient(#fff, #fff);--tw-mask-conic:linear-gradient(#fff, #fff);--tw-mask-linear-position:0deg;--tw-mask-linear-from-position:0%;--tw-mask-linear-to-position:100%;--tw-mask-linear-from-color:black;--tw-mask-linear-to-color:transparent;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-zinc-900:oklch(21% .006 285.885);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:.75rem;--radius-2xl:1rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s;--blur-xs:4px;--blur-sm:8px;--blur-2xl:40px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary:var(--primary);--color-primary-foreground:var(--primary-foreground);--color-secondary:var(--secondary);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--animate-flash:flash 1s;--animate-wobble:wobble 1s ease-in-out;--animate-rubber-band:rubberBand 1s;--animate-shake:shake 1s;--animate-head-shake:headShake 1s ease-in-out;--animate-swing:swing 1s;--animate-tada:tada 1s;--animate-jello:jello 1s;--animate-heart-beat:heartBeat 1s;--animate-flip:flip 1s ease-in-out;--animate-flip-in-x:flipInX 1s;--animate-flip-in-y:flipInY 1s;--animate-flip-out-x:flipOutX 1s;--animate-flip-out-y:flipOutY 1s;--animate-fade-in:fadeIn 1s;--animate-fade-in-down:fadeInDown 1s;--animate-fade-in-down-big:fadeInDownBig 1s;--animate-fade-in-left:fadeInLeft 1s;--animate-fade-in-left-big:fadeInLeftBig 1s;--animate-fade-in-right:fadeInRight 1s;--animate-fade-in-right-big:fadeInRightBig 1s;--animate-fade-in-up:fadeInUp 1s;--animate-fade-in-up-big:fadeInUpBig 1s;--animate-fade-out:fadeOut 1s;--animate-fade-out-down:fadeOutDown 1s;--animate-fade-out-down-big:fadeOutDownBig 1s;--animate-fade-out-left:fadeOutLeft 1s;--animate-fade-out-left-big:fadeOutLeftBig 1s;--animate-fade-out-right:fadeOutRight 1s;--animate-fade-out-right-big:fadeOutRightBig 1s;--animate-fade-out-up:fadeOutUp 1s;--animate-fade-out-up-big:fadeOutUpBig 1s;--animate-slide-in-down:slideInDown 1s;--animate-slide-in-left:slideInLeft 1s;--animate-slide-in-right:slideInRight 1s;--animate-slide-in-up:slideInUp 1s;--animate-slide-out-down:slideOutDown 1s;--animate-slide-out-left:slideOutLeft 1s;--animate-slide-out-right:slideOutRight 1s;--animate-slide-out-up:slideOutUp 1s;--animate-zoom-in:zoomIn 1s;--animate-zoom-in-down:zoomInDown 1s;--animate-zoom-in-left:zoomInLeft 1s;--animate-zoom-in-right:zoomInRight 1s;--animate-zoom-in-up:zoomInUp 1s;--animate-zoom-out:zoomOut 1s;--animate-zoom-out-down:zoomOutDown 1s;--animate-zoom-out-left:zoomOutLeft 1s;--animate-zoom-out-right:zoomOutRight 1s;--animate-zoom-out-up:zoomOutUp 1s;--animate-rotate-in:rotateIn 1s;--animate-rotate-out:rotateOut 1s;--animate-roll-in:rollIn 1s;--animate-roll-out:rollOut 1s;--animate-light-speed-in:lightSpeedInRight 1s ease-out;--animate-light-speed-out:lightSpeedOutLeft 1s ease-in;--animate-jack-in-box:jackInTheBox 1s;--animate-hinge:hinge 2s;--animate-bounce-in:bounceIn .75s;--animate-bounce-in-down:bounceInDown 1s;--animate-bounce-in-left:bounceInLeft 1s;--animate-bounce-in-right:bounceInRight 1s;--animate-bounce-in-up:bounceInUp 1s;--animate-bounce-out:bounceOut .75s;--animate-bounce-out-down:bounceOutDown 1s;--animate-bounce-out-left:bounceOutLeft 1s;--animate-bounce-out-right:bounceOutRight 1s;--animate-bounce-out-up:bounceOutUp 1s;--animate-back-in-down:backInDown 1s;--animate-back-in-left:backInLeft 1s;--animate-back-in-right:backInRight 1s;--animate-back-in-up:backInUp 1s;--animate-back-out-down:backOutDown 1s;--animate-back-out-left:backOutLeft 1s;--animate-back-out-right:backOutRight 1s;--animate-back-out-up:backOutUp 1s;--animate-rotate-in-down-left:rotateInDownLeft 1s;--animate-rotate-in-down-right:rotateInDownRight 1s;--animate-rotate-in-up-left:rotateInUpLeft 1s;--animate-rotate-in-up-right:rotateInUpRight 1s;--animate-rotate-out-down-left:rotateOutDownLeft 1s;--animate-rotate-out-down-right:rotateOutDownRight 1s;--animate-rotate-out-up-left:rotateOutUpLeft 1s;--animate-rotate-out-up-right:rotateOutUpRight 1s;--animate-float:float 3s ease-in-out infinite;--animate-wiggle:wiggle .8s ease-in-out infinite;--animate-blur-in:blurIn .6s ease-out;--animate-blur-out:blurOut .6s ease-in;--animate-glitch:glitch .6s steps(1) infinite;--animate-pop:pop .4s cubic-bezier(.26, .53, .74, 1.48);--animate-compress:compress .5s ease-in-out;--animate-expand:expand .5s cubic-bezier(.175, .885, .32, 1.275);--animate-drop:drop .6s ease-out;--animate-sway:sway 2s ease-in-out infinite;--animate-ken-burns:kenBurns 8s ease-in-out infinite alternate;--animate-tilt:tilt 1.5s ease-in-out infinite alternate;--animate-alarm:alarm .8s ease-in-out;--animate-ring:ring .5s ease-in-out;--animate-bell:bell 1s ease-in-out;--font-bebas-neue:"Bebas Neue", sans-serif;--font-pixelify-sans:"Pixelify Sans Variable", system-ui;--font-caveat:"Caveat Variable", cursive;--font-dm-serif-display:"DM Serif Display", serif;--font-fira-mono:"Fira Mono", monospace;--font-great-vibes:"Great Vibes", cursive;--font-ibm-plex-mono:"IBM Plex Mono", monospace;--font-ibm-plex-sans:"IBM Plex Sans", sans-serif;--font-inter:"Inter Variable", sans-serif;--font-nerko-one:"Nerko One", cursive;--font-orbitron-serif:"Orbitron", sans-serif;--font-playfair-display-serif:"Playfair Display Variable", sans-serif;--font-poppins:"Poppins", sans-serif;--font-roboto:"Roboto Variable", sans-serif;--font-roboto-slab:"Roboto Slab", serif;--font-work-sans:"Work Sans Variable", sans-serif;--font-barlow-condensed:"Barlow Condensed", sans-serif;--font-cinzel:"Cinzel Variable", serif;--font-cormorant-garamond:"Cormorant Garamond Variable", serif;--font-fira-code:"Fira Code Variable", monospace;--font-instrument-sans:"Instrument Sans Variable", sans-serif;--font-jetbrains-mono:"JetBrains Mono Variable", monospace;--font-merriweather:"Merriweather Variable", serif;--font-manrope:"Manrope Variable", sans-serif;--font-nunito:"Nunito Variable", sans-serif;--font-oswald:"Oswald Variable", sans-serif;--font-patrick-hand:"Patrick Hand", handwriting;--font-quicksand:"Quicksand Variable", sans-serif;--font-rajdhani:"Rajdhani", sans-serif;--font-roboto-condensed:"Roboto Condensed Variable", sans-serif;--font-roboto-mono:"Roboto Mono Variable", monospace;--font-source-sans-3:"Source Sans 3 Variable", sans-serif;--font-space-grotesk:"Space Grotesk Variable", sans-serif;--font-varela-round:"Varela Round", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}body ::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body ::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body ::selection{color:var(--color-primary-foreground)}body::selection{color:var(--color-primary-foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.pointer-events-none\!{pointer-events:none!important}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.static\!{position:static!important}.sticky{position:sticky}.-inset-0\.5{inset:calc(var(--spacing) * -.5)}.-inset-1{inset:calc(var(--spacing) * -1)}.-inset-1\.5{inset:calc(var(--spacing) * -1.5)}.-inset-2{inset:calc(var(--spacing) * -2)}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.right-7{right:calc(var(--spacing) * 7)}.-bottom-8{bottom:calc(var(--spacing) * -8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-7{left:calc(var(--spacing) * 7)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-20{z-index:calc(20 * -1)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[999\]{z-index:999}.order-first{order:-9999}.order-last{order:9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing) * 0)!important}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.-mt-\[6\.6rem\]{margin-top:-6.6rem}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-8{margin-left:calc(var(--spacing) * -8)}.-ml-px{margin-left:-1px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-\[335\/364\]{aspect-ratio:335/364}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\!size-5{width:calc(var(--spacing) * 5)!important;height:calc(var(--spacing) * 5)!important}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing) * 0)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-14\.5{height:calc(var(--spacing) * 14.5)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-36{height:calc(var(--spacing) * 36)}.h-\[34px\]{height:34px}.h-\[60px\]{height:60px}.h-\[calc\(--spacing\(5\.5\)\)\]{height:calc(calc(var(--spacing) * 5.5))}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-75{max-height:calc(var(--spacing) * 75)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 96) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-22{min-height:calc(var(--spacing) * 22)}.min-h-90{min-height:calc(var(--spacing) * 90)}.min-h-\[100vh\],.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-4\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-22{width:calc(var(--spacing) * 22)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-\[34px\]{width:34px}.w-\[180px\]{width:180px}.w-\[438px\]{width:438px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-\[335px\]{max-width:335px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2\.5{--tw-translate-y:calc(var(--spacing) * 2.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-alarm{animation:.8s ease-in-out alarm}.animate-back-in-down{animation:1s backInDown}.animate-back-in-left{animation:1s backInLeft}.animate-back-in-right{animation:1s backInRight}.animate-back-in-up{animation:1s backInUp}.animate-back-out-down{animation:1s backOutDown}.animate-back-out-left{animation:1s backOutLeft}.animate-back-out-right{animation:1s backOutRight}.animate-back-out-up{animation:1s backOutUp}.animate-bell{animation:1s ease-in-out bell}.animate-blur-in{animation:.6s ease-out blurIn}.animate-blur-out{animation:.6s ease-in blurOut}.animate-bounce{animation:1s bounce}.animate-bounce-in{animation:.75s bounceIn}.animate-bounce-in-down{animation:1s bounceInDown}.animate-bounce-in-left{animation:1s bounceInLeft}.animate-bounce-in-right{animation:1s bounceInRight}.animate-bounce-in-up{animation:1s bounceInUp}.animate-bounce-out{animation:.75s bounceOut}.animate-bounce-out-down{animation:1s bounceOutDown}.animate-bounce-out-left{animation:1s bounceOutLeft}.animate-bounce-out-right{animation:1s bounceOutRight}.animate-bounce-out-up{animation:1s bounceOutUp}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-compress{animation:.5s ease-in-out compress}.animate-drop{animation:.6s ease-out drop}.animate-expand{animation:.5s cubic-bezier(.175,.885,.32,1.275) expand}.animate-fade-in{animation:1s fadeIn}.animate-fade-in-down{animation:1s fadeInDown}.animate-fade-in-down-big{animation:1s fadeInDownBig}.animate-fade-in-left{animation:1s fadeInLeft}.animate-fade-in-left-big{animation:1s fadeInLeftBig}.animate-fade-in-right{animation:1s fadeInRight}.animate-fade-in-right-big{animation:1s fadeInRightBig}.animate-fade-in-up{animation:1s fadeInUp}.animate-fade-in-up-big{animation:1s fadeInUpBig}.animate-fade-out{animation:1s fadeOut}.animate-fade-out-down{animation:1s fadeOutDown}.animate-fade-out-down-big{animation:1s fadeOutDownBig}.animate-fade-out-left{animation:1s fadeOutLeft}.animate-fade-out-left-big{animation:1s fadeOutLeftBig}.animate-fade-out-right{animation:1s fadeOutRight}.animate-fade-out-right-big{animation:1s fadeOutRightBig}.animate-fade-out-up{animation:1s fadeOutUp}.animate-fade-out-up-big{animation:1s fadeOutUpBig}.animate-flash{animation:1s flash}.animate-flip{animation:1s ease-in-out flip}.animate-flip-in-x{animation:1s flipInX}.animate-flip-in-y{animation:1s flipInY}.animate-flip-out-x{animation:1s flipOutX}.animate-flip-out-y{animation:1s flipOutY}.animate-float{animation:3s ease-in-out infinite float}.animate-glitch{animation:.6s step-end infinite glitch}.animate-head-shake{animation:1s ease-in-out headShake}.animate-heart-beat{animation:1s heartBeat}.animate-hinge{animation:2s hinge}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-jack-in-box{animation:1s jackInTheBox}.animate-jello{animation:1s jello}.animate-ken-burns{animation:8s ease-in-out infinite alternate kenBurns}.animate-light-speed-in{animation:1s ease-out lightSpeedInRight}.animate-light-speed-out{animation:1s ease-in lightSpeedOutLeft}.animate-ping{animation:1s cubic-bezier(0,0,.2,1) infinite ping}.animate-pop{animation:.4s cubic-bezier(.26,.53,.74,1.48) pop}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-ring{animation:.5s ease-in-out ring}.animate-roll-in{animation:1s rollIn}.animate-roll-out{animation:1s rollOut}.animate-rotate-in{animation:1s rotateIn}.animate-rotate-in-down-left{animation:1s rotateInDownLeft}.animate-rotate-in-down-right{animation:1s rotateInDownRight}.animate-rotate-in-up-left{animation:1s rotateInUpLeft}.animate-rotate-in-up-right{animation:1s rotateInUpRight}.animate-rotate-out{animation:1s rotateOut}.animate-rotate-out-down-left{animation:1s rotateOutDownLeft}.animate-rotate-out-down-right{animation:1s rotateOutDownRight}.animate-rotate-out-up-left{animation:1s rotateOutUpLeft}.animate-rotate-out-up-right{animation:1s rotateOutUpRight}.animate-rubber-band{animation:1s rubberBand}.animate-shake{animation:1s shake}.animate-slide-in-down{animation:1s slideInDown}.animate-slide-in-left{animation:1s slideInLeft}.animate-slide-in-right{animation:1s slideInRight}.animate-slide-in-up{animation:1s slideInUp}.animate-slide-out-down{animation:1s slideOutDown}.animate-slide-out-left{animation:1s slideOutLeft}.animate-slide-out-right{animation:1s slideOutRight}.animate-slide-out-up{animation:1s slideOutUp}.animate-spin{animation:1s linear infinite spin}.animate-sway{animation:2s ease-in-out infinite sway}.animate-swing{animation:1s swing}.animate-tada{animation:1s tada}.animate-tilt{animation:1.5s ease-in-out infinite alternate tilt}.animate-wiggle{animation:.8s ease-in-out infinite wiggle}.animate-wobble{animation:1s ease-in-out wobble}.animate-zoom-in{animation:1s zoomIn}.animate-zoom-in-down{animation:1s zoomInDown}.animate-zoom-in-left{animation:1s zoomInLeft}.animate-zoom-in-right{animation:1s zoomInRight}.animate-zoom-in-up{animation:1s zoomInUp}.animate-zoom-out{animation:1s zoomOut}.animate-zoom-out-down{animation:1s zoomOutDown}.animate-zoom-out-left{animation:1s zoomOutLeft}.animate-zoom-out-right{animation:1s zoomOutRight}.animate-zoom-out-up{animation:1s zoomOutUp}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-0>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 0) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[calc\(var\(--radius\)-5px\)\]{border-radius:calc(var(--radius) - 5px)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-md\!{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0}.rounded-none\!{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[inherit\]{border-top-left-radius:inherit;border-top-right-radius:inherit}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[inherit\]{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-br-sm{border-bottom-right-radius:var(--radius-sm)}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.rounded-bl-sm{border-bottom-left-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b\!{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-solid\!{--tw-border-style:solid!important;border-style:solid!important}.border-\[\#19140035\]{border-color:#19140035}.border-\[\#e3e3e0\]{border-color:#e3e3e0}.border-black{border-color:var(--color-black)}.border-border,.border-border\/25{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/25{border-color:color-mix(in oklab, var(--color-border) 25%, transparent)}}.border-border\/40{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.border-border\/50\!{border-color:var(--color-border)!important}@supports (color:color-mix(in lab, red, red)){.border-border\/50\!{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)!important}}.border-border\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--color-border) 60%, transparent)}}.border-border\/75{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/75{border-color:color-mix(in oklab, var(--color-border) 75%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-input{border-color:var(--color-input)}.border-primary{border-color:var(--color-primary)}.border-red-100{border-color:var(--color-red-100)}.border-sidebar-border,.border-sidebar-border\/50{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/50{border-color:color-mix(in oklab, var(--color-sidebar-border) 50%, transparent)}}.border-sidebar-border\/70{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/70{border-color:color-mix(in oklab, var(--color-sidebar-border) 70%, transparent)}}.border-sidebar-border\/80{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/80{border-color:color-mix(in oklab, var(--color-sidebar-border) 80%, transparent)}}.border-transparent{border-color:#0000}.bg-\[\#1b1b18\]{background-color:#1b1b18}.bg-\[\#FDFDFC\]{background-color:#fdfdfc}.bg-\[\#dbdbd7\]{background-color:#dbdbd7}.bg-\[\#fff2f2\]{background-color:#fff2f2}.bg-accent{background-color:var(--color-accent)}.bg-background,.bg-background\/10{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/10{background-color:color-mix(in oklab, var(--color-background) 10%, transparent)}}.bg-background\/50{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/50{background-color:color-mix(in oklab, var(--color-background) 50%, transparent)}}.bg-background\/60{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/60{background-color:color-mix(in oklab, var(--color-background) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--color-border)}.bg-card,.bg-card\/30{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/30{background-color:color-mix(in oklab, var(--color-card) 30%, transparent)}}.bg-card\/50{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/50{background-color:color-mix(in oklab, var(--color-card) 50%, transparent)}}.bg-destructive{background-color:var(--color-destructive)}.bg-foreground{background-color:var(--color-foreground)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--color-muted)}.bg-muted-foreground\/20{background-color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/20{background-color:color-mix(in oklab, var(--color-muted-foreground) 20%, transparent)}}.bg-muted\/30{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--color-muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-popover{background-color:var(--color-popover)}.bg-primary,.bg-primary\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--color-primary) 10%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-ring{background-color:var(--color-ring)}.bg-secondary{background-color:var(--color-secondary)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-border{background-color:var(--color-sidebar-border)}.bg-sidebar-primary{background-color:var(--color-sidebar-primary)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-0{--tw-gradient-position:0deg}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-0{--tw-gradient-position:0deg in oklab}}.bg-linear-0{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-radial{--tw-gradient-position:in oklab;background-image:radial-gradient(var(--tw-gradient-stops))}.from-background{--tw-gradient-from:var(--color-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-muted{--tw-gradient-from:var(--color-muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/50{--tw-gradient-to:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.to-muted\/50{--tw-gradient-to:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.to-muted\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.mask-linear-from-10\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-from-position:10%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.mask-linear-to-50\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-to-position:50%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-primary{fill:var(--color-primary)}.stroke-border\/75{stroke:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.stroke-border\/75{stroke:color-mix(in oklab, var(--color-border) 75%, transparent)}}.stroke-neutral-900\/20{stroke:#17171733}@supports (color:color-mix(in lab, red, red)){.stroke-neutral-900\/20{stroke:color-mix(in oklab, var(--color-neutral-900) 20%, transparent)}}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\!{padding:calc(var(--spacing) * 3)!important}.p-4{padding:calc(var(--spacing) * 4)}.p-4\!{padding:calc(var(--spacing) * 4)!important}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-10{padding:calc(var(--spacing) * 10)}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-16{padding-top:calc(var(--spacing) * 16)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-barlow-condensed{font-family:Barlow Condensed,sans-serif}.font-bebas-neue{font-family:Bebas Neue,sans-serif}.font-bebas-neue\!{font-family:Bebas Neue,sans-serif!important}.font-caveat{font-family:Caveat Variable,cursive}.font-cinzel{font-family:Cinzel Variable,serif}.font-cormorant-garamond{font-family:Cormorant Garamond Variable,serif}.font-dm-serif-display{font-family:DM Serif Display,serif}.font-fira-code{font-family:Fira Code Variable,monospace}.font-fira-mono{font-family:Fira Mono,monospace}.font-great-vibes{font-family:Great Vibes,cursive}.font-ibm-plex-mono{font-family:IBM Plex Mono,monospace}.font-ibm-plex-sans{font-family:IBM Plex Sans,sans-serif}.font-instrument-sans{font-family:Instrument Sans Variable,sans-serif}.font-inter{font-family:Inter Variable,sans-serif}.font-jetbrains-mono{font-family:JetBrains Mono Variable,monospace}.font-manrope{font-family:Manrope Variable,sans-serif}.font-merriweather{font-family:Merriweather Variable,serif}.font-mono{font-family:var(--font-mono)}.font-mono\!{font-family:var(--font-mono)!important}.font-nerko-one{font-family:Nerko One,cursive}.font-nunito{font-family:Nunito Variable,sans-serif}.font-oswald{font-family:Oswald Variable,sans-serif}.font-patrick-hand{font-family:Patrick Hand,handwriting}.font-pixelify-sans{font-family:Pixelify Sans Variable,system-ui}.font-poppins{font-family:Poppins,sans-serif}.font-quicksand{font-family:Quicksand Variable,sans-serif}.font-rajdhani{font-family:Rajdhani,sans-serif}.font-roboto{font-family:Roboto Variable,sans-serif}.font-roboto-condensed{font-family:Roboto Condensed Variable,sans-serif}.font-roboto-mono{font-family:Roboto Mono Variable,monospace}.font-roboto-slab{font-family:Roboto Slab,serif}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.font-source-sans-3{font-family:"Source Sans 3 Variable",sans-serif}.font-space-grotesk{font-family:Space Grotesk Variable,sans-serif}.font-varela-round{font-family:Varela Round,sans-serif}.font-work-sans{font-family:Work Sans Variable,sans-serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[clamp\(0\.75rem\,9vw\+2rem\,3rem\)\]{font-size:clamp(.75rem,9vw + 2rem,3rem)}.text-\[clamp\(0\.75rem\,9vw\+2rem\,5rem\)\]{font-size:clamp(.75rem,9vw + 2rem,5rem)}.text-\[clamp\(1\.5rem\,10vw\+2rem\,3rem\)\]{font-size:clamp(1.5rem,10vw + 2rem,3rem)}.text-\[clamp\(1rem\,6vw\,5rem\)\]{font-size:clamp(1rem,6vw,5rem)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.overflow-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\[\#1B1B18\],.text-\[\#1b1b18\]{color:#1b1b18}.text-\[\#706f6c\]{color:#706f6c}.text-\[\#F3BEC7\]{color:#f3bec7}.text-\[\#F8B803\]{color:#f8b803}.text-\[\#F53003\],.text-\[\#f53003\]{color:#f53003}.text-\[var\(--foreground\)\]{color:var(--foreground)}.text-accent-foreground{color:var(--color-accent-foreground)}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--color-card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--color-destructive)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground,.text-foreground\/40{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/40{color:color-mix(in oklab, var(--color-foreground) 40%, transparent)}}.text-foreground\/50{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/50{color:color-mix(in oklab, var(--color-foreground) 50%, transparent)}}.text-foreground\/80{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--color-foreground) 80%, transparent)}}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted{color:var(--color-muted)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/50{color:color-mix(in oklab, var(--color-muted-foreground) 50%, transparent)}}.text-muted-foreground\/60{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/60{color:color-mix(in oklab, var(--color-muted-foreground) 60%, transparent)}}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-900{color:var(--color-neutral-900)}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-red-600{color:var(--color-red-600)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--color-sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--color-sidebar-foreground) 70%, transparent)}}.text-sidebar-primary-foreground{color:var(--color-sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-neutral-300{-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);text-decoration-color:var(--color-neutral-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-foreground{accent-color:var(--color-foreground)}.opacity-0{opacity:0}.opacity-5{opacity:.05}.opacity-10{opacity:.1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.mix-blend-color{mix-blend-mode:color}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-multiply{mix-blend-mode:multiply}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0px_0px_1px_0px_rgba\(0\,0\,0\,0\.03\)\,0px_1px_2px_0px_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0px 0px 1px 0px var(--tw-shadow-color,#00000008), 0px 1px 2px 0px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_1px_rgba\(26\,26\,0\,0\.16\)\]{--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,#1a1a0029);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-primary\/15{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/15{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 15%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-foreground\/10{--tw-ring-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--color-foreground) 10%, transparent)}}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-primary,.ring-primary\/30{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.ring-primary\/30{--tw-ring-color:color-mix(in oklab, var(--color-primary) 30%, transparent)}}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab, var(--color-ring) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/40{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.outline-ring\/50{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/50{outline-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-\[0\.5px\]{--tw-blur:blur(.5px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xs{--tw-blur:blur(var(--blur-xs));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-300{transition-delay:.3s}.delay-400{transition-delay:.4s}.delay-1000{transition-delay:1s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-750{--tw-duration:.75s;transition-duration:.75s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.delay-300{--tw-animation-delay:.3s;animation-delay:.3s}.delay-1000{--tw-animation-delay:1s;animation-delay:1s}.delay-400{--tw-animation-delay:calc(400*1ms);animation-delay:.4s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-infinite{--tw-animation-iteration-count:infinite;animation-iteration-count:infinite}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing) * 8)}.\[--stroke-color\:\#1B1B18\]{--stroke-color:#1b1b18}.\[-ms-overflow-style\:none\]{-ms-overflow-style:none}.\[scrollbar-width\:none\]{scrollbar-width:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.fade-out{--tw-exit-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.running\!{animation-play-state:running!important}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.not-has-\[nav\]\:hidden:not(:has(:is(nav))){display:none}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\:repeat-infinite\!:is(:where(.group):hover *){--tw-animation-iteration-count:infinite!important;animation-iteration-count:infinite!important}.group-hover\/code-block\:opacity-100:is(:where(.group\/code-block):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[collapsible\=icon\]\/sidebar-wrapper\:h-12:is(:where(.group\/sidebar-wrapper):has([data-collapsible=icon]) *){height:calc(var(--spacing) * 12)}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2.5)}.group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2.5)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:pointer-events-none:is(:where(.group)[data-collapsible=icon] *){pointer-events:none}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=icon\]\:select-none:is(:where(.group)[data-collapsible=icon] *){-webkit-user-select:none;user-select:none}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--color-ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius-lg)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--color-sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing) * 1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:var(--radius-md)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--color-popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--color-popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-\(--spacing\(4\)\)\)\]:is(:where(.peer)[data-variant=inset]~*){min-height:calc(100svh - (calc(var(--spacing) * 4)))}.selection\:bg-primary ::selection{background-color:var(--color-primary)}.selection\:bg-primary::selection{background-color:var(--color-primary)}.selection\:text-primary-foreground ::selection{color:var(--color-primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--color-primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:top-0:before{content:var(--tw-content);top:calc(var(--spacing) * 0)}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.before\:bottom-0:before{content:var(--tw-content);bottom:calc(var(--spacing) * 0)}.before\:bottom-1\/2:before{content:var(--tw-content);bottom:50%}.before\:left-\[0\.4rem\]:before{content:var(--tw-content);left:.4rem}.before\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\:border-\[\#e3e3e0\]:before{content:var(--tw-content);border-color:#e3e3e0}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--color-ring)}.focus-within\:ring-\[3px\]:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-\[\#1915014a\]:hover{border-color:#1915014a}.hover\:border-\[\#19140035\]:hover{border-color:#19140035}.hover\:border-black:hover{border-color:var(--color-black)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-black:hover{background-color:var(--color-black)}.hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.hover\:bg-neutral-200\/60:hover{background-color:#e5e5e599}@supports (color:color-mix(in lab, red, red)){.hover\:bg-neutral-200\/60:hover{background-color:color-mix(in oklab, var(--color-neutral-200) 60%, transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--color-secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-foreground:hover{color:var(--color-foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-muted-foreground:hover{color:var(--color-muted-foreground)}.hover\:text-neutral-800:hover{color:var(--color-neutral-800)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-current\!:hover{text-decoration-color:currentColor!important}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-primary\/10:hover{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-primary\/10:hover{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.hover\:grayscale-0:hover{--tw-grayscale:grayscale(0%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--color-sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--color-sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--color-accent)}.focus\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--color-ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--color-ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--color-destructive)}.has-aria-invalid\:ring-\[3px\]:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-data-\[slot\=combobox-chip\]\:px-1\.5:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1.5)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--color-ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-\[3px\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--color-destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-\[\[data-state\=checked\]\]\:border-primary:has([data-state=checked]){border-color:var(--color-primary)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>button\]\:mr-\[-0\.45rem\]:has(>button){margin-right:-.45rem}.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button){margin-left:-.45rem}.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd){margin-right:-.35rem}.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd){margin-left:-.35rem}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing) * 4) 1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing) * 3)}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>svg\]\:px-2:has(>svg){padding-inline:calc(var(--spacing) * 2)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--color-destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--color-muted-foreground)}.data-closed\:animate-out[data-closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0[data-closed]{--tw-exit-opacity:0}.data-closed\:zoom-out-95[data-closed]{--tw-exit-scale:.95}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--color-accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--color-accent-foreground)}.data-open\:animate-in[data-open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:fade-in-0[data-open]{--tw-enter-opacity:0}.data-open\:zoom-in-95[data-open]{--tw-enter-scale:.95}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--color-accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--color-muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:var(--radius-md)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--color-primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--color-primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--color-accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--color-accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:var(--radius-md)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--color-primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--color-primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--color-primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--color-primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:var(--color-destructive-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--color-destructive-foreground) 80%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-8>*)[data-slot=input-group]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--color-primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--color-primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--color-primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--color-accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--color-secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--color-sidebar-accent-foreground)}}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive-foreground[data-variant=destructive]{color:var(--color-destructive-foreground)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive-foreground[data-variant=destructive]:focus{color:var(--color-destructive-foreground)}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}@media (width>=40rem){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:h-12{height:calc(var(--spacing) * 12)}.sm\:w-\[350px\]{width:350px}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-2\.5{gap:calc(var(--spacing) * 2.5)}.sm\:px-0{padding-inline:calc(var(--spacing) * 0)}.sm\:text-center{text-align:center}.sm\:text-left{text-align:left}}@media (width>=48rem){.md\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:min-h-120{min-height:calc(var(--spacing) * 120)}.md\:min-h-min{min-height:min-content}.md\:w-5{width:calc(var(--spacing) * 5)}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-2xl{max-width:var(--container-2xl)}.md\:max-w-7xl{max-width:var(--container-7xl)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:p-10{padding:calc(var(--spacing) * 10)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-0:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 0)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:mb-0{margin-bottom:calc(var(--spacing) * 0)}.lg\:mb-6{margin-bottom:calc(var(--spacing) * 6)}.lg\:-ml-px{margin-left:-1px}.lg\:ml-0{margin-left:calc(var(--spacing) * 0)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:aspect-auto{aspect-ratio:auto}.lg\:w-48{width:calc(var(--spacing) * 48)}.lg\:w-\[438px\]{width:438px}.lg\:max-w-4xl{max-width:var(--container-4xl)}.lg\:max-w-none{max-width:none}.lg\:grow{flex-grow:1}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}:where(.lg\:space-x-12>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 12) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-x-reverse)))}.lg\:rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.lg\:rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.lg\:rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.lg\:rounded-br-none{border-bottom-right-radius:0}.lg\:p-8{padding:calc(var(--spacing) * 8)}.lg\:p-20{padding:calc(var(--spacing) * 20)}.lg\:px-0{padding-inline:calc(var(--spacing) * 0)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:border-r:is(.dark *){border-right-style:var(--tw-border-style);border-right-width:1px}.dark\:border-\[\#3E3E3A\]:is(.dark *){border-color:#3e3e3a}.dark\:border-\[\#eeeeec\]:is(.dark *){border-color:#eeeeec}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-red-200\/10:is(.dark *){border-color:#ffcaca1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-red-200\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-red-200) 10%, transparent)}}.dark\:border-sidebar-border:is(.dark *){border-color:var(--color-sidebar-border)}.dark\:bg-\[\#0a0a0a\]:is(.dark *){background-color:#0a0a0a}.dark\:bg-\[\#1D0002\]:is(.dark *){background-color:#1d0002}.dark\:bg-\[\#3E3E3A\]:is(.dark *){background-color:#3e3e3a}.dark\:bg-\[\#161615\]:is(.dark *){background-color:#161615}.dark\:bg-\[\#eeeeec\]:is(.dark *){background-color:#eeeeec}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-destructive) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:is(.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:is(.dark *){background-color:var(--color-gray-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-700\/10:is(.dark *){background-color:#bf000f1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-700\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-red-700) 10%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:stroke-neutral-100\/20:is(.dark *){stroke:#f5f5f533}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-neutral-100\/20:is(.dark *){stroke:color-mix(in oklab, var(--color-neutral-100) 20%, transparent)}}.dark\:text-\[\#1C1C1A\]:is(.dark *){color:#1c1c1a}.dark\:text-\[\#4B0600\]:is(.dark *){color:#4b0600}.dark\:text-\[\#391800\]:is(.dark *){color:#391800}.dark\:text-\[\#733000\]:is(.dark *){color:#733000}.dark\:text-\[\#A1A09A\]:is(.dark *){color:#a1a09a}.dark\:text-\[\#EDEDEC\]:is(.dark *){color:#ededec}.dark\:text-\[\#F61500\]:is(.dark *){color:#f61500}.dark\:text-\[\#FF4433\]:is(.dark *){color:#f43}.dark\:text-black:is(.dark *){color:var(--color-black)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:is(.dark *){color:var(--color-neutral-400)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:decoration-neutral-500:is(.dark *){-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);text-decoration-color:var(--color-neutral-500)}.dark\:mix-blend-hard-light:is(.dark *){mix-blend-mode:hard-light}.dark\:mix-blend-normal:is(.dark *){mix-blend-mode:normal}.dark\:shadow-\[inset_0px_0px_0px_1px_\#fffaed2d\]:is(.dark *){--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,#fffaed2d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 20%, transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.dark\:\[--stroke-color\:\#FF750F\]:is(.dark *){--stroke-color:#ff750f}.dark\:before\:border-\[\#3E3E3A\]:is(.dark *):before{content:var(--tw-content);border-color:#3e3e3a}@media (hover:hover){.dark\:hover\:border-\[\#3E3E3A\]:is(.dark *):hover{border-color:#3e3e3a}.dark\:hover\:border-\[\#62605b\]:is(.dark *):hover{border-color:#62605b}.dark\:hover\:border-white:is(.dark *):hover{border-color:var(--color-white)}.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-input) 50%, transparent)}}.dark\:hover\:bg-neutral-700\/60:is(.dark *):hover{background-color:#40404099}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-neutral-700\/60:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-neutral-700) 60%, transparent)}}.dark\:hover\:bg-white:is(.dark *):hover{background-color:var(--color-white)}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--color-accent-foreground)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-neutral-100:is(.dark *):hover{color:var(--color-neutral-100)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--color-destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}@starting-style{.starting\:opacity-0{opacity:0}}@media (prefers-reduced-motion:no-preference){@starting-style{.motion-safe\:starting\:-translate-x-\[26px\]{--tw-translate-x:calc(26px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[51px\]{--tw-translate-x:calc(51px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[78px\]{--tw-translate-x:calc(78px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[102px\]{--tw-translate-x:calc(102px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:translate-y-6{--tw-translate-y:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}}}@media (pointer:coarse){.pointer-coarse\:size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.pointer-coarse\:px-3{padding-inline:calc(var(--spacing) * 3)}.pointer-coarse\:py-2{padding-block:calc(var(--spacing) * 2)}.pointer-coarse\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--color-muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\.border-b\]\:pb-3.border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-3.border-t{padding-top:calc(var(--spacing) * 3)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive-foreground[data-variant=destructive]>*):is(svg){color:var(--color-destructive-foreground)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 2)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 2)}.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd{border-radius:calc(var(--radius) - 5px)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--color-accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--color-secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes wobble{0%,to{transform:translate(0%)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}}@keyframes rubberBand{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotate(-6deg)}18.5%{transform:translate(5px)rotate(6deg)}31.5%{transform:translate(-3px)rotate(-3deg)}43.5%{transform:translate(2px)rotate(2deg)}to{transform:translate(0)}}@keyframes swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}@keyframes tada{0%,to{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}}@keyframes jello{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes flip{0%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)}}@keyframes flipInX{0%{opacity:0;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{opacity:0;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}@keyframes slideInDown{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0)}}@keyframes slideInLeft{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0)}}@keyframes slideInUp{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0)}}@keyframes slideOutDown{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(100%)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{visibility:hidden;transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{visibility:hidden;transform:translate(100%)}}@keyframes slideOutUp{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(-100%)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInDown{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}@keyframes zoomInLeft{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}@keyframes zoomInRight{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}@keyframes zoomInUp{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutDown{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(1000px)}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform-origin:0;transform:scale(.1)translate(-1000px)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform-origin:100%;transform:scale(.1)translate(1000px)}}@keyframes zoomOutUp{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(-1000px)}}@keyframes rotateIn{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:rotate(0)}}@keyframes rotateOut{0%{opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(200deg)}}@keyframes rollIn{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0)rotate(0)}}@keyframes rollOut{0%{opacity:1;transform:translate(0)rotate(0)}to{opacity:0;transform:translate(100%)rotate(120deg)}}@keyframes lightSpeedInRight{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{opacity:1;transform:skew(-5deg)}to{opacity:1;transform:translate(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(30deg)}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1)rotate(0)}50%{transform:scale(1.05)rotate(10deg)}70%{transform:scale(.9)rotate(-3deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hinge{0%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(0)}20%,60%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{transform-origin:0 0;opacity:0;transform:rotate(90deg)}}@keyframes bounceIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}@keyframes bounceInDown{0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceInLeft{0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInRight{0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInUp{0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutDown{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}@keyframes bounceOutUp{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}@keyframes backInDown{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backOutDown{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}@keyframes backOutLeft{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}@keyframes backOutRight{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}@keyframes backOutUp{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}@keyframes rotateInDownLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInDownRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateInUpLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInUpRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(-90deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateOutDownLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}}@keyframes rotateOutDownRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(90deg)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes blurIn{0%{filter:blur(12px);opacity:0}to{filter:blur();opacity:1}}@keyframes blurOut{0%{filter:blur();opacity:1}to{filter:blur(12px);opacity:0}}@keyframes glitch{0%,to{transform:translate(0)}20%{transform:translate(-3px,2px)}40%{transform:translate(-3px,-2px)}60%{transform:translate(3px,2px)}80%{transform:translate(3px,-2px)}}@keyframes pop{0%{opacity:0;transform:scale(.8)}70%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@keyframes compress{0%,to{transform:scaleY(1)}50%{transform:scaleY(.5)}}@keyframes expand{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes drop{0%{opacity:0;transform:translateY(-200px)}60%{opacity:1;transform:translateY(15px)}80%{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes sway{0%,to{transform-origin:top;transform:rotate(-5deg)}50%{transform-origin:top;transform:rotate(5deg)}}@keyframes kenBurns{0%{transform:scale(1)translate(0)}to{transform:scale(1.15)translate(-2%,-2%)}}@keyframes tilt{0%{transform:perspective(400px)rotateY(0)}to{transform:perspective(400px)rotateY(15deg)}}@keyframes alarm{0%,to{transform:rotate(0)scale(1)}10%,30%{transform:rotate(-25deg)scale(1.05)}20%,40%{transform:rotate(25deg)scale(1.05)}50%,70%{transform:rotate(-15deg)scale(1.02)}60%,80%{transform:rotate(15deg)scale(1.02)}}@keyframes ring{0%,to{transform:rotate(0)}10%,30%{transform:rotate(15deg)}20%,40%{transform:rotate(-15deg)}50%,70%{transform:rotate(10deg)}60%,80%{transform:rotate(-10deg)}}@keyframes bell{0%{transform:rotate(0)}10%{transform:rotate(15deg)}20%{transform:rotate(-15deg)}30%{transform:rotate(10deg)}40%{transform:rotate(-10deg)}50%{transform:rotate(0)}to{transform:rotate(0)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}code[class*=language-],pre[class*=language-]{color:var(--color-foreground);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6}pre[class*=language-]{border-radius:0;margin:0;padding:1rem;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:var(--color-background)}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-muted-foreground)}.token.punctuation{color:var(--color-foreground)}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:#0f0}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-ext-400-normal-DWiEslNC.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-ext-400-normal-HFKRJXnW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-400-normal-9mHNbWWO.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-400-normal-Bi-ndsyu.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-cyrillic-wght-normal-BfQLqnEI.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-latin-ext-wght-normal-CsF3XSp0.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-latin-wght-normal-Cbhn5ptY.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-cyrillic-ext-wght-normal-DiMfzA-V.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-cyrillic-wght-normal-D5lnP6kL.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-latin-ext-wght-normal-Byk3UhVp.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-latin-wght-normal-C1hSzPvX.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/dm-serif-display-latin-ext-400-normal-p18AlW_x.woff2)format("woff2"),url(/build/assets/dm-serif-display-latin-ext-400-normal-B1toqZab.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/dm-serif-display-latin-400-normal-C5_t9oOD.woff2)format("woff2"),url(/build/assets/dm-serif-display-latin-400-normal-_kVFYEpx.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-cyrillic-ext-400-normal-FAIU8e3o.woff2)format("woff2"),url(/build/assets/fira-mono-cyrillic-ext-400-normal-Co4MVjrD.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-cyrillic-400-normal-BJkDdjbt.woff2)format("woff2"),url(/build/assets/fira-mono-cyrillic-400-normal-DUd3efVn.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-greek-ext-400-normal-Be4g_LSk.woff2)format("woff2"),url(/build/assets/fira-mono-greek-ext-400-normal-BQ5yw6bY.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-greek-400-normal-ftNhKy_S.woff2)format("woff2"),url(/build/assets/fira-mono-greek-400-normal-B_0AmgK7.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-symbols2-400-normal-C6JptOil.woff2)format("woff2"),url(/build/assets/fira-mono-symbols2-400-normal-CpeG9ob9.woff)format("woff");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-latin-ext-400-normal-B2gPvaNr.woff2)format("woff2"),url(/build/assets/fira-mono-latin-ext-400-normal-CbD3vWRE.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-latin-400-normal-DVTTRLHv.woff2)format("woff2"),url(/build/assets/fira-mono-latin-400-normal-C3FQ26ho.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-cyrillic-ext-400-normal-CKQhgFwn.woff2)format("woff2"),url(/build/assets/great-vibes-cyrillic-ext-400-normal-CzcHves0.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-cyrillic-400-normal-C-wcqNJs.woff2)format("woff2"),url(/build/assets/great-vibes-cyrillic-400-normal-DtFXCWjq.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-greek-ext-400-normal-Caxd-0sC.woff2)format("woff2"),url(/build/assets/great-vibes-greek-ext-400-normal-I8uMZwKr.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-vietnamese-400-normal-a2O3jU53.woff2)format("woff2"),url(/build/assets/great-vibes-vietnamese-400-normal-Cxbm9Uac.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-latin-ext-400-normal-CsjMq8GN.woff2)format("woff2"),url(/build/assets/great-vibes-latin-ext-400-normal-wh4xxCIu.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-latin-400-normal-q5-78SH_.woff2)format("woff2"),url(/build/assets/great-vibes-latin-400-normal-BAZ173uY.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nerko One;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/nerko-one-latin-ext-400-normal-CFPuMH-A.woff2)format("woff2"),url(/build/assets/nerko-one-latin-ext-400-normal-CeiCvlAM.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nerko One;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/nerko-one-latin-400-normal-Dbkh7I23.woff2)format("woff2"),url(/build/assets/nerko-one-latin-400-normal-Dk7k_1yO.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Orbitron;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/orbitron-latin-400-normal-U6xZUhur.woff2)format("woff2"),url(/build/assets/orbitron-latin-400-normal-DBk4Dmer.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-cyrillic-wght-normal-5WvUvBgz.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-vietnamese-wght-normal-Cabi7G8-.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-latin-ext-wght-normal-CT1r92Rl.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-latin-wght-normal-BOwq7MWX.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-devanagari-400-normal-CJDn6rn8.woff2)format("woff2"),url(/build/assets/poppins-devanagari-400-normal-CqVvlrh5.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-latin-ext-400-normal-by3JarPu.woff2)format("woff2"),url(/build/assets/poppins-latin-ext-400-normal-DaBSavcJ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-latin-400-normal-cpxAROuN.woff2)format("woff2"),url(/build/assets/poppins-latin-400-normal-BOb3E3N0.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-cyrillic-ext-wght-normal-BCp_3N7R.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-cyrillic-wght-normal-fOt7epNf.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-greek-ext-wght-normal-Bgw4czJT.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-greek-wght-normal-DlT9XTxE.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-math-wght-normal-4a3xuzGk.woff2)format("woff2-variations");unicode-range:U+302-303,U+305,U+307-308,U+310,U+312,U+315,U+31A,U+326-327,U+32C,U+32F-330,U+332-333,U+338,U+33A,U+346,U+34D,U+391-3A1,U+3A3-3A9,U+3B1-3C9,U+3D1,U+3D5-3D6,U+3F0-3F1,U+3F4-3F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-symbols-wght-normal-B7iHSfaG.woff2)format("woff2-variations");unicode-range:U+1-C,U+E-1F,U+7F-9F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+28??,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B??,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F0??,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F7??,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-vietnamese-wght-normal-_f1XEJpo.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-wght-normal-ccAYIvAh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-cyrillic-ext-400-normal-Cm5q4seC.woff2)format("woff2"),url(/build/assets/roboto-slab-cyrillic-ext-400-normal-BW1cBx1L.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-cyrillic-400-normal-NTBYJ9iY.woff2)format("woff2"),url(/build/assets/roboto-slab-cyrillic-400-normal-Cc0Cso00.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-greek-ext-400-normal-CnoIblM-.woff2)format("woff2"),url(/build/assets/roboto-slab-greek-ext-400-normal-C6Q3kR7E.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-greek-400-normal-76UbIAt9.woff2)format("woff2"),url(/build/assets/roboto-slab-greek-400-normal-AoTWS79V.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-vietnamese-400-normal-bJRBMnqv.woff2)format("woff2"),url(/build/assets/roboto-slab-vietnamese-400-normal-BmyZx1xn.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-latin-ext-400-normal-AV6nsDYb.woff2)format("woff2"),url(/build/assets/roboto-slab-latin-ext-400-normal-DOoLriWR.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-latin-400-normal-DwurWVj7.woff2)format("woff2"),url(/build/assets/roboto-slab-latin-400-normal-wzK1bUc4.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-vietnamese-wght-normal-BKsN3ITN.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-latin-ext-wght-normal-B5dZ8C4S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-latin-wght-normal-Bl-S9Xys.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-vietnamese-400-normal-Dq9fsqrz.woff2)format("woff2"),url(/build/assets/barlow-condensed-vietnamese-400-normal-BHpO_q_4.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-latin-ext-400-normal-DPMBkgfB.woff2)format("woff2"),url(/build/assets/barlow-condensed-latin-ext-400-normal-DN7qpd_C.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-latin-400-normal-Dc2u_eUW.woff2)format("woff2"),url(/build/assets/barlow-condensed-latin-400-normal-BXL2z6Kg.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cinzel Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/cinzel-latin-ext-wght-normal-CG36JvV6.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cinzel Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/cinzel-latin-wght-normal-DMUuCU8H.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-cyrillic-ext-wght-normal-Bg62sWL9.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-cyrillic-wght-normal-BWCqVJN0.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-vietnamese-wght-normal-CDLFB6hb.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-latin-ext-wght-normal-ltf1AbuM.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-latin-wght-normal-CUoBjw-S.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-cyrillic-ext-wght-normal-DhYMMuQd.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-cyrillic-wght-normal-Y3u8pIsh.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-greek-ext-wght-normal-wWus70Ix.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-greek-wght-normal-B2SviObF.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-symbols2-wght-normal-CE6EOz_n.woff2)format("woff2-variations");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-latin-ext-wght-normal-Dvfvaomy.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-latin-wght-normal-CHoedHDv.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-cyrillic-ext-wght-normal-Bkm5NjZG.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-cyrillic-wght-normal-BWxnF87P.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-vietnamese-wght-normal-BXYScXBD.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-ext-wght-normal-BZx4mOJf.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-wght-normal-BovdrKvB.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-cyrillic-ext-wght-normal-C8S-KRRz.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-greek-wght-normal-DL7QRZyv.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-latin-wght-normal-DHIcAJRg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-latin-wght-normal-BzFMHfZw.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-cyrillic-ext-wght-normal-DLWmRmaW.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-cyrillic-wght-normal-C8sJyxwB.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-vietnamese-wght-normal-Tdf5mmdl.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-latin-ext-wght-normal-Dj_1K-Kw.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-latin-wght-normal-CzS3kehr.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-vietnamese-400-normal-65jA92mZ.woff2)format("woff2"),url(/build/assets/patrick-hand-vietnamese-400-normal-CZjY324Y.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-latin-ext-400-normal-Dno5CMlI.woff2)format("woff2"),url(/build/assets/patrick-hand-latin-ext-400-normal-C2ywpnn3.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-latin-400-normal-B7HHA2Vw.woff2)format("woff2"),url(/build/assets/patrick-hand-latin-400-normal-Df9_VoRQ.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-vietnamese-wght-normal-ei70gACF.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-latin-ext-wght-normal-CrJ75Ewg.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-latin-wght-normal-Buj9m_3d.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-devanagari-400-normal-CTuj2HZW.woff2)format("woff2"),url(/build/assets/rajdhani-devanagari-400-normal-BdIzgbsr.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-latin-ext-400-normal-DACPYgMx.woff2)format("woff2"),url(/build/assets/rajdhani-latin-ext-400-normal-Der7ynDE.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-latin-400-normal-CurJOxDW.woff2)format("woff2"),url(/build/assets/rajdhani-latin-400-normal-C6_q4usG.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-cyrillic-ext-wght-normal-DhztH7TG.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-cyrillic-wght-normal-DcSt-2BC.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-greek-ext-wght-normal-CuKbLwpm.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-greek-wght-normal-Cvhr4n9Q.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-vietnamese-wght-normal-BQ3qeiTz.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-latin-ext-wght-normal-Db2M7toj.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-latin-wght-normal-Cxzi1x1i.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-cyrillic-ext-wght-normal-BUDPrIko.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-cyrillic-wght-normal-HUlVHixE.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-greek-wght-normal-BJJTbwTT.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-vietnamese-wght-normal-DlC-zuDL.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-latin-ext-wght-normal-QAYlOegK.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-latin-wght-normal-CZtBPCCa.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-cyrillic-ext-wght-normal-DzyfIafT.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-cyrillic-wght-normal-BMDVbyM7.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-greek-ext-wght-normal-BWSLJLk6.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-greek-wght-normal-C9H9m1vD.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-vietnamese-wght-normal-C1uRvKPU.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-ext-wght-normal-C8iNium2.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-vietnamese-wght-normal-D0rl6rjA.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-latin-ext-wght-normal-D9tNdqV9.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-latin-wght-normal-BhU9QXUp.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-hebrew-400-normal-CdSaNJFF.woff2)format("woff2"),url(/build/assets/varela-round-hebrew-400-normal-gahDRKkd.woff)format("woff");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-vietnamese-400-normal-DWiTdRj2.woff2)format("woff2"),url(/build/assets/varela-round-vietnamese-400-normal-CA2kl5Qj.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-latin-ext-400-normal-DL997rWn.woff2)format("woff2"),url(/build/assets/varela-round-latin-ext-400-normal-IO5VYG9n.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-latin-400-normal-CsVGkSoP.woff2)format("woff2"),url(/build/assets/varela-round-latin-400-normal-BCUlaylK.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(87% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(87% 0 0);--font-bebas-neue:"Bebas Neue", sans-serif}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(98.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-mask-linear{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-radial{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-conic{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-linear-position{syntax:"*";inherits:false;initial-value:0deg}@property --tw-mask-linear-from-position{syntax:"*";inherits:false;initial-value:0%}@property --tw-mask-linear-to-position{syntax:"*";inherits:false;initial-value:100%}@property --tw-mask-linear-from-color{syntax:"*";inherits:false;initial-value:black}@property --tw-mask-linear-to-color{syntax:"*";inherits:false;initial-value:transparent}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/public/build/assets/app-BXAwObjV.css b/public/build/assets/app-BXAwObjV.css new file mode 100644 index 0000000..cab6f26 --- /dev/null +++ b/public/build/assets/app-BXAwObjV.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-mask-linear:linear-gradient(#fff, #fff);--tw-mask-radial:linear-gradient(#fff, #fff);--tw-mask-conic:linear-gradient(#fff, #fff);--tw-mask-linear-position:0deg;--tw-mask-linear-from-position:0%;--tw-mask-linear-to-position:100%;--tw-mask-linear-from-color:black;--tw-mask-linear-to-color:transparent;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-zinc-900:oklch(21% .006 285.885);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:.75rem;--radius-2xl:1rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s;--blur-xs:4px;--blur-sm:8px;--blur-2xl:40px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary:var(--primary);--color-primary-foreground:var(--primary-foreground);--color-secondary:var(--secondary);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--animate-flash:flash 1s;--animate-wobble:wobble 1s ease-in-out;--animate-rubber-band:rubberBand 1s;--animate-shake:shake 1s;--animate-head-shake:headShake 1s ease-in-out;--animate-swing:swing 1s;--animate-tada:tada 1s;--animate-jello:jello 1s;--animate-heart-beat:heartBeat 1s;--animate-flip:flip 1s ease-in-out;--animate-flip-in-x:flipInX 1s;--animate-flip-in-y:flipInY 1s;--animate-flip-out-x:flipOutX 1s;--animate-flip-out-y:flipOutY 1s;--animate-fade-in:fadeIn 1s;--animate-fade-in-down:fadeInDown 1s;--animate-fade-in-down-big:fadeInDownBig 1s;--animate-fade-in-left:fadeInLeft 1s;--animate-fade-in-left-big:fadeInLeftBig 1s;--animate-fade-in-right:fadeInRight 1s;--animate-fade-in-right-big:fadeInRightBig 1s;--animate-fade-in-up:fadeInUp 1s;--animate-fade-in-up-big:fadeInUpBig 1s;--animate-fade-out:fadeOut 1s;--animate-fade-out-down:fadeOutDown 1s;--animate-fade-out-down-big:fadeOutDownBig 1s;--animate-fade-out-left:fadeOutLeft 1s;--animate-fade-out-left-big:fadeOutLeftBig 1s;--animate-fade-out-right:fadeOutRight 1s;--animate-fade-out-right-big:fadeOutRightBig 1s;--animate-fade-out-up:fadeOutUp 1s;--animate-fade-out-up-big:fadeOutUpBig 1s;--animate-slide-in-down:slideInDown 1s;--animate-slide-in-left:slideInLeft 1s;--animate-slide-in-right:slideInRight 1s;--animate-slide-in-up:slideInUp 1s;--animate-slide-out-down:slideOutDown 1s;--animate-slide-out-left:slideOutLeft 1s;--animate-slide-out-right:slideOutRight 1s;--animate-slide-out-up:slideOutUp 1s;--animate-zoom-in:zoomIn 1s;--animate-zoom-in-down:zoomInDown 1s;--animate-zoom-in-left:zoomInLeft 1s;--animate-zoom-in-right:zoomInRight 1s;--animate-zoom-in-up:zoomInUp 1s;--animate-zoom-out:zoomOut 1s;--animate-zoom-out-down:zoomOutDown 1s;--animate-zoom-out-left:zoomOutLeft 1s;--animate-zoom-out-right:zoomOutRight 1s;--animate-zoom-out-up:zoomOutUp 1s;--animate-rotate-in:rotateIn 1s;--animate-rotate-out:rotateOut 1s;--animate-roll-in:rollIn 1s;--animate-roll-out:rollOut 1s;--animate-light-speed-in:lightSpeedInRight 1s ease-out;--animate-light-speed-out:lightSpeedOutLeft 1s ease-in;--animate-jack-in-box:jackInTheBox 1s;--animate-hinge:hinge 2s;--animate-bounce-in:bounceIn .75s;--animate-bounce-in-down:bounceInDown 1s;--animate-bounce-in-left:bounceInLeft 1s;--animate-bounce-in-right:bounceInRight 1s;--animate-bounce-in-up:bounceInUp 1s;--animate-bounce-out:bounceOut .75s;--animate-bounce-out-down:bounceOutDown 1s;--animate-bounce-out-left:bounceOutLeft 1s;--animate-bounce-out-right:bounceOutRight 1s;--animate-bounce-out-up:bounceOutUp 1s;--animate-back-in-down:backInDown 1s;--animate-back-in-left:backInLeft 1s;--animate-back-in-right:backInRight 1s;--animate-back-in-up:backInUp 1s;--animate-back-out-down:backOutDown 1s;--animate-back-out-left:backOutLeft 1s;--animate-back-out-right:backOutRight 1s;--animate-back-out-up:backOutUp 1s;--animate-rotate-in-down-left:rotateInDownLeft 1s;--animate-rotate-in-down-right:rotateInDownRight 1s;--animate-rotate-in-up-left:rotateInUpLeft 1s;--animate-rotate-in-up-right:rotateInUpRight 1s;--animate-rotate-out-down-left:rotateOutDownLeft 1s;--animate-rotate-out-down-right:rotateOutDownRight 1s;--animate-rotate-out-up-left:rotateOutUpLeft 1s;--animate-rotate-out-up-right:rotateOutUpRight 1s;--animate-float:float 3s ease-in-out infinite;--animate-wiggle:wiggle .8s ease-in-out infinite;--animate-blur-in:blurIn .6s ease-out;--animate-blur-out:blurOut .6s ease-in;--animate-glitch:glitch .6s steps(1) infinite;--animate-pop:pop .4s cubic-bezier(.26, .53, .74, 1.48);--animate-compress:compress .5s ease-in-out;--animate-expand:expand .5s cubic-bezier(.175, .885, .32, 1.275);--animate-drop:drop .6s ease-out;--animate-sway:sway 2s ease-in-out infinite;--animate-ken-burns:kenBurns 8s ease-in-out infinite alternate;--animate-tilt:tilt 1.5s ease-in-out infinite alternate;--animate-alarm:alarm .8s ease-in-out;--animate-ring:ring .5s ease-in-out;--animate-bell:bell 1s ease-in-out;--font-bebas-neue:"Bebas Neue", sans-serif;--font-pixelify-sans:"Pixelify Sans Variable", system-ui;--font-caveat:"Caveat Variable", cursive;--font-dm-serif-display:"DM Serif Display", serif;--font-fira-mono:"Fira Mono", monospace;--font-great-vibes:"Great Vibes", cursive;--font-ibm-plex-mono:"IBM Plex Mono", monospace;--font-ibm-plex-sans:"IBM Plex Sans", sans-serif;--font-inter:"Inter Variable", sans-serif;--font-nerko-one:"Nerko One", cursive;--font-orbitron-serif:"Orbitron", sans-serif;--font-playfair-display-serif:"Playfair Display Variable", sans-serif;--font-poppins:"Poppins", sans-serif;--font-roboto:"Roboto Variable", sans-serif;--font-roboto-slab:"Roboto Slab", serif;--font-work-sans:"Work Sans Variable", sans-serif;--font-barlow-condensed:"Barlow Condensed", sans-serif;--font-cinzel:"Cinzel Variable", serif;--font-cormorant-garamond:"Cormorant Garamond Variable", serif;--font-fira-code:"Fira Code Variable", monospace;--font-instrument-sans:"Instrument Sans Variable", sans-serif;--font-jetbrains-mono:"JetBrains Mono Variable", monospace;--font-merriweather:"Merriweather Variable", serif;--font-manrope:"Manrope Variable", sans-serif;--font-nunito:"Nunito Variable", sans-serif;--font-oswald:"Oswald Variable", sans-serif;--font-patrick-hand:"Patrick Hand", handwriting;--font-quicksand:"Quicksand Variable", sans-serif;--font-rajdhani:"Rajdhani", sans-serif;--font-roboto-condensed:"Roboto Condensed Variable", sans-serif;--font-roboto-mono:"Roboto Mono Variable", monospace;--font-source-sans-3:"Source Sans 3 Variable", sans-serif;--font-space-grotesk:"Space Grotesk Variable", sans-serif;--font-varela-round:"Varela Round", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}body ::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body ::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body ::selection{color:var(--color-primary-foreground)}body::selection{color:var(--color-primary-foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.pointer-events-none\!{pointer-events:none!important}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.static\!{position:static!important}.sticky{position:sticky}.-inset-0\.5{inset:calc(var(--spacing) * -.5)}.-inset-1{inset:calc(var(--spacing) * -1)}.-inset-1\.5{inset:calc(var(--spacing) * -1.5)}.-inset-2{inset:calc(var(--spacing) * -2)}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.right-7{right:calc(var(--spacing) * 7)}.-bottom-8{bottom:calc(var(--spacing) * -8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-7{left:calc(var(--spacing) * 7)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-20{z-index:calc(20 * -1)}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[999\]{z-index:999}.order-first{order:-9999}.order-last{order:9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing) * 0)!important}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.-mt-\[6\.6rem\]{margin-top:-6.6rem}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.-mb-px{margin-bottom:-1px}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-8{margin-left:calc(var(--spacing) * -8)}.-ml-px{margin-left:-1px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-\[335\/364\]{aspect-ratio:335/364}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\!size-5{width:calc(var(--spacing) * 5)!important;height:calc(var(--spacing) * 5)!important}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing) * 0)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-14\.5{height:calc(var(--spacing) * 14.5)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-36{height:calc(var(--spacing) * 36)}.h-\[34px\]{height:34px}.h-\[60px\]{height:60px}.h-\[calc\(--spacing\(5\.5\)\)\]{height:calc(calc(var(--spacing) * 5.5))}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-75{max-height:calc(var(--spacing) * 75)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 96) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-22{min-height:calc(var(--spacing) * 22)}.min-h-90{min-height:calc(var(--spacing) * 90)}.min-h-\[100vh\],.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-4\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-22{width:calc(var(--spacing) * 22)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-\[34px\]{width:34px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-\[438px\]{width:438px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-\[335px\]{max-width:335px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2\.5{--tw-translate-y:calc(var(--spacing) * 2.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-alarm{animation:.8s ease-in-out alarm}.animate-back-in-down{animation:1s backInDown}.animate-back-in-left{animation:1s backInLeft}.animate-back-in-right{animation:1s backInRight}.animate-back-in-up{animation:1s backInUp}.animate-back-out-down{animation:1s backOutDown}.animate-back-out-left{animation:1s backOutLeft}.animate-back-out-right{animation:1s backOutRight}.animate-back-out-up{animation:1s backOutUp}.animate-bell{animation:1s ease-in-out bell}.animate-blur-in{animation:.6s ease-out blurIn}.animate-blur-out{animation:.6s ease-in blurOut}.animate-bounce{animation:1s bounce}.animate-bounce-in{animation:.75s bounceIn}.animate-bounce-in-down{animation:1s bounceInDown}.animate-bounce-in-left{animation:1s bounceInLeft}.animate-bounce-in-right{animation:1s bounceInRight}.animate-bounce-in-up{animation:1s bounceInUp}.animate-bounce-out{animation:.75s bounceOut}.animate-bounce-out-down{animation:1s bounceOutDown}.animate-bounce-out-left{animation:1s bounceOutLeft}.animate-bounce-out-right{animation:1s bounceOutRight}.animate-bounce-out-up{animation:1s bounceOutUp}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-compress{animation:.5s ease-in-out compress}.animate-drop{animation:.6s ease-out drop}.animate-expand{animation:.5s cubic-bezier(.175,.885,.32,1.275) expand}.animate-fade-in{animation:1s fadeIn}.animate-fade-in-down{animation:1s fadeInDown}.animate-fade-in-down-big{animation:1s fadeInDownBig}.animate-fade-in-left{animation:1s fadeInLeft}.animate-fade-in-left-big{animation:1s fadeInLeftBig}.animate-fade-in-right{animation:1s fadeInRight}.animate-fade-in-right-big{animation:1s fadeInRightBig}.animate-fade-in-up{animation:1s fadeInUp}.animate-fade-in-up-big{animation:1s fadeInUpBig}.animate-fade-out{animation:1s fadeOut}.animate-fade-out-down{animation:1s fadeOutDown}.animate-fade-out-down-big{animation:1s fadeOutDownBig}.animate-fade-out-left{animation:1s fadeOutLeft}.animate-fade-out-left-big{animation:1s fadeOutLeftBig}.animate-fade-out-right{animation:1s fadeOutRight}.animate-fade-out-right-big{animation:1s fadeOutRightBig}.animate-fade-out-up{animation:1s fadeOutUp}.animate-fade-out-up-big{animation:1s fadeOutUpBig}.animate-flash{animation:1s flash}.animate-flip{animation:1s ease-in-out flip}.animate-flip-in-x{animation:1s flipInX}.animate-flip-in-y{animation:1s flipInY}.animate-flip-out-x{animation:1s flipOutX}.animate-flip-out-y{animation:1s flipOutY}.animate-float{animation:3s ease-in-out infinite float}.animate-glitch{animation:.6s step-end infinite glitch}.animate-head-shake{animation:1s ease-in-out headShake}.animate-heart-beat{animation:1s heartBeat}.animate-hinge{animation:2s hinge}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-jack-in-box{animation:1s jackInTheBox}.animate-jello{animation:1s jello}.animate-ken-burns{animation:8s ease-in-out infinite alternate kenBurns}.animate-light-speed-in{animation:1s ease-out lightSpeedInRight}.animate-light-speed-out{animation:1s ease-in lightSpeedOutLeft}.animate-ping{animation:1s cubic-bezier(0,0,.2,1) infinite ping}.animate-pop{animation:.4s cubic-bezier(.26,.53,.74,1.48) pop}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-ring{animation:.5s ease-in-out ring}.animate-roll-in{animation:1s rollIn}.animate-roll-out{animation:1s rollOut}.animate-rotate-in{animation:1s rotateIn}.animate-rotate-in-down-left{animation:1s rotateInDownLeft}.animate-rotate-in-down-right{animation:1s rotateInDownRight}.animate-rotate-in-up-left{animation:1s rotateInUpLeft}.animate-rotate-in-up-right{animation:1s rotateInUpRight}.animate-rotate-out{animation:1s rotateOut}.animate-rotate-out-down-left{animation:1s rotateOutDownLeft}.animate-rotate-out-down-right{animation:1s rotateOutDownRight}.animate-rotate-out-up-left{animation:1s rotateOutUpLeft}.animate-rotate-out-up-right{animation:1s rotateOutUpRight}.animate-rubber-band{animation:1s rubberBand}.animate-shake{animation:1s shake}.animate-slide-in-down{animation:1s slideInDown}.animate-slide-in-left{animation:1s slideInLeft}.animate-slide-in-right{animation:1s slideInRight}.animate-slide-in-up{animation:1s slideInUp}.animate-slide-out-down{animation:1s slideOutDown}.animate-slide-out-left{animation:1s slideOutLeft}.animate-slide-out-right{animation:1s slideOutRight}.animate-slide-out-up{animation:1s slideOutUp}.animate-spin{animation:1s linear infinite spin}.animate-sway{animation:2s ease-in-out infinite sway}.animate-swing{animation:1s swing}.animate-tada{animation:1s tada}.animate-tilt{animation:1.5s ease-in-out infinite alternate tilt}.animate-wiggle{animation:.8s ease-in-out infinite wiggle}.animate-wobble{animation:1s ease-in-out wobble}.animate-zoom-in{animation:1s zoomIn}.animate-zoom-in-down{animation:1s zoomInDown}.animate-zoom-in-left{animation:1s zoomInLeft}.animate-zoom-in-right{animation:1s zoomInRight}.animate-zoom-in-up{animation:1s zoomInUp}.animate-zoom-out{animation:1s zoomOut}.animate-zoom-out-down{animation:1s zoomOutDown}.animate-zoom-out-left{animation:1s zoomOutLeft}.animate-zoom-out-right{animation:1s zoomOutRight}.animate-zoom-out-up{animation:1s zoomOutUp}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-m-20{scroll-margin:calc(var(--spacing) * 20)}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-0>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 0) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[calc\(var\(--radius\)-5px\)\]{border-radius:calc(var(--radius) - 5px)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-md\!{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0}.rounded-none\!{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[inherit\]{border-top-left-radius:inherit;border-top-right-radius:inherit}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[inherit\]{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-br-sm{border-bottom-right-radius:var(--radius-sm)}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.rounded-bl-sm{border-bottom-left-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b\!{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-solid\!{--tw-border-style:solid!important;border-style:solid!important}.border-\[\#19140035\]{border-color:#19140035}.border-\[\#e3e3e0\]{border-color:#e3e3e0}.border-black{border-color:var(--color-black)}.border-border,.border-border\/25{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/25{border-color:color-mix(in oklab, var(--color-border) 25%, transparent)}}.border-border\/40{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.border-border\/50\!{border-color:var(--color-border)!important}@supports (color:color-mix(in lab, red, red)){.border-border\/50\!{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)!important}}.border-border\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--color-border) 60%, transparent)}}.border-border\/75{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/75{border-color:color-mix(in oklab, var(--color-border) 75%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-input{border-color:var(--color-input)}.border-primary{border-color:var(--color-primary)}.border-red-100{border-color:var(--color-red-100)}.border-sidebar-border,.border-sidebar-border\/50{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/50{border-color:color-mix(in oklab, var(--color-sidebar-border) 50%, transparent)}}.border-sidebar-border\/70{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/70{border-color:color-mix(in oklab, var(--color-sidebar-border) 70%, transparent)}}.border-sidebar-border\/80{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/80{border-color:color-mix(in oklab, var(--color-sidebar-border) 80%, transparent)}}.border-transparent{border-color:#0000}.bg-\[\#1b1b18\]{background-color:#1b1b18}.bg-\[\#FDFDFC\]{background-color:#fdfdfc}.bg-\[\#dbdbd7\]{background-color:#dbdbd7}.bg-\[\#fff2f2\]{background-color:#fff2f2}.bg-accent{background-color:var(--color-accent)}.bg-background,.bg-background\/10{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/10{background-color:color-mix(in oklab, var(--color-background) 10%, transparent)}}.bg-background\/50{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/50{background-color:color-mix(in oklab, var(--color-background) 50%, transparent)}}.bg-background\/60{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/60{background-color:color-mix(in oklab, var(--color-background) 60%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--color-border)}.bg-card,.bg-card\/30{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/30{background-color:color-mix(in oklab, var(--color-card) 30%, transparent)}}.bg-card\/50{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/50{background-color:color-mix(in oklab, var(--color-card) 50%, transparent)}}.bg-destructive{background-color:var(--color-destructive)}.bg-foreground{background-color:var(--color-foreground)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--color-muted)}.bg-muted-foreground\/20{background-color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/20{background-color:color-mix(in oklab, var(--color-muted-foreground) 20%, transparent)}}.bg-muted\/30{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--color-muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-popover{background-color:var(--color-popover)}.bg-primary,.bg-primary\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--color-primary) 10%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-ring{background-color:var(--color-ring)}.bg-secondary{background-color:var(--color-secondary)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-border{background-color:var(--color-sidebar-border)}.bg-sidebar-primary{background-color:var(--color-sidebar-primary)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-0{--tw-gradient-position:0deg}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-0{--tw-gradient-position:0deg in oklab}}.bg-linear-0{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-radial{--tw-gradient-position:in oklab;background-image:radial-gradient(var(--tw-gradient-stops))}.from-background{--tw-gradient-from:var(--color-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-muted{--tw-gradient-from:var(--color-muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/50{--tw-gradient-to:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.to-muted\/50{--tw-gradient-to:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.to-muted\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.mask-linear-from-10\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-from-position:10%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.mask-linear-to-50\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-to-position:50%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-primary{fill:var(--color-primary)}.stroke-border\/75{stroke:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.stroke-border\/75{stroke:color-mix(in oklab, var(--color-border) 75%, transparent)}}.stroke-neutral-900\/20{stroke:#17171733}@supports (color:color-mix(in lab, red, red)){.stroke-neutral-900\/20{stroke:color-mix(in oklab, var(--color-neutral-900) 20%, transparent)}}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\!{padding:calc(var(--spacing) * 3)!important}.p-4{padding:calc(var(--spacing) * 4)}.p-4\!{padding:calc(var(--spacing) * 4)!important}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-10{padding:calc(var(--spacing) * 10)}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-16{padding-top:calc(var(--spacing) * 16)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-barlow-condensed{font-family:Barlow Condensed,sans-serif}.font-bebas-neue{font-family:Bebas Neue,sans-serif}.font-bebas-neue\!{font-family:Bebas Neue,sans-serif!important}.font-caveat{font-family:Caveat Variable,cursive}.font-cinzel{font-family:Cinzel Variable,serif}.font-cormorant-garamond{font-family:Cormorant Garamond Variable,serif}.font-dm-serif-display{font-family:DM Serif Display,serif}.font-fira-code{font-family:Fira Code Variable,monospace}.font-fira-mono{font-family:Fira Mono,monospace}.font-great-vibes{font-family:Great Vibes,cursive}.font-ibm-plex-mono{font-family:IBM Plex Mono,monospace}.font-ibm-plex-sans{font-family:IBM Plex Sans,sans-serif}.font-instrument-sans{font-family:Instrument Sans Variable,sans-serif}.font-inter{font-family:Inter Variable,sans-serif}.font-jetbrains-mono{font-family:JetBrains Mono Variable,monospace}.font-manrope{font-family:Manrope Variable,sans-serif}.font-merriweather{font-family:Merriweather Variable,serif}.font-mono{font-family:var(--font-mono)}.font-mono\!{font-family:var(--font-mono)!important}.font-nerko-one{font-family:Nerko One,cursive}.font-nunito{font-family:Nunito Variable,sans-serif}.font-oswald{font-family:Oswald Variable,sans-serif}.font-patrick-hand{font-family:Patrick Hand,handwriting}.font-pixelify-sans{font-family:Pixelify Sans Variable,system-ui}.font-poppins{font-family:Poppins,sans-serif}.font-quicksand{font-family:Quicksand Variable,sans-serif}.font-rajdhani{font-family:Rajdhani,sans-serif}.font-roboto{font-family:Roboto Variable,sans-serif}.font-roboto-condensed{font-family:Roboto Condensed Variable,sans-serif}.font-roboto-mono{font-family:Roboto Mono Variable,monospace}.font-roboto-slab{font-family:Roboto Slab,serif}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.font-source-sans-3{font-family:"Source Sans 3 Variable",sans-serif}.font-space-grotesk{font-family:Space Grotesk Variable,sans-serif}.font-varela-round{font-family:Varela Round,sans-serif}.font-work-sans{font-family:Work Sans Variable,sans-serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[clamp\(0\.75rem\,9vw\+2rem\,3rem\)\]{font-size:clamp(.75rem,9vw + 2rem,3rem)}.text-\[clamp\(0\.75rem\,9vw\+2rem\,5rem\)\]{font-size:clamp(.75rem,9vw + 2rem,5rem)}.text-\[clamp\(1\.5rem\,10vw\+2rem\,3rem\)\]{font-size:clamp(1.5rem,10vw + 2rem,3rem)}.text-\[clamp\(1rem\,6vw\,5rem\)\]{font-size:clamp(1rem,6vw,5rem)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.overflow-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\[\#1B1B18\],.text-\[\#1b1b18\]{color:#1b1b18}.text-\[\#706f6c\]{color:#706f6c}.text-\[\#F3BEC7\]{color:#f3bec7}.text-\[\#F8B803\]{color:#f8b803}.text-\[\#F53003\],.text-\[\#f53003\]{color:#f53003}.text-\[var\(--foreground\)\]{color:var(--foreground)}.text-accent-foreground{color:var(--color-accent-foreground)}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--color-card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--color-destructive)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground,.text-foreground\/40{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/40{color:color-mix(in oklab, var(--color-foreground) 40%, transparent)}}.text-foreground\/50{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/50{color:color-mix(in oklab, var(--color-foreground) 50%, transparent)}}.text-foreground\/80{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--color-foreground) 80%, transparent)}}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted{color:var(--color-muted)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/50{color:color-mix(in oklab, var(--color-muted-foreground) 50%, transparent)}}.text-muted-foreground\/60{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/60{color:color-mix(in oklab, var(--color-muted-foreground) 60%, transparent)}}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-900{color:var(--color-neutral-900)}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground,.text-primary-foreground\/80{color:var(--color-primary-foreground)}@supports (color:color-mix(in lab, red, red)){.text-primary-foreground\/80{color:color-mix(in oklab, var(--color-primary-foreground) 80%, transparent)}}.text-red-600{color:var(--color-red-600)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--color-sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--color-sidebar-foreground) 70%, transparent)}}.text-sidebar-primary-foreground{color:var(--color-sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-neutral-300{-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);text-decoration-color:var(--color-neutral-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-foreground{accent-color:var(--color-foreground)}.opacity-0{opacity:0}.opacity-5{opacity:.05}.opacity-10{opacity:.1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.mix-blend-color{mix-blend-mode:color}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-multiply{mix-blend-mode:multiply}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0px_0px_1px_0px_rgba\(0\,0\,0\,0\.03\)\,0px_1px_2px_0px_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0px 0px 1px 0px var(--tw-shadow-color,#00000008), 0px 1px 2px 0px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_1px_rgba\(26\,26\,0\,0\.16\)\]{--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,#1a1a0029);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-primary\/15{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/15{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 15%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-foreground\/10{--tw-ring-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--color-foreground) 10%, transparent)}}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-primary,.ring-primary\/30{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.ring-primary\/30{--tw-ring-color:color-mix(in oklab, var(--color-primary) 30%, transparent)}}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab, var(--color-ring) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/40{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.outline-ring\/50{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/50{outline-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-\[0\.5px\]{--tw-blur:blur(.5px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xs{--tw-blur:blur(var(--blur-xs));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-300{transition-delay:.3s}.delay-400{transition-delay:.4s}.delay-1000{transition-delay:1s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-750{--tw-duration:.75s;transition-duration:.75s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.delay-300{--tw-animation-delay:.3s;animation-delay:.3s}.delay-1000{--tw-animation-delay:1s;animation-delay:1s}.delay-400{--tw-animation-delay:calc(400*1ms);animation-delay:.4s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-infinite{--tw-animation-iteration-count:infinite;animation-iteration-count:infinite}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing) * 8)}.\[--stroke-color\:\#1B1B18\]{--stroke-color:#1b1b18}.\[-ms-overflow-style\:none\]{-ms-overflow-style:none}.\[scrollbar-width\:none\]{scrollbar-width:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.fade-out{--tw-exit-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.running\!{animation-play-state:running!important}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.not-has-\[nav\]\:hidden:not(:has(:is(nav))){display:none}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\:repeat-infinite\!:is(:where(.group):hover *){--tw-animation-iteration-count:infinite!important;animation-iteration-count:infinite!important}.group-hover\/code-block\:opacity-100:is(:where(.group\/code-block):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[collapsible\=icon\]\/sidebar-wrapper\:h-12:is(:where(.group\/sidebar-wrapper):has([data-collapsible=icon]) *){height:calc(var(--spacing) * 12)}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2.5)}.group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2.5)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:pointer-events-none:is(:where(.group)[data-collapsible=icon] *){pointer-events:none}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=icon\]\:select-none:is(:where(.group)[data-collapsible=icon] *){-webkit-user-select:none;user-select:none}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--color-ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius-lg)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--color-sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing) * 1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:var(--radius-md)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--color-popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--color-popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-\(--spacing\(4\)\)\)\]:is(:where(.peer)[data-variant=inset]~*){min-height:calc(100svh - (calc(var(--spacing) * 4)))}.selection\:bg-primary ::selection{background-color:var(--color-primary)}.selection\:bg-primary::selection{background-color:var(--color-primary)}.selection\:text-primary-foreground ::selection{color:var(--color-primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--color-primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:top-0:before{content:var(--tw-content);top:calc(var(--spacing) * 0)}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.before\:bottom-0:before{content:var(--tw-content);bottom:calc(var(--spacing) * 0)}.before\:bottom-1\/2:before{content:var(--tw-content);bottom:50%}.before\:left-\[0\.4rem\]:before{content:var(--tw-content);left:.4rem}.before\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\:border-\[\#e3e3e0\]:before{content:var(--tw-content);border-color:#e3e3e0}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:mt-0:first-child{margin-top:calc(var(--spacing) * 0)}.first\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--color-ring)}.focus-within\:ring-\[3px\]:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-\[\#1915014a\]:hover{border-color:#1915014a}.hover\:border-\[\#19140035\]:hover{border-color:#19140035}.hover\:border-black:hover{border-color:var(--color-black)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-black:hover{background-color:var(--color-black)}.hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.hover\:bg-neutral-200\/60:hover{background-color:#e5e5e599}@supports (color:color-mix(in lab, red, red)){.hover\:bg-neutral-200\/60:hover{background-color:color-mix(in oklab, var(--color-neutral-200) 60%, transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--color-secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-foreground:hover{color:var(--color-foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-muted-foreground:hover{color:var(--color-muted-foreground)}.hover\:text-neutral-800:hover{color:var(--color-neutral-800)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-current\!:hover{text-decoration-color:currentColor!important}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-primary\/10:hover{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-primary\/10:hover{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.hover\:grayscale-0:hover{--tw-grayscale:grayscale(0%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--color-sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--color-sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--color-accent)}.focus\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--color-ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--color-ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--color-destructive)}.has-aria-invalid\:ring-\[3px\]:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-data-\[slot\=combobox-chip\]\:px-1\.5:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1.5)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--color-ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-\[3px\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--color-destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-\[\[data-state\=checked\]\]\:border-primary:has([data-state=checked]){border-color:var(--color-primary)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>button\]\:mr-\[-0\.45rem\]:has(>button){margin-right:-.45rem}.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button){margin-left:-.45rem}.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd){margin-right:-.35rem}.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd){margin-left:-.35rem}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing) * 4) 1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing) * 3)}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>svg\]\:px-2:has(>svg){padding-inline:calc(var(--spacing) * 2)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--color-destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--color-muted-foreground)}.data-closed\:animate-out[data-closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0[data-closed]{--tw-exit-opacity:0}.data-closed\:zoom-out-95[data-closed]{--tw-exit-scale:.95}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--color-accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--color-accent-foreground)}.data-open\:animate-in[data-open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:fade-in-0[data-open]{--tw-enter-opacity:0}.data-open\:zoom-in-95[data-open]{--tw-enter-scale:.95}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--color-accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--color-muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:var(--radius-md)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--color-primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--color-primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--color-accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--color-accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:var(--radius-md)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--color-primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--color-primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--color-primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--color-primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:var(--color-destructive-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--color-destructive-foreground) 80%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-8>*)[data-slot=input-group]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--color-primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--color-primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--color-primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--color-accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--color-secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--color-sidebar-accent-foreground)}}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive-foreground[data-variant=destructive]{color:var(--color-destructive-foreground)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive-foreground[data-variant=destructive]:focus{color:var(--color-destructive-foreground)}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}@media (width>=40rem){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:h-12{height:calc(var(--spacing) * 12)}.sm\:w-\[350px\]{width:350px}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-2\.5{gap:calc(var(--spacing) * 2.5)}.sm\:px-0{padding-inline:calc(var(--spacing) * 0)}.sm\:text-center{text-align:center}.sm\:text-left{text-align:left}}@media (width>=48rem){.md\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:min-h-120{min-height:calc(var(--spacing) * 120)}.md\:min-h-min{min-height:min-content}.md\:w-5{width:calc(var(--spacing) * 5)}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-2xl{max-width:var(--container-2xl)}.md\:max-w-7xl{max-width:var(--container-7xl)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:p-10{padding:calc(var(--spacing) * 10)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-0:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 0)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:mb-0{margin-bottom:calc(var(--spacing) * 0)}.lg\:mb-6{margin-bottom:calc(var(--spacing) * 6)}.lg\:-ml-px{margin-left:-1px}.lg\:ml-0{margin-left:calc(var(--spacing) * 0)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:aspect-auto{aspect-ratio:auto}.lg\:w-48{width:calc(var(--spacing) * 48)}.lg\:w-\[438px\]{width:438px}.lg\:max-w-4xl{max-width:var(--container-4xl)}.lg\:max-w-none{max-width:none}.lg\:grow{flex-grow:1}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}:where(.lg\:space-x-12>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 12) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-x-reverse)))}.lg\:rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.lg\:rounded-tl-lg{border-top-left-radius:var(--radius-lg)}.lg\:rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.lg\:rounded-br-none{border-bottom-right-radius:0}.lg\:p-8{padding:calc(var(--spacing) * 8)}.lg\:p-20{padding:calc(var(--spacing) * 20)}.lg\:px-0{padding-inline:calc(var(--spacing) * 0)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:border-r:is(.dark *){border-right-style:var(--tw-border-style);border-right-width:1px}.dark\:border-\[\#3E3E3A\]:is(.dark *){border-color:#3e3e3a}.dark\:border-\[\#eeeeec\]:is(.dark *){border-color:#eeeeec}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-red-200\/10:is(.dark *){border-color:#ffcaca1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-red-200\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-red-200) 10%, transparent)}}.dark\:border-sidebar-border:is(.dark *){border-color:var(--color-sidebar-border)}.dark\:bg-\[\#0a0a0a\]:is(.dark *){background-color:#0a0a0a}.dark\:bg-\[\#1D0002\]:is(.dark *){background-color:#1d0002}.dark\:bg-\[\#3E3E3A\]:is(.dark *){background-color:#3e3e3a}.dark\:bg-\[\#161615\]:is(.dark *){background-color:#161615}.dark\:bg-\[\#eeeeec\]:is(.dark *){background-color:#eeeeec}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-destructive) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:is(.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:is(.dark *){background-color:var(--color-gray-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-700\/10:is(.dark *){background-color:#bf000f1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-700\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-red-700) 10%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:stroke-neutral-100\/20:is(.dark *){stroke:#f5f5f533}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-neutral-100\/20:is(.dark *){stroke:color-mix(in oklab, var(--color-neutral-100) 20%, transparent)}}.dark\:text-\[\#1C1C1A\]:is(.dark *){color:#1c1c1a}.dark\:text-\[\#4B0600\]:is(.dark *){color:#4b0600}.dark\:text-\[\#391800\]:is(.dark *){color:#391800}.dark\:text-\[\#733000\]:is(.dark *){color:#733000}.dark\:text-\[\#A1A09A\]:is(.dark *){color:#a1a09a}.dark\:text-\[\#EDEDEC\]:is(.dark *){color:#ededec}.dark\:text-\[\#F61500\]:is(.dark *){color:#f61500}.dark\:text-\[\#FF4433\]:is(.dark *){color:#f43}.dark\:text-black:is(.dark *){color:var(--color-black)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-neutral-400:is(.dark *){color:var(--color-neutral-400)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:decoration-neutral-500:is(.dark *){-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);text-decoration-color:var(--color-neutral-500)}.dark\:mix-blend-hard-light:is(.dark *){mix-blend-mode:hard-light}.dark\:mix-blend-normal:is(.dark *){mix-blend-mode:normal}.dark\:shadow-\[inset_0px_0px_0px_1px_\#fffaed2d\]:is(.dark *){--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,#fffaed2d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 20%, transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.dark\:\[--stroke-color\:\#FF750F\]:is(.dark *){--stroke-color:#ff750f}.dark\:before\:border-\[\#3E3E3A\]:is(.dark *):before{content:var(--tw-content);border-color:#3e3e3a}@media (hover:hover){.dark\:hover\:border-\[\#3E3E3A\]:is(.dark *):hover{border-color:#3e3e3a}.dark\:hover\:border-\[\#62605b\]:is(.dark *):hover{border-color:#62605b}.dark\:hover\:border-white:is(.dark *):hover{border-color:var(--color-white)}.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-input) 50%, transparent)}}.dark\:hover\:bg-neutral-700\/60:is(.dark *):hover{background-color:#40404099}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-neutral-700\/60:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-neutral-700) 60%, transparent)}}.dark\:hover\:bg-white:is(.dark *):hover{background-color:var(--color-white)}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--color-accent-foreground)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-neutral-100:is(.dark *):hover{color:var(--color-neutral-100)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--color-destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}@starting-style{.starting\:opacity-0{opacity:0}}@media (prefers-reduced-motion:no-preference){@starting-style{.motion-safe\:starting\:-translate-x-\[26px\]{--tw-translate-x:calc(26px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[51px\]{--tw-translate-x:calc(51px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[78px\]{--tw-translate-x:calc(78px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:-translate-x-\[102px\]{--tw-translate-x:calc(102px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}}@starting-style{.motion-safe\:starting\:translate-y-6{--tw-translate-y:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}}}@media (pointer:coarse){.pointer-coarse\:size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.pointer-coarse\:px-3{padding-inline:calc(var(--spacing) * 3)}.pointer-coarse\:py-2{padding-block:calc(var(--spacing) * 2)}.pointer-coarse\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--color-muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\.border-b\]\:pb-3.border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-3.border-t{padding-top:calc(var(--spacing) * 3)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive-foreground[data-variant=destructive]>*):is(svg){color:var(--color-destructive-foreground)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.\[\&\:not\(\:first-child\)\]\:mt-6:not(:first-child){margin-top:calc(var(--spacing) * 6)}.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 2)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 2)}.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd{border-radius:calc(var(--radius) - 5px)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--color-accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--color-secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes wobble{0%,to{transform:translate(0%)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}}@keyframes rubberBand{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotate(-6deg)}18.5%{transform:translate(5px)rotate(6deg)}31.5%{transform:translate(-3px)rotate(-3deg)}43.5%{transform:translate(2px)rotate(2deg)}to{transform:translate(0)}}@keyframes swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}@keyframes tada{0%,to{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}}@keyframes jello{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes flip{0%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)}}@keyframes flipInX{0%{opacity:0;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{opacity:0;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}@keyframes slideInDown{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0)}}@keyframes slideInLeft{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0)}}@keyframes slideInUp{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0)}}@keyframes slideOutDown{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(100%)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{visibility:hidden;transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{visibility:hidden;transform:translate(100%)}}@keyframes slideOutUp{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(-100%)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInDown{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}@keyframes zoomInLeft{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}@keyframes zoomInRight{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}@keyframes zoomInUp{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutDown{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(1000px)}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform-origin:0;transform:scale(.1)translate(-1000px)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform-origin:100%;transform:scale(.1)translate(1000px)}}@keyframes zoomOutUp{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(-1000px)}}@keyframes rotateIn{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:rotate(0)}}@keyframes rotateOut{0%{opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(200deg)}}@keyframes rollIn{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0)rotate(0)}}@keyframes rollOut{0%{opacity:1;transform:translate(0)rotate(0)}to{opacity:0;transform:translate(100%)rotate(120deg)}}@keyframes lightSpeedInRight{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{opacity:1;transform:skew(-5deg)}to{opacity:1;transform:translate(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(30deg)}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1)rotate(0)}50%{transform:scale(1.05)rotate(10deg)}70%{transform:scale(.9)rotate(-3deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hinge{0%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(0)}20%,60%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{transform-origin:0 0;opacity:0;transform:rotate(90deg)}}@keyframes bounceIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}@keyframes bounceInDown{0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceInLeft{0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInRight{0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInUp{0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutDown{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}@keyframes bounceOutUp{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}@keyframes backInDown{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backOutDown{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}@keyframes backOutLeft{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}@keyframes backOutRight{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}@keyframes backOutUp{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}@keyframes rotateInDownLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInDownRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateInUpLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInUpRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(-90deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateOutDownLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}}@keyframes rotateOutDownRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(90deg)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes blurIn{0%{filter:blur(12px);opacity:0}to{filter:blur();opacity:1}}@keyframes blurOut{0%{filter:blur();opacity:1}to{filter:blur(12px);opacity:0}}@keyframes glitch{0%,to{transform:translate(0)}20%{transform:translate(-3px,2px)}40%{transform:translate(-3px,-2px)}60%{transform:translate(3px,2px)}80%{transform:translate(3px,-2px)}}@keyframes pop{0%{opacity:0;transform:scale(.8)}70%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@keyframes compress{0%,to{transform:scaleY(1)}50%{transform:scaleY(.5)}}@keyframes expand{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes drop{0%{opacity:0;transform:translateY(-200px)}60%{opacity:1;transform:translateY(15px)}80%{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes sway{0%,to{transform-origin:top;transform:rotate(-5deg)}50%{transform-origin:top;transform:rotate(5deg)}}@keyframes kenBurns{0%{transform:scale(1)translate(0)}to{transform:scale(1.15)translate(-2%,-2%)}}@keyframes tilt{0%{transform:perspective(400px)rotateY(0)}to{transform:perspective(400px)rotateY(15deg)}}@keyframes alarm{0%,to{transform:rotate(0)scale(1)}10%,30%{transform:rotate(-25deg)scale(1.05)}20%,40%{transform:rotate(25deg)scale(1.05)}50%,70%{transform:rotate(-15deg)scale(1.02)}60%,80%{transform:rotate(15deg)scale(1.02)}}@keyframes ring{0%,to{transform:rotate(0)}10%,30%{transform:rotate(15deg)}20%,40%{transform:rotate(-15deg)}50%,70%{transform:rotate(10deg)}60%,80%{transform:rotate(-10deg)}}@keyframes bell{0%{transform:rotate(0)}10%{transform:rotate(15deg)}20%{transform:rotate(-15deg)}30%{transform:rotate(10deg)}40%{transform:rotate(-10deg)}50%{transform:rotate(0)}to{transform:rotate(0)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}code[class*=language-],pre[class*=language-]{color:var(--color-foreground);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6}pre[class*=language-]{border-radius:0;margin:0;padding:1rem;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:var(--color-background)}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-muted-foreground)}.token.punctuation{color:var(--color-foreground)}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:#0f0}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-ext-400-normal-DWiEslNC.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-ext-400-normal-HFKRJXnW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-400-normal-9mHNbWWO.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-400-normal-Bi-ndsyu.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-cyrillic-wght-normal-BfQLqnEI.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-latin-ext-wght-normal-CsF3XSp0.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Pixelify Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/pixelify-sans-latin-wght-normal-Cbhn5ptY.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-cyrillic-ext-wght-normal-DiMfzA-V.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-cyrillic-wght-normal-D5lnP6kL.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-latin-ext-wght-normal-Byk3UhVp.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Caveat Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/caveat-latin-wght-normal-C1hSzPvX.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/dm-serif-display-latin-ext-400-normal-p18AlW_x.woff2)format("woff2"),url(/build/assets/dm-serif-display-latin-ext-400-normal-B1toqZab.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/dm-serif-display-latin-400-normal-C5_t9oOD.woff2)format("woff2"),url(/build/assets/dm-serif-display-latin-400-normal-_kVFYEpx.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-cyrillic-ext-400-normal-FAIU8e3o.woff2)format("woff2"),url(/build/assets/fira-mono-cyrillic-ext-400-normal-Co4MVjrD.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-cyrillic-400-normal-BJkDdjbt.woff2)format("woff2"),url(/build/assets/fira-mono-cyrillic-400-normal-DUd3efVn.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-greek-ext-400-normal-Be4g_LSk.woff2)format("woff2"),url(/build/assets/fira-mono-greek-ext-400-normal-BQ5yw6bY.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-greek-400-normal-ftNhKy_S.woff2)format("woff2"),url(/build/assets/fira-mono-greek-400-normal-B_0AmgK7.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-symbols2-400-normal-C6JptOil.woff2)format("woff2"),url(/build/assets/fira-mono-symbols2-400-normal-CpeG9ob9.woff)format("woff");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-latin-ext-400-normal-B2gPvaNr.woff2)format("woff2"),url(/build/assets/fira-mono-latin-ext-400-normal-CbD3vWRE.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/fira-mono-latin-400-normal-DVTTRLHv.woff2)format("woff2"),url(/build/assets/fira-mono-latin-400-normal-C3FQ26ho.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-cyrillic-ext-400-normal-CKQhgFwn.woff2)format("woff2"),url(/build/assets/great-vibes-cyrillic-ext-400-normal-CzcHves0.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-cyrillic-400-normal-C-wcqNJs.woff2)format("woff2"),url(/build/assets/great-vibes-cyrillic-400-normal-DtFXCWjq.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-greek-ext-400-normal-Caxd-0sC.woff2)format("woff2"),url(/build/assets/great-vibes-greek-ext-400-normal-I8uMZwKr.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-vietnamese-400-normal-a2O3jU53.woff2)format("woff2"),url(/build/assets/great-vibes-vietnamese-400-normal-Cxbm9Uac.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-latin-ext-400-normal-CsjMq8GN.woff2)format("woff2"),url(/build/assets/great-vibes-latin-ext-400-normal-wh4xxCIu.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Great Vibes;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/great-vibes-latin-400-normal-q5-78SH_.woff2)format("woff2"),url(/build/assets/great-vibes-latin-400-normal-BAZ173uY.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2)format("woff2"),url(/build/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2)format("woff2"),url(/build/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nerko One;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/nerko-one-latin-ext-400-normal-CFPuMH-A.woff2)format("woff2"),url(/build/assets/nerko-one-latin-ext-400-normal-CeiCvlAM.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nerko One;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/nerko-one-latin-400-normal-Dbkh7I23.woff2)format("woff2"),url(/build/assets/nerko-one-latin-400-normal-Dk7k_1yO.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Orbitron;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/orbitron-latin-400-normal-U6xZUhur.woff2)format("woff2"),url(/build/assets/orbitron-latin-400-normal-DBk4Dmer.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-cyrillic-wght-normal-5WvUvBgz.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-vietnamese-wght-normal-Cabi7G8-.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-latin-ext-wght-normal-CT1r92Rl.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Playfair Display Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/playfair-display-latin-wght-normal-BOwq7MWX.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-devanagari-400-normal-CJDn6rn8.woff2)format("woff2"),url(/build/assets/poppins-devanagari-400-normal-CqVvlrh5.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-latin-ext-400-normal-by3JarPu.woff2)format("woff2"),url(/build/assets/poppins-latin-ext-400-normal-DaBSavcJ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Poppins;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/poppins-latin-400-normal-cpxAROuN.woff2)format("woff2"),url(/build/assets/poppins-latin-400-normal-BOb3E3N0.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-cyrillic-ext-wght-normal-BCp_3N7R.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-cyrillic-wght-normal-fOt7epNf.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-greek-ext-wght-normal-Bgw4czJT.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-greek-wght-normal-DlT9XTxE.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-math-wght-normal-4a3xuzGk.woff2)format("woff2-variations");unicode-range:U+302-303,U+305,U+307-308,U+310,U+312,U+315,U+31A,U+326-327,U+32C,U+32F-330,U+332-333,U+338,U+33A,U+346,U+34D,U+391-3A1,U+3A3-3A9,U+3B1-3C9,U+3D1,U+3D5-3D6,U+3F0-3F1,U+3F4-3F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-symbols-wght-normal-B7iHSfaG.woff2)format("woff2-variations");unicode-range:U+1-C,U+E-1F,U+7F-9F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+28??,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B??,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F0??,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F7??,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB??}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-vietnamese-wght-normal-_f1XEJpo.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-latin-wght-normal-ccAYIvAh.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-cyrillic-ext-400-normal-Cm5q4seC.woff2)format("woff2"),url(/build/assets/roboto-slab-cyrillic-ext-400-normal-BW1cBx1L.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-cyrillic-400-normal-NTBYJ9iY.woff2)format("woff2"),url(/build/assets/roboto-slab-cyrillic-400-normal-Cc0Cso00.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-greek-ext-400-normal-CnoIblM-.woff2)format("woff2"),url(/build/assets/roboto-slab-greek-ext-400-normal-C6Q3kR7E.woff)format("woff");unicode-range:U+1F??}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-greek-400-normal-76UbIAt9.woff2)format("woff2"),url(/build/assets/roboto-slab-greek-400-normal-AoTWS79V.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-vietnamese-400-normal-bJRBMnqv.woff2)format("woff2"),url(/build/assets/roboto-slab-vietnamese-400-normal-BmyZx1xn.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-latin-ext-400-normal-AV6nsDYb.woff2)format("woff2"),url(/build/assets/roboto-slab-latin-ext-400-normal-DOoLriWR.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Slab;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/roboto-slab-latin-400-normal-DwurWVj7.woff2)format("woff2"),url(/build/assets/roboto-slab-latin-400-normal-wzK1bUc4.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-vietnamese-wght-normal-BKsN3ITN.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-latin-ext-wght-normal-B5dZ8C4S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Work Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/work-sans-latin-wght-normal-Bl-S9Xys.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-vietnamese-400-normal-Dq9fsqrz.woff2)format("woff2"),url(/build/assets/barlow-condensed-vietnamese-400-normal-BHpO_q_4.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-latin-ext-400-normal-DPMBkgfB.woff2)format("woff2"),url(/build/assets/barlow-condensed-latin-ext-400-normal-DN7qpd_C.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/barlow-condensed-latin-400-normal-Dc2u_eUW.woff2)format("woff2"),url(/build/assets/barlow-condensed-latin-400-normal-BXL2z6Kg.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cinzel Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/cinzel-latin-ext-wght-normal-CG36JvV6.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cinzel Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/build/assets/cinzel-latin-wght-normal-DMUuCU8H.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-cyrillic-ext-wght-normal-Bg62sWL9.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-cyrillic-wght-normal-BWCqVJN0.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-vietnamese-wght-normal-CDLFB6hb.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-latin-ext-wght-normal-ltf1AbuM.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/cormorant-garamond-latin-wght-normal-CUoBjw-S.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-cyrillic-ext-wght-normal-DhYMMuQd.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-cyrillic-wght-normal-Y3u8pIsh.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-greek-ext-wght-normal-wWus70Ix.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-greek-wght-normal-B2SviObF.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-symbols2-wght-normal-CE6EOz_n.woff2)format("woff2-variations");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-latin-ext-wght-normal-Dvfvaomy.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/fira-code-latin-wght-normal-CHoedHDv.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/build/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/build/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-cyrillic-ext-wght-normal-Bkm5NjZG.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-cyrillic-wght-normal-BWxnF87P.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-vietnamese-wght-normal-BXYScXBD.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-ext-wght-normal-BZx4mOJf.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Merriweather Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(/build/assets/merriweather-latin-wght-normal-BovdrKvB.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-cyrillic-ext-wght-normal-C8S-KRRz.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-greek-wght-normal-DL7QRZyv.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/build/assets/manrope-latin-wght-normal-DHIcAJRg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito Variable;font-style:normal;font-display:swap;font-weight:200 1000;src:url(/build/assets/nunito-latin-wght-normal-BzFMHfZw.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-cyrillic-ext-wght-normal-DLWmRmaW.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-cyrillic-wght-normal-C8sJyxwB.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-vietnamese-wght-normal-Tdf5mmdl.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-latin-ext-wght-normal-Dj_1K-Kw.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Oswald Variable;font-style:normal;font-display:swap;font-weight:200 700;src:url(/build/assets/oswald-latin-wght-normal-CzS3kehr.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-vietnamese-400-normal-65jA92mZ.woff2)format("woff2"),url(/build/assets/patrick-hand-vietnamese-400-normal-CZjY324Y.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-latin-ext-400-normal-Dno5CMlI.woff2)format("woff2"),url(/build/assets/patrick-hand-latin-ext-400-normal-C2ywpnn3.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Patrick Hand;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/patrick-hand-latin-400-normal-B7HHA2Vw.woff2)format("woff2"),url(/build/assets/patrick-hand-latin-400-normal-Df9_VoRQ.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-vietnamese-wght-normal-ei70gACF.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-latin-ext-wght-normal-CrJ75Ewg.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Quicksand Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/quicksand-latin-wght-normal-Buj9m_3d.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-devanagari-400-normal-CTuj2HZW.woff2)format("woff2"),url(/build/assets/rajdhani-devanagari-400-normal-BdIzgbsr.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-latin-ext-400-normal-DACPYgMx.woff2)format("woff2"),url(/build/assets/rajdhani-latin-ext-400-normal-Der7ynDE.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rajdhani;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/rajdhani-latin-400-normal-CurJOxDW.woff2)format("woff2"),url(/build/assets/rajdhani-latin-400-normal-C6_q4usG.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-cyrillic-ext-wght-normal-DhztH7TG.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-cyrillic-wght-normal-DcSt-2BC.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-greek-ext-wght-normal-CuKbLwpm.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-greek-wght-normal-Cvhr4n9Q.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-vietnamese-wght-normal-BQ3qeiTz.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-latin-ext-wght-normal-Db2M7toj.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Condensed Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/build/assets/roboto-condensed-latin-wght-normal-Cxzi1x1i.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-cyrillic-ext-wght-normal-BUDPrIko.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-cyrillic-wght-normal-HUlVHixE.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-greek-wght-normal-BJJTbwTT.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-vietnamese-wght-normal-DlC-zuDL.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-latin-ext-wght-normal-QAYlOegK.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Mono Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/build/assets/roboto-mono-latin-wght-normal-CZtBPCCa.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-cyrillic-ext-wght-normal-DzyfIafT.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-cyrillic-wght-normal-BMDVbyM7.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-greek-ext-wght-normal-BWSLJLk6.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-greek-wght-normal-C9H9m1vD.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-vietnamese-wght-normal-C1uRvKPU.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-ext-wght-normal-C8iNium2.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/build/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-vietnamese-wght-normal-D0rl6rjA.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-latin-ext-wght-normal-D9tNdqV9.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Space Grotesk Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/build/assets/space-grotesk-latin-wght-normal-BhU9QXUp.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-hebrew-400-normal-CdSaNJFF.woff2)format("woff2"),url(/build/assets/varela-round-hebrew-400-normal-gahDRKkd.woff)format("woff");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-vietnamese-400-normal-DWiTdRj2.woff2)format("woff2"),url(/build/assets/varela-round-vietnamese-400-normal-CA2kl5Qj.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-latin-ext-400-normal-DL997rWn.woff2)format("woff2"),url(/build/assets/varela-round-latin-ext-400-normal-IO5VYG9n.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Varela Round;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/varela-round-latin-400-normal-CsVGkSoP.woff2)format("woff2"),url(/build/assets/varela-round-latin-400-normal-BCUlaylK.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(87% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(87% 0 0);--font-bebas-neue:"Bebas Neue", sans-serif}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(98.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-mask-linear{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-radial{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-conic{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-linear-position{syntax:"*";inherits:false;initial-value:0deg}@property --tw-mask-linear-from-position{syntax:"*";inherits:false;initial-value:0%}@property --tw-mask-linear-to-position{syntax:"*";inherits:false;initial-value:100%}@property --tw-mask-linear-from-color{syntax:"*";inherits:false;initial-value:black}@property --tw-mask-linear-to-color{syntax:"*";inherits:false;initial-value:transparent}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/public/build/assets/app-NKzAktB4.js b/public/build/assets/app-NKzAktB4.js deleted file mode 100644 index 5d861c9..0000000 --- a/public/build/assets/app-NKzAktB4.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/animate-css-B9qFUvc-.js","assets/wayfinder-DGNmxDkm.js","assets/floating-ui.react-dom-DuoUqJja.js","assets/button-B6E1T0qj.js","assets/createLucideIcon-wUA1TGAT.js","assets/dist-Cz7M9pMz.js","assets/dist-uBvN1Epe.js","assets/main-layout-Bjl0T2Wa.js","assets/check-JLGZ6ERA.js","assets/github-DdPrsZVB.js","assets/sun-BUK2gUl5.js","assets/placeholder-pattern-nTsSuoW-.js","assets/use-appearance-QmpypXC6.js","assets/registry-installer-iv12Azo6.js","assets/copy-DipuxFuX.js","assets/chevron-down-xYnWKEDk.js","assets/card-DGuRpKkV.js","assets/dialog-DDCot1iY.js","assets/confirm-password-BMSJcuzI.js","assets/label-DR9FZUM0.js","assets/dist-2FHDdoqV.js","assets/password-input-HSktczCa.js","assets/input-error-CXzYDMKp.js","assets/spinner-DVMDXl0V.js","assets/loader-circle-BczqqvyR.js","assets/confirm-gXMuOnz9.js","assets/forgot-password-J1Dj5dCk.js","assets/text-link-B-rnxz_C.js","assets/password-DgvYQGdP.js","assets/login-CzdxtsZ7.js","assets/dist-DlwT0Sy6.js","assets/socialite-CXgr0CAW.js","assets/register-2UCvBdJw.js","assets/reset-password-BLtlCvFc.js","assets/two-factor-challenge-Bot9NjM4.js","assets/use-two-factor-auth-BbF_ctUq.js","assets/verify-email-BJE_1kxG.js","assets/verification-0-44BVPj.js","assets/dashboard-8kvCxfBE.js","assets/fonts-PRPJga5a.js","assets/home-CDqIBBMJ.js","assets/glow-radial-BlYCryQ3.js","assets/appearance-dLeB5aE7.js","assets/profile-z87RwChz.js","assets/security-CPBDq09s.js","assets/themes-pgJyxVED.js","assets/welcome-DahtqzTP.js"])))=>i.map(i=>d[i]); -import{_ as e,c as t,f as n,g as r,h as i,i as a,l as o,m as s,n as c,p as l,r as u,x as d}from"./wayfinder-DGNmxDkm.js";import{n as f,t as p}from"./use-appearance-QmpypXC6.js";import{i as m,n as h,r as g,t as _}from"./dist-uBvN1Epe.js";import{a as v,n as y,o as b,r as x,t as S}from"./button-B6E1T0qj.js";import{_ as C,a as w,c as T,d as E,f as D,g as O,h as k,i as A,l as ee,m as j,n as M,o as te,p as N,r as P,s as F,t as ne,u as re}from"./dist-Cz7M9pMz.js";import{a as ie,c as ae,i as oe,l as se,n as ce,o as le,r as ue,s as de,t as fe}from"./floating-ui.react-dom-DuoUqJja.js";import{n as I,r as pe,t as L}from"./createLucideIcon-wUA1TGAT.js";import{t as me}from"./dist-2FHDdoqV.js";var R=a(),z=d(s(),1),he=d(l(),1);function ge(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var _e=e=>{switch(e){case`success`:return be;case`info`:return Se;case`warning`:return xe;case`error`:return Ce;default:return null}},ve=Array(12).fill(0),ye=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},ve.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),be=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),xe=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Se=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Ce=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),we=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Te=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Ee=1,B=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Ee++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Oe(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Ee++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=(e,t)=>{let n=t?.id||Ee++;return B.addToast({title:e,...t,id:n}),n},Oe=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ke=Object.assign(De,{success:B.success,info:B.info,warning:B.warning,error:B.error,custom:B.custom,message:B.message,promise:B.promise,dismiss:B.dismiss,loading:B.loading},{getHistory:()=>B.toasts,getToasts:()=>B.getActiveToasts()});ge(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Ae(e){return e.label!==void 0}var je=3,Me=`24px`,Ne=`16px`,Pe=4e3,Fe=356,Ie=14,Le=45,Re=200;function ze(...e){return e.filter(Boolean).join(` `)}function Be(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Ve=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=z.useState(null),[O,k]=z.useState(null),[A,ee]=z.useState(!1),[j,M]=z.useState(!1),[te,N]=z.useState(!1),[P,F]=z.useState(!1),[ne,re]=z.useState(!1),[ie,ae]=z.useState(0),[oe,se]=z.useState(0),ce=z.useRef(n.duration||y||Pe),le=z.useRef(null),ue=z.useRef(null),de=c===0,fe=c+1<=o,I=n.type,pe=n.dismissible!==!1,L=n.className||``,me=n.descriptionClassName||``,R=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),he=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ge=z.useMemo(()=>n.duration||y||Pe,[n.duration,y]),ve=z.useRef(0),be=z.useRef(0),xe=z.useRef(0),Se=z.useRef(null),[Ce,Ee]=b.split(`-`),B=z.useMemo(()=>s.reduce((e,t,n)=>n>=R?e:e+t.height,0),[s,R]),De=Te(),Oe=n.invert||t,ke=I===`loading`;be.current=z.useMemo(()=>R*x+B,[R,B]),z.useEffect(()=>{ce.current=ge},[ge]),z.useEffect(()=>{ee(!0)},[]),z.useEffect(()=>{let e=ue.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!A)return;let e=ue.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[A,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let je=z.useCallback(()=>{M(!0),ae(be.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Re)},[n,d,a,be]);z.useEffect(()=>{if(n.promise&&I===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||De?(()=>{if(xe.current{n.onAutoClose==null||n.onAutoClose.call(n,n),je()},ce.current)),()=>clearTimeout(e)},[u,i,n,I,De,je]),z.useEffect(()=>{n.delete&&(je(),n.onDismiss==null||n.onDismiss.call(n,n))},[je,n.delete]);function Me(){return w?.loading?z.createElement(`div`,{className:ze(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":I===`loading`},w.loading):z.createElement(ye,{className:ze(C?.loader,n?.classNames?.loader),visible:I===`loading`})}let Ne=n.icon||w?.[I]||_e(I);return z.createElement(`li`,{tabIndex:0,ref:ue,className:ze(_,L,C?.toast,n?.classNames?.toast,C?.default,C?.[I],n?.classNames?.[I]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":A,"data-promise":!!n.promise,"data-swiped":ne,"data-removed":j,"data-visible":fe,"data-y-position":Ce,"data-x-position":Ee,"data-index":c,"data-front":de,"data-swiping":te,"data-dismissible":pe,"data-type":I,"data-invert":Oe,"data-swipe-out":P,"data-swipe-direction":O,"data-expanded":!!(u||S&&A),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${j?ie:be.current}px`,"--initial-height":S?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{N(!1),D(null),Se.current=null},onPointerDown:e=>{e.button!==2&&(ke||!pe||(le.current=new Date,ae(be.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(N(!0),Se.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(P||!pe)return;Se.current=null;let e=Number(ue.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ue.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-le.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Le||a>.11){ae(be.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),je(),F(!0);return}else{var o,s;(o=ue.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ue.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}re(!1),N(!1),D(null)},onPointerMove:t=>{var n,r;if(!Se.current||!pe||window.getSelection()?.toString().length>0)return;let i=t.clientY-Se.current.y,a=t.clientX-Se.current.x,o=e.swipeDirections??Be(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&re(!0),(n=ue.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=ue.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},he&&!n.jsx&&I!==`loading`?z.createElement(`button`,{"aria-label":T,"data-disabled":ke,"data-close-button":!0,onClick:ke||!pe?()=>{}:()=>{je(),n.onDismiss==null||n.onDismiss.call(n,n)},className:ze(C?.closeButton,n?.classNames?.closeButton)},w?.close??we):null,(I||n.icon||n.promise)&&n.icon!==null&&(w?.[I]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:ze(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Me():null,n.type===`loading`?null:Ne):null,z.createElement(`div`,{"data-content":``,className:ze(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:ze(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:ze(v,me,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.cancel:n.cancel&&Ae(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Ae(n.cancel)&&pe&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),je())},className:ze(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&Ae(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Ae(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&je())},className:ze(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function He(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Ue(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Ne:Me;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var We=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=je,toastOptions:g,dir:_=He(),gap:v=Ie,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=z.useState([]),C=z.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=z.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=z.useState([]),[D,O]=z.useState(!1),[k,A]=z.useState(!1),[ee,j]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),M=z.useRef(null),te=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),N=z.useRef(null),P=z.useRef(!1),F=z.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||B.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>B.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{he.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),z.useEffect(()=>{if(d!==`system`){j(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?j(`dark`):j(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{j(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{j(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{x.length<=1&&O(!1)},[x]),z.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=M.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===M.current||M.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(M.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,P.current=!1)}},[M.current]),z.createElement(`section`,{ref:t,"aria-label":`${b} ${te}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?z.createElement(`ol`,{key:t,dir:_===`auto`?He():_,tabIndex:-1,ref:M,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Fe}px`,"--gap":`${v}px`,...m,...Ue(l,u)},onBlur:e=>{P.current&&!e.currentTarget.contains(e.relatedTarget)&&(P.current=!1,N.current&&=(N.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||P.current||(P.current=!0,N.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||A(!0)},onPointerUp:()=>A(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(Ve,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:k,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:F,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))});function Ge(){let e=(0,R.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,z.useEffect)(Ke,t)}function Ke(){return i.on(`flash`,qe)}function qe(e){let t=e.detail?.flash?.toast;t&&ke[t.type](t.message)}var V=u();function Je(e){let t=(0,R.c)(6),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{appearance:r}=f();Ge();let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},t[2]=i):i=t[2];let a;return t[3]!==r||t[4]!==n?(a=(0,V.jsx)(We,{theme:r,className:`toaster group`,position:`bottom-right`,style:i,...n}),t[3]=r,t[4]=n,t[5]=a):a=t[5],a}function Ye(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Xe(i,...t)]}function Xe(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Ze(e){let t=Qe(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(et);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Qe(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=nt(n),i=tt(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $e=Symbol(`radix.slottable`);function et(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$e}function tt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function nt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rt=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ze(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),it=`Arrow`,at=z.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,V.jsx)(rt.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,V.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});at.displayName=it;var ot=at;function st(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,ct(i,...t)]}function ct(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function lt(e){let t=ut(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(ft);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ut(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=mt(n),i=pt(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dt=Symbol(`radix.slottable`);function ft(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===dt}function pt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function mt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ht=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=lt(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function gt(e){let[t,n]=z.useState(void 0);return g(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var _t=`Popper`,[vt,yt]=st(_t),[bt,xt]=vt(_t),St=e=>{let{__scopePopper:t,children:n}=e,[r,i]=z.useState(null);return(0,V.jsx)(bt,{scope:t,anchor:r,onAnchorChange:i,children:n})};St.displayName=_t;var Ct=`PopperAnchor`,wt=z.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=xt(Ct,n),o=z.useRef(null),s=b(t,o),c=z.useRef(null);return z.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,V.jsx)(ht.div,{...i,ref:s})});wt.displayName=Ct;var Tt=`PopperContent`,[Et,Dt]=vt(Tt),Ot=z.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,_=xt(Tt,n),[v,y]=z.useState(null),x=b(t,e=>y(e)),[S,w]=z.useState(null),T=gt(S),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(l)?l:[l],ee=A.length>0,j={padding:k,boundary:A.filter(Mt),altBoundary:ee},{refs:M,floatingStyles:te,placement:N,isPositioned:P,middlewareData:F}=ae({strategy:`fixed`,placement:O,whileElementsMounted:(...e)=>se(...e,{animationFrame:p===`always`}),elements:{reference:_.anchor},middleware:[ie({mainAxis:i+D,alignmentAxis:o}),c&&le({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?oe():void 0,...j}),c&&ce({...j}),de({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&fe({element:S,padding:s}),Nt({arrowWidth:E,arrowHeight:D}),f&&ue({strategy:`referenceHidden`,...j})]}),[ne,re]=Pt(N),I=C(m);g(()=>{P&&I?.()},[P,I]);let pe=F.arrow?.x,L=F.arrow?.y,me=F.arrow?.centerOffset!==0,[R,he]=z.useState();return g(()=>{v&&he(window.getComputedStyle(v).zIndex)},[v]),(0,V.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:P?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:R,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,V.jsx)(Et,{scope:n,placedSide:ne,onArrowChange:w,arrowX:pe,arrowY:L,shouldHideArrow:me,children:(0,V.jsx)(ht.div,{"data-side":ne,"data-align":re,...h,ref:x,style:{...h.style,animation:P?void 0:`none`}})})})});Ot.displayName=Tt;var kt=`PopperArrow`,At={top:`bottom`,right:`left`,bottom:`top`,left:`right`},jt=z.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Dt(kt,n),a=At[i.placedSide];return(0,V.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,V.jsx)(ot,{...r,ref:t,style:{...r.style,display:`block`}})})});jt.displayName=kt;function Mt(e){return e!==null}var Nt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Pt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Pt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ft=St,It=wt,Lt=Ot,Rt=jt;function zt(e){let t=Bt(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Ut);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Bt(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Gt(n),i=Wt(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vt=Symbol(`radix.slottable`);function Ht(e){let t=({children:e})=>(0,V.jsx)(V.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Vt,t}function Ut(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Vt}function Wt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Gt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kt=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=zt(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qt(e){let t=Jt(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Xt);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Jt(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Qt(n),i=Zt(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yt=Symbol(`radix.slottable`);function Xt(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Yt}function Zt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Qt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $t=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=qt(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),en=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),tn=`VisuallyHidden`,nn=z.forwardRef((e,t)=>(0,V.jsx)($t.span,{...e,ref:t,style:{...en,...e.style}}));nn.displayName=tn;var rn=nn,[an,on]=Ye(`Tooltip`,[yt]),sn=yt(),cn=`TooltipProvider`,ln=700,un=`tooltip.open`,[dn,fn]=an(cn),pn=e=>{let{__scopeTooltip:t,delayDuration:n=ln,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=z.useRef(!0),s=z.useRef(!1),c=z.useRef(0);return z.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,V.jsx)(dn,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:z.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:z.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:z.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};pn.displayName=cn;var mn=`Tooltip`,[hn,gn]=an(mn),_n=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=fn(mn,e.__scopeTooltip),l=sn(t),[u,d]=z.useState(null),f=k(),p=z.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=z.useRef(!1),[v,y]=_({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(un))):c.onClose(),a?.(e)},caller:mn}),b=z.useMemo(()=>v?g.current?`delayed-open`:`instant-open`:`closed`,[v]),x=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,y(!0)},[y]),S=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),C=z.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,y(!0),p.current=0},h)},[h,y]);return z.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,V.jsx)(Ft,{...l,children:(0,V.jsx)(hn,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:z.useCallback(()=>{c.isOpenDelayedRef.current?C():x()},[c.isOpenDelayedRef,C,x]),onTriggerLeave:z.useCallback(()=>{m?S():(window.clearTimeout(p.current),p.current=0)},[S,m]),onOpen:x,onClose:S,disableHoverableContent:m,children:n})})};_n.displayName=mn;var vn=`TooltipTrigger`,yn=z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=gn(vn,n),a=fn(vn,n),o=sn(n),s=b(t,z.useRef(null),i.onTriggerChange),c=z.useRef(!1),l=z.useRef(!1),u=z.useCallback(()=>c.current=!1,[]);return z.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,V.jsx)(It,{asChild:!0,...o,children:(0,V.jsx)(Kt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:m(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:m(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:m(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:m(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:m(e.onBlur,i.onClose),onClick:m(e.onClick,i.onClose)})})});yn.displayName=vn;var bn=`TooltipPortal`,[xn,Sn]=an(bn,{forceMount:void 0}),Cn=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=gn(bn,t);return(0,V.jsx)(xn,{scope:t,forceMount:n,children:(0,V.jsx)(h,{present:n||a.open,children:(0,V.jsx)(j,{asChild:!0,container:i,children:r})})})};Cn.displayName=bn;var wn=`TooltipContent`,Tn=z.forwardRef((e,t)=>{let n=Sn(wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=gn(wn,e.__scopeTooltip);return(0,V.jsx)(h,{present:r||o.open,children:o.disableHoverableContent?(0,V.jsx)(An,{side:i,...a,ref:t}):(0,V.jsx)(En,{side:i,...a,ref:t})})}),En=z.forwardRef((e,t)=>{let n=gn(wn,e.__scopeTooltip),r=fn(wn,e.__scopeTooltip),i=z.useRef(null),a=b(t,i),[o,s]=z.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=z.useCallback(()=>{s(null),d(!1)},[d]),p=z.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Pn(r,Nn(r,n.getBoundingClientRect())),a=Fn(t.getBoundingClientRect());s(Ln([...i,...a])),d(!0)},[d]);return z.useEffect(()=>()=>f(),[f]),z.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),z.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!In(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,V.jsx)(An,{...e,ref:a})}),[Dn,On]=an(mn,{isInside:!1}),kn=Ht(`TooltipContent`),An=z.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=gn(wn,n),l=sn(n),{onClose:u}=c;return z.useEffect(()=>(document.addEventListener(un,u),()=>document.removeEventListener(un,u)),[u]),z.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,V.jsx)(O,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,V.jsxs)(Lt,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,V.jsx)(kn,{children:r}),(0,V.jsx)(Dn,{scope:n,isInside:!0,children:(0,V.jsx)(rn,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Tn.displayName=wn;var jn=`TooltipArrow`,Mn=z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=sn(n);return On(jn,n).isInside?null:(0,V.jsx)(Rt,{...i,...r,ref:t})});Mn.displayName=jn;function Nn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Pn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Fn(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function In(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Ln(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),Rn(t)}function Rn(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var zn=pn,Bn=_n,Vn=yn,Hn=Cn,Un=Tn,Wn=Mn;function Gn(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,V.jsx)(zn,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function Kn(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Bn,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function qn(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Vn,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Jn(e){let t=(0,R.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?4:a,s;t[5]===r?s=t[6]:(s=I(`bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Wn,{className:`bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,V.jsx)(Hn,{children:(0,V.jsxs)(Un,{"data-slot":`tooltip-content`,sideOffset:o,className:s,...i,children:[n,c]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Yn(e){let t={},n={background:`background`,foreground:`foreground`,card:`card`,"card-foreground":`card-foreground`,popover:`popover`,"popover-foreground":`popover-foreground`,primary:`primary`,"primary-foreground":`primary-foreground`,secondary:`secondary`,"secondary-foreground":`secondary-foreground`,muted:`muted`,"muted-foreground":`muted-foreground`,accent:`accent`,"accent-foreground":`accent-foreground`,destructive:`destructive`,"destructive-foreground":`destructive-foreground`,border:`border`,input:`input`,ring:`ring`,"chart-1":`chart-1`,"chart-2":`chart-2`,"chart-3":`chart-3`,"chart-4":`chart-4`,"chart-5":`chart-5`,sidebar:`sidebar`,"sidebar-foreground":`sidebar-foreground`,"sidebar-primary":`sidebar-primary`,"sidebar-primary-foreground":`sidebar-primary-foreground`,"sidebar-accent":`sidebar-accent`,"sidebar-accent-foreground":`sidebar-accent-foreground`,"sidebar-border":`sidebar-border`,"sidebar-ring":`sidebar-ring`};for(let[r,i]of Object.entries(e)){let e=r.startsWith(`--`)?r:`--${r}`;t[e]=i;let a=e.slice(2);n[a]&&(t[`--color-${n[a]}`]=i)}return t}var Xn=`color-theme`,Zn=null,Qn=[],$n=new Set;function er(){if(typeof window>`u`)return null;try{let e=localStorage.getItem(Xn);return e?JSON.parse(e):null}catch{return null}}function tr(){if(typeof window>`u`)return`light`;let e=localStorage.getItem(`appearance`);return e===`dark`?`dark`:e===`light`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function nr(){Qn.forEach(e=>{document.documentElement.style.removeProperty(e)}),Qn=[]}function rr(e,t){nr();let n=Yn({...e.varsTheme??{},...t===`dark`?e.varsDark??{}:e.varsLight??{}});Qn=Object.keys(n),Object.entries(n).forEach(([e,t])=>{document.documentElement.style.setProperty(e,t)})}function ir(){$n.forEach(e=>e())}function ar(e){return $n.add(e),()=>$n.delete(e)}function or(){return Zn}function sr(){return null}function cr(){if(typeof window>`u`)return;let e=er();e&&(Zn=e.name,rr(e,tr()))}function lr(e){let t={name:e.name,varsLight:e.cssVars?.light??e.vars_light??{},varsDark:e.cssVars?.dark??e.vars_dark??{},varsTheme:e.cssVars?.theme??e.vars_theme??{}};Zn=e.name,localStorage.setItem(Xn,JSON.stringify(t)),rr(t,tr()),ir()}function ur(){Zn=null,localStorage.removeItem(Xn),nr(),ir()}function dr(){let e=(0,R.c)(7),t=(0,z.useSyncExternalStore)(ar,or,sr),{resolvedAppearance:n}=f(),r,i;e[0]!==n||e[1]!==t?(r=()=>{let e=er();e&&e.name===t&&rr(e,n)},i=[n,t],e[0]=n,e[1]=t,e[2]=r,e[3]=i):(r=e[2],i=e[3]),(0,z.useEffect)(r,i);let a=t!==null,o;return e[4]!==a||e[5]!==t?(o={themeName:t,setColorTheme:lr,clearColorTheme:ur,isThemeActive:a},e[4]=a,e[5]=t,e[6]=o):o=e[6],o}var fr=L(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),pr=L(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),mr=L(`ChevronsUpDown`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),hr=L(`FolderGit2`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`path`,{d:`M18 19c-2.8 0-5-2.2-5-5v8`,key:`pkpw2h`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),gr=L(`LayoutGrid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),_r=L(`LogOut`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),vr=L(`PanelLeftClose`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),yr=L(`PanelLeftOpen`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),br=L(`Settings`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);function xr(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=I(`border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,V.jsx)(`input`,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Sr=`Separator`,Cr=`horizontal`,wr=[`horizontal`,`vertical`],Tr=z.forwardRef((e,t)=>{let{decorative:n,orientation:r=Cr,...i}=e,a=Er(r)?r:Cr,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,V.jsx)(me.div,{"data-orientation":a,...o,...i,ref:t})});Tr.displayName=Sr;function Er(e){return wr.includes(e)}var Dr=Tr;function Or(e){let t=(0,R.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,orientation:i,decorative:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`horizontal`:i,s=a===void 0?!0:a,c;t[5]===n?c=t[6]:(c=I(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,n),t[5]=n,t[6]=c);let l;return t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==c?(l=(0,V.jsx)(Dr,{"data-slot":`separator-root`,decorative:s,orientation:o,className:c,...r}),t[7]=s,t[8]=o,t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function kr(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Ar(i,...t)]}function Ar(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function jr(e){let t=Mr(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Pr);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Mr(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Ir(n),i=Fr(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nr=Symbol(`radix.slottable`);function Pr(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Nr}function Fr(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ir(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Lr(e){let t=e+`CollectionProvider`,[n,r]=kr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=z.useRef(null),a=z.useRef(new Map).current;return(0,V.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=jr(s),l=z.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,V.jsx)(c,{ref:b(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=jr(u),p=z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=z.useRef(null),s=b(t,o),c=a(u,n);return z.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,V.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Rr=z.createContext(void 0);function zr(e){let t=z.useContext(Rr);return e||t||`ltr`}var Br=e((e=>{var t=s();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return o(function(){s.value=n,s.getSnapshot=t,u(s)&&l({inst:s})},[e,n,t]),a(function(){return u(s)&&l({inst:s}),e(function(){u(s)&&l({inst:s})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Vr=e(((e,t)=>{t.exports=Br()})),Hr=Vr();function Ur(){return(0,Hr.useSyncExternalStore)(Wr,()=>!0,()=>!1)}function Wr(){return()=>{}}function Gr(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Kr(i,...t)]}function Kr(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function qr(e){let t=Jr(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Xr);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Jr(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Qr(n),i=Zr(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yr=Symbol(`radix.slottable`);function Xr(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Yr}function Zr(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Qr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $r=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=qr(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ei(e,t){e&&he.flushSync(()=>e.dispatchEvent(t))}function ti(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,ni(i,...t)]}function ni(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ri(e){let t=ii(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(oi);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ii(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=ci(n),i=si(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ai=Symbol(`radix.slottable`);function oi(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ai}function si(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ci(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var li=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ri(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ui=`rovingFocusGroup.onEntryFocus`,di={bubbles:!1,cancelable:!0},fi=`RovingFocusGroup`,[pi,mi,hi]=Lr(fi),[gi,_i]=ti(fi,[hi]),[vi,yi]=gi(fi),bi=z.forwardRef((e,t)=>(0,V.jsx)(pi.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(pi.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(xi,{...e,ref:t})})}));bi.displayName=fi;var xi=z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=z.useRef(null),p=b(t,f),h=zr(a),[g,v]=_({prop:o,defaultProp:s??null,onChange:c,caller:fi}),[y,x]=z.useState(!1),S=C(l),w=mi(n),T=z.useRef(!1),[E,D]=z.useState(0);return z.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(ui,S),()=>e.removeEventListener(ui,S)},[S]),(0,V.jsx)(vi,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:z.useCallback(e=>v(e),[v]),onItemShiftTab:z.useCallback(()=>x(!0),[]),onFocusableItemAdd:z.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:z.useCallback(()=>D(e=>e-1),[]),children:(0,V.jsx)(li.div,{tabIndex:y||E===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:m(e.onMouseDown,()=>{T.current=!0}),onFocus:m(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(ui,di);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);Di([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),u)}}T.current=!1}),onBlur:m(e.onBlur,()=>x(!1))})})}),Si=`RovingFocusGroupItem`,Ci=z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=k(),l=a||c,u=yi(Si,n),d=u.currentTabStopId===l,f=mi(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=u;return z.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),(0,V.jsx)(pi.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,V.jsx)(li.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:m(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:m(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:m(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Ei(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Oi(n,r+1):n.slice(r+1)}setTimeout(()=>Di(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:g!=null}):o})})});Ci.displayName=Si;var wi={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Ti(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ei(e,t,n){let r=Ti(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return wi[r]}function Di(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Oi(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ki=bi,Ai=Ci,ji=[`Enter`,` `],Mi=[`ArrowDown`,`PageUp`,`Home`],Ni=[`ArrowUp`,`PageDown`,`End`],Pi=[...Mi,...Ni],Fi={ltr:[...ji,`ArrowRight`],rtl:[...ji,`ArrowLeft`]},Ii={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Li=`Menu`,[Ri,zi,Bi]=Lr(Li),[Vi,Hi]=Gr(Li,[Bi,yt,_i]),Ui=yt(),Wi=_i(),[Gi,Ki]=Vi(Li),[qi,Ji]=Vi(Li),Yi=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ui(t),[c,l]=z.useState(null),u=z.useRef(!1),d=C(a),f=zr(i);return z.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,V.jsx)(Ft,{...s,children:(0,V.jsx)(Gi,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,V.jsx)(qi,{scope:t,onClose:z.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Yi.displayName=Li;var Xi=`MenuAnchor`,Zi=z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ui(n);return(0,V.jsx)(It,{...i,...r,ref:t})});Zi.displayName=Xi;var Qi=`MenuPortal`,[$i,ea]=Vi(Qi,{forceMount:void 0}),ta=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Ki(Qi,t);return(0,V.jsx)($i,{scope:t,forceMount:n,children:(0,V.jsx)(h,{present:n||a.open,children:(0,V.jsx)(j,{asChild:!0,container:i,children:r})})})};ta.displayName=Qi;var H=`MenuContent`,[na,ra]=Vi(H),ia=z.forwardRef((e,t)=>{let n=ea(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ki(H,e.__scopeMenu),o=Ji(H,e.__scopeMenu);return(0,V.jsx)(Ri.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(h,{present:r||a.open,children:(0,V.jsx)(Ri.Slot,{scope:e.__scopeMenu,children:o.modal?(0,V.jsx)(aa,{...i,ref:t}):(0,V.jsx)(oa,{...i,ref:t})})})})}),aa=z.forwardRef((e,t)=>{let n=Ki(H,e.__scopeMenu),r=z.useRef(null),i=b(t,r);return z.useEffect(()=>{let e=r.current;if(e)return ee(e)},[]),(0,V.jsx)(ca,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:m(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),oa=z.forwardRef((e,t)=>{let n=Ki(H,e.__scopeMenu);return(0,V.jsx)(ca,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),sa=qr(`MenuContent.ScrollLock`),ca=z.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,_=Ki(H,n),v=Ji(H,n),y=Ui(n),x=Wi(n),S=zi(n),[C,w]=z.useState(null),T=z.useRef(null),k=b(t,T,_.onContentChange),A=z.useRef(0),ee=z.useRef(``),j=z.useRef(0),M=z.useRef(null),te=z.useRef(`right`),N=z.useRef(0),P=h?re:z.Fragment,F=h?{as:sa,allowPinchZoom:!0}:void 0,ne=e=>{let t=ee.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ka(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(A.current),t!==``&&(A.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};z.useEffect(()=>()=>window.clearTimeout(A.current),[]),E();let ie=z.useCallback(e=>te.current===M.current?.side&&Ja(e,M.current?.area),[]);return(0,V.jsx)(na,{scope:n,searchRef:ee,onItemEnter:z.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),onItemLeave:z.useCallback(e=>{ie(e)||(T.current?.focus(),w(null))},[ie]),onTriggerLeave:z.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),pointerGraceTimerRef:j,onPointerGraceIntentChange:z.useCallback(e=>{M.current=e},[]),children:(0,V.jsx)(P,{...F,children:(0,V.jsx)(D,{asChild:!0,trapped:i,onMountAutoFocus:m(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,V.jsx)(O,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,V.jsx)(ki,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:m(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,V.jsx)(Lt,{role:`menu`,"aria-orientation":`vertical`,"data-state":Va(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:k,style:{outline:`none`,...g.style},onKeyDown:m(g.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ne(e.key));let i=T.current;if(e.target!==i||!Pi.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);Ni.includes(e.key)&&a.reverse(),Wa(a)}),onBlur:m(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),ee.current=``)}),onPointerMove:m(e.onPointerMove,Ya(e=>{let t=e.target,n=N.current!==e.clientX;e.currentTarget.contains(t)&&n&&(te.current=e.clientX>N.current?`right`:`left`,N.current=e.clientX)}))})})})})})})});ia.displayName=H;var la=`MenuGroup`,ua=z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)($r.div,{role:`group`,...r,ref:t})});ua.displayName=la;var da=`MenuLabel`,fa=z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)($r.div,{...r,ref:t})});fa.displayName=da;var pa=`MenuItem`,ma=`menu.itemSelect`,ha=z.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=z.useRef(null),o=Ji(pa,e.__scopeMenu),s=ra(pa,e.__scopeMenu),c=b(t,a),l=z.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ma,{bubbles:!0,cancelable:!0});e.addEventListener(ma,e=>r?.(e),{once:!0}),ei(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,V.jsx)(ga,{...i,ref:c,disabled:n,onClick:m(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:m(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:m(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||ji.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ha.displayName=pa;var ga=z.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=ra(pa,n),s=Wi(n),c=z.useRef(null),l=b(t,c),[u,d]=z.useState(!1),[f,p]=z.useState(``);return z.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,V.jsx)(Ri.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,V.jsx)(Ai,{asChild:!0,...s,focusable:!r,children:(0,V.jsx)($r.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:m(e.onPointerMove,Ya(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:m(e.onPointerLeave,Ya(e=>o.onItemLeave(e))),onFocus:m(e.onFocus,()=>d(!0)),onBlur:m(e.onBlur,()=>d(!1))})})})}),_a=`MenuCheckboxItem`,va=z.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,V.jsx)(Ea,{scope:e.__scopeMenu,checked:n,children:(0,V.jsx)(ha,{role:`menuitemcheckbox`,"aria-checked":Ha(n)?`mixed`:n,...i,ref:t,"data-state":Ua(n),onSelect:m(i.onSelect,()=>r?.(Ha(n)?!0:!n),{checkForDefaultPrevented:!1})})})});va.displayName=_a;var ya=`MenuRadioGroup`,[ba,xa]=Vi(ya,{value:void 0,onValueChange:()=>{}}),Sa=z.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=C(r);return(0,V.jsx)(ba,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,V.jsx)(ua,{...i,ref:t})})});Sa.displayName=ya;var Ca=`MenuRadioItem`,wa=z.forwardRef((e,t)=>{let{value:n,...r}=e,i=xa(Ca,e.__scopeMenu),a=n===i.value;return(0,V.jsx)(Ea,{scope:e.__scopeMenu,checked:a,children:(0,V.jsx)(ha,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Ua(a),onSelect:m(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});wa.displayName=Ca;var Ta=`MenuItemIndicator`,[Ea,Da]=Vi(Ta,{checked:!1}),Oa=z.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Da(Ta,n);return(0,V.jsx)(h,{present:r||Ha(a.checked)||a.checked===!0,children:(0,V.jsx)($r.span,{...i,ref:t,"data-state":Ua(a.checked)})})});Oa.displayName=Ta;var ka=`MenuSeparator`,Aa=z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,V.jsx)($r.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Aa.displayName=ka;var ja=`MenuArrow`,Ma=z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ui(n);return(0,V.jsx)(Rt,{...i,...r,ref:t})});Ma.displayName=ja;var Na=`MenuSub`,[Pa,Fa]=Vi(Na),Ia=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Ki(Na,t),o=Ui(t),[s,c]=z.useState(null),[l,u]=z.useState(null),d=C(i);return z.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,V.jsx)(Ft,{...o,children:(0,V.jsx)(Gi,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,V.jsx)(Pa,{scope:t,contentId:k(),triggerId:k(),trigger:s,onTriggerChange:c,children:n})})})};Ia.displayName=Na;var La=`MenuSubTrigger`,Ra=z.forwardRef((e,t)=>{let n=Ki(La,e.__scopeMenu),r=Ji(La,e.__scopeMenu),i=Fa(La,e.__scopeMenu),a=ra(La,e.__scopeMenu),o=z.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=z.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return z.useEffect(()=>u,[u]),z.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,V.jsx)(Zi,{asChild:!0,...l,children:(0,V.jsx)(ga,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Va(n.open),...e,ref:v(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:m(e.onPointerMove,Ya(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:m(e.onPointerLeave,Ya(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:m(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Fi[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ra.displayName=La;var za=`MenuSubContent`,Ba=z.forwardRef((e,t)=>{let n=ea(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ki(H,e.__scopeMenu),o=Ji(H,e.__scopeMenu),s=Fa(za,e.__scopeMenu),c=z.useRef(null),l=b(t,c);return(0,V.jsx)(Ri.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(h,{present:r||a.open,children:(0,V.jsx)(Ri.Slot,{scope:e.__scopeMenu,children:(0,V.jsx)(ca,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:m(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:m(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:m(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ii[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Ba.displayName=za;function Va(e){return e?`open`:`closed`}function Ha(e){return e===`indeterminate`}function Ua(e){return Ha(e)?`indeterminate`:e?`checked`:`unchecked`}function Wa(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ga(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ka(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ga(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function qa(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Ja(e,t){return t?qa({x:e.clientX,y:e.clientY},t):!1}function Ya(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Xa=Yi,Za=Zi,Qa=ta,$a=ia,eo=ua,to=fa,no=ha,ro=va,io=Sa,ao=wa,oo=Oa,so=Aa,co=Ma,lo=Ra,uo=Ba;function fo(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,po(i,...t)]}function po(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function mo(e){let t=ho(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(_o);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ho(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=yo(n),i=vo(r,n.props);return n.type!==z.Fragment&&(i.ref=t?v(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var go=Symbol(`radix.slottable`);function _o(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===go}function vo(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function yo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bo=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=mo(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xo=`DropdownMenu`,[So,Co]=fo(xo,[Hi]),U=Hi(),[wo,To]=So(xo),Eo=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=U(t),l=z.useRef(null),[u,d]=_({prop:i,defaultProp:a??!1,onChange:o,caller:xo});return(0,V.jsx)(wo,{scope:t,triggerId:k(),triggerRef:l,contentId:k(),open:u,onOpenChange:d,onOpenToggle:z.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,V.jsx)(Xa,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Eo.displayName=xo;var Do=`DropdownMenuTrigger`,Oo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=To(Do,n),o=U(n);return(0,V.jsx)(Za,{asChild:!0,...o,children:(0,V.jsx)(bo.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:v(t,a.triggerRef),onPointerDown:m(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:m(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Oo.displayName=Do;var ko=`DropdownMenuPortal`,Ao=e=>{let{__scopeDropdownMenu:t,...n}=e,r=U(t);return(0,V.jsx)(Qa,{...r,...n})};Ao.displayName=ko;var jo=`DropdownMenuContent`,Mo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=To(jo,n),a=U(n),o=z.useRef(!1);return(0,V.jsx)($a,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:m(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:m(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Mo.displayName=jo;var No=`DropdownMenuGroup`,Po=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(eo,{...i,...r,ref:t})});Po.displayName=No;var Fo=`DropdownMenuLabel`,Io=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(to,{...i,...r,ref:t})});Io.displayName=Fo;var Lo=`DropdownMenuItem`,Ro=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(no,{...i,...r,ref:t})});Ro.displayName=Lo;var zo=`DropdownMenuCheckboxItem`,Bo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(ro,{...i,...r,ref:t})});Bo.displayName=zo;var Vo=`DropdownMenuRadioGroup`,Ho=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(io,{...i,...r,ref:t})});Ho.displayName=Vo;var Uo=`DropdownMenuRadioItem`,Wo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(ao,{...i,...r,ref:t})});Wo.displayName=Uo;var Go=`DropdownMenuItemIndicator`,Ko=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(oo,{...i,...r,ref:t})});Ko.displayName=Go;var qo=`DropdownMenuSeparator`,Jo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(so,{...i,...r,ref:t})});Jo.displayName=qo;var Yo=`DropdownMenuArrow`,Xo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(co,{...i,...r,ref:t})});Xo.displayName=Yo;var Zo=`DropdownMenuSubTrigger`,Qo=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(lo,{...i,...r,ref:t})});Qo.displayName=Zo;var $o=`DropdownMenuSubContent`,es=z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=U(n);return(0,V.jsx)(uo,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});es.displayName=$o;var ts=Eo,ns=Oo,rs=Ao,is=Mo,as=Po,os=Io,ss=Ro,cs=Jo;function ls(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(te,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function us(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(T,{"data-slot":`sheet-trigger`,...n}),t[2]=n,t[3]=r),r}function ds(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(w,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function fs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(A,{"data-slot":`sheet-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ps(e){let t=(0,R.c)(20),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(fs,{}),t[6]=l):l=t[6];let u=s===`right`&&`inset-y-0 right-0 h-full w-4/5 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,d=s===`left`&&`inset-y-0 left-0 h-full w-4/5 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,f=s===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,p=s===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,m;t[7]!==r||t[8]!==u||t[9]!==d||t[10]!==f||t[11]!==p?(m=I(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,u,d,f,p,r),t[7]=r,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;t[13]===c?h=t[14]:(h=c&&(0,V.jsxs)(ne,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,V.jsx)(N,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[13]=c,t[14]=h);let g;return t[15]!==n||t[16]!==i||t[17]!==m||t[18]!==h?(g=(0,V.jsxs)(ds,{children:[l,(0,V.jsxs)(M,{"data-slot":`sheet-content`,className:m,...i,children:[n,h]})]}),t[15]=n,t[16]=i,t[17]=m,t[18]=h,t[19]=g):g=t[19],g}function ms(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex flex-col gap-1.5 p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sheet-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`font-semibold text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(F,{"data-slot":`sheet-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function gs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(P,{"data-slot":`sheet-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var _s=typeof window>`u`?void 0:window.matchMedia(`(max-width: 767px)`);function vs(e){return _s?(_s.addEventListener(`change`,e),()=>{_s.removeEventListener(`change`,e)}):()=>{}}function ys(){return _s?.matches??!1}function bs(){return!1}function xs(){return(0,z.useSyncExternalStore)(vs,ys,bs)}var Ss=`sidebar_state`,Cs=3600*24*7,ws=`16rem`,Ts=`18rem`,Es=`3rem`,Ds=`b`,Os=z.createContext(null);function ks(){let e=z.useContext(Os);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function As(e){let t=(0,R.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=xs(),[d,f]=z.useState(!1),[p,m]=z.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Ss}=${t}; path=/; max-age=${Cs}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Ms):_(js),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===Ds&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),z.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":ws,"--sidebar-width-icon":Es,...s},t[24]=s,t[25]=T);let E=T,D;t[26]===r?D=t[27]:(D=I(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),t[26]=r,t[27]=D);let O;t[28]!==n||t[29]!==a||t[30]!==E||t[31]!==D?(O=(0,V.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:E,className:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=E,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,V.jsx)(Os.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function js(e){return!e}function Ms(e){return!e}function Ns(e){let t=(0,R.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offcanvas`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=ks();if(u===`none`){let e;t[7]===r?e=t[8]:(e=I(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar`,className:e,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsxs)(ms,{className:`sr-only`,children:[(0,V.jsx)(hs,{children:`Sidebar`}),(0,V.jsx)(gs,{children:`Displays the mobile sidebar.`})]}),t[13]=e):e=t[13];let r;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(r={"--sidebar-width":Ts},t[14]=r):r=t[14];let a;t[15]===n?a=t[16]:(a=(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=a);let o;t[17]!==c||t[18]!==a?(o=(0,V.jsx)(ps,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:r,side:c,children:a}),t[17]=c,t[18]=a,t[19]=o):o=t[19];let s;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==o?(s=(0,V.jsxs)(ls,{open:p,onOpenChange:m,...i,children:[e,o]}),t[20]=p,t[21]=i,t[22]=m,t[23]=o,t[24]=s):s=t[24],s}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=I(`relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,V.jsx)(`div`,{className:_}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=I(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,V.jsx)(`div`,{"data-sidebar":`sidebar`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,V.jsx)(`div`,{className:x,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,V.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":f,"data-collapsible":h,"data-variant":l,"data-side":c,"data-slot":`sidebar`,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function Ps(e){let t=(0,R.c)(18),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a,isMobile:o,state:s}=ks(),c;t[4]===n?c=t[5]:(c=I(`h-7 w-7`,n),t[4]=n,t[5]=c);let l;t[6]!==r||t[7]!==a?(l=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=l):l=t[8];let u;t[9]!==o||t[10]!==s?(u=o||s===`collapsed`?(0,V.jsx)(yr,{}):(0,V.jsx)(vr,{}),t[9]=o,t[10]=s,t[11]=u):u=t[11];let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle sidebar`}),t[12]=d):d=t[12];let f;return t[13]!==i||t[14]!==c||t[15]!==l||t[16]!==u?(f=(0,V.jsxs)(S,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:c,onClick:l,...i,children:[u,d]}),t[13]=i,t[14]=c,t[15]=l,t[16]=u,t[17]=f):f=t[17],f}function Fs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`bg-background relative flex max-w-full min-h-svh flex-1 flex-col`,`peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`main`,{"data-slot":`sidebar-inset`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Is(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ls(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`relative flex w-full min-w-0 flex-col p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bs(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,asChild:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i!==void 0&&i?x:`div`,o;t[4]===n?o=t[5]:(o=I(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,V.jsx)(a,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function Vs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`w-full text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hs(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`flex w-full min-w-0 flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Us(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ws=y(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Gs(e){let t=(0,R.c)(28),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({asChild:i,isActive:a,variant:o,size:s,tooltip:c,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=i===void 0?!1:i,u=a===void 0?!1:a,d=o===void 0?`default`:o,f=s===void 0?`default`:s,p=l?x:`button`,{isMobile:m,state:h}=ks(),g;t[8]!==n||t[9]!==f||t[10]!==d?(g=I(Ws({variant:d,size:f}),n),t[8]=n,t[9]=f,t[10]=d,t[11]=g):g=t[11];let _;t[12]!==p||t[13]!==u||t[14]!==r||t[15]!==f||t[16]!==g?(_=(0,V.jsx)(p,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":f,"data-active":u,className:g,...r}),t[12]=p,t[13]=u,t[14]=r,t[15]=f,t[16]=g,t[17]=_):_=t[17];let v=_;if(!c)return v;if(typeof c==`string`){let e;t[18]===c?e=t[19]:(e={children:c},t[18]=c,t[19]=e),c=e}let y;t[20]===v?y=t[21]:(y=(0,V.jsx)(qn,{asChild:!0,children:v}),t[20]=v,t[21]=y);let b=h!==`collapsed`||m,S;t[22]!==b||t[23]!==c?(S=(0,V.jsx)(Jn,{side:`right`,align:`center`,hidden:b,...c}),t[22]=b,t[23]=c,t[24]=S):S=t[24];let C;return t[25]!==y||t[26]!==S?(C=(0,V.jsxs)(Kn,{children:[y,S]}),t[25]=y,t[26]=S,t[27]=C):C=t[27],C}function Ks(e){let t=(0,R.c)(10),n,r,i;if(t[0]===e?(n=t[1],r=t[2],i=t[3]):({variant:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i),(i===void 0?`sidebar`:i)===`sidebar`){let e;return t[4]!==n||t[5]!==r?(e=(0,V.jsx)(Fs,{...r,children:n}),t[4]=n,t[5]=r,t[6]=e):e=t[6],e}let a;return t[7]!==n||t[8]!==r?(a=(0,V.jsx)(`main`,{className:`mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl`,...r,children:n}),t[7]=n,t[8]=r,t[9]=a):a=t[9],a}function qs(e){let t=(0,R.c)(5),{children:r,variant:i}=e,a=i===void 0?`sidebar`:i,o=n().props.sidebarOpen;if(a===`header`){let e;return t[0]===r?e=t[1]:(e=(0,V.jsx)(`div`,{className:`flex min-h-screen w-full flex-col`,children:r}),t[0]=r,t[1]=e),e}let s;return t[2]!==r||t[3]!==o?(s=(0,V.jsx)(As,{defaultOpen:o,children:r}),t[2]=r,t[3]=o,t[4]=s):s=t[4],s}function Js(e){let t=(0,R.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.2 5.63325L8.6 0.855469L0 5.63325V32.1434L16.2 41.1434L32.4 32.1434V23.699L40 19.4767V9.85547L31.4 5.07769L22.8 9.85547V18.2999L17.2 21.411V5.63325ZM38 18.2999L32.4 21.411V15.2545L38 12.1434V18.2999ZM36.9409 10.4439L31.4 13.5221L25.8591 10.4439L31.4 7.36561L36.9409 10.4439ZM24.8 18.2999V12.1434L30.4 15.2545V21.411L24.8 18.2999ZM23.8 20.0323L29.3409 23.1105L16.2 30.411L10.6591 27.3328L23.8 20.0323ZM7.6 27.9212L15.2 32.1434V38.2999L2 30.9666V7.92116L7.6 11.0323V27.9212ZM8.6 9.29991L3.05913 6.22165L8.6 3.14339L14.1409 6.22165L8.6 9.29991ZM30.4 24.8101L17.2 32.1434V38.2999L30.4 30.9666V24.8101ZM9.6 11.0323L15.2 7.92117V22.5221L9.6 25.6333V11.0323Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,V.jsx)(`svg`,{...e,viewBox:`0 0 40 42`,xmlns:`http://www.w3.org/2000/svg`,children:n}),t[1]=e,t[2]=r),r}function Ys(){let e=(0,R.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground`,children:(0,V.jsx)(Js,{className:`size-5 fill-current text-white dark:text-black`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(V.Fragment,{children:[t,(0,V.jsx)(`div`,{className:`ml-1 grid flex-1 text-left text-sm`,children:(0,V.jsx)(`span`,{className:`mb-0.5 truncate leading-tight font-semibold`,children:`Laravel Starter Kit`})})]}),e[1]=n):n=e[1],n}function Xs(e){let t=(0,R.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({items:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=`group-data-[collapsible=icon]:p-0 ${n||``}`,o;t[4]===r?o=t[5]:(o=r.map(Zs),t[4]=r,t[5]=o);let s;t[6]===o?s=t[7]:(s=(0,V.jsx)(Vs,{children:(0,V.jsx)(Hs,{children:o})}),t[6]=o,t[7]=s);let c;return t[8]!==i||t[9]!==a||t[10]!==s?(c=(0,V.jsx)(zs,{...i,className:a,children:s}),t[8]=i,t[9]=a,t[10]=s,t[11]=c):c=t[11],c}function Zs(e){return(0,V.jsx)(Us,{children:(0,V.jsx)(Gs,{asChild:!0,className:`text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100`,children:(0,V.jsxs)(`a`,{href:pe(e.href),target:`_blank`,rel:`noopener noreferrer`,children:[e.icon&&(0,V.jsx)(e.icon,{className:`h-5 w-5`}),(0,V.jsx)(`span`,{children:e.title})]})})},e.title)}function Qs(){let e=(0,R.c)(13),t=n(),r;e[0]===t.url?r=e[1]:(r=new URL(t.url,typeof window<`u`?window.location.origin:`http://localhost`),e[0]=t.url,e[1]=r);let i=r.pathname,a;e[2]===i?a=e[3]:(a=(e,t,n)=>{let r=n===void 0?!1:n,a=t??i,o=pe(e),s=e=>r?a.startsWith(e):e===a;if(!o.startsWith(`http`))return s(o);try{return s(new URL(o).pathname)}catch{return!1}},e[2]=i,e[3]=a);let o=a,s;e[4]===o?s=e[5]:(s=(e,t)=>o(e,t,!0),e[4]=o,e[5]=s);let c=s,l;e[6]===o?l=e[7]:(l=(e,t,n)=>{let r=n===void 0?null:n;return o(e)?t:r},e[6]=o,e[7]=l);let u=l,d;return e[8]!==i||e[9]!==c||e[10]!==o||e[11]!==u?(d={currentUrl:i,isCurrentUrl:o,isCurrentOrParentUrl:c,whenCurrentUrl:u},e[8]=i,e[9]=c,e[10]=o,e[11]=u,e[12]=d):d=e[12],d}function $s(e){let n=(0,R.c)(10),{items:r}=e,i;n[0]===r?i=n[1]:(i=r===void 0?[]:r,n[0]=r,n[1]=i);let a=i,{isCurrentUrl:o}=Qs(),s;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(Bs,{children:`Platform`}),n[2]=s):s=n[2];let c;if(n[3]!==o||n[4]!==a){let e;n[6]===o?e=n[7]:(e=e=>(0,V.jsx)(Us,{children:(0,V.jsx)(Gs,{asChild:!0,isActive:o(e.href),tooltip:{children:e.title},children:(0,V.jsxs)(t,{href:e.href,prefetch:!0,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title})]})})},e.title),n[6]=o,n[7]=e),c=a.map(e),n[3]=o,n[4]=a,n[5]=c}else c=n[5];let l;return n[8]===c?l=n[9]:(l=(0,V.jsxs)(zs,{className:`px-2 py-0`,children:[s,(0,V.jsx)(Hs,{children:c})]}),n[8]=c,n[9]=l),l}function ec(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(ts,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function tc(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(ns,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function nc(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,sideOffset:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?4:i,o;t[4]===n?o=t[5]:(o=I(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,V.jsx)(rs,{children:(0,V.jsx)(is,{"data-slot":`dropdown-menu-content`,sideOffset:a,className:o,...r})}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function rc(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(as,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function ic(e){let t=(0,R.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=I(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,V.jsx)(ss,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function ac(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=I(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,V.jsx)(os,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function oc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`bg-border -mx-1 my-1 h-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(cs,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function sc(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,cc(i,...t)]}function cc(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var lc=`Avatar`,[uc,dc]=sc(lc),[fc,pc]=uc(lc),mc=z.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=z.useState(`idle`);return(0,V.jsx)(fc,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,V.jsx)(me.span,{...r,ref:t})})});mc.displayName=lc;var hc=`AvatarImage`,gc=z.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=pc(hc,n),s=bc(r,a),c=C(e=>{i(e),o.onImageLoadingStatusChange(e)});return g(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,V.jsx)(me.img,{...a,ref:t,src:r}):null});gc.displayName=hc;var _c=`AvatarFallback`,vc=z.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=pc(_c,n),[o,s]=z.useState(r===void 0);return z.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,V.jsx)(me.span,{...i,ref:t}):null});vc.displayName=_c;function yc(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function bc(e,{referrerPolicy:t,crossOrigin:n}){let r=Ur(),i=z.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=z.useState(()=>yc(a,e));return g(()=>{s(yc(a,e))},[a,e]),g(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var xc=mc,Sc=gc,Cc=vc;function wc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(xc,{"data-slot":`avatar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Tc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`aspect-square size-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(Sc,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ec(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`bg-muted flex size-full items-center justify-center rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(Cc,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Dc(){return Oc}function Oc(e){let t=e.trim().split(` `);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`.toUpperCase()}function kc(e){let t=(0,R.c)(22),{user:n,showEmail:r}=e,i=r===void 0?!1:r,a=Dc(),o;t[0]!==n.avatar||t[1]!==n.name?(o=(0,V.jsx)(Tc,{src:n.avatar,alt:n.name}),t[0]=n.avatar,t[1]=n.name,t[2]=o):o=t[2];let s;t[3]!==a||t[4]!==n.name?(s=a(n.name),t[3]=a,t[4]=n.name,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,V.jsx)(Ec,{className:`rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white`,children:s}),t[6]=s,t[7]=c);let l;t[8]!==o||t[9]!==c?(l=(0,V.jsxs)(wc,{className:`h-8 w-8 overflow-hidden rounded-full`,children:[o,c]}),t[8]=o,t[9]=c,t[10]=l):l=t[10];let u;t[11]===n.name?u=t[12]:(u=(0,V.jsx)(`span`,{className:`truncate font-medium`,children:n.name}),t[11]=n.name,t[12]=u);let d;t[13]!==i||t[14]!==n.email?(d=i&&(0,V.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n.email}),t[13]=i,t[14]=n.email,t[15]=d):d=t[15];let f;t[16]!==u||t[17]!==d?(f=(0,V.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[u,d]}),t[16]=u,t[17]=d,t[18]=f):f=t[18];let p;return t[19]!==l||t[20]!==f?(p=(0,V.jsxs)(V.Fragment,{children:[l,f]}),t[19]=l,t[20]=f,t[21]=p):p=t[21],p}function Ac(){return jc}function jc(){document.body.style.removeProperty(`pointer-events`)}var W=e=>({url:W.url(e),method:`get`});W.definition={methods:[`get`,`head`],url:`/login`},W.url=e=>W.definition.url+c(e),W.get=e=>({url:W.url(e),method:`get`}),W.head=e=>({url:W.url(e),method:`head`});var Mc=e=>({action:W.url(e),method:`get`});Mc.get=e=>({action:W.url(e),method:`get`}),Mc.head=e=>({action:W.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),W.form=Mc;var G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/logout`},G.url=e=>G.definition.url+c(e),G.post=e=>({url:G.url(e),method:`post`});var Nc=e=>({action:G.url(e),method:`post`});Nc.post=e=>({action:G.url(e),method:`post`}),G.form=Nc;var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/register`},K.url=e=>K.definition.url+c(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var Pc=e=>({action:K.url(e),method:`get`});Pc.get=e=>({action:K.url(e),method:`get`}),Pc.head=e=>({action:K.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),K.form=Pc;var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/`},q.url=e=>q.definition.url+c(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var Fc=e=>({action:q.url(e),method:`get`});Fc.get=e=>({action:q.url(e),method:`get`}),Fc.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=Fc;var J=e=>({url:J.url(e),method:`get`});J.definition={methods:[`get`,`head`],url:`/dashboard`},J.url=e=>J.definition.url+c(e),J.get=e=>({url:J.url(e),method:`get`}),J.head=e=>({url:J.url(e),method:`head`});var Ic=e=>({action:J.url(e),method:`get`});Ic.get=e=>({action:J.url(e),method:`get`}),Ic.head=e=>({action:J.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),J.form=Ic;var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/settings/profile`},Y.url=e=>Y.definition.url+c(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var Lc=e=>({action:Y.url(e),method:`get`});Lc.get=e=>({action:Y.url(e),method:`get`}),Lc.head=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Y.form=Lc;var X=e=>({url:X.url(e),method:`patch`});X.definition={methods:[`patch`],url:`/settings/profile`},X.url=e=>X.definition.url+c(e),X.patch=e=>({url:X.url(e),method:`patch`});var Rc=e=>({action:X.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});Rc.patch=e=>({action:X.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),X.form=Rc;var Z=e=>({url:Z.url(e),method:`delete`});Z.definition={methods:[`delete`],url:`/settings/profile`},Z.url=e=>Z.definition.url+c(e),Z.delete=e=>({url:Z.url(e),method:`delete`});var zc=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});zc.delete=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Z.form=zc,Object.assign(Y,Y),Object.assign(X,X),Object.assign(Z,Z);function Bc(e){let n=(0,R.c)(18),{user:r}=e,a=Ac(),o;n[0]===a?o=n[1]:(o=()=>{a(),i.flushAll()},n[0]=a,n[1]=o);let s=o,c;n[2]===r?c=n[3]:(c=(0,V.jsx)(ac,{className:`p-0 font-normal`,children:(0,V.jsx)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:(0,V.jsx)(kc,{user:r,showEmail:!0})})}),n[2]=r,n[3]=c);let l;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(oc,{}),n[4]=l):l=n[4];let u;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=Y(),n[5]=u):u=n[5];let d;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(br,{className:`mr-2`}),n[6]=d):d=n[6];let f;n[7]===a?f=n[8]:(f=(0,V.jsx)(rc,{children:(0,V.jsx)(ic,{asChild:!0,children:(0,V.jsxs)(t,{className:`block w-full cursor-pointer`,href:u,prefetch:!0,onClick:a,children:[d,`Settings`]})})}),n[7]=a,n[8]=f);let p;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,V.jsx)(oc,{}),n[9]=p):p=n[9];let m;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=G(),n[10]=m):m=n[10];let h;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,V.jsx)(_r,{className:`mr-2`}),n[11]=h):h=n[11];let g;n[12]===s?g=n[13]:(g=(0,V.jsx)(ic,{asChild:!0,children:(0,V.jsxs)(t,{className:`block w-full cursor-pointer`,href:m,as:`button`,onClick:s,"data-test":`logout-button`,children:[h,`Log out`]})}),n[12]=s,n[13]=g);let _;return n[14]!==g||n[15]!==c||n[16]!==f?(_=(0,V.jsxs)(V.Fragment,{children:[c,l,f,p,g]}),n[14]=g,n[15]=c,n[16]=f,n[17]=_):_=n[17],_}function Vc(){let e=(0,R.c)(13),{auth:t}=n().props,{state:r}=ks(),i=xs();if(!t.user)return null;let a;e[0]===t.user?a=e[1]:(a=(0,V.jsx)(kc,{user:t.user}),e[0]=t.user,e[1]=a);let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(mr,{className:`ml-auto size-4`}),e[2]=o):o=e[2];let s;e[3]===a?s=e[4]:(s=(0,V.jsx)(tc,{asChild:!0,children:(0,V.jsxs)(Gs,{size:`lg`,className:`group text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent`,"data-test":`sidebar-menu-button`,children:[a,o]})}),e[3]=a,e[4]=s);let c=i?`bottom`:r===`collapsed`?`left`:`bottom`,l;e[5]===t.user?l=e[6]:(l=(0,V.jsx)(Bc,{user:t.user}),e[5]=t.user,e[6]=l);let u;e[7]!==c||e[8]!==l?(u=(0,V.jsx)(nc,{className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,align:`end`,side:c,children:l}),e[7]=c,e[8]=l,e[9]=u):u=e[9];let d;return e[10]!==s||e[11]!==u?(d=(0,V.jsx)(Hs,{children:(0,V.jsx)(Us,{children:(0,V.jsxs)(ec,{children:[s,u]})})}),e[10]=s,e[11]=u,e[12]=d):d=e[12],d}var Hc=[{title:`Dashboard`,href:J(),icon:gr}],Uc=[{title:`Repository`,href:`https://github.com/laravel/react-starter-kit`,icon:hr},{title:`Documentation`,href:`https://laravel.com/docs/starter-kits#react`,icon:fr}];function Wc(){let e=(0,R.c)(4),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=J(),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(Is,{children:(0,V.jsx)(Hs,{children:(0,V.jsx)(Us,{children:(0,V.jsx)(Gs,{size:`lg`,asChild:!0,children:(0,V.jsx)(t,{href:n,prefetch:!0,children:(0,V.jsx)(Ys,{})})})})})}),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(Rs,{children:(0,V.jsx)($s,{items:Hc})}),e[2]=i):i=e[2];let a;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsxs)(Ns,{collapsible:`icon`,variant:`inset`,children:[r,i,(0,V.jsxs)(Ls,{children:[(0,V.jsx)(Xs,{items:Uc,className:`mt-auto`}),(0,V.jsx)(Vc,{})]})]}),e[3]=a):a=e[3],a}function Gc(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...n}),t[2]=n,t[3]=r),r}function Kc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`inline-flex items-center gap-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Jc(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?x:`a`,o;t[4]===r?o=t[5]:(o=I(`hover:text-foreground transition-colors`,r),t[4]=r,t[5]=o);let s;return t[6]!==a||t[7]!==i||t[8]!==o?(s=(0,V.jsx)(a,{"data-slot":`breadcrumb-link`,className:o,...i}),t[6]=a,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function Yc(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=I(`text-foreground font-normal`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Xc(e){let t=(0,R.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=I(`[&>svg]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=n??(0,V.jsx)(pr,{}),t[6]=n,t[7]=o);let s;return t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,V.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:a,...i,children:o}),t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function Zc(e){let n=(0,R.c)(4),{breadcrumbs:r}=e,i;n[0]===r?i=n[1]:(i=r.length>0&&(0,V.jsx)(Gc,{children:(0,V.jsx)(Kc,{children:r.map((e,n)=>{let i=n===r.length-1;return(0,V.jsxs)(z.Fragment,{children:[(0,V.jsx)(qc,{children:i?(0,V.jsx)(Yc,{children:e.title}):(0,V.jsx)(Jc,{asChild:!0,children:(0,V.jsx)(t,{href:e.href,children:e.title})})}),!i&&(0,V.jsx)(Xc,{})]},n)})})}),n[0]=r,n[1]=i);let a;return n[2]===i?a=n[3]:(a=(0,V.jsx)(V.Fragment,{children:i}),n[2]=i,n[3]=a),a}function Qc(e){let t=(0,R.c)(5),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(Ps,{className:`-ml-1`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=(0,V.jsx)(`header`,{className:`flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a,(0,V.jsx)(Zc,{breadcrumbs:i})]})}),t[3]=i,t[4]=o),o}function $c(e){let t=(0,R.c)(8),{children:n,breadcrumbs:r}=e,i;t[0]===r?i=t[1]:(i=r===void 0?[]:r,t[0]=r,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(Wc,{}),t[2]=o):o=t[2];let s;t[3]===a?s=t[4]:(s=(0,V.jsx)(Qc,{breadcrumbs:a}),t[3]=a,t[4]=s);let c;return t[5]!==n||t[6]!==s?(c=(0,V.jsxs)(qs,{variant:`sidebar`,children:[o,(0,V.jsxs)(Ks,{variant:`sidebar`,className:`overflow-x-hidden`,children:[s,n]})]}),t[5]=n,t[6]=s,t[7]=c):c=t[7],c}function el(e){let t=(0,R.c)(5),{breadcrumbs:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n===void 0?[]:n,t[0]=n,t[1]=i);let a=i,o;return t[2]!==a||t[3]!==r?(o=(0,V.jsx)($c,{breadcrumbs:a,children:r}),t[2]=a,t[3]=r,t[4]=o):o=t[4],o}function tl(e){let n=(0,R.c)(17),{children:r,title:i,description:a}=e,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=q(),n[0]=o):o=n[0];let s;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(`div`,{className:`mb-1 flex h-9 w-9 items-center justify-center rounded-md`,children:(0,V.jsx)(Js,{className:`size-9 fill-current text-[var(--foreground)] dark:text-white`})}),n[1]=s):s=n[1];let c;n[2]===i?c=n[3]:(c=(0,V.jsxs)(t,{href:o,className:`flex flex-col items-center gap-2 font-medium`,children:[s,(0,V.jsx)(`span`,{className:`sr-only`,children:i})]}),n[2]=i,n[3]=c);let l;n[4]===i?l=n[5]:(l=(0,V.jsx)(`h1`,{className:`text-xl font-medium`,children:i}),n[4]=i,n[5]=l);let u;n[6]===a?u=n[7]:(u=(0,V.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:a}),n[6]=a,n[7]=u);let d;n[8]!==l||n[9]!==u?(d=(0,V.jsxs)(`div`,{className:`space-y-2 text-center`,children:[l,u]}),n[8]=l,n[9]=u,n[10]=d):d=n[10];let f;n[11]!==c||n[12]!==d?(f=(0,V.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[c,d]}),n[11]=c,n[12]=d,n[13]=f):f=n[13];let p;return n[14]!==r||n[15]!==f?(p=(0,V.jsx)(`div`,{className:`flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10`,children:(0,V.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[f,r]})})}),n[14]=r,n[15]=f,n[16]=p):p=n[16],p}function nl(e){let t=(0,R.c)(4),{title:n,description:r,children:i}=e,a=n===void 0?``:n,o=r===void 0?``:r,s;return t[0]!==i||t[1]!==o||t[2]!==a?(s=(0,V.jsx)(tl,{title:a,description:o,children:i}),t[0]=i,t[1]=o,t[2]=a,t[3]=s):s=t[3],s}function rl(e){let t=(0,R.c)(10),{title:n,description:r,variant:i,as:a}=e,o=i===void 0?`default`:i,s=a===void 0?`h1`:a,c=o===`small`?``:`mb-8 space-y-0.5`,l=o===`small`?`mb-0.5 text-base font-medium`:`text-xl font-semibold tracking-tight`,u;t[0]!==s||t[1]!==l||t[2]!==n?(u=(0,V.jsx)(s,{className:l,children:n}),t[0]=s,t[1]=l,t[2]=n,t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r&&(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r}),t[4]=r,t[5]=d);let f;return t[6]!==c||t[7]!==u||t[8]!==d?(f=(0,V.jsxs)(`header`,{className:c,children:[u,d]}),t[6]=c,t[7]=u,t[8]=d,t[9]=f):f=t[9],f}var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/settings/appearance`},Q.url=e=>Q.definition.url+c(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var il=e=>({action:Q.url(e),method:`get`});il.get=e=>({action:Q.url(e),method:`get`}),il.head=e=>({action:Q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Q.form=il,Object.assign(Q,Q);var $=e=>({url:$.url(e),method:`get`});$.definition={methods:[`get`,`head`],url:`/settings/security`},$.url=e=>$.definition.url+c(e),$.get=e=>({url:$.url(e),method:`get`}),$.head=e=>({url:$.url(e),method:`head`});var al=e=>({action:$.url(e),method:`get`});al.get=e=>({action:$.url(e),method:`get`}),al.head=e=>({action:$.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),$.form=al,Object.assign($,$);var ol=[{title:`Profile`,href:Y(),icon:null},{title:`Security`,href:$(),icon:null},{title:`Appearance`,href:Q(),icon:null}];function sl(e){let n=(0,R.c)(11),{children:r}=e,{isCurrentOrParentUrl:i}=Qs(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(rl,{title:`Settings`,description:`Manage your profile and account settings`}),n[0]=a):a=n[0];let o;n[1]===i?o=n[2]:(o=ol.map((e,n)=>(0,V.jsx)(S,{size:`sm`,variant:`ghost`,asChild:!0,className:I(`w-full justify-start`,{"bg-muted":i(e.href)}),children:(0,V.jsxs)(t,{href:e.href,children:[e.icon&&(0,V.jsx)(e.icon,{className:`h-4 w-4`}),e.title]})},`${pe(e.href)}-${n}`)),n[1]=i,n[2]=o);let s;n[3]===o?s=n[4]:(s=(0,V.jsx)(`aside`,{className:`w-full max-w-xl lg:w-48`,children:(0,V.jsx)(`nav`,{className:`flex flex-col space-y-1 space-x-0`,"aria-label":`Settings`,children:o})}),n[3]=o,n[4]=s);let c;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Or,{className:`my-6 lg:hidden`}),n[5]=c):c=n[5];let l;n[6]===r?l=n[7]:(l=(0,V.jsx)(`div`,{className:`flex-1 md:max-w-2xl`,children:(0,V.jsx)(`section`,{className:`max-w-xl space-y-12`,children:r})}),n[6]=r,n[7]=l);let u;return n[8]!==s||n[9]!==l?(u=(0,V.jsxs)(`div`,{className:`px-4 py-6`,children:[a,(0,V.jsxs)(`div`,{className:`flex flex-col lg:flex-row lg:space-x-12`,children:[s,c,l]})]}),n[8]=s,n[9]=l,n[10]=u):u=n[10],u}var cl=`ui designbycode`;o({resolve:async(e,t)=>{let n=Object.assign({"./pages/animate-css/index.tsx":()=>r(()=>import(`./animate-css-B9qFUvc-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),"./pages/auth/confirm-password.tsx":()=>r(()=>import(`./confirm-password-BMSJcuzI.js`),__vite__mapDeps([18,1,3,4,19,20,21,22,23,24,25])),"./pages/auth/forgot-password.tsx":()=>r(()=>import(`./forgot-password-J1Dj5dCk.js`),__vite__mapDeps([26,1,3,4,19,20,24,22,27,28,25])),"./pages/auth/login.tsx":()=>r(()=>import(`./login-CzdxtsZ7.js`),__vite__mapDeps([29,1,6,3,4,19,20,30,8,31,21,9,22,27,23,24,28,25])),"./pages/auth/register.tsx":()=>r(()=>import(`./register-2UCvBdJw.js`),__vite__mapDeps([32,1,3,4,19,20,31,21,9,22,27,23,24])),"./pages/auth/reset-password.tsx":()=>r(()=>import(`./reset-password-BLtlCvFc.js`),__vite__mapDeps([33,1,3,4,19,20,21,22,23,24,28,25])),"./pages/auth/two-factor-challenge.tsx":()=>r(()=>import(`./two-factor-challenge-Bot9NjM4.js`),__vite__mapDeps([34,1,3,4,35,22])),"./pages/auth/verify-email.tsx":()=>r(()=>import(`./verify-email-BJE_1kxG.js`),__vite__mapDeps([36,1,3,4,27,23,24,37])),"./pages/dashboard.tsx":()=>r(()=>import(`./dashboard-8kvCxfBE.js`),__vite__mapDeps([38,1,11])),"./pages/fonts/index.tsx":()=>r(()=>import(`./fonts-PRPJga5a.js`),__vite__mapDeps([39,1,3,4,7,5,6,8,9,10,11,12,13,14,16])),"./pages/home.tsx":()=>r(()=>import(`./home-CDqIBBMJ.js`),__vite__mapDeps([40,1,3,4,7,5,6,8,9,10,11,12,13,14,41])),"./pages/settings/appearance.tsx":()=>r(()=>import(`./appearance-dLeB5aE7.js`),__vite__mapDeps([42,1,4,10,12])),"./pages/settings/profile.tsx":()=>r(()=>import(`./profile-z87RwChz.js`),__vite__mapDeps([43,1,3,4,19,20,21,22,17,5,6,37])),"./pages/settings/security.tsx":()=>r(()=>import(`./security-CPBDq09s.js`),__vite__mapDeps([44,1,3,4,19,20,35,8,14,21,22,16,17,5,6,23,24,12])),"./pages/themes/index.tsx":()=>r(()=>import(`./themes-pgJyxVED.js`),__vite__mapDeps([45,1,6,3,4,5,30,7,8,9,10,11,12,15,16,41])),"./pages/welcome.tsx":()=>r(()=>import(`./welcome-DahtqzTP.js`),__vite__mapDeps([46,1]))}),i=await(n[`./pages/${e}.tsx`]||n[`./pages/${e}.jsx`]||n[`./Pages/${e}.tsx`]||n[`./Pages/${e}.jsx`])?.();if(!i)throw Error(`Page not found: ${e}`);return i.default??i},title:e=>e?`${e} - ${cl}`:cl,layout:e=>{switch(!0){case e===`welcome`:return null;case e.startsWith(`auth/`):return nl;case e.startsWith(`settings/`):return[el,sl];default:return el}},strictMode:!0,withApp(e){return(0,V.jsxs)(Gn,{delayDuration:0,children:[(0,V.jsx)(`div`,{className:`pt-16`,children:e}),(0,V.jsx)(Je,{})]})},progress:{color:`var(--primary)`}}),p(),cr();export{Ft as A,lr as C,It as D,en as E,gt as M,ke as N,Rt as O,ur as S,Yn as T,Vr as _,J as a,Or as b,G as c,ls as d,ps as f,us as g,hs as h,Y as i,yt as j,Lt as k,K as l,ms as m,Q as n,q as o,gs as p,rl as r,W as s,$ as t,xs as u,zr as v,dr as w,xr as x,Lr as y}; \ No newline at end of file diff --git a/public/build/assets/appearance-dLeB5aE7.js b/public/build/assets/appearance-iJRh14ZS.js similarity index 94% rename from public/build/assets/appearance-dLeB5aE7.js rename to public/build/assets/appearance-iJRh14ZS.js index d70334d..dde6d2b 100644 --- a/public/build/assets/appearance-dLeB5aE7.js +++ b/public/build/assets/appearance-iJRh14ZS.js @@ -1 +1 @@ -import{i as e,o as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./use-appearance-QmpypXC6.js";import{n as i,t as a}from"./createLucideIcon-wUA1TGAT.js";import{n as o,t as s}from"./sun-BUK2gUl5.js";import{n as c,r as l}from"./app-NKzAktB4.js";var u=a(`Monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),d=e(),f=n();function p(e){let t=(0,d.c)(13),n,a;t[0]===e?(n=t[1],a=t[2]):({className:a,...n}=e,t[0]=e,t[1]=n,t[2]=a);let c=a===void 0?``:a,{appearance:l,updateAppearance:p}=r(),m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=[{value:`light`,icon:s,label:`Light`},{value:`dark`,icon:o,label:`Dark`},{value:`system`,icon:u,label:`System`}],t[3]=m):m=t[3];let h=m,g;t[4]===c?g=t[5]:(g=i(`inline-flex gap-1 rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800`,c),t[4]=c,t[5]=g);let _;t[6]!==l||t[7]!==p?(_=h.map(e=>{let{value:t,icon:n,label:r}=e;return(0,f.jsxs)(`button`,{onClick:()=>p(t),className:i(`flex items-center rounded-md px-3.5 py-1.5 transition-colors`,l===t?`bg-white shadow-xs dark:bg-neutral-700 dark:text-neutral-100`:`text-neutral-500 hover:bg-neutral-200/60 hover:text-black dark:text-neutral-400 dark:hover:bg-neutral-700/60`),children:[(0,f.jsx)(n,{className:`-ml-1 h-4 w-4`}),(0,f.jsx)(`span`,{className:`ml-1.5 text-sm`,children:r})]},t)}),t[6]=l,t[7]=p,t[8]=_):_=t[8];let v;return t[9]!==n||t[10]!==g||t[11]!==_?(v=(0,f.jsx)(`div`,{className:g,...n,children:_}),t[9]=n,t[10]=g,t[11]=_,t[12]=v):v=t[12],v}function m(){let e=(0,d.c)(3),n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,f.jsx)(t,{title:`Appearance settings`}),r=(0,f.jsx)(`h1`,{className:`sr-only`,children:`Appearance settings`}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,f.jsxs)(f.Fragment,{children:[n,r,(0,f.jsxs)(`div`,{className:`space-y-6`,children:[(0,f.jsx)(l,{variant:`small`,title:`Appearance settings`,description:`Update your account's appearance settings`}),(0,f.jsx)(p,{})]})]}),e[2]=i):i=e[2],i}m.layout={breadcrumbs:[{title:`Appearance settings`,href:c()}]};export{m as default}; \ No newline at end of file +import{i as e,o as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./use-appearance-QmpypXC6.js";import{n as i,t as a}from"./createLucideIcon-BN-jDSEO.js";import{n as o,t as s}from"./sun-DKOQEsNV.js";import{n as c,r as l}from"./app-0l60ScAC.js";var u=a(`Monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),d=e(),f=n();function p(e){let t=(0,d.c)(13),n,a;t[0]===e?(n=t[1],a=t[2]):({className:a,...n}=e,t[0]=e,t[1]=n,t[2]=a);let c=a===void 0?``:a,{appearance:l,updateAppearance:p}=r(),m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=[{value:`light`,icon:s,label:`Light`},{value:`dark`,icon:o,label:`Dark`},{value:`system`,icon:u,label:`System`}],t[3]=m):m=t[3];let h=m,g;t[4]===c?g=t[5]:(g=i(`inline-flex gap-1 rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800`,c),t[4]=c,t[5]=g);let _;t[6]!==l||t[7]!==p?(_=h.map(e=>{let{value:t,icon:n,label:r}=e;return(0,f.jsxs)(`button`,{onClick:()=>p(t),className:i(`flex items-center rounded-md px-3.5 py-1.5 transition-colors`,l===t?`bg-white shadow-xs dark:bg-neutral-700 dark:text-neutral-100`:`text-neutral-500 hover:bg-neutral-200/60 hover:text-black dark:text-neutral-400 dark:hover:bg-neutral-700/60`),children:[(0,f.jsx)(n,{className:`-ml-1 h-4 w-4`}),(0,f.jsx)(`span`,{className:`ml-1.5 text-sm`,children:r})]},t)}),t[6]=l,t[7]=p,t[8]=_):_=t[8];let v;return t[9]!==n||t[10]!==g||t[11]!==_?(v=(0,f.jsx)(`div`,{className:g,...n,children:_}),t[9]=n,t[10]=g,t[11]=_,t[12]=v):v=t[12],v}function m(){let e=(0,d.c)(3),n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,f.jsx)(t,{title:`Appearance settings`}),r=(0,f.jsx)(`h1`,{className:`sr-only`,children:`Appearance settings`}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,f.jsxs)(f.Fragment,{children:[n,r,(0,f.jsxs)(`div`,{className:`space-y-6`,children:[(0,f.jsx)(l,{variant:`small`,title:`Appearance settings`,description:`Update your account's appearance settings`}),(0,f.jsx)(p,{})]})]}),e[2]=i):i=e[2],i}m.layout={breadcrumbs:[{title:`Appearance settings`,href:c()}]};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/badge-BqJn0VCH.js b/public/build/assets/badge-BqJn0VCH.js new file mode 100644 index 0000000..ca3ae3c --- /dev/null +++ b/public/build/assets/badge-BqJn0VCH.js @@ -0,0 +1 @@ +import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r,r as i}from"./button-CJIRvoa4.js";import{n as a}from"./createLucideIcon-BN-jDSEO.js";var o=e();t();var s=n(),c=r(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function l(e){let t=(0,o.c)(12),n,r,l,u;t[0]===e?(n=t[1],r=t[2],l=t[3],u=t[4]):({className:n,variant:u,asChild:l,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=l,t[4]=u);let d=l!==void 0&&l?i:`span`,f;t[5]!==n||t[6]!==u?(f=a(c({variant:u}),n),t[5]=n,t[6]=u,t[7]=f):f=t[7];let p;return t[8]!==d||t[9]!==r||t[10]!==f?(p=(0,s.jsx)(d,{"data-slot":`badge`,className:f,...r}),t[8]=d,t[9]=r,t[10]=f,t[11]=p):p=t[11],p}export{l as t}; \ No newline at end of file diff --git a/public/build/assets/button-B6E1T0qj.js b/public/build/assets/button-CJIRvoa4.js similarity index 98% rename from public/build/assets/button-B6E1T0qj.js rename to public/build/assets/button-CJIRvoa4.js index 8b37ab6..10ed2b9 100644 --- a/public/build/assets/button-B6E1T0qj.js +++ b/public/build/assets/button-CJIRvoa4.js @@ -1 +1 @@ -import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i,n as a}from"./createLucideIcon-wUA1TGAT.js";var o=e(),s=r(t(),1);function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...i}=e;h(r)&&typeof p==`function`&&(r=p(r._payload));let a=s.Children.toArray(r),o=a.find(b);if(o){let e=o.props.children,r=a.map(t=>t===o?s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var _=g(`Slot`);function v(e){let t=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(h(n)&&typeof p==`function`&&(n=p(n._payload)),s.isValidElement(n)){let e=S(n),i=x(r,n.props);return n.type!==s.Fragment&&(i.ref=t?l(t,e):e),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol(`radix.slottable`);function b(e){return s.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,w=i,T=(e,t)=>n=>{if(t?.variants==null)return w(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=C(t)||C(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return w(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},E=T(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function D(e){let t=(0,o.c)(14),n,r,i,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],s=t[4],c=t[5]):({className:n,variant:c,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=c);let l=s!==void 0&&s?_:`button`,u;t[6]!==n||t[7]!==i||t[8]!==c?(u=a(E({variant:c,size:i,className:n})),t[6]=n,t[7]=i,t[8]=c,t[9]=u):u=t[9];let f;return t[10]!==l||t[11]!==r||t[12]!==u?(f=(0,d.jsx)(l,{"data-slot":`button`,className:u,...r}),t[10]=l,t[11]=r,t[12]=u,t[13]=f):f=t[13],f}export{l as a,g as i,T as n,u as o,_ as r,D as t}; \ No newline at end of file +import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i,n as a}from"./createLucideIcon-BN-jDSEO.js";var o=e(),s=r(t(),1);function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...i}=e;h(r)&&typeof p==`function`&&(r=p(r._payload));let a=s.Children.toArray(r),o=a.find(b);if(o){let e=o.props.children,r=a.map(t=>t===o?s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var _=g(`Slot`);function v(e){let t=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(h(n)&&typeof p==`function`&&(n=p(n._payload)),s.isValidElement(n)){let e=S(n),i=x(r,n.props);return n.type!==s.Fragment&&(i.ref=t?l(t,e):e),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol(`radix.slottable`);function b(e){return s.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,w=i,T=(e,t)=>n=>{if(t?.variants==null)return w(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=C(t)||C(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return w(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},E=T(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function D(e){let t=(0,o.c)(14),n,r,i,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],s=t[4],c=t[5]):({className:n,variant:c,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=c);let l=s!==void 0&&s?_:`button`,u;t[6]!==n||t[7]!==i||t[8]!==c?(u=a(E({variant:c,size:i,className:n})),t[6]=n,t[7]=i,t[8]=c,t[9]=u):u=t[9];let f;return t[10]!==l||t[11]!==r||t[12]!==u?(f=(0,d.jsx)(l,{"data-slot":`button`,className:u,...r}),t[10]=l,t[11]=r,t[12]=u,t[13]=f):f=t[13],f}export{l as a,g as i,T as n,u as o,_ as r,D as t}; \ No newline at end of file diff --git a/public/build/assets/card-DGuRpKkV.js b/public/build/assets/card-D_BkPXgE.js similarity index 77% rename from public/build/assets/card-DGuRpKkV.js rename to public/build/assets/card-D_BkPXgE.js index 7cac53a..58d93a5 100644 --- a/public/build/assets/card-DGuRpKkV.js +++ b/public/build/assets/card-D_BkPXgE.js @@ -1 +1 @@ -import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./createLucideIcon-wUA1TGAT.js";var i=e();t();var a=n();function o(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`flex flex-col gap-1.5 px-6`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-header`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function c(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`leading-none font-semibold`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-title`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`text-muted-foreground text-balance text-sm`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-description`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`px-6`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-content`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{c as a,s as i,u as n,l as r,o as t}; \ No newline at end of file +import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./createLucideIcon-BN-jDSEO.js";var i=e();t();var a=n();function o(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`flex flex-col gap-1.5 px-6`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-header`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function c(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`leading-none font-semibold`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-title`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`text-muted-foreground text-balance text-sm`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-description`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`px-6`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-content`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`flex items-center px-6`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-footer`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{s as a,d as i,u as n,c as o,l as r,o as t}; \ No newline at end of file diff --git a/public/build/assets/check-CWekFaHD.js b/public/build/assets/check-CWekFaHD.js new file mode 100644 index 0000000..1062e71 --- /dev/null +++ b/public/build/assets/check-CWekFaHD.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/check-JLGZ6ERA.js b/public/build/assets/check-JLGZ6ERA.js deleted file mode 100644 index eec2647..0000000 --- a/public/build/assets/check-JLGZ6ERA.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/checkbox-DlkBWsch.js b/public/build/assets/checkbox-DlkBWsch.js new file mode 100644 index 0000000..a98c9a7 --- /dev/null +++ b/public/build/assets/checkbox-DlkBWsch.js @@ -0,0 +1 @@ +import{i as e,m as t,p as n,r,x as i}from"./wayfinder-DGNmxDkm.js";import{i as a,n as o,t as s}from"./dist-CE9c1Q26.js";import{a as c,o as l}from"./button-CJIRvoa4.js";import{t as u}from"./dist-B2I70joJ.js";import{n as d}from"./createLucideIcon-BN-jDSEO.js";import{t as f}from"./check-CWekFaHD.js";import{t as p}from"./dist-CNJ93GkG.js";var m=e(),h=i(t(),1),g=r();function _(e,t=[]){let n=[];function r(t,r){let i=h.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=h.useMemo(()=>o,Object.values(o));return(0,g.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=h.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,v(i,...t)]}function v(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}n();function y(e){let t=b(e),n=h.forwardRef((e,n)=>{let{children:r,...i}=e,a=h.Children.toArray(r),o=a.find(S);if(o){let e=o.props.children,r=a.map(t=>t===o?h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(t,{...i,ref:n,children:h.isValidElement(e)?h.cloneElement(e,void 0,r):null})}return(0,g.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function b(e){let t=h.forwardRef((e,t)=>{let{children:n,...r}=e;if(h.isValidElement(n)){let e=w(n),i=C(r,n.props);return n.type!==h.Fragment&&(i.ref=t?c(t,e):e),h.cloneElement(n,i)}return h.Children.count(n)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x=Symbol(`radix.slottable`);function S(e){return h.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===x}function C(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function w(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=h.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,g.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),E=`Checkbox`,[D,O]=_(E),[k,A]=D(E);function j(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:c,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[p,m]=s({prop:n,defaultProp:i??!1,onChange:l,caller:E}),[_,v]=h.useState(null),[y,b]=h.useState(null),x=h.useRef(!1),S=_?!!o||!!_.closest(`form`):!0,C={checked:p,disabled:a,setChecked:m,control:_,setControl:v,name:c,form:o,value:d,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:B(i)?!1:i,isFormControl:S,bubbleInput:y,setBubbleInput:b};return(0,g.jsx)(k,{scope:t,...C,children:z(f)?f(C):r})}var M=`CheckboxTrigger`,N=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:o,value:s,disabled:c,checked:u,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:_,bubbleInput:v}=A(M,e),y=l(i,f),b=h.useRef(u);return h.useEffect(()=>{let e=o?.form;if(e){let t=()=>p(b.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[o,p]),(0,g.jsx)(T.button,{type:`button`,role:`checkbox`,"aria-checked":B(u)?`mixed`:u,"aria-required":d,"data-state":V(u),"data-disabled":c?``:void 0,disabled:c,value:s,...r,ref:y,onKeyDown:a(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:a(n,e=>{p(e=>B(e)?!0:!e),v&&_&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});N.displayName=M;var P=h.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,g.jsx)(j,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(N,{...d,ref:t,__scopeCheckbox:n}),e&&(0,g.jsx)(R,{__scopeCheckbox:n})]})})});P.displayName=E;var F=`CheckboxIndicator`,I=h.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=A(F,n);return(0,g.jsx)(o,{present:r||B(a.checked)||a.checked===!0,children:(0,g.jsx)(T.span,{"data-state":V(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});I.displayName=F;var L=`CheckboxBubbleInput`,R=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:d,value:f,form:m,bubbleInput:_,setBubbleInput:v}=A(L,e),y=l(n,v),b=p(a),x=u(r);h.useEffect(()=>{let e=_;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(b!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=B(a),n.call(e,B(a)?!1:a),e.dispatchEvent(t)}},[_,b,a,i]);let S=h.useRef(B(a)?!1:a);return(0,g.jsx)(T.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??S.current,required:s,disabled:c,name:d,value:f,form:m,...t,tabIndex:-1,ref:y,style:{...t.style,...x,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});R.displayName=L;function z(e){return typeof e==`function`}function B(e){return e===`indeterminate`}function V(e){return B(e)?`indeterminate`:e?`checked`:`unchecked`}function H(e){let t=(0,m.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,g.jsx)(I,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,g.jsx)(f,{className:`size-3.5`})}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,g.jsx)(P,{"data-slot":`checkbox`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{H as t}; \ No newline at end of file diff --git a/public/build/assets/chevron-down-BXFNulw6.js b/public/build/assets/chevron-down-BXFNulw6.js new file mode 100644 index 0000000..f013e5b --- /dev/null +++ b/public/build/assets/chevron-down-BXFNulw6.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/chevron-down-xYnWKEDk.js b/public/build/assets/chevron-down-xYnWKEDk.js deleted file mode 100644 index 288d4b1..0000000 --- a/public/build/assets/chevron-down-xYnWKEDk.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/confirm-gXMuOnz9.js b/public/build/assets/confirm-B_yzhW7J.js similarity index 100% rename from public/build/assets/confirm-gXMuOnz9.js rename to public/build/assets/confirm-B_yzhW7J.js diff --git a/public/build/assets/confirm-password-BMSJcuzI.js b/public/build/assets/confirm-password-DXqCvmLh.js similarity index 81% rename from public/build/assets/confirm-password-BMSJcuzI.js rename to public/build/assets/confirm-password-DXqCvmLh.js index db839bc..bd5dbea 100644 --- a/public/build/assets/confirm-password-BMSJcuzI.js +++ b/public/build/assets/confirm-password-DXqCvmLh.js @@ -1 +1 @@ -import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-B6E1T0qj.js";import{t as a}from"./password-input-HSktczCa.js";import{t as o}from"./input-error-CXzYDMKp.js";import{t as s}from"./label-DR9FZUM0.js";import{t as c}from"./spinner-DVMDXl0V.js";import{n as l}from"./confirm-gXMuOnz9.js";var u=t(),d=r();function f(){let t=(0,u.c)(2),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,d.jsx)(n,{title:`Confirm password`}),t[0]=r):r=t[0];let i;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsxs)(d.Fragment,{children:[r,(0,d.jsx)(e,{...l.form(),resetOnSuccess:[`password`],children:p})]}),t[1]=i):i=t[1],i}function p(e){let{processing:t,errors:n}=e;return(0,d.jsxs)(`div`,{className:`space-y-6`,children:[(0,d.jsxs)(`div`,{className:`grid gap-2`,children:[(0,d.jsx)(s,{htmlFor:`password`,children:`Password`}),(0,d.jsx)(a,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,d.jsx)(o,{message:n.password})]}),(0,d.jsx)(`div`,{className:`flex items-center`,children:(0,d.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`confirm-password-button`,children:[t&&(0,d.jsx)(c,{}),`Confirm password`]})})]})}f.layout={title:`Confirm your password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{f as default}; \ No newline at end of file +import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-CJIRvoa4.js";import{t as a}from"./password-input-uWAWfR_8.js";import{t as o}from"./input-error-B7LHFA6O.js";import{t as s}from"./label-shgfY21t.js";import{t as c}from"./spinner-CO4WEyCd.js";import{n as l}from"./confirm-B_yzhW7J.js";var u=t(),d=r();function f(){let t=(0,u.c)(2),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,d.jsx)(n,{title:`Confirm password`}),t[0]=r):r=t[0];let i;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsxs)(d.Fragment,{children:[r,(0,d.jsx)(e,{...l.form(),resetOnSuccess:[`password`],children:p})]}),t[1]=i):i=t[1],i}function p(e){let{processing:t,errors:n}=e;return(0,d.jsxs)(`div`,{className:`space-y-6`,children:[(0,d.jsxs)(`div`,{className:`grid gap-2`,children:[(0,d.jsx)(s,{htmlFor:`password`,children:`Password`}),(0,d.jsx)(a,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,d.jsx)(o,{message:n.password})]}),(0,d.jsx)(`div`,{className:`flex items-center`,children:(0,d.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`confirm-password-button`,children:[t&&(0,d.jsx)(c,{}),`Confirm password`]})})]})}f.layout={title:`Confirm your password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/copy-DipuxFuX.js b/public/build/assets/copy-DVuxs_qN.js similarity index 72% rename from public/build/assets/copy-DipuxFuX.js rename to public/build/assets/copy-DVuxs_qN.js index b27b1ce..4be56bd 100644 --- a/public/build/assets/copy-DipuxFuX.js +++ b/public/build/assets/copy-DVuxs_qN.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/createLucideIcon-wUA1TGAT.js b/public/build/assets/createLucideIcon-BN-jDSEO.js similarity index 100% rename from public/build/assets/createLucideIcon-wUA1TGAT.js rename to public/build/assets/createLucideIcon-BN-jDSEO.js diff --git a/public/build/assets/dashboard-8kvCxfBE.js b/public/build/assets/dashboard-BT6uuLKU.js similarity index 93% rename from public/build/assets/dashboard-8kvCxfBE.js rename to public/build/assets/dashboard-BT6uuLKU.js index af79163..0ae3891 100644 --- a/public/build/assets/dashboard-8kvCxfBE.js +++ b/public/build/assets/dashboard-BT6uuLKU.js @@ -1 +1 @@ -import{i as e,o as t,r as n}from"./wayfinder-DGNmxDkm.js";import{a as r}from"./app-NKzAktB4.js";import{t as i}from"./placeholder-pattern-nTsSuoW-.js";var a=e(),o=n();function s(){let e=(0,a.c)(5),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,o.jsx)(t,{title:`Dashboard`}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsxs)(`div`,{className:`grid auto-rows-min gap-4 md:grid-cols-3`,children:[r,s,(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]}),e[3]=c):c=e[3];let l;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsxs)(`div`,{className:`flex h-full flex-1 flex-col gap-4 overflow-x-auto rounded-xl p-4`,children:[c,(0,o.jsx)(`div`,{className:`relative min-h-[100vh] flex-1 overflow-hidden rounded-xl border border-sidebar-border/70 md:min-h-min dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]})]}),e[4]=l):l=e[4],l}s.layout={breadcrumbs:[{title:`Dashboard`,href:r()}]};export{s as default}; \ No newline at end of file +import{i as e,o as t,r as n}from"./wayfinder-DGNmxDkm.js";import{a as r}from"./app-0l60ScAC.js";import{t as i}from"./placeholder-pattern-B0M5WUpE.js";var a=e(),o=n();function s(){let e=(0,a.c)(5),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,o.jsx)(t,{title:`Dashboard`}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsxs)(`div`,{className:`grid auto-rows-min gap-4 md:grid-cols-3`,children:[r,s,(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]}),e[3]=c):c=e[3];let l;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsxs)(`div`,{className:`flex h-full flex-1 flex-col gap-4 overflow-x-auto rounded-xl p-4`,children:[c,(0,o.jsx)(`div`,{className:`relative min-h-[100vh] flex-1 overflow-hidden rounded-xl border border-sidebar-border/70 md:min-h-min dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]})]}),e[4]=l):l=e[4],l}s.layout={breadcrumbs:[{title:`Dashboard`,href:r()}]};export{s as default}; \ No newline at end of file diff --git a/public/build/assets/dialog-DDCot1iY.js b/public/build/assets/dialog-D0ulBexn.js similarity index 96% rename from public/build/assets/dialog-DDCot1iY.js rename to public/build/assets/dialog-D0ulBexn.js index 1850ed7..bf23878 100644 --- a/public/build/assets/dialog-DDCot1iY.js +++ b/public/build/assets/dialog-D0ulBexn.js @@ -1 +1 @@ -import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{a as r,c as i,i as a,n as o,o as s,p as c,r as l,s as u,t as d}from"./dist-Cz7M9pMz.js";import{n as f}from"./createLucideIcon-wUA1TGAT.js";var p=e();t();var m=n();function h(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(s,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(i,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let i;return t[2]===n?i=t[3]:(i=(0,m.jsx)(r,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=i),i}function v(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(d,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function y(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(a,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function b(e){let t=(0,p.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,m.jsx)(y,{}),t[4]=a):a=t[4];let s;t[5]===r?s=t[6]:(s=f(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,r),t[5]=r,t[6]=s);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,m.jsxs)(d,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,m.jsx)(c,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==i||t[10]!==s?(u=(0,m.jsxs)(_,{"data-slot":`dialog-portal`,children:[a,(0,m.jsxs)(o,{"data-slot":`dialog-content`,className:s,...i,children:[n,l]})]}),t[8]=n,t[9]=i,t[10]=s,t[11]=u):u=t[11],u}function x(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function S(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`dialog-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function C(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`text-lg leading-none font-semibold`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(u,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function w(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(l,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{S as a,g as c,w as i,v as n,x as o,b as r,C as s,h as t}; \ No newline at end of file +import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{a as r,c as i,i as a,n as o,o as s,p as c,r as l,s as u,t as d}from"./dist-Cw-hV1_S.js";import{n as f}from"./createLucideIcon-BN-jDSEO.js";var p=e();t();var m=n();function h(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(s,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(i,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let i;return t[2]===n?i=t[3]:(i=(0,m.jsx)(r,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=i),i}function v(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(d,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function y(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(a,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function b(e){let t=(0,p.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,m.jsx)(y,{}),t[4]=a):a=t[4];let s;t[5]===r?s=t[6]:(s=f(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,r),t[5]=r,t[6]=s);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,m.jsxs)(d,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,m.jsx)(c,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==i||t[10]!==s?(u=(0,m.jsxs)(_,{"data-slot":`dialog-portal`,children:[a,(0,m.jsxs)(o,{"data-slot":`dialog-content`,className:s,...i,children:[n,l]})]}),t[8]=n,t[9]=i,t[10]=s,t[11]=u):u=t[11],u}function x(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function S(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`dialog-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function C(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`text-lg leading-none font-semibold`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(u,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function w(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(l,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{S as a,g as c,w as i,v as n,x as o,b as r,C as s,h as t}; \ No newline at end of file diff --git a/public/build/assets/dist-B2I70joJ.js b/public/build/assets/dist-B2I70joJ.js new file mode 100644 index 0000000..369d962 --- /dev/null +++ b/public/build/assets/dist-B2I70joJ.js @@ -0,0 +1 @@ +import{m as e,x as t}from"./wayfinder-DGNmxDkm.js";import{r as n}from"./dist-CE9c1Q26.js";var r=t(e(),1);function i(e){let[t,i]=r.useState(void 0);return n(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),t}export{i as t}; \ No newline at end of file diff --git a/public/build/assets/dist-BXzvTKID.js b/public/build/assets/dist-BXzvTKID.js new file mode 100644 index 0000000..baad979 --- /dev/null +++ b/public/build/assets/dist-BXzvTKID.js @@ -0,0 +1 @@ +import{m as e,p as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{r as i}from"./dist-CE9c1Q26.js";import{a,o}from"./button-CJIRvoa4.js";import{_ as s}from"./dist-Cw-hV1_S.js";import{a as c,c as l,i as u,l as d,n as f,o as p,r as m,s as h,t as ee}from"./floating-ui.react-dom-DuoUqJja.js";import{t as te}from"./dist-B2I70joJ.js";t();var g=r(e(),1),_=n();function v(e){let t=y(e),n=g.forwardRef((e,n)=>{let{children:r,...i}=e,a=g.Children.toArray(r),o=a.find(b);if(o){let e=o.props.children,r=a.map(t=>t===o?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...i,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,_.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function y(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=S(n),i=x(r,n.props);return n.type!==g.Fragment&&(i.ref=t?a(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ne=Symbol(`radix.slottable`);function b(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ne}function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=g.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,_.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w=`Arrow`,T=g.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,_.jsx)(C.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,_.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});T.displayName=w;var E=T;function D(e,t=[]){let n=[];function r(t,r){let i=g.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=g.useMemo(()=>o,Object.values(o));return(0,_.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=g.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>g.createContext(e));return function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,re(i,...t)]}function re(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function O(e){let t=k(e),n=g.forwardRef((e,n)=>{let{children:r,...i}=e,a=g.Children.toArray(r),o=a.find(j);if(o){let e=o.props.children,r=a.map(t=>t===o?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...i,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,_.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function k(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=N(n),i=M(r,n.props);return n.type!==g.Fragment&&(i.ref=t?a(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A=Symbol(`radix.slottable`);function j(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===A}function M(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function N(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var P=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=O(`Primitive.${t}`),r=g.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,_.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),F=`Popper`,[I,L]=D(F),[R,z]=I(F),B=e=>{let{__scopePopper:t,children:n}=e,[r,i]=g.useState(null);return(0,_.jsx)(R,{scope:t,anchor:r,onAnchorChange:i,children:n})};B.displayName=F;var V=`PopperAnchor`,H=g.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=z(V,n),s=g.useRef(null),c=o(t,s),l=g.useRef(null);return g.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:(0,_.jsx)(P.div,{...i,ref:c})});H.displayName=V;var U=`PopperContent`,[ie,W]=I(U),G=g.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:a=0,align:v=`center`,alignOffset:y=0,arrowPadding:ne=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:C=`partial`,hideWhenDetached:w=!1,updatePositionStrategy:T=`optimized`,onPlaced:E,...D}=e,re=z(U,n),[O,k]=g.useState(null),A=o(t,e=>k(e)),[j,M]=g.useState(null),N=te(j),F=N?.width??0,I=N?.height??0,L=r+(v===`center`?``:`-`+v),R=typeof S==`number`?S:{top:0,right:0,bottom:0,left:0,...S},B=Array.isArray(x)?x:[x],V=B.length>0,H={padding:R,boundary:B.filter(ae),altBoundary:V},{refs:W,floatingStyles:G,placement:K,isPositioned:q,middlewareData:J}=l({strategy:`fixed`,placement:L,whileElementsMounted:(...e)=>d(...e,{animationFrame:T===`always`}),elements:{reference:re.anchor},middleware:[c({mainAxis:a+I,alignmentAxis:y}),b&&p({mainAxis:!0,crossAxis:!1,limiter:C===`partial`?u():void 0,...H}),b&&f({...H}),h({...H,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),j&&ee({element:j,padding:ne}),oe({arrowWidth:F,arrowHeight:I}),w&&m({strategy:`referenceHidden`,...H})]}),[X,Z]=Y(K),Q=s(E);i(()=>{q&&Q?.()},[q,Q]);let se=J.arrow?.x,ce=J.arrow?.y,le=J.arrow?.centerOffset!==0,[ue,de]=g.useState();return i(()=>{O&&de(window.getComputedStyle(O).zIndex)},[O]),(0,_.jsx)(`div`,{ref:W.setFloating,"data-radix-popper-content-wrapper":``,style:{...G,transform:q?G.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(` `),...J.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,_.jsx)(ie,{scope:n,placedSide:X,onArrowChange:M,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,_.jsx)(P.div,{"data-side":X,"data-align":Z,...D,ref:A,style:{...D.style,animation:q?void 0:`none`}})})})});G.displayName=U;var K=`PopperArrow`,q={top:`bottom`,right:`left`,bottom:`top`,left:`right`},J=g.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=W(K,n),a=q[i.placedSide];return(0,_.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,_.jsx)(E,{...r,ref:t,style:{...r.style,display:`block`}})})});J.displayName=K;function ae(e){return e!==null}var oe=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Y(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Y(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var X=B,Z=H,Q=G,se=J;function ce(e){let t=le(e),n=g.forwardRef((e,n)=>{let{children:r,...i}=e,a=g.Children.toArray(r),o=a.find(de);if(o){let e=o.props.children,r=a.map(t=>t===o?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...i,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,_.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function le(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=pe(n),i=fe(r,n.props);return n.type!==g.Fragment&&(i.ref=t?a(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ue=Symbol(`radix.slottable`);function de(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ue}function fe(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function pe(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var me=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ce(`Primitive.${t}`),r=g.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,_.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),he=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ge=`VisuallyHidden`,_e=g.forwardRef((e,t)=>(0,_.jsx)(me.span,{...e,ref:t,style:{...he,...e.style}}));_e.displayName=ge;var ve=_e;function ye(e,t=[]){let n=[];function r(t,r){let i=g.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=g.useMemo(()=>o,Object.values(o));return(0,_.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=g.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>g.createContext(e));return function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,be(i,...t)]}function be(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function $(e){let t=xe(e),n=g.forwardRef((e,n)=>{let{children:r,...i}=e,a=g.Children.toArray(r),o=a.find(Ce);if(o){let e=o.props.children,r=a.map(t=>t===o?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...i,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,_.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function xe(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=Te(n),i=we(r,n.props);return n.type!==g.Fragment&&(i.ref=t?a(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Se=Symbol(`radix.slottable`);function Ce(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Se}function we(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Te(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ee(e){let t=e+`CollectionProvider`,[n,r]=ye(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=g.useRef(null),a=g.useRef(new Map).current;return(0,_.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let c=e+`CollectionSlot`,l=$(c),u=g.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,_.jsx)(l,{ref:o(t,a(c,n).collectionRef),children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=$(d),m=g.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=g.useRef(null),c=o(t,s),l=a(d,n);return g.useEffect(()=>(l.itemMap.set(s,{ref:s,...i}),()=>void l.itemMap.delete(s))),(0,_.jsx)(p,{[f]:``,ref:c,children:r})});m.displayName=d;function h(t){let n=a(e+`CollectionConsumer`,t);return g.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}var De=g.createContext(void 0);function Oe(e){let t=g.useContext(De);return e||t||`ltr`}export{Z as a,X as c,he as i,L as l,Ee as n,se as o,ve as r,Q as s,Oe as t}; \ No newline at end of file diff --git a/public/build/assets/dist-uBvN1Epe.js b/public/build/assets/dist-CE9c1Q26.js similarity index 97% rename from public/build/assets/dist-uBvN1Epe.js rename to public/build/assets/dist-CE9c1Q26.js index f05d483..84c35a0 100644 --- a/public/build/assets/dist-uBvN1Epe.js +++ b/public/build/assets/dist-CE9c1Q26.js @@ -1 +1 @@ -import{m as e,x as t}from"./wayfinder-DGNmxDkm.js";import{o as n}from"./button-B6E1T0qj.js";typeof window<`u`&&window.document&&window.document.createElement;function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var i=t(e(),1),a=globalThis?.document?i.useLayoutEffect:()=>{};function o(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var s=e=>{let{present:t,children:r}=e,a=c(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),s=n(a.ref,u(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:s}):null};s.displayName=`Presence`;function c(e){let[t,n]=i.useState(),r=i.useRef(null),s=i.useRef(e),c=i.useRef(`none`),[u,d]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=l(r.current);c.current=u===`mounted`?e:`none`},[u]),a(()=>{let t=r.current,n=s.current;if(n!==e){let r=c.current,i=l(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),a(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=i=>{let a=l(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},a=e=>{e.target===t&&(c.current=l(r.current))};return t.addEventListener(`animationstart`,a),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,a),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function l(e){return e?.animationName||`none`}function u(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var d=i.useInsertionEffect||a;function f({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,o,s]=p({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=i.useRef(e!==void 0);i.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,r])}return[l,i.useCallback(t=>{if(c){let n=m(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function p({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return d(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function m(e){return typeof e==`function`}export{r as i,s as n,a as r,f as t}; \ No newline at end of file +import{m as e,x as t}from"./wayfinder-DGNmxDkm.js";import{o as n}from"./button-CJIRvoa4.js";typeof window<`u`&&window.document&&window.document.createElement;function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var i=t(e(),1),a=globalThis?.document?i.useLayoutEffect:()=>{};function o(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var s=e=>{let{present:t,children:r}=e,a=c(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),s=n(a.ref,u(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:s}):null};s.displayName=`Presence`;function c(e){let[t,n]=i.useState(),r=i.useRef(null),s=i.useRef(e),c=i.useRef(`none`),[u,d]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=l(r.current);c.current=u===`mounted`?e:`none`},[u]),a(()=>{let t=r.current,n=s.current;if(n!==e){let r=c.current,i=l(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),a(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=i=>{let a=l(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},a=e=>{e.target===t&&(c.current=l(r.current))};return t.addEventListener(`animationstart`,a),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,a),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function l(e){return e?.animationName||`none`}function u(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var d=i.useInsertionEffect||a;function f({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,o,s]=p({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=i.useRef(e!==void 0);i.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,r])}return[l,i.useCallback(t=>{if(c){let n=m(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function p({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return d(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function m(e){return typeof e==`function`}export{r as i,s as n,a as r,f as t}; \ No newline at end of file diff --git a/public/build/assets/dist-DlwT0Sy6.js b/public/build/assets/dist-CNJ93GkG.js similarity index 100% rename from public/build/assets/dist-DlwT0Sy6.js rename to public/build/assets/dist-CNJ93GkG.js diff --git a/public/build/assets/dist-Cz7M9pMz.js b/public/build/assets/dist-Cw-hV1_S.js similarity index 99% rename from public/build/assets/dist-Cz7M9pMz.js rename to public/build/assets/dist-Cw-hV1_S.js index 5eaa343..b5152e2 100644 --- a/public/build/assets/dist-Cz7M9pMz.js +++ b/public/build/assets/dist-Cw-hV1_S.js @@ -1,4 +1,4 @@ -import{m as e,p as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i,n as a,r as o,t as s}from"./dist-uBvN1Epe.js";import{a as c,o as l}from"./button-B6E1T0qj.js";import{t as u}from"./createLucideIcon-wUA1TGAT.js";var d=r(t(),1),f=r(e(),1),p=n();function m(e){let t=h(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(_);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function h(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=y(n),i=v(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var g=Symbol(`radix.slottable`);function _(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===g}function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ee(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function x(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}function te(e,t=globalThis?.document){let n=x(e);f.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var S=`DismissableLayer`,C=`dismissableLayer.update`,ne=`dismissableLayer.pointerDownOutside`,w=`dismissableLayer.focusOutside`,re,ie=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=f.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...u}=e,d=f.useContext(ie),[m,h]=f.useState(null),g=m?.ownerDocument??globalThis?.document,[,_]=f.useState({}),v=l(t,e=>h(e)),y=Array.from(d.layers),[ee]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(ee),S=m?y.indexOf(m):-1,ne=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=oe(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!w||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},g),E=se(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},g);return te(e=>{S===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},g),f.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(re=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),ce(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=re)}},[m,g,n,d]),f.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),ce())},[m,d]),f.useEffect(()=>{let e=()=>_({});return document.addEventListener(C,e),()=>document.removeEventListener(C,e)},[]),(0,p.jsx)(b.div,{...u,ref:v,style:{pointerEvents:ne?w?`auto`:`none`:void 0,...e.style},onFocusCapture:i(e.onFocusCapture,E.onFocusCapture),onBlurCapture:i(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,T.onPointerDownCapture)})});T.displayName=S;var E=`DismissableLayerBranch`,ae=f.forwardRef((e,t)=>{let n=f.useContext(ie),r=f.useRef(null),i=l(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(b.div,{...e,ref:i})});ae.displayName=E;function oe(e,t=globalThis?.document){let n=x(e),r=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){le(ne,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function se(e,t=globalThis?.document){let n=x(e),r=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!r.current&&le(w,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ce(){let e=new CustomEvent(C);document.dispatchEvent(e)}function le(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ee(i,a):i.dispatchEvent(a)}var ue=f.useId||(()=>void 0),de=0;function D(e){let[t,n]=f.useState(ue());return o(()=>{e||n(e=>e??String(de++))},[e]),e||(t?`radix-${t}`:``)}function fe(e){let t=pe(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(he);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function pe(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=_e(n),i=ge(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var me=Symbol(`radix.slottable`);function he(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===me}function ge(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _e(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ve=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=fe(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ye=`Portal`,be=f.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=f.useState(!1);o(()=>a(!0),[]);let s=n||i&&globalThis?.document?.body;return s?d.createPortal((0,p.jsx)(ve.div,{...r,ref:t}),s):null});be.displayName=ye;var xe=u(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Se(e,t){let n=f.createContext(t),r=e=>{let{children:t,...r}=e,i=f.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Ce(e,t=[]){let n=[];function r(t,r){let i=f.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=f.useMemo(()=>o,Object.values(o));return(0,p.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=f.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,we(i,...t)]}function we(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Te(e){let t=Ee(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(Oe);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ee(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=Ae(n),i=ke(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var De=Symbol(`radix.slottable`);function Oe(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===De}function ke(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ae(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var je=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Te(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),O=`focusScope.autoFocusOnMount`,k=`focusScope.autoFocusOnUnmount`,Me={bubbles:!1,cancelable:!0},Ne=`FocusScope`,A=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=f.useState(null),u=x(i),d=x(a),m=f.useRef(null),h=l(t,e=>c(e)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?m.current=t:j(m.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||j(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,g.paused]),f.useEffect(()=>{if(s){Be.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(O,Me);s.addEventListener(O,u),s.dispatchEvent(t),t.defaultPrevented||(Pe(Ue(Ie(s)),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(O,u),setTimeout(()=>{let t=new CustomEvent(k,Me);s.addEventListener(k,d),s.dispatchEvent(t),t.defaultPrevented||j(e??document.body,{select:!0}),s.removeEventListener(k,d),Be.remove(g)},0)}}},[s,u,d,g]);let _=f.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Fe(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&j(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&j(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,p.jsx)(je.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})});A.displayName=Ne;function Pe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}function Fe(e){let t=Ie(e);return[Le(t,e),Le(t.reverse(),e)]}function Ie(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Le(e,t){for(let n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ze(e){return e instanceof HTMLInputElement&&`select`in e}function j(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ze(e)&&t&&e.select()}}var Be=Ve();function Ve(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=He(e,t),e.unshift(t)},remove(t){e=He(e,t),e[0]?.resume()}}}function He(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ue(e){return e.filter(e=>e.tagName!==`A`)}function We(e){let t=Ge(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(qe);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ge(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=Ye(n),i=Je(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ke=Symbol(`radix.slottable`);function qe(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ke}function Je(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ye(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var M=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=We(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),N=0;function Xe(){f.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ze()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ze()),N++,()=>{N===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),N--}},[])}function Ze(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return bt;var t=St(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wt=yt(),B=`data-scroll-locked`,Tt=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` +import{m as e,p as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i,n as a,r as o,t as s}from"./dist-CE9c1Q26.js";import{a as c,o as l}from"./button-CJIRvoa4.js";import{t as u}from"./createLucideIcon-BN-jDSEO.js";var d=r(t(),1),f=r(e(),1),p=n();function m(e){let t=h(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(_);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function h(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=y(n),i=v(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var g=Symbol(`radix.slottable`);function _(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===g}function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ee(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function x(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}function te(e,t=globalThis?.document){let n=x(e);f.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var S=`DismissableLayer`,C=`dismissableLayer.update`,ne=`dismissableLayer.pointerDownOutside`,w=`dismissableLayer.focusOutside`,re,ie=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=f.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...u}=e,d=f.useContext(ie),[m,h]=f.useState(null),g=m?.ownerDocument??globalThis?.document,[,_]=f.useState({}),v=l(t,e=>h(e)),y=Array.from(d.layers),[ee]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(ee),S=m?y.indexOf(m):-1,ne=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=oe(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!w||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},g),E=se(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},g);return te(e=>{S===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},g),f.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(re=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),ce(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=re)}},[m,g,n,d]),f.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),ce())},[m,d]),f.useEffect(()=>{let e=()=>_({});return document.addEventListener(C,e),()=>document.removeEventListener(C,e)},[]),(0,p.jsx)(b.div,{...u,ref:v,style:{pointerEvents:ne?w?`auto`:`none`:void 0,...e.style},onFocusCapture:i(e.onFocusCapture,E.onFocusCapture),onBlurCapture:i(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,T.onPointerDownCapture)})});T.displayName=S;var E=`DismissableLayerBranch`,ae=f.forwardRef((e,t)=>{let n=f.useContext(ie),r=f.useRef(null),i=l(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(b.div,{...e,ref:i})});ae.displayName=E;function oe(e,t=globalThis?.document){let n=x(e),r=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){le(ne,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function se(e,t=globalThis?.document){let n=x(e),r=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!r.current&&le(w,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ce(){let e=new CustomEvent(C);document.dispatchEvent(e)}function le(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ee(i,a):i.dispatchEvent(a)}var ue=f.useId||(()=>void 0),de=0;function D(e){let[t,n]=f.useState(ue());return o(()=>{e||n(e=>e??String(de++))},[e]),e||(t?`radix-${t}`:``)}function fe(e){let t=pe(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(he);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function pe(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=_e(n),i=ge(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var me=Symbol(`radix.slottable`);function he(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===me}function ge(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _e(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ve=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=fe(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ye=`Portal`,be=f.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=f.useState(!1);o(()=>a(!0),[]);let s=n||i&&globalThis?.document?.body;return s?d.createPortal((0,p.jsx)(ve.div,{...r,ref:t}),s):null});be.displayName=ye;var xe=u(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Se(e,t){let n=f.createContext(t),r=e=>{let{children:t,...r}=e,i=f.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Ce(e,t=[]){let n=[];function r(t,r){let i=f.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=f.useMemo(()=>o,Object.values(o));return(0,p.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=f.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,we(i,...t)]}function we(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Te(e){let t=Ee(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(Oe);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ee(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=Ae(n),i=ke(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var De=Symbol(`radix.slottable`);function Oe(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===De}function ke(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ae(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var je=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Te(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),O=`focusScope.autoFocusOnMount`,k=`focusScope.autoFocusOnUnmount`,Me={bubbles:!1,cancelable:!0},Ne=`FocusScope`,A=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=f.useState(null),u=x(i),d=x(a),m=f.useRef(null),h=l(t,e=>c(e)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?m.current=t:j(m.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||j(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,g.paused]),f.useEffect(()=>{if(s){Be.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(O,Me);s.addEventListener(O,u),s.dispatchEvent(t),t.defaultPrevented||(Pe(Ue(Ie(s)),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(O,u),setTimeout(()=>{let t=new CustomEvent(k,Me);s.addEventListener(k,d),s.dispatchEvent(t),t.defaultPrevented||j(e??document.body,{select:!0}),s.removeEventListener(k,d),Be.remove(g)},0)}}},[s,u,d,g]);let _=f.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Fe(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&j(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&j(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,p.jsx)(je.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})});A.displayName=Ne;function Pe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}function Fe(e){let t=Ie(e);return[Le(t,e),Le(t.reverse(),e)]}function Ie(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Le(e,t){for(let n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ze(e){return e instanceof HTMLInputElement&&`select`in e}function j(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ze(e)&&t&&e.select()}}var Be=Ve();function Ve(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=He(e,t),e.unshift(t)},remove(t){e=He(e,t),e[0]?.resume()}}}function He(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ue(e){return e.filter(e=>e.tagName!==`A`)}function We(e){let t=Ge(e),n=f.forwardRef((e,n)=>{let{children:r,...i}=e,a=f.Children.toArray(r),o=a.find(qe);if(o){let e=o.props.children,r=a.map(t=>t===o?f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null:t);return(0,p.jsx)(t,{...i,ref:n,children:f.isValidElement(e)?f.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ge(e){let t=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e=Ye(n),i=Je(r,n.props);return n.type!==f.Fragment&&(i.ref=t?c(t,e):e),f.cloneElement(n,i)}return f.Children.count(n)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ke=Symbol(`radix.slottable`);function qe(e){return f.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ke}function Je(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ye(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var M=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=We(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),N=0;function Xe(){f.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ze()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ze()),N++,()=>{N===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),N--}},[])}function Ze(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return bt;var t=St(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wt=yt(),B=`data-scroll-locked`,Tt=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${et} { overflow: hidden ${r}; padding-right: ${s}px ${r}; diff --git a/public/build/assets/dist-2FHDdoqV.js b/public/build/assets/dist-Hfu0N5sY.js similarity index 87% rename from public/build/assets/dist-2FHDdoqV.js rename to public/build/assets/dist-Hfu0N5sY.js index c35be70..1de6376 100644 --- a/public/build/assets/dist-2FHDdoqV.js +++ b/public/build/assets/dist-Hfu0N5sY.js @@ -1 +1 @@ -import{m as e,p as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i}from"./button-B6E1T0qj.js";var a=r(e(),1);t();var o=n(),s=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,o.jsx)(s,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});export{s as t}; \ No newline at end of file +import{m as e,p as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{i}from"./button-CJIRvoa4.js";var a=r(e(),1);t();var o=n(),s=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,o.jsx)(s,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});export{s as t}; \ No newline at end of file diff --git a/public/build/assets/fonts-CMXsOM2l.js b/public/build/assets/fonts-CMXsOM2l.js new file mode 100644 index 0000000..c383de7 --- /dev/null +++ b/public/build/assets/fonts-CMXsOM2l.js @@ -0,0 +1 @@ +import{i as e,r as t}from"./wayfinder-DGNmxDkm.js";import{a as n,t as r}from"./main-layout-BDfUDiNw.js";import{t as i}from"./registry-installer-BbAk2A5r.js";import{r as a}from"./app-0l60ScAC.js";import{a as o,n as s,t as c}from"./card-D_BkPXgE.js";import{t as l}from"./badge-BqJn0VCH.js";var u=e(),d=t();function f(e){let t=(0,u.c)(6),{fonts:r}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(a,{title:`Fonts`,description:`Browse and install Google Fonts for your project. Each font includes the CSS variable and import snippet.`}),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,d.jsxs)(`div`,{className:`mb-8`,children:[(0,d.jsx)(a,{as:`h2`,title:`Installation all fonts`,description:`Install every font at once with a single command.`}),(0,d.jsx)(i,{code:`fonts/fonts-all`})]}),t[1]=s):s=t[1];let c;t[2]===r?c=t[3]:(c=r.map(p),t[2]=r,t[3]=c);let l;return t[4]===c?l=t[5]:(l=(0,d.jsxs)(n,{className:`pt-4`,children:[o,s,(0,d.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:c})]}),t[4]=c,t[5]=l),l}function p(e){return(0,d.jsx)(m,{font:e},e.name)}f.layout=r;function m(e){let t=(0,u.c)(31),{font:n}=e,r;t[0]===n.title?r=t[1]:(r=(0,d.jsx)(`span`,{className:`font-semibold`,children:n.title}),t[0]=n.title,t[1]=r);let a;t[2]===n.fontProvider?a=t[3]:(a=n.fontProvider&&(0,d.jsx)(l,{variant:`outline`,className:`text-xs`,children:n.fontProvider}),t[2]=n.fontProvider,t[3]=a);let f;t[4]!==r||t[5]!==a?(f=(0,d.jsx)(o,{className:`pb-0`,children:(0,d.jsxs)(`div`,{className:`flex items-center justify-between`,children:[r,a]})}),t[4]=r,t[5]=a,t[6]=f):f=t[6];let p=n.fontFamily??`inherit`,m;t[7]===p?m=t[8]:(m={fontFamily:p},t[7]=p,t[8]=m);let h;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Aa Bb Cc`}),t[9]=h):h=t[9];let g;t[10]===m?g=t[11]:(g=(0,d.jsx)(`div`,{className:`flex min-h-22 items-center justify-center rounded-lg bg-card/50 px-4 text-[clamp(0.75rem,9vw+2rem,3rem)] tracking-wider`,style:m,children:h}),t[10]=m,t[11]=g);let _;t[12]===n.fontFamily?_=t[13]:(_=n.fontFamily&&(0,d.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,d.jsx)(`span`,{className:`shrink-0`,children:`Family:`}),(0,d.jsx)(`span`,{className:`truncate text-right font-medium text-foreground`,children:n.fontFamily})]}),t[12]=n.fontFamily,t[13]=_);let v;t[14]===n.fontVariable?v=t[15]:(v=n.fontVariable&&(0,d.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,d.jsx)(`span`,{className:`shrink-0`,children:`Variable:`}),(0,d.jsx)(`code`,{className:`truncate text-right text-xs text-foreground`,children:n.fontVariable})]}),t[14]=n.fontVariable,t[15]=v);let y;t[16]===n.fontWeight?y=t[17]:(y=n.fontWeight&&n.fontWeight.length>0&&(0,d.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,d.jsx)(`span`,{className:`shrink-0`,children:`Weights:`}),(0,d.jsx)(`span`,{className:`truncate text-right text-foreground`,children:n.fontWeight.join(`, `)})]}),t[16]=n.fontWeight,t[17]=y);let b;t[18]!==y||t[19]!==_||t[20]!==v?(b=(0,d.jsxs)(`div`,{className:`space-y-1 text-sm text-muted-foreground`,children:[_,v,y]}),t[18]=y,t[19]=_,t[20]=v,t[21]=b):b=t[21];let x=`fonts/${n.name}`,S;t[22]===x?S=t[23]:(S=(0,d.jsx)(i,{code:x}),t[22]=x,t[23]=S);let C;t[24]!==b||t[25]!==S||t[26]!==g?(C=(0,d.jsxs)(s,{className:`space-y-3 pt-3`,children:[g,b,S]}),t[24]=b,t[25]=S,t[26]=g,t[27]=C):C=t[27];let w;return t[28]!==C||t[29]!==f?(w=(0,d.jsxs)(c,{className:`group overflow-hidden transition-colors hover:bg-muted/50`,children:[f,C]}),t[28]=C,t[29]=f,t[30]=w):w=t[30],w}export{f as default}; \ No newline at end of file diff --git a/public/build/assets/fonts-PRPJga5a.js b/public/build/assets/fonts-PRPJga5a.js deleted file mode 100644 index e531dcd..0000000 --- a/public/build/assets/fonts-PRPJga5a.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r,r as i}from"./button-B6E1T0qj.js";import{n as a}from"./createLucideIcon-wUA1TGAT.js";import{a as o,t as s}from"./main-layout-Bjl0T2Wa.js";import{t as c}from"./registry-installer-iv12Azo6.js";import{r as l}from"./app-NKzAktB4.js";import{i as u,n as d,t as f}from"./card-DGuRpKkV.js";var p=e();t();var m=n(),h=r(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function g(e){let t=(0,p.c)(12),n,r,o,s;t[0]===e?(n=t[1],r=t[2],o=t[3],s=t[4]):({className:n,variant:s,asChild:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s);let c=o!==void 0&&o?i:`span`,l;t[5]!==n||t[6]!==s?(l=a(h({variant:s}),n),t[5]=n,t[6]=s,t[7]=l):l=t[7];let u;return t[8]!==c||t[9]!==r||t[10]!==l?(u=(0,m.jsx)(c,{"data-slot":`badge`,className:l,...r}),t[8]=c,t[9]=r,t[10]=l,t[11]=u):u=t[11],u}function _(e){let t=(0,p.c)(6),{fonts:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,m.jsx)(l,{title:`Fonts`,description:`Browse and install Google Fonts for your project. Each font includes the CSS variable and import snippet.`}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,m.jsxs)(`div`,{className:`mb-8`,children:[(0,m.jsx)(l,{as:`h2`,title:`Installation all fonts`,description:`Install every font at once with a single command.`}),(0,m.jsx)(c,{code:`fonts/fonts-all`})]}),t[1]=i):i=t[1];let a;t[2]===n?a=t[3]:(a=n.map(v),t[2]=n,t[3]=a);let s;return t[4]===a?s=t[5]:(s=(0,m.jsxs)(o,{className:`pt-4`,children:[r,i,(0,m.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:a})]}),t[4]=a,t[5]=s),s}function v(e){return(0,m.jsx)(y,{font:e},e.name)}_.layout=s;function y(e){let t=(0,p.c)(31),{font:n}=e,r;t[0]===n.title?r=t[1]:(r=(0,m.jsx)(`span`,{className:`font-semibold`,children:n.title}),t[0]=n.title,t[1]=r);let i;t[2]===n.fontProvider?i=t[3]:(i=n.fontProvider&&(0,m.jsx)(g,{variant:`outline`,className:`text-xs`,children:n.fontProvider}),t[2]=n.fontProvider,t[3]=i);let a;t[4]!==r||t[5]!==i?(a=(0,m.jsx)(u,{className:`pb-0`,children:(0,m.jsxs)(`div`,{className:`flex items-center justify-between`,children:[r,i]})}),t[4]=r,t[5]=i,t[6]=a):a=t[6];let o=n.fontFamily??`inherit`,s;t[7]===o?s=t[8]:(s={fontFamily:o},t[7]=o,t[8]=s);let l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,m.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Aa Bb Cc`}),t[9]=l):l=t[9];let h;t[10]===s?h=t[11]:(h=(0,m.jsx)(`div`,{className:`flex min-h-22 items-center justify-center rounded-lg bg-card/50 px-4 text-[clamp(0.75rem,9vw+2rem,3rem)] tracking-wider`,style:s,children:l}),t[10]=s,t[11]=h);let _;t[12]===n.fontFamily?_=t[13]:(_=n.fontFamily&&(0,m.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`shrink-0`,children:`Family:`}),(0,m.jsx)(`span`,{className:`truncate text-right font-medium text-foreground`,children:n.fontFamily})]}),t[12]=n.fontFamily,t[13]=_);let v;t[14]===n.fontVariable?v=t[15]:(v=n.fontVariable&&(0,m.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`shrink-0`,children:`Variable:`}),(0,m.jsx)(`code`,{className:`truncate text-right text-xs text-foreground`,children:n.fontVariable})]}),t[14]=n.fontVariable,t[15]=v);let y;t[16]===n.fontWeight?y=t[17]:(y=n.fontWeight&&n.fontWeight.length>0&&(0,m.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`shrink-0`,children:`Weights:`}),(0,m.jsx)(`span`,{className:`truncate text-right text-foreground`,children:n.fontWeight.join(`, `)})]}),t[16]=n.fontWeight,t[17]=y);let b;t[18]!==y||t[19]!==_||t[20]!==v?(b=(0,m.jsxs)(`div`,{className:`space-y-1 text-sm text-muted-foreground`,children:[_,v,y]}),t[18]=y,t[19]=_,t[20]=v,t[21]=b):b=t[21];let x=`fonts/${n.name}`,S;t[22]===x?S=t[23]:(S=(0,m.jsx)(c,{code:x}),t[22]=x,t[23]=S);let C;t[24]!==b||t[25]!==S||t[26]!==h?(C=(0,m.jsxs)(d,{className:`space-y-3 pt-3`,children:[h,b,S]}),t[24]=b,t[25]=S,t[26]=h,t[27]=C):C=t[27];let w;return t[28]!==C||t[29]!==a?(w=(0,m.jsxs)(f,{className:`group overflow-hidden transition-colors hover:bg-muted/50`,children:[a,C]}),t[28]=C,t[29]=a,t[30]=w):w=t[30],w}export{_ as default}; \ No newline at end of file diff --git a/public/build/assets/forgot-password-BQY-LsgH.js b/public/build/assets/forgot-password-BQY-LsgH.js new file mode 100644 index 0000000..f5031d1 --- /dev/null +++ b/public/build/assets/forgot-password-BQY-LsgH.js @@ -0,0 +1 @@ +import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-CJIRvoa4.js";import{t as a}from"./loader-circle-kx-CiozJ.js";import{T as o,s}from"./app-0l60ScAC.js";import{t as c}from"./input-error-B7LHFA6O.js";import{t as l}from"./label-shgfY21t.js";import{t as u}from"./text-link-UmmgvXHR.js";import{t as d}from"./password-4MQY-sCe.js";var f=t(),p=r();function m(t){let r=(0,f.c)(8),{status:i}=t,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(n,{title:`Forgot password`}),r[0]=a):a=r[0];let o;r[1]===i?o=r[2]:(o=i&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:i}),r[1]=i,r[2]=o);let c;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(e,{...d.form(),children:h}),r[3]=c):c=r[3];let l;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(`span`,{children:`Or, return to`}),r[4]=l):l=r[4];let m;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[c,(0,p.jsxs)(`div`,{className:`space-x-1 text-center text-sm text-muted-foreground`,children:[l,(0,p.jsx)(u,{href:s(),children:`log in`})]})]}),r[5]=m):m=r[5];let g;return r[6]===o?g=r[7]:(g=(0,p.jsxs)(p.Fragment,{children:[a,o,m]}),r[6]=o,r[7]=g),g}function h(e){let{processing:t,errors:n}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(l,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(o,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(c,{message:n.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`email-password-reset-link-button`,children:[t&&(0,p.jsx)(a,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/forgot-password-J1Dj5dCk.js b/public/build/assets/forgot-password-J1Dj5dCk.js deleted file mode 100644 index 5345a01..0000000 --- a/public/build/assets/forgot-password-J1Dj5dCk.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-B6E1T0qj.js";import{t as a}from"./loader-circle-BczqqvyR.js";import{s as o,x as s}from"./app-NKzAktB4.js";import{t as c}from"./input-error-CXzYDMKp.js";import{t as l}from"./label-DR9FZUM0.js";import{t as u}from"./text-link-B-rnxz_C.js";import{t as d}from"./password-DgvYQGdP.js";var f=t(),p=r();function m(t){let r=(0,f.c)(8),{status:i}=t,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(n,{title:`Forgot password`}),r[0]=a):a=r[0];let s;r[1]===i?s=r[2]:(s=i&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:i}),r[1]=i,r[2]=s);let c;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(e,{...d.form(),children:h}),r[3]=c):c=r[3];let l;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(`span`,{children:`Or, return to`}),r[4]=l):l=r[4];let m;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[c,(0,p.jsxs)(`div`,{className:`space-x-1 text-center text-sm text-muted-foreground`,children:[l,(0,p.jsx)(u,{href:o(),children:`log in`})]})]}),r[5]=m):m=r[5];let g;return r[6]===s?g=r[7]:(g=(0,p.jsxs)(p.Fragment,{children:[a,s,m]}),r[6]=s,r[7]=g),g}function h(e){let{processing:t,errors:n}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(l,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(s,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(c,{message:n.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`email-password-reset-link-button`,children:[t&&(0,p.jsx)(a,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/github-DdPrsZVB.js b/public/build/assets/github-D7dT9N2Y.js similarity index 84% rename from public/build/assets/github-DdPrsZVB.js rename to public/build/assets/github-D7dT9N2Y.js index 674b155..0d50377 100644 --- a/public/build/assets/github-DdPrsZVB.js +++ b/public/build/assets/github-D7dT9N2Y.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`Github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);export{t}; \ No newline at end of file +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`Github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/glow-radial-BlYCryQ3.js b/public/build/assets/glow-radial-BlYCryQ3.js deleted file mode 100644 index 233efaf..0000000 --- a/public/build/assets/glow-radial-BlYCryQ3.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i}from"./createLucideIcon-wUA1TGAT.js";import{n as a}from"./main-layout-Bjl0T2Wa.js";var o=r(t(),1),ee=e(),te=(e,t,n)=>e.x+t>=n.left&&e.x-t<=n.right&&e.y+t>=n.top&&e.y-t<=n.bottom,s=(e,t)=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom,ne=(e,t)=>({x:e.x-t.left,y:e.y-t.top}),c=n(),re={padding:`2px`,background:`transparent`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,maskComposite:`exclude`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,WebkitMaskComposite:`xor`};function l(e){let t=(0,ee.c)(57),n,r,l,u,d,f,p,m;t[0]===e?(n=t[1],r=t[2],l=t[3],u=t[4],d=t[5],f=t[6],p=t[7],m=t[8]):({className:r,children:n,colors:d,size:f,borderWidth:p,as:m,style:u,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=l,t[4]=u,t[5]=d,t[6]=f,t[7]=p,t[8]=m);let h=d===void 0?`var(--color-primary)`:d,g=f===void 0?500:f,ie=p===void 0?3:p,_=m===void 0?`div`:m,v=(0,o.useRef)(null),y=a(),b;t[9]===y?.position?b=t[10]:(b=y?.position??{x:-1e3,y:-1e3},t[9]=y?.position,t[10]=b);let x=b,S=y?.radius??100,[C,w]=(0,o.useState)(null),T,E;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=()=>{w(v.current?.getBoundingClientRect()??null)};e();let t=()=>e();return window.addEventListener(`resize`,t,{passive:!0}),window.addEventListener(`scroll`,t,{passive:!0}),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t)}},E=[],t[11]=T,t[12]=E):(T=t[11],E=t[12]),(0,o.useEffect)(T,E);let D=C?te(x,S,C):!1,ae=C?s(x,C):!1,O;t[13]!==x||t[14]!==C?(O=C?ne(x,C):{x:0,y:0},t[13]=x,t[14]=C,t[15]=O):O=t[15];let k=O,A;t[16]===h?A=t[17]:(A=Array.isArray(h)?h:[h,`transparent`],t[16]=h,t[17]=A);let j=A,M=k.x,N=k.y,P;t[18]===j?P=t[19]:(P=j.join(`, `),t[18]=j,t[19]=P);let F=`radial-gradient(circle at ${M}px ${N}px, ${P}, transparent ${g}px)`,I=`${ie}px`,L;t[20]===I?L=t[21]:(L={...re,padding:I},t[20]=I,t[21]=L);let R=L,z=n?`pointer-events-auto`:`pointer-events-none`,B;t[22]!==r||t[23]!==z?(B=i(`absolute inset-0 isolate z-10 rounded-[inherit]`,z,r),t[22]=r,t[23]=z,t[24]=B):B=t[24];let V=D?`opacity-100`:`opacity-0`,H;t[25]===V?H=t[26]:(H=i(`pointer-events-none! absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-300`,V),t[25]=V,t[26]=H);let U;t[27]!==R||t[28]!==F?(U={...R,background:F},t[27]=R,t[28]=F,t[29]=U):U=t[29];let W;t[30]!==H||t[31]!==U?(W=(0,c.jsx)(`div`,{"aria-hidden":!0,className:H,style:U}),t[30]=H,t[31]=U,t[32]=W):W=t[32];let G=D?`opacity-10`:`opacity-0`,K;t[33]===G?K=t[34]:(K=i(`pointer-events-none! absolute inset-0 rounded-[inherit] blur-2xl transition-opacity duration-300`,G),t[33]=G,t[34]=K);let q;t[35]!==R||t[36]!==F?(q={...R,background:F},t[35]=R,t[36]=F,t[37]=q):q=t[37];let J;t[38]!==K||t[39]!==q?(J=(0,c.jsx)(`div`,{"aria-hidden":!0,className:K,style:q}),t[38]=K,t[39]=q,t[40]=J):J=t[40];let Y=ae?`opacity-5`:`opacity-0`,X;t[41]===Y?X=t[42]:(X=i(`pointer-events-none! absolute inset-0 rounded-[inherit] transition-opacity duration-300`,Y),t[41]=Y,t[42]=X);let Z;t[43]===F?Z=t[44]:(Z={background:F},t[43]=F,t[44]=Z);let Q;t[45]!==X||t[46]!==Z?(Q=(0,c.jsx)(`div`,{"aria-hidden":!0,className:X,style:Z}),t[45]=X,t[46]=Z,t[47]=Q):Q=t[47];let $;return t[48]!==_||t[49]!==n||t[50]!==l||t[51]!==u||t[52]!==B||t[53]!==W||t[54]!==J||t[55]!==Q?($=(0,c.jsxs)(_,{ref:v,className:B,style:u,...l,children:[W,J,Q,n]}),t[48]=_,t[49]=n,t[50]=l,t[51]=u,t[52]=B,t[53]=W,t[54]=J,t[55]=Q,t[56]=$):$=t[56],$}export{l as t}; \ No newline at end of file diff --git a/public/build/assets/glow-radial-C29beylo.js b/public/build/assets/glow-radial-C29beylo.js new file mode 100644 index 0000000..569b7e0 --- /dev/null +++ b/public/build/assets/glow-radial-C29beylo.js @@ -0,0 +1 @@ +import{i as e,m as t,p as n,r,x as i}from"./wayfinder-DGNmxDkm.js";import{i as a,r as o,t as s}from"./dist-CE9c1Q26.js";import{a as c,o as l}from"./button-CJIRvoa4.js";import{_ as u,d,f,g as p,h as m,l as h,m as g,u as _}from"./dist-Cw-hV1_S.js";import{a as v,c as y,i as b,l as x,n as S,o as C,s as w,t as T}from"./dist-BXzvTKID.js";import{n as E,t as ee}from"./createLucideIcon-BN-jDSEO.js";import{t as D}from"./check-CWekFaHD.js";import{t as O}from"./chevron-down-BXFNulw6.js";import{n as k}from"./main-layout-BDfUDiNw.js";import{t as A}from"./dist-CNJ93GkG.js";var te=ee(`ChevronUp`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),j=i(t(),1),M=i(n(),1),N=e();function P(e,[t,n]){return Math.min(n,Math.max(t,e))}var F=r();function I(e,t=[]){let n=[];function r(t,r){let i=j.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=j.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=j.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>j.createContext(e));return function(n){let r=n?.[e]||t;return j.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,ne(i,...t)]}function ne(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function L(e){let t=re(e),n=j.forwardRef((e,n)=>{let{children:r,...i}=e,a=j.Children.toArray(r),o=a.find(z);if(o){let e=o.props.children,r=a.map(t=>t===o?j.Children.count(e)>1?j.Children.only(null):j.isValidElement(e)?e.props.children:null:t);return(0,F.jsx)(t,{...i,ref:n,children:j.isValidElement(e)?j.cloneElement(e,void 0,r):null})}return(0,F.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function re(e){let t=j.forwardRef((e,t)=>{let{children:n,...r}=e;if(j.isValidElement(n)){let e=V(n),i=B(r,n.props);return n.type!==j.Fragment&&(i.ref=t?c(t,e):e),j.cloneElement(n,i)}return j.Children.count(n)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R=Symbol(`radix.slottable`);function z(e){return j.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===R}function B(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function V(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=L(`Primitive.${t}`),r=j.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ie=[` `,`Enter`,`ArrowUp`,`ArrowDown`],U=[` `,`Enter`],W=`Select`,[G,K,q]=S(W),[J,ae]=I(W,[q,x]),Y=x(),[oe,X]=J(W),[se,ce]=J(W),le=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:p,required:h,form:g}=e,_=Y(t),[v,b]=j.useState(null),[x,S]=j.useState(null),[C,w]=j.useState(!1),E=T(u),[ee,D]=s({prop:r,defaultProp:i??!1,onChange:a,caller:W}),[O,k]=s({prop:o,defaultProp:c,onChange:l,caller:W}),A=j.useRef(null),te=v?g||!!v.closest(`form`):!0,[M,N]=j.useState(new Set),P=Array.from(M).map(e=>e.props.value).join(`;`);return(0,F.jsx)(y,{..._,children:(0,F.jsxs)(oe,{required:h,scope:t,trigger:v,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:m(),value:O,onValueChange:k,open:ee,onOpenChange:D,dir:E,triggerPointerDownPosRef:A,disabled:p,children:[(0,F.jsx)(G.Provider,{scope:t,children:(0,F.jsx)(se,{scope:e.__scopeSelect,onNativeOptionAdd:j.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:j.useCallback(e=>{N(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),te?(0,F.jsxs)(tt,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:O,onChange:e=>k(e.target.value),disabled:p,form:g,children:[O===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(M)]},P):null]})})};le.displayName=W;var ue=`SelectTrigger`,de=j.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=Y(n),s=X(ue,n),c=s.disabled||r,u=l(t,s.onTriggerChange),d=K(n),f=j.useRef(`touch`),[p,m,h]=rt(e=>{let t=d().filter(e=>!e.disabled),n=it(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),g=e=>{c||(s.onOpenChange(!0),h()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(v,{asChild:!0,...o,children:(0,F.jsx)(H.button,{type:`button`,role:`combobox`,"aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":nt(s.value)?``:void 0,...i,ref:u,onClick:a(i.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&g(e)}),onPointerDown:a(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:a(i.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&ie.includes(e.key)&&(g(),e.preventDefault())})})})});de.displayName=ue;var fe=`SelectValue`,pe=j.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:s=``,...c}=e,u=X(fe,n),{onValueNodeHasChildrenChange:d}=u,f=a!==void 0,p=l(t,u.onValueNodeChange);return o(()=>{d(f)},[d,f]),(0,F.jsx)(H.span,{...c,ref:p,style:{pointerEvents:`none`},children:nt(u.value)?(0,F.jsx)(F.Fragment,{children:s}):a})});pe.displayName=fe;var me=`SelectIcon`,he=j.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,F.jsx)(H.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});he.displayName=me;var ge=`SelectPortal`,_e=e=>(0,F.jsx)(g,{asChild:!0,...e});_e.displayName=ge;var Z=`SelectContent`,ve=j.forwardRef((e,t)=>{let n=X(Z,e.__scopeSelect),[r,i]=j.useState();if(o(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?M.createPortal((0,F.jsx)(ye,{scope:e.__scopeSelect,children:(0,F.jsx)(G.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(Se,{...e,ref:t})});ve.displayName=Z;var Q=10,[ye,$]=J(Z),be=`SelectContentImpl`,xe=L(`SelectContent.RemoveScroll`),Se=j.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:u,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C,...w}=e,T=X(Z,n),[E,ee]=j.useState(null),[D,O]=j.useState(null),k=l(t,e=>ee(e)),[A,te]=j.useState(null),[M,N]=j.useState(null),P=K(n),[I,ne]=j.useState(!1),L=j.useRef(!1);j.useEffect(()=>{if(E)return h(E)},[E]),d();let re=j.useCallback(e=>{let[t,...n]=P().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[P,D]),R=j.useCallback(()=>re([A,E]),[re,A,E]);j.useEffect(()=>{I&&R()},[I,R]);let{onOpenChange:z,triggerPointerDownPosRef:B}=T;j.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(B.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||z(!1),document.removeEventListener(`pointermove`,t),B.current=null};return B.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,z,B]),j.useEffect(()=>{let e=()=>z(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[z]);let[V,H]=rt(e=>{let t=P().filter(e=>!e.disabled),n=it(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ie=j.useCallback((e,t,n)=>{let r=!L.current&&!n;(T.value!==void 0&&T.value===t||r)&&(te(e),r&&(L.current=!0))},[T.value]),U=j.useCallback(()=>E?.focus(),[E]),W=j.useCallback((e,t,n)=>{let r=!L.current&&!n;(T.value!==void 0&&T.value===t||r)&&N(e)},[T.value]),G=r===`popper`?Ee:we,q=G===Ee?{side:c,sideOffset:u,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C}:{};return(0,F.jsx)(ye,{scope:n,content:E,viewport:D,onViewportChange:O,itemRefCallback:ie,selectedItem:A,onItemLeave:U,itemTextRefCallback:W,focusSelectedItem:R,selectedItemText:M,position:r,isPositioned:I,searchRef:V,children:(0,F.jsx)(_,{as:xe,allowPinchZoom:!0,children:(0,F.jsx)(f,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:a(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,F.jsx)(G,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...q,onPlaced:()=>ne(!0),ref:k,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:a(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&H(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>re(t)),e.preventDefault()}})})})})})})});Se.displayName=be;var Ce=`SelectItemAlignedPosition`,we=j.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=X(Z,n),s=$(Z,n),[c,u]=j.useState(null),[d,f]=j.useState(null),p=l(t,e=>f(e)),m=K(n),h=j.useRef(!1),g=j.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=s,x=j.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Q,d=P(a,[Q,Math.max(Q,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Q,d=P(a,[Q,Math.max(Q,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let o=m(),s=window.innerHeight-Q*2,l=_.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),b=parseInt(u.paddingBottom,10),x=f+p+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Q,ee=s-E,D=v.offsetHeight/2,O=v.offsetTop+D,k=f+p+O,A=x-k;if(k<=E){let e=o.length>0&&v===o[o.length-1].ref.current;c.style.bottom=`0px`;let t=d.clientHeight-_.offsetTop-_.offsetHeight,n=k+Math.max(ee,D+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+D)+A;c.style.height=t+`px`,_.scrollTop=k-E+_.offsetTop}c.style.margin=`${Q}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,c,d,_,v,y,a.dir,r]);o(()=>x(),[x]);let[S,C]=j.useState();return o(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]),(0,F.jsx)(De,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:j.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]),children:(0,F.jsx)(`div`,{ref:u,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,F.jsx)(H.div,{...i,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});we.displayName=Ce;var Te=`SelectPopperPosition`,Ee=j.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Q,...a}=e,o=Y(n);return(0,F.jsx)(w,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ee.displayName=Te;var[De,Oe]=J(Z,{}),ke=`SelectViewport`,Ae=j.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,o=$(ke,n),s=Oe(ke,n),c=l(t,o.onViewportChange),u=j.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(G.Slot,{scope:n,children:(0,F.jsx)(H.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:a(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Q*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});Ae.displayName=ke;var je=`SelectGroup`,[Me,Ne]=J(je),Pe=j.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=m();return(0,F.jsx)(Me,{scope:n,id:i,children:(0,F.jsx)(H.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Pe.displayName=je;var Fe=`SelectLabel`,Ie=j.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ne(Fe,n);return(0,F.jsx)(H.div,{id:i.id,...r,ref:t})});Ie.displayName=Fe;var Le=`SelectItem`,[Re,ze]=J(Le),Be=j.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,c=X(Le,n),u=$(Le,n),d=c.value===r,[f,p]=j.useState(o??``),[h,g]=j.useState(!1),_=l(t,e=>u.itemRefCallback?.(e,r,i)),v=m(),y=j.useRef(`touch`),b=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(Re,{scope:n,value:r,disabled:i,textId:v,isSelected:d,onItemTextChange:j.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(G.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,F.jsx)(H.div,{role:`option`,"aria-labelledby":v,"data-highlighted":h?``:void 0,"aria-selected":d&&h,"data-state":d?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...s,ref:_,onFocus:a(s.onFocus,()=>g(!0)),onBlur:a(s.onBlur,()=>g(!1)),onClick:a(s.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:a(s.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:a(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:a(s.onPointerMove,e=>{y.current=e.pointerType,i?u.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:a(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:a(s.onKeyDown,e=>{u.searchRef?.current!==``&&e.key===` `||(U.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});Be.displayName=Le;var Ve=`SelectItemText`,He=j.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,s=X(Ve,n),c=$(Ve,n),u=ze(Ve,n),d=ce(Ve,n),[f,p]=j.useState(null),m=l(t,e=>p(e),u.onItemTextChange,e=>c.itemTextRefCallback?.(e,u.value,u.disabled)),h=f?.textContent,g=j.useMemo(()=>(0,F.jsx)(`option`,{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=d;return o(()=>(_(g),()=>v(g)),[_,v,g]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(H.span,{id:u.textId,...a,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?M.createPortal(a.children,s.valueNode):null]})});He.displayName=Ve;var Ue=`SelectItemIndicator`,We=j.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ze(Ue,n).isSelected?(0,F.jsx)(H.span,{"aria-hidden":!0,...r,ref:t}):null});We.displayName=Ue;var Ge=`SelectScrollUpButton`,Ke=j.forwardRef((e,t)=>{let n=$(Ge,e.__scopeSelect),r=Oe(Ge,e.__scopeSelect),[i,a]=j.useState(!1),s=l(t,r.onScrollButtonChange);return o(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Ye,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ke.displayName=Ge;var qe=`SelectScrollDownButton`,Je=j.forwardRef((e,t)=>{let n=$(qe,e.__scopeSelect),r=Oe(qe,e.__scopeSelect),[i,a]=j.useState(!1),s=l(t,r.onScrollButtonChange);return o(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Ye,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Je.displayName=qe;var Ye=j.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,s=$(`SelectScrollButton`,n),c=j.useRef(null),l=K(n),u=j.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return j.useEffect(()=>()=>u(),[u]),o(()=>{l().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[l]),(0,F.jsx)(H.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:a(i.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:a(i.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:a(i.onPointerLeave,()=>{u()})})}),Xe=`SelectSeparator`,Ze=j.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(H.div,{"aria-hidden":!0,...r,ref:t})});Ze.displayName=Xe;var Qe=`SelectArrow`,$e=j.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Y(n),a=X(Qe,n),o=$(Qe,n);return a.open&&o.position===`popper`?(0,F.jsx)(C,{...i,...r,ref:t}):null});$e.displayName=Qe;var et=`SelectBubbleInput`,tt=j.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=j.useRef(null),a=l(r,i),o=A(t);return j.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,F.jsx)(H.select,{...n,style:{...b,...n.style},ref:a,defaultValue:t})});tt.displayName=et;function nt(e){return e===``||e===void 0}function rt(e){let t=u(e),n=j.useRef(``),r=j.useRef(0),i=j.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=j.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return j.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function it(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=at(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function at(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ot=le,st=de,ct=pe,lt=he,ut=_e,dt=ve,ft=Ae,pt=Be,mt=He,ht=We,gt=Ke,_t=Je;function vt(e){let t=(0,N.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(ot,{"data-slot":`select`,...n}),t[2]=n,t[3]=r),r}function yt(e){let t=(0,N.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(ct,{"data-slot":`select-value`,...n}),t[2]=n,t[3]=r),r}function bt(e){let t=(0,N.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,size:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===r?s=t[6]:(s=E(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,F.jsx)(lt,{asChild:!0,children:(0,F.jsx)(O,{className:`size-4 opacity-50`})}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,F.jsxs)(st,{"data-slot":`select-trigger`,"data-size":o,className:s,...i,children:[n,c]}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function xt(e){let t=(0,N.c)(26),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,children:n,position:a,side:o,sideOffset:s,align:c,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`popper`:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f=c===void 0?`center`:c,p=l===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,m;t[8]!==r||t[9]!==p?(m=E(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,p,r),t[8]=r,t[9]=p,t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,F.jsx)(Ct,{}),t[11]=h):h=t[11];let g=l===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`,_;t[12]===g?_=t[13]:(_=E(`p-1`,g),t[12]=g,t[13]=_);let v;t[14]!==n||t[15]!==_?(v=(0,F.jsx)(ft,{className:_,children:n}),t[14]=n,t[15]=_,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,F.jsx)(wt,{}),t[17]=y):y=t[17];let b;return t[18]!==f||t[19]!==l||t[20]!==i||t[21]!==u||t[22]!==d||t[23]!==v||t[24]!==m?(b=(0,F.jsx)(ut,{children:(0,F.jsxs)(dt,{"data-slot":`select-content`,className:m,position:l,side:u,sideOffset:d,avoidCollisions:!1,align:f,...i,children:[h,v,y]})}),t[18]=f,t[19]=l,t[20]=i,t[21]=u,t[22]=d,t[23]=v,t[24]=m,t[25]=b):b=t[25],b}function St(e){let t=(0,N.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=E(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,F.jsx)(ht,{children:(0,F.jsx)(D,{className:`size-4`})})}),t[6]=o):o=t[6];let s;t[7]===n?s=t[8]:(s=(0,F.jsx)(mt,{children:n}),t[7]=n,t[8]=s);let c;return t[9]!==i||t[10]!==a||t[11]!==s?(c=(0,F.jsxs)(pt,{"data-slot":`select-item`,className:a,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function Ct(e){let t=(0,N.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=E(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(te,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,F.jsx)(gt,{"data-slot":`select-scroll-up-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function wt(e){let t=(0,N.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=E(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,F.jsx)(O,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,F.jsx)(_t,{"data-slot":`select-scroll-down-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}var Tt=(e,t,n)=>e.x+t>=n.left&&e.x-t<=n.right&&e.y+t>=n.top&&e.y-t<=n.bottom,Et=(e,t)=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom,Dt=(e,t)=>({x:e.x-t.left,y:e.y-t.top}),Ot={padding:`2px`,background:`transparent`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,maskComposite:`exclude`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,WebkitMaskComposite:`xor`};function kt(e){let t=(0,N.c)(57),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,colors:o,size:s,borderWidth:c,as:l,style:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=o===void 0?`var(--color-primary)`:o,d=s===void 0?500:s,f=c===void 0?3:c,p=l===void 0?`div`:l,m=(0,j.useRef)(null),h=k(),g;t[9]===h?.position?g=t[10]:(g=h?.position??{x:-1e3,y:-1e3},t[9]=h?.position,t[10]=g);let _=g,v=h?.radius??100,[y,b]=(0,j.useState)(null),x,S;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{let e=()=>{b(m.current?.getBoundingClientRect()??null)};e();let t=()=>e();return window.addEventListener(`resize`,t,{passive:!0}),window.addEventListener(`scroll`,t,{passive:!0}),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t)}},S=[],t[11]=x,t[12]=S):(x=t[11],S=t[12]),(0,j.useEffect)(x,S);let C=y?Tt(_,v,y):!1,w=y?Et(_,y):!1,T;t[13]!==_||t[14]!==y?(T=y?Dt(_,y):{x:0,y:0},t[13]=_,t[14]=y,t[15]=T):T=t[15];let ee=T,D;t[16]===u?D=t[17]:(D=Array.isArray(u)?u:[u,`transparent`],t[16]=u,t[17]=D);let O=D,A=ee.x,te=ee.y,M;t[18]===O?M=t[19]:(M=O.join(`, `),t[18]=O,t[19]=M);let P=`radial-gradient(circle at ${A}px ${te}px, ${M}, transparent ${d}px)`,I=`${f}px`,ne;t[20]===I?ne=t[21]:(ne={...Ot,padding:I},t[20]=I,t[21]=ne);let L=ne,re=n?`pointer-events-auto`:`pointer-events-none`,R;t[22]!==r||t[23]!==re?(R=E(`absolute inset-0 isolate z-10 rounded-[inherit]`,re,r),t[22]=r,t[23]=re,t[24]=R):R=t[24];let z=C?`opacity-100`:`opacity-0`,B;t[25]===z?B=t[26]:(B=E(`pointer-events-none! absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-300`,z),t[25]=z,t[26]=B);let V;t[27]!==L||t[28]!==P?(V={...L,background:P},t[27]=L,t[28]=P,t[29]=V):V=t[29];let H;t[30]!==B||t[31]!==V?(H=(0,F.jsx)(`div`,{"aria-hidden":!0,className:B,style:V}),t[30]=B,t[31]=V,t[32]=H):H=t[32];let ie=C?`opacity-10`:`opacity-0`,U;t[33]===ie?U=t[34]:(U=E(`pointer-events-none! absolute inset-0 rounded-[inherit] blur-2xl transition-opacity duration-300`,ie),t[33]=ie,t[34]=U);let W;t[35]!==L||t[36]!==P?(W={...L,background:P},t[35]=L,t[36]=P,t[37]=W):W=t[37];let G;t[38]!==U||t[39]!==W?(G=(0,F.jsx)(`div`,{"aria-hidden":!0,className:U,style:W}),t[38]=U,t[39]=W,t[40]=G):G=t[40];let K=w?`opacity-5`:`opacity-0`,q;t[41]===K?q=t[42]:(q=E(`pointer-events-none! absolute inset-0 rounded-[inherit] transition-opacity duration-300`,K),t[41]=K,t[42]=q);let J;t[43]===P?J=t[44]:(J={background:P},t[43]=P,t[44]=J);let ae;t[45]!==q||t[46]!==J?(ae=(0,F.jsx)(`div`,{"aria-hidden":!0,className:q,style:J}),t[45]=q,t[46]=J,t[47]=ae):ae=t[47];let Y;return t[48]!==p||t[49]!==n||t[50]!==i||t[51]!==a||t[52]!==R||t[53]!==H||t[54]!==G||t[55]!==ae?(Y=(0,F.jsxs)(p,{ref:m,className:R,style:a,...i,children:[H,G,ae,n]}),t[48]=p,t[49]=n,t[50]=i,t[51]=a,t[52]=R,t[53]=H,t[54]=G,t[55]=ae,t[56]=Y):Y=t[56],Y}export{bt as a,St as i,vt as n,yt as o,xt as r,kt as t}; \ No newline at end of file diff --git a/public/build/assets/home-B2lItTUn.js b/public/build/assets/home-B2lItTUn.js new file mode 100644 index 0000000..4f680bf --- /dev/null +++ b/public/build/assets/home-B2lItTUn.js @@ -0,0 +1,4211 @@ +import{i as e,m as t,p as n,r,x as i}from"./wayfinder-DGNmxDkm.js";import{i as a,n as o,t as s}from"./dist-CE9c1Q26.js";import{a as c,n as l,o as u,r as d,t as f}from"./button-CJIRvoa4.js";import{t as p}from"./dist-BXzvTKID.js";import{t as m}from"./dist-B2I70joJ.js";import{n as h,t as g}from"./createLucideIcon-BN-jDSEO.js";import{a as _,i as v,n as y,o as b,r as x,t as S}from"./glow-radial-C29beylo.js";import{a as C,t as w}from"./main-layout-BDfUDiNw.js";import{o as T,t as E}from"./registry-installer-BbAk2A5r.js";import{t as D}from"./checkbox-DlkBWsch.js";import{t as O}from"./dist-CNJ93GkG.js";import{C as k,S as A,T as j,d as ee,f as M,m as N,u as te,w as ne,x as re}from"./app-0l60ScAC.js";import{t as ie}from"./textarea-CdB2elwd.js";import{a as ae,i as oe,n as se,o as ce,r as le,t as ue}from"./card-D_BkPXgE.js";import{t as P}from"./label-shgfY21t.js";import{t as de}from"./badge-BqJn0VCH.js";import{n as fe,r as pe,t as F}from"./alert-D8f1uXWR.js";var me=g(`Circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),he=g(`Crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),I=i(t(),1),L=r();function ge(e,t=[]){let n=[];function r(t,r){let i=I.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=I.useMemo(()=>o,Object.values(o));return(0,L.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=I.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let r=n?.[e]||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,R(i,...t)]}function R(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function _e(e){let t=z(e),n=I.forwardRef((e,n)=>{let{children:r,...i}=e,a=I.Children.toArray(r),o=a.find(V);if(o){let e=o.props.children,r=a.map(t=>t===o?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function z(e){let t=I.forwardRef((e,t)=>{let{children:n,...r}=e;if(I.isValidElement(n)){let e=H(n),i=ve(r,n.props);return n.type!==I.Fragment&&(i.ref=t?c(t,e):e),I.cloneElement(n,i)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var B=Symbol(`radix.slottable`);function V(e){return I.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===B}function ve(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function H(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}n();var U=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_e(`Primitive.${t}`),r=I.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,L.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ye=`Radio`,[be,xe]=ge(ye),[Se,Ce]=be(ye),we=I.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:c=`on`,onCheck:l,form:d,...f}=e,[p,m]=I.useState(null),h=u(t,e=>m(e)),g=I.useRef(!1),_=p?d||!!p.closest(`form`):!0;return(0,L.jsxs)(Se,{scope:n,checked:i,disabled:s,children:[(0,L.jsx)(U.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":ke(i),"data-disabled":s?``:void 0,disabled:s,value:c,...f,ref:h,onClick:a(e.onClick,e=>{i||l?.(),_&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),_&&(0,L.jsx)(Oe,{control:p,bubbles:!g.current,name:r,value:c,checked:i,required:o,disabled:s,form:d,style:{transform:`translateX(-100%)`}})]})});we.displayName=ye;var Te=`RadioIndicator`,Ee=I.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=Ce(Te,n);return(0,L.jsx)(o,{present:r||a.checked,children:(0,L.jsx)(U.span,{"data-state":ke(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});Ee.displayName=Te;var De=`RadioBubbleInput`,Oe=I.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=I.useRef(null),s=u(o,a),c=O(n),l=m(t);return I.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,L.jsx)(U.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...l,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});Oe.displayName=De;function ke(e){return e?`checked`:`unchecked`}var Ae=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],je=`RadioGroup`,[Me,Ne]=ge(je,[k,xe]),Pe=k(),Fe=xe(),[Ie,Le]=Me(je),Re=I.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...m}=e,h=Pe(n),g=p(u),[_,v]=s({prop:a,defaultProp:i??null,onChange:f,caller:je});return(0,L.jsx)(Ie,{scope:n,name:r,required:o,disabled:c,value:_,onValueChange:v,children:(0,L.jsx)(A,{asChild:!0,...h,orientation:l,dir:g,loop:d,children:(0,L.jsx)(U.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":l,"data-disabled":c?``:void 0,dir:g,...m,ref:t})})})});Re.displayName=je;var ze=`RadioGroupItem`,Be=I.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=Le(ze,n),s=o.disabled||r,c=Pe(n),l=Fe(n),d=I.useRef(null),f=u(t,d),p=o.value===i.value,m=I.useRef(!1);return I.useEffect(()=>{let e=e=>{Ae.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,L.jsx)(re,{asChild:!0,...c,focusable:!s,active:p,children:(0,L.jsx)(we,{disabled:s,required:o.required,checked:p,...l,...i,name:o.name,ref:f,onCheck:()=>o.onValueChange(i.value),onKeyDown:a(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:a(i.onFocus,()=>{m.current&&d.current?.click()})})})});Be.displayName=ze;var Ve=`RadioGroupIndicator`,He=I.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,L.jsx)(Ee,{...Fe(n),...r,ref:t})});He.displayName=Ve;var Ue=Re,We=Be,Ge=He,Ke=e();function qe(e){let t=(0,Ke.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=h(`grid gap-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(Ue,{"data-slot":`radio-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Je(e){let t=(0,Ke.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=h(`aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsx)(Ge,{"data-slot":`radio-group-indicator`,className:`relative flex items-center justify-center`,children:(0,L.jsx)(me,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary`})}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,L.jsx)(We,{"data-slot":`radio-group-item`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Ye(){let e=(0,Ke.c)(34),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`h2`,{className:`text-3xl font-bold tracking-tight`,children:`Component Preview`}),(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`Check how your theme looks with different components and typography.`})]}),n=(0,L.jsx)(ne,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,L.jsx)(`h3`,{className:`text-xl font-semibold`,children:`Typography`}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsxs)(`section`,{className:`space-y-4`,children:[r,(0,L.jsxs)(`div`,{className:`grid gap-4 rounded-lg border p-6`,children:[(0,L.jsx)(`h1`,{className:`scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl`,children:`Heading 1: The Joke Tax Levied by the Hubble Telescope`}),(0,L.jsx)(`h2`,{className:`scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0`,children:`Heading 2: The People of the Kingdom`}),(0,L.jsx)(`h3`,{className:`scroll-m-20 text-2xl font-semibold tracking-tight`,children:`Heading 3: The King's Plan`}),(0,L.jsx)(`p`,{className:`leading-7 [&:not(:first-child)]:mt-6`,children:`The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes.`}),(0,L.jsx)(`blockquote`,{className:`mt-6 border-l-2 pl-6 italic`,children:`"After all," he said, "everyone enjoys a good joke, so why not turn that enjoyment into revenue?"`}),(0,L.jsx)(`p`,{className:`text-xl text-muted-foreground`,children:`A modal dialog that interrupts the user with important content and expects a response.`}),(0,L.jsx)(`div`,{className:`text-lg font-semibold`,children:`Are you absolutely sure?`}),(0,L.jsx)(`p`,{className:`text-sm font-medium leading-none`,children:`Email Address`}),(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Enter your email address.`})]})]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsx)(`h3`,{className:`text-xl font-semibold`,children:`Buttons & Badges`}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,L.jsx)(f,{children:`Default`}),(0,L.jsx)(f,{variant:`secondary`,children:`Secondary`}),(0,L.jsx)(f,{variant:`destructive`,children:`Destructive`}),(0,L.jsx)(f,{variant:`outline`,children:`Outline`}),(0,L.jsx)(f,{variant:`ghost`,children:`Ghost`}),(0,L.jsx)(f,{variant:`link`,children:`Link`})]}),e[5]=o):o=e[5];let s,c;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,L.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[o,(0,L.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,L.jsx)(f,{size:`lg`,children:`Large`}),(0,L.jsx)(f,{size:`default`,children:`Default`}),(0,L.jsx)(f,{size:`sm`,children:`Small`})]})]}),c=(0,L.jsx)(ne,{orientation:`vertical`,className:`hidden h-20 md:block`}),e[6]=s,e[7]=c):(s=e[6],c=e[7]);let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,L.jsxs)(`section`,{className:`space-y-4`,children:[a,(0,L.jsxs)(`div`,{className:`flex flex-wrap gap-4 rounded-lg border p-6`,children:[s,c,(0,L.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,L.jsx)(de,{children:`Default`}),(0,L.jsx)(de,{variant:`secondary`,children:`Secondary`}),(0,L.jsx)(de,{variant:`outline`,children:`Outline`}),(0,L.jsx)(de,{variant:`destructive`,children:`Destructive`})]})]})]}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(`h3`,{className:`text-xl font-semibold`,children:`Form Elements`}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-1.5`,children:[(0,L.jsx)(P,{htmlFor:`email`,children:`Email`}),(0,L.jsx)(j,{type:`email`,id:`email`,placeholder:`Email`})]}),e[10]=d):d=e[10];let p;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsxs)(`div`,{className:`space-y-4`,children:[d,(0,L.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-1.5`,children:[(0,L.jsx)(P,{htmlFor:`message`,children:`Your message`}),(0,L.jsx)(ie,{placeholder:`Type your message here.`,id:`message`})]})]}),e[11]=p):p=e[11];let m;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,L.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,L.jsx)(D,{id:`terms`}),(0,L.jsx)(P,{htmlFor:`terms`,children:`Accept terms and conditions`})]}),e[12]=m):m=e[12];let h;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,L.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,L.jsx)(Je,{value:`option-one`,id:`option-one`}),(0,L.jsx)(P,{htmlFor:`option-one`,children:`Option One`})]}),e[13]=h):h=e[13];let g;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,L.jsxs)(qe,{defaultValue:`option-one`,children:[h,(0,L.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,L.jsx)(Je,{value:`option-two`,id:`option-two`}),(0,L.jsx)(P,{htmlFor:`option-two`,children:`Option Two`})]})]}),e[14]=g):g=e[14];let S;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,L.jsx)(_,{className:`w-[180px]`,children:(0,L.jsx)(b,{placeholder:`Theme`})}),e[15]=S):S=e[15];let C;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,L.jsxs)(`section`,{className:`space-y-4`,children:[u,(0,L.jsxs)(`div`,{className:`grid gap-6 rounded-lg border p-6 md:grid-cols-2`,children:[p,(0,L.jsxs)(`div`,{className:`space-y-6`,children:[m,g,(0,L.jsxs)(y,{children:[S,(0,L.jsxs)(x,{children:[(0,L.jsx)(v,{value:`light`,children:`Light`}),(0,L.jsx)(v,{value:`dark`,children:`Dark`}),(0,L.jsx)(v,{value:`system`,children:`System`})]})]})]})]})]}),e[16]=C):C=e[16];let w;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,L.jsx)(`h3`,{className:`text-xl font-semibold`,children:`Cards & Avatars`}),e[17]=w):w=e[17];let E;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,L.jsxs)(te,{children:[(0,L.jsx)(M,{src:`https://github.com/shadcn.png`,alt:`@shadcn`}),(0,L.jsx)(ee,{children:`CN`})]}),e[18]=E):E=e[18];let O;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,L.jsxs)(ae,{className:`flex flex-row items-center gap-4`,children:[E,(0,L.jsxs)(`div`,{className:`flex flex-col`,children:[(0,L.jsx)(ce,{children:`User Profile`}),(0,L.jsx)(le,{children:`Manage your account settings.`})]})]}),e[19]=O):O=e[19];let k;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,L.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,L.jsx)(`span`,{className:`text-sm font-medium`,children:`Status`}),(0,L.jsx)(de,{variant:`outline`,children:`Active`})]}),e[20]=k):k=e[20];let A;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,L.jsxs)(ue,{children:[O,(0,L.jsxs)(se,{className:`space-y-2`,children:[k,(0,L.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,L.jsx)(`span`,{className:`text-sm font-medium`,children:`Role`}),(0,L.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:`Administrator`})]})]})]}),e[21]=A):A=e[21];let re;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,L.jsxs)(ae,{children:[(0,L.jsx)(ce,{children:`Create project`}),(0,L.jsx)(le,{children:`Deploy your new project in one-click.`})]}),e[22]=re):re=e[22];let me;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,L.jsx)(se,{children:(0,L.jsx)(`form`,{children:(0,L.jsx)(`div`,{className:`grid w-full items-center gap-4`,children:(0,L.jsxs)(`div`,{className:`flex flex-col space-y-1.5`,children:[(0,L.jsx)(P,{htmlFor:`name`,children:`Name`}),(0,L.jsx)(j,{id:`name`,placeholder:`Name of your project`})]})})})}),e[23]=me):me=e[23];let he;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,L.jsxs)(ue,{children:[re,me,(0,L.jsxs)(oe,{className:`flex justify-between`,children:[(0,L.jsx)(f,{variant:`outline`,children:`Cancel`}),(0,L.jsx)(f,{children:`Deploy`})]})]}),e[24]=he):he=e[24];let I;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,L.jsxs)(ae,{children:[(0,L.jsx)(ce,{children:`Primary Card`}),(0,L.jsx)(le,{className:`text-primary-foreground/80`,children:`This card uses the primary color background.`})]}),e[25]=I):I=e[25];let ge;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,L.jsx)(se,{children:(0,L.jsx)(`p`,{children:`Primary color is often used for the main call to action.`})}),e[26]=ge):ge=e[26];let R;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,L.jsxs)(`section`,{className:`space-y-4`,children:[w,(0,L.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2 lg:grid-cols-3`,children:[A,he,(0,L.jsxs)(ue,{className:`bg-primary text-primary-foreground`,children:[I,ge,(0,L.jsx)(oe,{children:(0,L.jsx)(f,{variant:`secondary`,className:`w-full`,children:`Get Started`})})]})]})]}),e[27]=R):R=e[27];let _e;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,L.jsx)(`h3`,{className:`text-xl font-semibold`,children:`Feedback & Loading`}),e[28]=_e):_e=e[28];let z;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,L.jsxs)(F,{children:[(0,L.jsx)(T,{className:`h-4 w-4`}),(0,L.jsx)(pe,{children:`Heads up!`}),(0,L.jsx)(fe,{children:`You can add components to your app using the cli.`})]}),e[29]=z):z=e[29];let B;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,L.jsxs)(`div`,{className:`space-y-4`,children:[z,(0,L.jsxs)(F,{variant:`destructive`,children:[(0,L.jsx)(T,{className:`h-4 w-4`}),(0,L.jsx)(pe,{children:`Error`}),(0,L.jsx)(fe,{children:`Your session has expired. Please log in again.`})]})]}),e[30]=B):B=e[30];let V;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,L.jsx)(N,{className:`h-12 w-12 rounded-full`}),e[31]=V):V=e[31];let ve;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,L.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[V,(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(N,{className:`h-4 w-[250px]`}),(0,L.jsx)(N,{className:`h-4 w-[200px]`})]})]}),e[32]=ve):ve=e[32];let H;return e[33]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,L.jsxs)(`div`,{className:`flex flex-col gap-8 py-10`,children:[t,n,i,l,C,R,(0,L.jsxs)(`section`,{className:`space-y-4`,children:[_e,(0,L.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[B,(0,L.jsxs)(`div`,{className:`flex flex-col gap-4 rounded-lg border p-6`,children:[ve,(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(N,{className:`h-4 w-full`}),(0,L.jsx)(N,{className:`h-4 w-full`}),(0,L.jsx)(N,{className:`h-4 w-2/3`})]})]})]})]})]}),e[33]=H):H=e[33],H}var Xe=l(`relative isolate inline-flex items-center justify-center gap-2 overflow-visible rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),Ze=20,Qe=`button-particle-styles-v2`;function $e(e){if(typeof document>`u`)return;let t=document.getElementById(Qe),n=``,r=0;if(t){if(n=t.textContent||``,r=parseInt(t.dataset.maxIndex||`0`,10),r>=e)return}else t=document.createElement(`style`),t.id=Qe;t.dataset.maxIndex=String(e);let i=n;i||=` + .bp-particle { + position: absolute; + border-radius: 50%; + pointer-events: none; + z-index: 99999; + will-change: transform, opacity; + } + `;for(let t=r+1;t<=e;t++)i+=` + @keyframes particle-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="burst"][data-idx="${t}"] { + animation: particle-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes sparkle-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(180deg) scale(0.3); opacity: 0; } + } + .bp-particle[data-particle="sparkle"][data-idx="${t}"] { + animation: sparkle-burst-${t} var(--pdur) cubic-bezier(0.2, 0.8, 0.2, 1) forwards; + } + + @keyframes confetti-spray-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(360deg) scale(0.5); opacity: 0; } + } + .bp-particle[data-particle="confetti"][data-idx="${t}"] { + animation: confetti-spray-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes vburst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="vburst"][data-idx="${t}"] { + animation: vburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes hburst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="hburst"][data-idx="${t}"] { + animation: hburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes spiral-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(720deg) scale(0); opacity: 0; } + } + .bp-particle[data-particle="spiral"][data-idx="${t}"] { + animation: spiral-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + `;t.textContent=i,document.head.appendChild(t)}$e(Ze);var et=[`#ff0083`,`#ff6b6b`,`#ffd93d`,`#6bcb77`,`#4d96ff`,`#c77dff`,`#ff9f1c`,`#00f5d4`];function tt({className:e,variant:t,size:n,particle:r=`burst`,particles:i=Ze,colors:a=et,children:o,asChild:s=!1,...c}){let l=s?d:`button`,u=(0,I.useRef)(null);(0,I.useEffect)(()=>{$e(i)},[i]);let f=(e,t,n,i)=>{if(!e)return;let o=document.createElement(`div`);o.classList.add(`bp-particle`),o.dataset.idx=String(i),o.dataset.particle=r;let s=a[Math.floor(Math.random()*a.length)],c=i%2==1;switch(r){case`burst`:{let r=Math.random()*2*Math.PI,i=70+Math.random()*90,a=14+Math.random()*14;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`3px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`sparkle`:{let r=(Math.random()-.5)*80,i=-(60+Math.random()*100),a=8+Math.random()*12;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`2px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=600+Math.random()*400;o.style.setProperty(`--pdx`,`${r}px`),o.style.setProperty(`--pdy`,`${i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`confetti`:{let r=(Math.random()-.5)*Math.PI*.8,i=-Math.PI/2+r,a=80+Math.random()*120,c=Math.cos(i)*a,l=Math.sin(i)*a-40,u=10+Math.random()*8;o.style.width=`${u}px`,o.style.height=`${u*.5}px`,o.style.borderRadius=`2px`,o.style.backgroundColor=s,o.style.border=`none`;let d=700+Math.random()*400;o.style.setProperty(`--pdx`,`${c}px`),o.style.setProperty(`--pdy`,`${l}px`),o.style.setProperty(`--pdur`,`${d}ms`),o.style.left=`${t-u/2}px`,o.style.top=`${n-u/4}px`,e.appendChild(o),setTimeout(()=>o.remove(),d+50);break}case`vburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${(Math.random()-.5)*20}px`),o.style.setProperty(`--pdy`,`${r?-a:a}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`hburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${r?a:-a}px`),o.style.setProperty(`--pdy`,`${(Math.random()-.5)*40}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`spiral`:{let r=Math.random()*2*Math.PI,i=60+Math.random()*100,a=8+Math.random()*8;o.style.width=`${a}px`,o.style.height=`${a}px`,o.style.backgroundColor=s,o.style.border=`none`;let c=600+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${c}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),c+50);break}}},p=e=>{if(!u.current||(c.onClick?.(e),e.defaultPrevented))return;let t=u.current.offsetWidth/2,n=u.current.offsetHeight/2,r=u.current;for(let e=1;e<=i;e++)setTimeout(()=>f(r,t,n,e),e*12)};return(0,L.jsx)(l,{ref:u,"data-slot":`button`,"data-particle":r,className:h(Xe({variant:t,size:n,className:e})),...c,onClick:p,children:o})}var nt=1e3,rt=1001,it=1002,at=1003,ot=1004,st=1005,ct=1006,lt=1007,ut=1008,dt=1009,ft=1010,pt=1011,mt=1012,ht=1013,gt=1014,_t=1015,vt=1016,yt=1017,bt=1018,xt=1020,St=35902,Ct=35899,wt=1021,Tt=1022,Et=1023,Dt=1026,Ot=1027,kt=1028,At=1029,jt=1030,Mt=1031,Nt=1033,Pt=33776,Ft=33777,It=33778,Lt=33779,Rt=35840,zt=35841,Bt=35842,Vt=35843,Ht=36196,Ut=37492,Wt=37496,Gt=37488,Kt=37489,qt=37490,Jt=37491,Yt=37808,Xt=37809,Zt=37810,Qt=37811,$t=37812,en=37813,tn=37814,nn=37815,rn=37816,an=37817,on=37818,sn=37819,cn=37820,ln=37821,un=36492,dn=36494,fn=36495,pn=36283,mn=36284,hn=36285,gn=36286,_n=2300,vn=2301,yn=2302,bn=2303,xn=2400,Sn=2401,Cn=2402,wn=3200,Tn=`srgb`,En=`srgb-linear`,Dn=`linear`,On=`srgb`,kn=7680,An=35044,jn=35048,Mn=2e3;function Nn(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Pn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Fn(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function In(){let e=Fn(`canvas`);return e.style.display=`block`,e}var Ln={},Rn=null;function zn(...e){let t=`THREE.`+e.shift();Rn?Rn(`log`,t,...e):console.log(t,...e)}function Bn(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function W(...e){e=Bn(e);let t=`THREE.`+e.shift();if(Rn)Rn(`warn`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function G(...e){e=Bn(e);let t=`THREE.`+e.shift();if(Rn)Rn(`error`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Vn(...e){let t=e.join(` `);t in Ln||(Ln[t]=!0,W(...e))}function Hn(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Un={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Wn=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Gn[e>>16&255]+Gn[e>>24&255]+`-`+Gn[t&255]+Gn[t>>8&255]+`-`+Gn[t>>16&15|64]+Gn[t>>24&255]+`-`+Gn[n&63|128]+Gn[n>>8&255]+`-`+Gn[n>>16&255]+Gn[n>>24&255]+Gn[r&255]+Gn[r>>8&255]+Gn[r>>16&255]+Gn[r>>24&255]).toLowerCase()}function K(e,t,n){return Math.max(t,Math.min(n,e))}function Yn(e,t){return(e%t+t)%t}function Xn(e,t,n){return(1-n)*e+n*t}function Zn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function Qn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}var $n=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=K(this.x,e.x,t.x),this.y=K(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=K(this.x,e,t),this.y=K(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(K(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(K(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},er=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:W(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(K(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},q=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(nr.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(nr.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=K(this.x,e.x,t.x),this.y=K(this.y,e.y,t.y),this.z=K(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=K(this.x,e,t),this.y=K(this.y,e,t),this.z=K(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(K(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return tr.copy(this).projectOnVector(e),this.sub(tr)}reflect(e){return this.sub(tr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(K(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},tr=new q,nr=new er,J=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(rr.makeScale(e,t)),this}rotate(e){return this.premultiply(rr.makeRotation(-e)),this}translate(e,t){return this.premultiply(rr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},rr=new J,ir=new J().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),ar=new J().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function or(){let e={enabled:!0,workingColorSpace:En,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=sr(e.r),e.g=sr(e.g),e.b=sr(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=cr(e.r),e.g=cr(e.g),e.b=cr(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Dn:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Vn(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Vn(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[En]:{primaries:t,whitePoint:r,transfer:Dn,toXYZ:ir,fromXYZ:ar,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Tn},outputColorSpaceConfig:{drawingBufferColorSpace:Tn}},[Tn]:{primaries:t,whitePoint:r,transfer:On,toXYZ:ir,fromXYZ:ar,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Tn}}}),e}var Y=or();function sr(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function cr(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var lr,ur=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{lr===void 0&&(lr=Fn(`canvas`)),lr.width=e.width,lr.height=e.height;let t=lr.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=lr}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Fn(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(hr).x}get height(){return this.source.getSize(hr).y}get depth(){return this.source.getSize(hr).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){W(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){W(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case nt:e.x-=Math.floor(e.x);break;case rt:e.x=e.x<0?0:1;break;case it:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case nt:e.y-=Math.floor(e.y);break;case rt:e.y=e.y<0?0:1;break;case it:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};gr.DEFAULT_IMAGE=null,gr.DEFAULT_MAPPING=300,gr.DEFAULT_ANISOTROPY=1;var _r=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;ts+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Zr)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new Xr;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},$r={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ei={h:0,s:0,l:0},ti={h:0,s:0,l:0};function ni(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var X=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Tn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Y.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Y.workingColorSpace){return this.r=e,this.g=t,this.b=n,Y.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Y.workingColorSpace){if(e=Yn(e,1),t=K(t,0,1),n=K(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=ni(i,r,e+1/3),this.g=ni(i,r,e),this.b=ni(i,r,e-1/3)}return Y.colorSpaceToWorking(this,r),this}setStyle(e,t=Tn){function n(t){t!==void 0&&parseFloat(t)<1&&W(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:W(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);W(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Tn){let n=$r[e.toLowerCase()];return n===void 0?W(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=sr(e.r),this.g=sr(e.g),this.b=sr(e.b),this}copyLinearToSRGB(e){return this.r=cr(e.r),this.g=cr(e.g),this.b=cr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Tn){return Y.workingToColorSpace(ri.copy(this),e),Math.round(K(ri.r*255,0,255))*65536+Math.round(K(ri.g*255,0,255))*256+Math.round(K(ri.b*255,0,255))}getHexString(e=Tn){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Y.workingColorSpace){Y.workingToColorSpace(ri.copy(this),t);let n=ri.r,r=ri.g,i=ri.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},ai=new q,oi=new q,si=new q,ci=new q,li=new q,ui=new q,di=new q,fi=new q,pi=new q,mi=new q,hi=new _r,gi=new _r,_i=new _r,vi=class e{constructor(e=new q,t=new q,n=new q){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),ai.subVectors(e,t),r.cross(ai);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){ai.subVectors(r,t),oi.subVectors(n,t),si.subVectors(e,t);let a=ai.dot(ai),o=ai.dot(oi),s=ai.dot(si),c=oi.dot(oi),l=oi.dot(si),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,ci)===null?!1:ci.x>=0&&ci.y>=0&&ci.x+ci.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,ci)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,ci.x),s.addScaledVector(a,ci.y),s.addScaledVector(o,ci.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return hi.setScalar(0),gi.setScalar(0),_i.setScalar(0),hi.fromBufferAttribute(e,t),gi.fromBufferAttribute(e,n),_i.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(hi,i.x),a.addScaledVector(gi,i.y),a.addScaledVector(_i,i.z),a}static isFrontFacing(e,t,n,r){return ai.subVectors(n,t),oi.subVectors(e,t),ai.cross(oi).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ai.subVectors(this.c,this.b),oi.subVectors(this.a,this.b),ai.cross(oi).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;li.subVectors(r,n),ui.subVectors(i,n),fi.subVectors(e,n);let s=li.dot(fi),c=ui.dot(fi);if(s<=0&&c<=0)return t.copy(n);pi.subVectors(e,r);let l=li.dot(pi),u=ui.dot(pi);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(li,a);mi.subVectors(e,i);let f=li.dot(mi),p=ui.dot(mi);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(ui,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return di.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(di,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(li,a).addScaledVector(ui,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},yi=class{constructor(e=new q(1/0,1/0,1/0),t=new q(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,xi),xi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ki),Ai.subVectors(this.max,ki),Ci.subVectors(e.a,ki),wi.subVectors(e.b,ki),Ti.subVectors(e.c,ki),Ei.subVectors(wi,Ci),Di.subVectors(Ti,wi),Oi.subVectors(Ci,Ti);let t=[0,-Ei.z,Ei.y,0,-Di.z,Di.y,0,-Oi.z,Oi.y,Ei.z,0,-Ei.x,Di.z,0,-Di.x,Oi.z,0,-Oi.x,-Ei.y,Ei.x,0,-Di.y,Di.x,0,-Oi.y,Oi.x,0];return!Ni(t,Ci,wi,Ti,Ai)||(t=[1,0,0,0,1,0,0,0,1],!Ni(t,Ci,wi,Ti,Ai))?!1:(ji.crossVectors(Ei,Di),t=[ji.x,ji.y,ji.z],Ni(t,Ci,wi,Ti,Ai))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,xi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(xi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(bi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),bi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),bi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),bi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),bi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),bi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),bi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),bi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(bi),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},bi=[new q,new q,new q,new q,new q,new q,new q,new q],xi=new q,Si=new yi,Ci=new q,wi=new q,Ti=new q,Ei=new q,Di=new q,Oi=new q,ki=new q,Ai=new q,ji=new q,Mi=new q;function Ni(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Mi.fromArray(e,a);let o=i.x*Math.abs(Mi.x)+i.y*Math.abs(Mi.y)+i.z*Math.abs(Mi.z),s=t.dot(Mi),c=n.dot(Mi),l=r.dot(Mi);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Pi=new q,Fi=new $n,Ii=0,Z=class extends Wn{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:Ii++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=An,this.updateRanges=[],this.gpuType=_t,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Vi.subVectors(e,this.center);let t=Vi.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Vi,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Hi.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Vi.copy(e.center).add(Hi)),this.expandByPoint(Vi.copy(e.center).sub(Hi))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Wi=0,Gi=new Sr,Ki=new Yr,qi=new q,Ji=new yi,Yi=new yi,Xi=new q,Zi=class e extends Wn{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,`id`,{value:Wi++}),this.uuid=Jn(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Nn(e)?Ri:Li)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new J().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Gi.makeRotationFromQuaternion(e),this.applyMatrix4(Gi),this}rotateX(e){return Gi.makeRotationX(e),this.applyMatrix4(Gi),this}rotateY(e){return Gi.makeRotationY(e),this.applyMatrix4(Gi),this}rotateZ(e){return Gi.makeRotationZ(e),this.applyMatrix4(Gi),this}translate(e,t,n){return Gi.makeTranslation(e,t,n),this.applyMatrix4(Gi),this}scale(e,t,n){return Gi.makeScale(e,t,n),this.applyMatrix4(Gi),this}lookAt(e){return Ki.lookAt(e),Ki.updateMatrix(),this.applyMatrix4(Ki.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(qi).negate(),this.translate(qi.x,qi.y,qi.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&W(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new yi);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){G(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new q(-1/0,-1/0,-1/0),new q(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){W(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){W(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},ea=new q,ta=new q,na=new q,ra=new q,ia=new q,aa=new q,oa=new q,sa=class{constructor(e=new q,t=new q(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ea)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ea.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ea.copy(this.origin).addScaledVector(this.direction,t),ea.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){ta.copy(e).add(t).multiplyScalar(.5),na.copy(t).sub(e).normalize(),ra.copy(this.origin).sub(ta);let i=e.distanceTo(t)*.5,a=-this.direction.dot(na),o=ra.dot(this.direction),s=-ra.dot(na),c=ra.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(ta).addScaledVector(na,d),f}intersectSphere(e,t){ea.subVectors(e.center,this.origin);let n=ea.dot(this.direction),r=ea.dot(ea)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ea)!==null}intersectTriangle(e,t,n,r,i){ia.subVectors(t,e),aa.subVectors(n,e),oa.crossVectors(ia,aa);let a=this.direction.dot(oa),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;ra.subVectors(this.origin,e);let s=o*this.direction.dot(aa.crossVectors(ra,aa));if(s<0)return null;let c=o*this.direction.dot(ia.cross(ra));if(c<0||s+c>a)return null;let l=-o*ra.dot(oa);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},ca=class extends $i{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new X(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mr,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},la=new Sr,ua=new sa,da=new Ui,fa=new q,pa=new q,ma=new q,ha=new q,ga=new q,_a=new q,va=new q,ya=new q,ba=class extends Yr{constructor(e=new Zi,t=new ca){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2))&&(la.copy(i).invert(),ua.copy(e.ray).applyMatrix4(la),!(n.boundingBox!==null&&ua.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,ua)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:ya.clone(),object:e}}function Sa(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,pa),e.getVertexPosition(c,ma),e.getVertexPosition(l,ha);let u=xa(e,t,n,r,pa,ma,ha,va);if(u){let e=new q;vi.getBarycoord(va,pa,ma,ha,e),i&&(u.uv=vi.getInterpolatedAttribute(i,s,c,l,e,new $n)),a&&(u.uv1=vi.getInterpolatedAttribute(a,s,c,l,e,new $n)),o&&(u.normal=vi.getInterpolatedAttribute(o,s,c,l,e,new q),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new q,materialIndex:0};vi.getNormal(pa,ma,ha,t.normal),u.face=t,u.barycoord=e}return u}var Ca=class extends gr{constructor(e=null,t=1,n=1,r,i,a,o,s,c=at,l=at,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},wa=new q,Ta=new q,Ea=new J,Da=class{constructor(e=new q(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=wa.subVectors(n,t).cross(Ta.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(wa),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||Ea.getNormalMatrix(e),r=this.coplanarPoint(wa).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}},Oa=new Ui,ka=new $n(.5,.5),Aa=new q,ja=class{constructor(e=new Da,t=new Da,n=new Da,r=new Da,i=new Da,a=new Da){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Mn,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Oa.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Oa.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Oa)}intersectsSprite(e){return Oa.center.set(0,0,0),Oa.radius=.7071067811865476+ka.distanceTo(e.center),Oa.applyMatrix4(e.matrixWorld),this.intersectsSphere(Oa)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,Aa.y=r.normal.y>0?e.max.y:e.min.y,Aa.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Aa)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Ma=class extends $i{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new X(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},Na=new q,Pa=new q,Fa=new Sr,Ia=new sa,La=new Ui,Ra=new q,za=new q,Ba=class extends Yr{constructor(e=new Zi,t=new Ma){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;Ra.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Ra);if(!(ct.far))return{distance:c,point:za.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ha=new q,Ua=new q,Wa=class extends Ba{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Qa=class extends gr{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},$a=class extends gr{constructor(e,t,n=gt,r,i,a,o=at,s=at,c,l=Dt,u=1){if(l!==1026&&l!==1027)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new fr(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},eo=class extends $a{constructor(e,t=gt,n=301,r,i,a=at,o=at,s,c=Dt){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},to=class extends gr{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},no=class e extends Zi{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new zi(c,3)),this.setAttribute(`normal`,new zi(l,3)),this.setAttribute(`uv`,new zi(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new q;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},mo=class extends po{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},ho=class extends $i{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new X(16777215),this.specular=new X(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new X(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new $n(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mr,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},go=class extends $i{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=wn,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},_o=class extends $i{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function vo(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var yo=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(G(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(G(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){G(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){G(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Pn(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){G(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===yn,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};wo.prototype.ValueTypeName=``,wo.prototype.TimeBufferType=Float32Array,wo.prototype.ValueBufferType=Float32Array,wo.prototype.DefaultInterpolation=vn;var To=class extends wo{constructor(e,t,n){super(e,t,n)}};To.prototype.ValueTypeName=`bool`,To.prototype.ValueBufferType=Array,To.prototype.DefaultInterpolation=_n,To.prototype.InterpolantFactoryMethodLinear=void 0,To.prototype.InterpolantFactoryMethodSmooth=void 0;var Eo=class extends wo{constructor(e,t,n,r){super(e,t,n,r)}};Eo.prototype.ValueTypeName=`color`;var Do=class extends wo{constructor(e,t,n,r){super(e,t,n,r)}};Do.prototype.ValueTypeName=`number`;var Oo=class extends yo{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)er.slerpFlat(i,0,a,c-o,a,c,s);return i}},ko=class extends wo{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new Oo(this.times,this.values,this.getValueSize(),e)}};ko.prototype.ValueTypeName=`quaternion`,ko.prototype.InterpolantFactoryMethodSmooth=void 0;var Ao=class extends wo{constructor(e,t,n){super(e,t,n)}};Ao.prototype.ValueTypeName=`string`,Ao.prototype.ValueBufferType=Array,Ao.prototype.DefaultInterpolation=_n,Ao.prototype.InterpolantFactoryMethodLinear=void 0,Ao.prototype.InterpolantFactoryMethodSmooth=void 0;var jo=class extends wo{constructor(e,t,n,r){super(e,t,n,r)}};jo.prototype.ValueTypeName=`vector`;var Mo=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;te.start-t.start);let t=0;for(let e=1;e 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + varying vec4 vColor; +#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + vColor = vec4( 1.0 ); +#endif +#ifdef USE_COLOR_ALPHA + vColor *= color; +#elif defined( USE_COLOR ) + vColor.rgb *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.rgb *= instanceColor.rgb; +#endif +#ifdef USE_BATCHING_COLOR + vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) ); +#endif`,common:`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE + emissiveColor = sRGBTransferEOTF( emissiveColor ); + #endif + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferEOTF( in vec4 value ) { + return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +}`,envmap_fragment:`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * reflectVec ); + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif + #endif +#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif +#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,envmap_vertex:`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,fog_vertex:`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,fog_pars_vertex:`#ifdef USE_FOG + varying float vFogDepth; +#endif`,fog_fragment:`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,fog_pars_fragment:`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,lights_lambert_fragment:`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif +#include `,lights_toon_fragment:`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +material.metalness = metalnessFactor; +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; + material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = vec3( 0.04 ); + material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT; +struct PhysicalMaterial { + vec3 diffuseColor; + vec3 diffuseContribution; + vec3 specularColor; + vec3 specularColorBlended; + float roughness; + float metalness; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + vec3 iridescenceFresnelDielectric; + vec3 iridescenceFresnelMetallic; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColorBlended; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float rInv = 1.0 / ( roughness + 0.1 ); + float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; + float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; + float DG = exp( a * dotNV + b ); + return saturate( DG ); +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; + vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; + vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; + vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; + float Ess_V = dfgV.x + dfgV.y; + float Ess_L = dfgL.x + dfgL.y; + float Ems_V = 1.0 - Ess_V; + float Ems_L = 1.0 - Ess_L; + vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; + vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); + float compensationFactor = Ems_V * Ems_L; + vec3 multiScatter = Fms * compensationFactor; + return singleScatter + multiScatter; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + #ifdef USE_CLEARCOAT + vec3 Ncc = geometryClearcoatNormal; + vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness ); + vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat ); + vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat ); + mat3 mInvClearcoat = mat3( + vec3( t1Clearcoat.x, 0, t1Clearcoat.y ), + vec3( 0, 1, 0 ), + vec3( t1Clearcoat.z, 0, t1Clearcoat.w ) + ); + vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y; + clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords ); + #endif + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + + float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); + + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); + + irradiance *= sheenEnergyComp; + + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); + #ifdef USE_SHEEN + float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; + diffuse *= sheenEnergyComp; + #endif + reflectedLight.indirectDiffuse += diffuse; +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; + #endif + vec3 singleScatteringDielectric = vec3( 0.0 ); + vec3 multiScatteringDielectric = vec3( 0.0 ); + vec3 singleScatteringMetallic = vec3( 0.0 ); + vec3 multiScatteringMetallic = vec3( 0.0 ); + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); + computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); + #endif + vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); + vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); + vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; + vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + vec3 indirectSpecular = radiance * singleScattering; + indirectSpecular += multiScattering * cosineWeightedIrradiance; + vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; + #ifdef USE_SHEEN + float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; + indirectSpecular *= sheenEnergyComp; + indirectDiffuse *= sheenEnergyComp; + #endif + reflectedLight.indirectSpecular += indirectSpecular; + reflectedLight.indirectDiffuse += indirectDiffuse; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,lights_fragment_begin:` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); + material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif + #ifdef USE_LIGHT_PROBES_GRID + vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz; + vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix ); + irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal ); + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV ) + #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse ) + #if defined( LAMBERT ) || defined( PHONG ) + irradiance += iblIrradiance; + #endif + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,lightprobes_pars_fragment:`#ifdef USE_LIGHT_PROBES_GRID +uniform highp sampler3D probesSH; +uniform vec3 probesMin; +uniform vec3 probesMax; +uniform vec3 probesResolution; +vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) { + vec3 res = probesResolution; + vec3 gridRange = probesMax - probesMin; + vec3 resMinusOne = res - 1.0; + vec3 probeSpacing = gridRange / resMinusOne; + vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5; + vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 ); + uvw = uvw * resMinusOne / res + 0.5 / res; + float nz = res.z; + float paddedSlices = nz + 2.0; + float atlasDepth = 7.0 * paddedSlices; + float uvZBase = uvw.z * nz + 1.0; + vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) ); + vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) ); + vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) ); + vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) ); + vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) ); + vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) ); + vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) ); + vec3 c0 = s0.xyz; + vec3 c1 = vec3( s0.w, s1.xy ); + vec3 c2 = vec3( s1.zw, s2.x ); + vec3 c3 = s2.yzw; + vec3 c4 = s3.xyz; + vec3 c5 = vec3( s3.w, s4.xy ); + vec3 c6 = vec3( s4.zw, s5.x ); + vec3 c7 = s5.yzw; + vec3 c8 = s6.xyz; + float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z; + vec3 result = c0 * 0.886227; + result += c1 * 2.0 * 0.511664 * y; + result += c2 * 2.0 * 0.511664 * z; + result += c3 * 2.0 * 0.511664 * x; + result += c4 * 2.0 * 0.429043 * x * y; + result += c5 * 2.0 * 0.429043 * y * z; + result += c6 * ( 0.743125 * z * z - 0.247708 ); + result += c7 * 2.0 * 0.429043 * x * z; + result += c8 * 0.429043 * ( x * x - y * y ); + return max( result, vec3( 0.0 ) ); +} +#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + varying float vFragDepth; + varying float vIsPerspective; +#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,map_fragment:`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,map_pars_fragment:`#ifdef USE_MAP + uniform sampler2D map; +#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,metalnessmap_fragment:`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } +#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #if defined( USE_PACKED_NORMALMAP ) + mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) ); + #endif + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,normal_vertex:`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,opaque_fragment:`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; +const float Inv255 = 1. / 255.; +const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); +const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); +const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); +const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); +vec4 packDepthToRGBA( const in float v ) { + if( v <= 0.0 ) + return vec4( 0., 0., 0., 0. ); + if( v >= 1.0 ) + return vec4( 1., 1., 1., 1. ); + float vuf; + float af = modf( v * PackFactors.a, vuf ); + float bf = modf( vuf * ShiftRight8, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); +} +vec3 packDepthToRGB( const in float v ) { + if( v <= 0.0 ) + return vec3( 0., 0., 0. ); + if( v >= 1.0 ) + return vec3( 1., 1., 1. ); + float vuf; + float bf = modf( v * PackFactors.b, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec3( vuf * Inv255, gf * PackUpscale, bf ); +} +vec2 packDepthToRG( const in float v ) { + if( v <= 0.0 ) + return vec2( 0., 0. ); + if( v >= 1.0 ) + return vec2( 1., 1. ); + float vuf; + float gf = modf( v * 256., vuf ); + return vec2( vuf * Inv255, gf ); +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors4 ); +} +float unpackRGBToDepth( const in vec3 v ) { + return dot( v, UnpackFactors3 ); +} +float unpackRGToDepth( const in vec2 v ) { + return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; +} +vec4 pack2HalfToRGBA( const in vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( const in vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + #ifdef USE_REVERSED_DEPTH_BUFFER + + return depth * ( far - near ) - far; + #else + return depth * ( near - far ) - near; + #endif +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + + #ifdef USE_REVERSED_DEPTH_BUFFER + return ( near * far ) / ( ( near - far ) * depth - near ); + #else + return ( near * far ) / ( ( far - near ) * depth - far ); + #endif +}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,dithering_pars_fragment:`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,roughnessmap_fragment:`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + #else + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + #else + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + #elif defined( SHADOWMAP_TYPE_BASIC ) + uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + #if defined( SHADOWMAP_TYPE_PCF ) + float interleavedGradientNoise( vec2 position ) { + return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); + } + vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { + const float goldenAngle = 2.399963229728653; + float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); + float theta = float( sampleIndex ) * goldenAngle + phi; + return vec2( cos( theta ), sin( theta ) ) * r; + } + #endif + #if defined( SHADOWMAP_TYPE_PCF ) + float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float radius = shadowRadius * texelSize.x; + float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; + shadow = ( + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) + ) * 0.2; + } + return mix( 1.0, shadow, shadowIntensity ); + } + #elif defined( SHADOWMAP_TYPE_VSM ) + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadowCoord.z -= shadowBias; + #else + shadowCoord.z += shadowBias; + #endif + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; + float mean = distribution.x; + float variance = distribution.y * distribution.y; + #ifdef USE_REVERSED_DEPTH_BUFFER + float hard_shadow = step( mean, shadowCoord.z ); + #else + float hard_shadow = step( shadowCoord.z, mean ); + #endif + + if ( hard_shadow == 1.0 ) { + shadow = 1.0; + } else { + variance = max( variance, 0.0000001 ); + float d = shadowCoord.z - mean; + float p_max = variance / ( variance + d * d ); + p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); + shadow = max( hard_shadow, p_max ); + } + } + return mix( 1.0, shadow, shadowIntensity ); + } + #else + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadowCoord.z -= shadowBias; + #else + shadowCoord.z += shadowBias; + #endif + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + float depth = texture2D( shadowMap, shadowCoord.xy ).r; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadow = step( depth, shadowCoord.z ); + #else + shadow = step( shadowCoord.z, depth ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + vec3 bd3D = normalize( lightToPosition ); + vec3 absVec = abs( lightToPosition ); + float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); + if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { + #ifdef USE_REVERSED_DEPTH_BUFFER + float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp -= shadowBias; + #else + float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp += shadowBias; + #endif + float texelSize = shadowRadius / shadowMapSize.x; + vec3 absDir = abs( bd3D ); + vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); + tangent = normalize( cross( bd3D, tangent ) ); + vec3 bitangent = cross( bd3D, tangent ); + float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; + vec2 sample0 = vogelDiskSample( 0, 5, phi ); + vec2 sample1 = vogelDiskSample( 1, 5, phi ); + vec2 sample2 = vogelDiskSample( 2, 5, phi ); + vec2 sample3 = vogelDiskSample( 3, 5, phi ); + vec2 sample4 = vogelDiskSample( 4, 5, phi ); + shadow = ( + texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) ) + ) * 0.2; + } + return mix( 1.0, shadow, shadowIntensity ); + } + #elif defined( SHADOWMAP_TYPE_BASIC ) + float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + vec3 absVec = abs( lightToPosition ); + float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); + if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { + float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + float depth = textureCube( shadowMap, bd3D ).r; + #ifdef USE_REVERSED_DEPTH_BUFFER + depth = 1.0 - depth; + #endif + shadow = step( dp, depth ); + } + return mix( 1.0, shadow, shadowIntensity ); + } + #endif + #endif +#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + #ifdef HAS_NORMAL + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #else + vec3 shadowWorldNormal = vec3( 0.0 ); + #endif + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,shadowmask_pars_fragment:`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,skinbase_vertex:`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,skinning_vertex:`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,skinnormal_vertex:`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,specularmap_fragment:`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,tonemapping_pars_fragment:`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 CineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + #else + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`,background_vert:`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,background_frag:`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,backgroundCube_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,backgroundCube_frag:`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,cube_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,cube_frag:`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,depth_vert:`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,depth_frag:`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + #ifdef USE_REVERSED_DEPTH_BUFFER + float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; + #else + float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; + #endif + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #elif DEPTH_PACKING == 3202 + gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); + #elif DEPTH_PACKING == 3203 + gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); + #endif +}`,distance_vert:`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,distance_frag:`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); +}`,equirect_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,equirect_frag:`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,linedashed_vert:`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,linedashed_frag:`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,meshbasic_vert:`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,meshbasic_frag:`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,meshlambert_vert:`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,meshlambert_frag:`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,meshmatcap_vert:`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,meshmatcap_frag:`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,meshnormal_vert:`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,meshnormal_frag:`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,meshphong_vert:`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,meshphong_frag:`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,meshphysical_vert:`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,meshphysical_frag:`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + + outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; + + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,meshtoon_vert:`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,meshtoon_frag:`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,points_vert:`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,points_frag:`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,shadow_vert:`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,shadow_frag:`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include + #include +}`,sprite_vert:`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix[ 3 ]; + vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,sprite_frag:`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`},$={common:{diffuse:{value:new X(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new J},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new J}},envmap:{envMap:{value:null},envMapRotation:{value:new J},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new J}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new J}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new J},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new J},normalScale:{value:new $n(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new J},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new J}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new J}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new J}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new X(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new q},probesMax:{value:new q},probesResolution:{value:new q}},points:{diffuse:{value:new X(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0},uvTransform:{value:new J}},sprite:{diffuse:{value:new X(16777215)},opacity:{value:1},center:{value:new $n(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new J},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0}}},_s={basic:{uniforms:ao([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.fog]),vertexShader:Q.meshbasic_vert,fragmentShader:Q.meshbasic_frag},lambert:{uniforms:ao([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new X(0)},envMapIntensity:{value:1}}]),vertexShader:Q.meshlambert_vert,fragmentShader:Q.meshlambert_frag},phong:{uniforms:ao([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new X(0)},specular:{value:new X(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Q.meshphong_vert,fragmentShader:Q.meshphong_frag},standard:{uniforms:ao([$.common,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.roughnessmap,$.metalnessmap,$.fog,$.lights,{emissive:{value:new X(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag},toon:{uniforms:ao([$.common,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.gradientmap,$.fog,$.lights,{emissive:{value:new X(0)}}]),vertexShader:Q.meshtoon_vert,fragmentShader:Q.meshtoon_frag},matcap:{uniforms:ao([$.common,$.bumpmap,$.normalmap,$.displacementmap,$.fog,{matcap:{value:null}}]),vertexShader:Q.meshmatcap_vert,fragmentShader:Q.meshmatcap_frag},points:{uniforms:ao([$.points,$.fog]),vertexShader:Q.points_vert,fragmentShader:Q.points_frag},dashed:{uniforms:ao([$.common,$.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Q.linedashed_vert,fragmentShader:Q.linedashed_frag},depth:{uniforms:ao([$.common,$.displacementmap]),vertexShader:Q.depth_vert,fragmentShader:Q.depth_frag},normal:{uniforms:ao([$.common,$.bumpmap,$.normalmap,$.displacementmap,{opacity:{value:1}}]),vertexShader:Q.meshnormal_vert,fragmentShader:Q.meshnormal_frag},sprite:{uniforms:ao([$.sprite,$.fog]),vertexShader:Q.sprite_vert,fragmentShader:Q.sprite_frag},background:{uniforms:{uvTransform:{value:new J},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Q.background_vert,fragmentShader:Q.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new J}},vertexShader:Q.backgroundCube_vert,fragmentShader:Q.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Q.cube_vert,fragmentShader:Q.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Q.equirect_vert,fragmentShader:Q.equirect_frag},distance:{uniforms:ao([$.common,$.displacementmap,{referencePosition:{value:new q},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Q.distance_vert,fragmentShader:Q.distance_frag},shadow:{uniforms:ao([$.lights,$.fog,{color:{value:new X(0)},opacity:{value:1}}]),vertexShader:Q.shadow_vert,fragmentShader:Q.shadow_frag}};_s.physical={uniforms:ao([_s.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new J},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new J},clearcoatNormalScale:{value:new $n(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new J},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new J},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new J},sheen:{value:0},sheenColor:{value:new X(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new J},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new J},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new J},transmissionSamplerSize:{value:new $n},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new J},attenuationDistance:{value:0},attenuationColor:{value:new X(0)},specularColor:{value:new X(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new J},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new J},anisotropyVector:{value:new $n},anisotropyMap:{value:null},anisotropyMapTransform:{value:new J}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag};var vs={r:0,b:0,g:0},ys=new Sr,bs=new J;bs.set(-1,0,0,0,1,0,0,0,1);function xs(e,t,n,r,i,a){let o=new X(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new ba(new no(1,1,1),new po({name:`BackgroundCubeMaterial`,uniforms:io(_s.backgroundCube.uniforms),vertexShader:_s.backgroundCube.vertexShader,fragmentShader:_s.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(ys.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(bs),l.material.toneMapped=Y.getTransfer(i.colorSpace)!==On,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new ba(new ro(2,2),new po({name:`BackgroundMaterial`,uniforms:io(_s.background.uniforms),vertexShader:_s.background.vertexShader,fragmentShader:_s.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,`map`,{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Y.getTransfer(i.colorSpace)!==On,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(vs,co(e)),n.buffers.color.setClear(vs.r,vs.g,vs.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Ss(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(W(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&W(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Ts(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Da,s=new J,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Ws(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Us(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Ws()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Us());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;Bs(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,As)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Es?n-d+Es:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,Bs(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,As),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,Bs(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,As)}_blur(e,t,n,r,i){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,`latitudinal`,i),this._halfBlur(a,e,n,n,r,`longitudinal`,i)}_halfBlur(e,t,n,r,i,a,o){let s=this._renderer,c=this._blurMaterial;a!==`latitudinal`&&a!==`longitudinal`&&G(`blur direction must be either latitudinal or longitudinal!`);let l=this._lodMeshes[r];l.material=c;let u=c.uniforms,d=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*d):2*Math.PI/(2*Os-1),p=i/f,m=isFinite(i)?1+Math.floor(3*p):Os;m>Os&&W(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${Os}`);let h=[],g=0;for(let e=0;e_-Es?r-_+Es:0),4*(this._cubeSize-v),3*v,2*v),s.setRenderTarget(t),s.render(l,As)}};function Rs(e){let t=[],n=[],r=[],i=e,a=e-Es+1+Ds.length;for(let o=0;oe-Es?s=Ds[o-e+Es-1]:o===0&&(s=0),n.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new Zi;h.setAttribute(`position`,new Z(f,3)),h.setAttribute(`uv`,new Z(p,2)),h.setAttribute(`faceIndex`,new Z(m,1)),r.push(new ba(h,null)),i>Es&&i--}return{lodMeshes:r,sizeLods:t,sigmas:n}}function zs(e,t,n){let r=new yr(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function Bs(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Vs(e,t,n){return new po({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:ks,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:Gs(),fragmentShader:` + + precision highp float; + precision highp int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform float roughness; + uniform float mipInt; + + #define ENVMAP_TYPE_CUBE_UV + #include + + #define PI 3.14159265359 + + // Van der Corput radical inverse + float radicalInverse_VdC(uint bits) { + bits = (bits << 16u) | (bits >> 16u); + bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); + bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); + bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); + bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); + return float(bits) * 2.3283064365386963e-10; // / 0x100000000 + } + + // Hammersley sequence + vec2 hammersley(uint i, uint N) { + return vec2(float(i) / float(N), radicalInverse_VdC(i)); + } + + // GGX VNDF importance sampling (Eric Heitz 2018) + // "Sampling the GGX Distribution of Visible Normals" + // https://jcgt.org/published/0007/04/01/ + vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { + float alpha = roughness * roughness; + + // Section 4.1: Orthonormal basis + vec3 T1 = vec3(1.0, 0.0, 0.0); + vec3 T2 = cross(V, T1); + + // Section 4.2: Parameterization of projected area + float r = sqrt(Xi.x); + float phi = 2.0 * PI * Xi.y; + float t1 = r * cos(phi); + float t2 = r * sin(phi); + float s = 0.5 * (1.0 + V.z); + t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; + + // Section 4.3: Reprojection onto hemisphere + vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V; + + // Section 3.4: Transform back to ellipsoid configuration + return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); + } + + void main() { + vec3 N = normalize(vOutputDirection); + vec3 V = N; // Assume view direction equals normal for pre-filtering + + vec3 prefilteredColor = vec3(0.0); + float totalWeight = 0.0; + + // For very low roughness, just sample the environment directly + if (roughness < 0.001) { + gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); + return; + } + + // Tangent space basis for VNDF sampling + vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); + vec3 tangent = normalize(cross(up, N)); + vec3 bitangent = cross(N, tangent); + + for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { + vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); + + // For PMREM, V = N, so in tangent space V is always (0, 0, 1) + vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); + + // Transform H back to world space + vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); + vec3 L = normalize(2.0 * dot(V, H) * H - V); + + float NdotL = max(dot(N, L), 0.0); + + if(NdotL > 0.0) { + // Sample environment at fixed mip level + // VNDF importance sampling handles the distribution filtering + vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); + + // Weight by NdotL for the split-sum approximation + // VNDF PDF naturally accounts for the visible microfacet distribution + prefilteredColor += sampleColor * NdotL; + totalWeight += NdotL; + } + } + + if (totalWeight > 0.0) { + prefilteredColor = prefilteredColor / totalWeight; + } + + gl_FragColor = vec4(prefilteredColor, 1.0); + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Hs(e,t,n){let r=new Float32Array(Os),i=new q(0,1,0);return new po({name:`SphericalGaussianBlur`,defines:{n:Os,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Gs(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Us(){return new po({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:Gs(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Ws(){return new po({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Gs(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Gs(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}var Ks=class extends yr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Qa(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},r=new no(5,5,5),i=new po({name:`CubemapFromEquirect`,uniforms:io(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new ba(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=ct),new $o(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function qs(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304)if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}else{let r=n.image;if(r&&r.height>0){let i=new Ks(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}else return null}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Ls(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Ls(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function Js(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Vn(`WebGLRenderer: `+e+` extension not supported.`),t}}}function Ys(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?Ri:Li)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new br(h,p,m,u);g.type=_t,g.needsUpdate=!0;let _=f*4;for(let t=0;t + #include + + void main() { + gl_FragColor = texture2D( tDiffuse, vUv ); + + #ifdef LINEAR_TONE_MAPPING + gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); + #elif defined( REINHARD_TONE_MAPPING ) + gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); + #elif defined( CINEON_TONE_MAPPING ) + gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); + #elif defined( ACES_FILMIC_TONE_MAPPING ) + gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); + #elif defined( AGX_TONE_MAPPING ) + gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); + #elif defined( NEUTRAL_TONE_MAPPING ) + gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); + #elif defined( CUSTOM_TONE_MAPPING ) + gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); + #endif + + #ifdef SRGB_TRANSFER + gl_FragColor = sRGBTransferOETF( gl_FragColor ); + #endif + }`,depthTest:!1,depthWrite:!1}),l=new ba(s,c),u=new qo(-1,1,1,-1,0,1),d=null,f=null,p=!1,m,h=null,g=[],_=!1;this.setSize=function(e,t){a.setSize(e,t),o.setSize(e,t);for(let n=0;n0&&g[0].isRenderPass===!0;let t=a.width,n=a.height;for(let e=0;e0)return e;let i=t*n,a=sc[i];if(a===void 0&&(a=new Float32Array(i),sc[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function pc(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function ll(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var ul=37297,dl=0;function fl(e,t){let n=e.split(` +`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` +`)}var pl=new J;function ml(e){Y._getMatrix(pl,Y.workingColorSpace,e);let t=`mat3( ${pl.elements.map(e=>e.toFixed(4))} )`;switch(Y.getTransfer(e)){case Dn:return[t,`LinearTransferOETF`];case On:return[t,`sRGBTransferOETF`];default:return W(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function hl(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` + +`+i+` + +`+fl(e.getShaderSource(t),r)}else return i}function gl(e,t){let n=ml(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` +`)}var _l={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function vl(e,t){let n=_l[t];return n===void 0?(W(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var yl=new q;function bl(){return Y.getLuminanceCoefficients(yl),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${yl.x.toFixed(4)}, ${yl.y.toFixed(4)}, ${yl.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` +`)}function xl(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(wl).join(` +`)}function Sl(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` +`)}function Cl(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Ol(e){return e.replace(Dl,Al)}var kl=new Map;function Al(e,t){let n=Q[t];if(n===void 0){let e=kl.get(t);if(e!==void 0)n=Q[e],W(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return Ol(n)}var jl=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ml(e){return e.replace(jl,Nl)}function Nl(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(wl).join(` +`),_.length>0&&(_+=` +`)):(g=[Pl(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(wl).join(` +`),_=[Pl(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Q.tonemapping_pars_fragment,n.toneMapping===0?``:vl(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Q.colorspace_pars_fragment,gl(`linearToOutputTexel`,n.outputColorSpace),bl(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(wl).join(` +`)),o=Ol(o),o=Tl(o,n),o=El(o,n),s=Ol(s),s=Tl(s,n),s=El(s,n),o=Ml(o),s=Ml(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` +`)+` +`+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` +`)+` +`+_);let y=v+g+o,b=v+_+s,x=ll(i,i.VERTEX_SHADER,y),S=ll(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=hl(i,x,`vertex`),n=hl(i,S,`fragment`);G(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` + +Material Name: `+t.name+` +Material Type: `+t.type+` + +Program Info Log: `+o+` +`+e+` +`+n)}else o===``?(s===``||c===``)&&(u=!1):W(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new cl(i,h),T=Cl(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,ul)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=dl++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var Gl=0,Kl=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new ql(e),t.set(e,n)),n}},ql=class{constructor(e){this.id=Gl++,this.code=e,this.usedTimes=0}};function Jl(e){return e===1030||e===37490||e===36285}function Yl(e,t,n,r,i,a){let o=new Nr,s=new Kl,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&W(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=_s[C];D=e.vertexShader,O=e.fragmentShader}else D=i.vertexShader,O=i.fragmentShader,s.update(i),k=s.getVertexShaderID(i),A=s.getFragmentShaderID(i);let j=e.getRenderTarget(),ee=e.state.buffers.depth.getReversed(),M=h.isInstancedMesh===!0,N=h.isBatchedMesh===!0,te=!!i.map,ne=!!i.matcap,re=!!x,ie=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,P=!!i.roughnessMap,de=i.anisotropy>0,fe=i.clearcoat>0,pe=i.dispersion>0,F=i.iridescence>0,me=i.sheen>0,he=i.transmission>0,I=de&&!!i.anisotropyMap,L=fe&&!!i.clearcoatMap,ge=fe&&!!i.clearcoatNormalMap,R=fe&&!!i.clearcoatRoughnessMap,_e=F&&!!i.iridescenceMap,z=F&&!!i.iridescenceThicknessMap,B=me&&!!i.sheenColorMap,V=me&&!!i.sheenRoughnessMap,ve=!!i.specularMap,H=!!i.specularColorMap,U=!!i.specularIntensityMap,ye=he&&!!i.transmissionMap,be=he&&!!i.thicknessMap,xe=!!i.gradientMap,Se=!!i.alphaMap,Ce=i.alphaTest>0,we=!!i.alphaHash,Te=!!i.extensions,Ee=0;i.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Ee=e.toneMapping);let De={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:N,batchingColor:N&&h._colorsTexture!==null,instancing:M,instancingColor:M&&h.instanceColor!==null,instancingMorph:M&&h.morphTexture!==null,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:Y.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:te,matcap:ne,envMap:re,envMapMode:re&&x.mapping,envMapCubeUVHeight:S,aoMap:ie,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&Jl(i.normalMap.format),metalnessMap:ue,roughnessMap:P,anisotropy:de,anisotropyMap:I,clearcoat:fe,clearcoatMap:L,clearcoatNormalMap:ge,clearcoatRoughnessMap:R,dispersion:pe,iridescence:F,iridescenceMap:_e,iridescenceThicknessMap:z,sheen:me,sheenColorMap:B,sheenRoughnessMap:V,specularMap:ve,specularColorMap:H,specularIntensityMap:U,transmission:he,transmissionMap:ye,thicknessMap:be,gradientMap:xe,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Se,alphaTest:Ce,alphaHash:we,combine:i.combine,mapUv:te&&m(i.map.channel),aoMapUv:ie&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:P&&m(i.roughnessMap.channel),anisotropyMapUv:I&&m(i.anisotropyMap.channel),clearcoatMapUv:L&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:ge&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:R&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:_e&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:z&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:B&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:V&&m(i.sheenRoughnessMap.channel),specularMapUv:ve&&m(i.specularMap.channel),specularColorMapUv:H&&m(i.specularColorMap.channel),specularIntensityMapUv:U&&m(i.specularIntensityMap.channel),transmissionMapUv:ye&&m(i.transmissionMap.channel),thicknessMapUv:be&&m(i.thicknessMap.channel),alphaMapUv:Se&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||de),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(te||Se),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:ee,skinning:h.isSkinnedMesh===!0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Ee,decodeVideoTexture:te&&i.map.isVideoTexture===!0&&Y.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&Y.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Te&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Te&&i.extensions.multiDraw===!0||N)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return De.vertexUv1s=c.has(1),De.vertexUv2s=c.has(2),De.vertexUv3s=c.has(3),c.clear(),De}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=_s[t];n=lo.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Wl(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function Xl(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function Zl(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function Ql(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function $l(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||Zl),r.length>1&&r.sort(t||Ql),i.length>1&&i.sort(t||Ql)}function d(){for(let n=t,r=e.length;n=r.length?(i=new $l,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function tu(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new q,color:new X};break;case`SpotLight`:n={position:new q,direction:new q,color:new X,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new q,color:new X,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new q,skyColor:new X,groundColor:new X};break;case`RectAreaLight`:n={color:new X,position:new q,halfWidth:new q,halfHeight:new q};break}return e[t.id]=n,n}}}function nu(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new $n};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new $n};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new $n,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var ru=0;function iu(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function au(e){let t=new tu,n=nu(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new q);let i=new q,a=new Sr,o=new Sr;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(iu);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$.LTC_FLOAT_1,r.rectAreaLTC2=$.LTC_FLOAT_2):(r.rectAreaLTC1=$.LTC_HALF_1,r.rectAreaLTC2=$.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=ru++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new ou(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var cu=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,lu=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); + gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); +}`,uu=[new q(1,0,0),new q(-1,0,0),new q(0,1,0),new q(0,-1,0),new q(0,0,1),new q(0,0,-1)],du=[new q(0,-1,0),new q(0,-1,0),new q(0,0,1),new q(0,0,-1),new q(0,-1,0),new q(0,-1,0)],fu=new Sr,pu=new q,mu=new q;function hu(e,t,n){let r=new ja,i=new $n,a=new $n,o=new _r,s=new go,c=new _o,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new po({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new $n},radius:{value:4}},vertexShader:cu,fragmentShader:lu}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new Zi;m.setAttribute(`position`,new Z(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new ba(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(W(`WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){W(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new yr(i.x,i.y,{format:jt,type:vt,minFilter:ct,magFilter:ct,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new $a(i.x,i.y,_t),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Dt,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=at,d.map.depthTexture.magFilter=at}else l.isPointLight?(d.map=new Ks(i.x),d.map.depthTexture=new eo(i.x,gt)):(d.map=new yr(i.x,i.y),d.map.depthTexture=new $a(i.x,i.y,gt)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Dt,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=ct,d.map.depthTexture.magFilter=ct):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=at,d.map.depthTexture.magFilter=at);d.camera.updateProjectionMatrix()}let g=d.map.isWebGLCubeRenderTarget?6:1;for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(N=parseFloat(/^WebGL (\d)/.exec(te)[1]),M=N>=1);let ne=null,re={},ie=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new _r().fromArray(ie),se=new _r().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new $n,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):Fn(`canvas`)}function g(e,t,n){let r=1,i=H(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),W(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&W(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];W(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||W(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?Dn:Y.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,W(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&W(`WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function M(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function N(t,i){let a=r.get(t);if(t.isVideoTexture&&V(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)W(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)W(`WebGLRenderer: Texture marked for update but image is incomplete`);else{P(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function te(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){P(a,t,i);return}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function ne(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){P(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function re(t,i){let a=r.get(t);if(t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version){de(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let ie={[nt]:e.REPEAT,[rt]:e.CLAMP_TO_EDGE,[it]:e.MIRRORED_REPEAT},ae={[at]:e.NEAREST,[ot]:e.NEAREST_MIPMAP_NEAREST,[st]:e.NEAREST_MIPMAP_LINEAR,[ct]:e.LINEAR,[lt]:e.LINEAR_MIPMAP_NEAREST,[ut]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&W(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,ie[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,ie[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,ie[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=M(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=ps(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0);else W(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data)}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=ps(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w)if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}let r=e.RGBA,i=e.RGBA,a=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,r,i,a,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=H(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=H(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),B(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,z(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function pe(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;B(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,z(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,z(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer)if(a)for(let e=0;e<6;e++)F(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?F(i.__webglFramebuffer[0],t,0):F(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),pe(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),pe(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function he(t,n,i){let a=r.get(t);n!==void 0&&fe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&me(t)}function I(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&B(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(B(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function V(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function ve(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Y.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&W(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):G(`WebGLTextures: Unsupported texture color space:`,n)),t}function H(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=ee,this.resetTextureUnits=k,this.getTextureUnits=A,this.setTextureUnits=j,this.setTexture2D=N,this.setTexture2DArray=te,this.setTexture3D=ne,this.setTextureCube=re,this.rebindTextures=he,this.setupRenderTarget=I,this.updateRenderTargetMipmap=L,this.updateMultisampleRenderTarget=_e,this.setupDepthRenderbuffer=me,this.setupFrameBufferTexture=fe,this.useMultisampledRTT=B,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function vu(e,t){function n(n,r=``){let i,a=Y.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779)if(a===`srgb`)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===35840||n===35841||n===35842||n===35843)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null;if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===36492||n===36494||n===36495)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===36283||n===36284||n===36285||n===36286)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var yu=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,bu=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`,xu=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new to(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new po({vertexShader:yu,fragmentShader:bu,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new ba(new ro(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Su=class extends Wn{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new xu,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new $n,C=null,w=new Ko;w.viewport=new _r;let T=new Ko;T.viewport=new _r;let E=[w,T],D=new es,O=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new Qr,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new Qr,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new Qr,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function j(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,j),r.removeEventListener(`inputsourceschange`,ee);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let M=new q,N=new q;function te(e,t,n){M.setFromMatrixPosition(t.matrixWorld),N.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(N),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function ne(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),D.near=T.near=w.near=t,D.far=T.far=w.far=n,(O!==D.near||k!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),O=D.near,k=D.far),D.layers.mask=e.layers.mask|6,w.layers.mask=D.layers.mask&-5,T.layers.mask=D.layers.mask&-3;let i=e.parent,a=D.cameras;ne(D,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Cu.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(wu),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Eu(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?W(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):W(`WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var Du=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Ou=null;function ku(){return Ou===null&&(Ou=new Ca(Du,16,16,jt,vt),Ou.name=`DFG_LUT`,Ou.minFilter=ct,Ou.magFilter=ct,Ou.wrapS=rt,Ou.wrapT=rt,Ou.generateMipmaps=!1,Ou.needsUpdate=!0),Ou}var Au=class{constructor(e={}){let{canvas:t=In(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=dt}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([Nt,Mt,At]),g=new Set([dt,gt,mt,xt,yt,bt]),_=new Uint32Array(4),v=new Int32Array(4),y=new q,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null;this._outputColorSpace=Tn;let O=0,k=0,A=null,j=-1,ee=null,M=new _r,N=new _r,te=null,ne=new X(0),re=0,ie=t.width,ae=t.height,oe=1,se=null,ce=null,le=new _r(0,0,ie,ae),ue=new _r(0,0,ie,ae),P=!1,de=new ja,fe=!1,pe=!1,F=new Sr,me=new q,he=new _r,I={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},L=!1;function ge(){return A===null?oe:1}let R=n;function _e(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r184`),t.addEventListener(`webglcontextlost`,Re,!1),t.addEventListener(`webglcontextrestored`,ze,!1),t.addEventListener(`webglcontextcreationerror`,Be,!1),R===null){let t=`webgl2`;if(R=_e(t,e),R===null)throw _e(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw G(`WebGLRenderer: `+e.message),e}let z,B,V,ve,H,U,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe;function Ie(){z=new Js(R),z.init(),Ne=new vu(R,z),B=new ws(R,z,e,Ne),V=new gu(R,z),B.reversedDepthBuffer&&d&&V.buffers.depth.setReversed(!0),ve=new Zs(R),H=new Xl,U=new _u(R,z,V,H,B,Ne,ve),ye=new qs(T),be=new gs(R),Pe=new Ss(R,be),xe=new Ys(R,be,ve,Pe),Se=new $s(R,xe,be,Pe,ve),Ae=new Qs(R,B,U),De=new Ts(H),Ce=new Yl(T,ye,z,B,Pe,De),we=new Tu(T,H),Te=new eu,Ee=new su(z),ke=new xs(T,ye,V,Se,p,s),Oe=new hu(T,Se,B),Fe=new Eu(R,ve,B,V),je=new Cs(R,z,ve),Me=new Xs(R,z,ve),ve.programs=Ce.programs,T.capabilities=B,T.extensions=z,T.properties=H,T.renderLists=Te,T.shadowMap=Oe,T.state=V,T.info=ve}Ie(),m!==1009&&(w=new tc(m,t.width,t.height,r,i));let Le=new Su(T,R);this.xr=Le,this.getContext=function(){return R},this.getContextAttributes=function(){return R.getContextAttributes()},this.forceContextLoss=function(){let e=z.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=z.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return oe},this.setPixelRatio=function(e){e!==void 0&&(oe=e,this.setSize(ie,ae,!1))},this.getSize=function(e){return e.set(ie,ae)},this.setSize=function(e,n,r=!0){if(Le.isPresenting){W(`WebGLRenderer: Can't change size while VR device is presenting.`);return}ie=e,ae=n,t.width=Math.floor(e*oe),t.height=Math.floor(n*oe),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(ie*oe,ae*oe).floor()},this.setDrawingBufferSize=function(e,n,r){ie=e,ae=n,oe=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009){G(`THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);return}if(e){for(let t=0;t{function n(){if(r.forEach(function(e){H.get(e).currentProgram.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}z.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let Ge=null;function Ke(e){Ge&&Ge(e)}function qe(){Ye.stop()}function Je(){Ye.start()}let Ye=new hs;Ye.setAnimationLoop(Ke),typeof self<`u`&&Ye.setContext(self),this.setAnimationLoop=function(e){Ge=e,Le.setAnimationLoop(e),e===null?Ye.stop():Ye.start()},Le.addEventListener(`sessionstart`,qe),Le.addEventListener(`sessionend`,Je),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){G(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Le.enabled===!0&&Le.isPresenting===!0,r=w!==null&&(A===null||n)&&w.begin(T,A);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Le.enabled===!0&&Le.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Le.cameraAutoUpdate===!0&&Le.updateCamera(t),t=Le.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,A),x=Ee.get(e,C.length),x.init(t),x.state.textureUnits=U.getTextureUnits(),C.push(x),F.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),de.setFromProjectionMatrix(F,Mn,t.reversedDepth),pe=this.localClippingEnabled,fe=De.init(this.clippingPlanes,pe),b=Te.get(e,S.length),b.init(),S.push(b),Le.enabled===!0&&Le.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&Xe(e,t,-1/0,T.sortObjects)}Xe(e,t,0,T.sortObjects),b.finish(),T.sortObjects===!0&&b.sort(se,ce),L=Le.enabled===!1||Le.isPresenting===!1||Le.hasDepthSensing()===!1,L&&ke.addToRenderList(b,e),this.info.render.frame++,fe===!0&&De.beginShadows();let i=x.state.shadowsArray;if(Oe.render(i,e,t),fe===!0&&De.endShadows(),this.info.autoReset===!0&&this.info.reset(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&Qe(n,r,e,t),L&&ke.render(e),Ze(b,e,t)}A!==null&&k===0&&(U.updateMultisampleRenderTarget(A),U.updateRenderTargetMipmap(A)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),Pe.resetDefaultState(),j=-1,ee=null,C.pop(),C.length>0?(x=C[C.length-1],U.setTextureUnits(x.state.textureUnits),fe===!0&&De.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function Xe(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||de.intersectsSprite(e)){r&&he.setFromMatrixPosition(e.matrixWorld).applyMatrix4(F);let t=Se.update(e),i=e.material;i.visible&&b.push(e,t,i,n,he.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||de.intersectsObject(e))){let t=Se.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),he.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),he.copy(e.boundingSphere.center)),he.applyMatrix4(e.matrixWorld).applyMatrix4(F)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&&$e(i,t,n),a.length>0&&$e(a,t,n),o.length>0&&$e(o,t,n),V.buffers.depth.setTest(!0),V.buffers.depth.setMask(!0),V.buffers.color.setMask(!0),V.setPolygonOffset(!1)}function Qe(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=z.has(`EXT_color_buffer_half_float`)||z.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new yr(1,1,{generateMipmaps:!0,type:e?vt:dt,minFilter:ut,samples:Math.max(4,B.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Y.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||M;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ne),re=T.getClearAlpha(),re<1&&T.setClearColor(16777215,.5),T.clear(),L&&ke.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),fe===!0&&De.setGlobalState(T.clippingPlanes,r),$e(e,n,r),U.updateMultisampleRenderTarget(a),U.updateRenderTargetMipmap(a),z.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function nt(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=cl.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function rt(e,t){let n=H.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function it(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=H.get(r),y=x.state.lights;if(fe===!0&&(pe===!0||e!==ee)){let t=e===ee&&r.id===j;De.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==De.numPlanes||v.numIntersection!==De.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=tt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(V.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==j&&(j=r.id,w=!0),v.needsLights){let e=it(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||ee!==e){V.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(R,`projectionMatrix`,e.projectionMatrix),O.setValue(R,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(R,me.setFromMatrixPosition(e.matrixWorld)),B.logarithmicDepthBuffer&&O.setValue(R,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(R,`isOrthographic`,e.isOrthographicCamera===!0),ee!==e&&(ee=e,w=!0,E=!0)}if(v.needsLights&&(y.state.directionalShadowMap.length>0&&O.setValue(R,`directionalShadowMap`,y.state.directionalShadowMap,U),y.state.spotShadowMap.length>0&&O.setValue(R,`spotShadowMap`,y.state.spotShadowMap,U),y.state.pointShadowMap.length>0&&O.setValue(R,`pointShadowMap`,y.state.pointShadowMap,U)),i.isSkinnedMesh){O.setOptional(R,i,`bindMatrix`),O.setOptional(R,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(R,`boneTexture`,e.boneTexture,U))}i.isBatchedMesh&&(O.setOptional(R,i,`batchingTexture`),O.setValue(R,`batchingTexture`,i._matricesTexture,U),O.setOptional(R,i,`batchingIdTexture`),O.setValue(R,`batchingIdTexture`,i._indirectTexture,U),O.setOptional(R,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(R,`batchingColorTexture`,i._colorsTexture,U));let M=n.morphAttributes;if((M.position!==void 0||M.normal!==void 0||M.color!==void 0)&&Ae.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(R,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=ku()),w){if(O.setValue(R,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&&ot(k,E),a&&r.fog===!0&&we.refreshFogUniforms(k,a),we.refreshMaterialUniforms(k,r,oe,ae,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}cl.upload(R,nt(v),k,U)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(cl.upload(R,nt(v),k,U),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(R,`center`,i.center),O.setValue(R,`modelViewMatrix`,i.modelViewMatrix),O.setValue(R,`normalMatrix`,i.normalMatrix),O.setValue(R,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&U.useMultisampledRTT(e)===!1?H.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,M.copy(e.viewport),N.copy(e.scissor),te=e.scissorTest}else M.copy(le).multiplyScalar(oe).floor(),N.copy(ue).multiplyScalar(oe).floor(),te=P;if(n!==0&&(r=ct),V.bindFramebuffer(R.FRAMEBUFFER,r)&&V.drawBuffers(e,r),V.viewport(M),V.scissor(N),V.setScissorTest(te),i){let r=H.get(e.texture);R.framebufferTexture2D(R.FRAMEBUFFER,R.COLOR_ATTACHMENT0,R.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&R.readBuffer(R.COLOR_ATTACHMENT0+s),!B.textureFormatReadable(c)){G(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!B.textureTypeReadable(l)){G(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&R.readPixels(t,n,r,i,Ne.convert(c),Ne.convert(l),a)}finally{let e=A===null?null:H.get(A).__webglFramebuffer;V.bindFramebuffer(R.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=H.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){V.bindFramebuffer(R.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(e.textures.length>1&&R.readBuffer(R.COLOR_ATTACHMENT0+s),!B.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!B.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=R.createBuffer();R.bindBuffer(R.PIXEL_PACK_BUFFER,d),R.bufferData(R.PIXEL_PACK_BUFFER,a.byteLength,R.STREAM_READ),R.readPixels(t,n,r,i,Ne.convert(l),Ne.convert(u),0);let f=A===null?null:H.get(A).__webglFramebuffer;V.bindFramebuffer(R.FRAMEBUFFER,f);let p=R.fenceSync(R.SYNC_GPU_COMMANDS_COMPLETE,0);return R.flush(),await Hn(R,p,4),R.bindBuffer(R.PIXEL_PACK_BUFFER,d),R.getBufferSubData(R.PIXEL_PACK_BUFFER,0,a),R.deleteBuffer(d),R.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;U.setTexture2D(e,0),R.copyTexSubImage2D(R.TEXTURE_2D,n,0,0,o,s,i,a),V.unbindTexture()};let lt=R.createFramebuffer(),ft=R.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ne.convert(t.format),_=Ne.convert(t.type),v;t.isData3DTexture?(U.setTexture3D(t,0),v=R.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(U.setTexture2DArray(t,0),v=R.TEXTURE_2D_ARRAY):(U.setTexture2D(t,0),v=R.TEXTURE_2D),V.activeTexture(R.TEXTURE0),V.pixelStorei(R.UNPACK_FLIP_Y_WEBGL,t.flipY),V.pixelStorei(R.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),V.pixelStorei(R.UNPACK_ALIGNMENT,t.unpackAlignment);let y=V.getParameter(R.UNPACK_ROW_LENGTH),b=V.getParameter(R.UNPACK_IMAGE_HEIGHT),x=V.getParameter(R.UNPACK_SKIP_PIXELS),S=V.getParameter(R.UNPACK_SKIP_ROWS),C=V.getParameter(R.UNPACK_SKIP_IMAGES);V.pixelStorei(R.UNPACK_ROW_LENGTH,h.width),V.pixelStorei(R.UNPACK_IMAGE_HEIGHT,h.height),V.pixelStorei(R.UNPACK_SKIP_PIXELS,l),V.pixelStorei(R.UNPACK_SKIP_ROWS,u),V.pixelStorei(R.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=H.get(e),r=H.get(t),h=H.get(n.__renderTarget),g=H.get(r.__renderTarget);V.bindFramebuffer(R.READ_FRAMEBUFFER,h.__webglFramebuffer),V.bindFramebuffer(R.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n 0.5) discard; // outside circle → transparent + // soft anti-alias ring at the edge + float alpha = 1.0 - smoothstep(0.45, 0.5, dist); + gl_FragColor = vec4(vColor, alpha * uOpacity); + } + `,transparent:!0,depthWrite:!1})}function Bu(e,t,n,r){return new po({uniforms:{uSizeMin:{value:e},uSizeMax:{value:t},uAmp:{value:n},uOpacity:{value:r}},vertexShader:` + attribute vec3 color; + varying vec3 vColor; + uniform float uSizeMin; + uniform float uSizeMax; + uniform float uAmp; + void main() { + vColor = color; + // Map Z (-amp..+amp) → (sizeMin..sizeMax) + float t = clamp((position.z + uAmp) / (2.0 * uAmp), 0.0, 1.0); + gl_PointSize = mix(uSizeMin, uSizeMax, t); + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); + } + `,fragmentShader:` + varying vec3 vColor; + uniform float uOpacity; + void main() { + vec2 uv = gl_PointCoord - vec2(0.5); + float dist = length(uv); + if (dist > 0.5) discard; + float alpha = 1.0 - smoothstep(0.45, 0.5, dist); + gl_FragColor = vec4(vColor, alpha * uOpacity); + } + `,transparent:!0,depthWrite:!1})}function Vu(e,t,n,r,i,a){let o=e+1,s=t+1,c=o*s,l=a/2,u=n/e,d=r/t,f=new Float32Array(c*3),p=new Float32Array(c*4*3),m=new Float32Array(c*4*3);for(let e=0;e{let o=Nu(a/Math.max(s*c-1,1),i);for(let i=0;i<2;i++){let[a,s]=i===0?[e,t]:[n,r];p[g*3]=a,p[g*3+1]=s,p[g*3+2]=0,m[g*3]=a,m[g*3+1]=s,m[g*3+2]=0,h[g*3]=o.r,h[g*3+1]=o.g,h[g*3+2]=o.b,g++}};if(a!==`vertical`)for(let t=0;t{let t=(0,Ke.c)(68),{className:n,style:r,lines:i,colors:a,cameraPosition:o,planeWidth:s,planeHeight:c,segmentsX:l,segmentsY:u,speed:d,amplitude:f,frequency:p,opacity:m,paused:g,mouseInfluence:_,mouseRotation:v,dotSize:y,dotSizeMin:b,crossSize:x,dashRatio:S,contourLevels:C,maxPixelRatio:w,onReady:T}=e,E=r===void 0?`grid`:r,D=i===void 0?`both`:i,O;t[0]===o?O=t[1]:(O=o===void 0?{x:0,y:0,z:10}:o,t[0]=o,t[1]=O);let k=O,A=s===void 0?80:s,j=c===void 0?40:c,ee=l===void 0?60:l,M=u===void 0?30:u,N=d===void 0?1:d,te=f===void 0?1.5:f,ne=p===void 0?.3:p,re=m===void 0?.6:m,ie=g===void 0?!1:g,ae=_===void 0?2:_,oe=v===void 0?.1:v,se=y===void 0?3:y,ce=b===void 0?1:b,le=x===void 0?.3:x,ue=S===void 0?.5:S,P=C===void 0?6:C,de=w===void 0?2:w,fe=(0,I.useRef)(null),pe;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(pe={width:0,height:0},t[2]=pe):pe=t[2];let[F,me]=(0,I.useState)(pe),he;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(he={x:0,y:0},t[3]=he):he=t[3];let ge=(0,I.useRef)(he),R=(0,I.useRef)(N),_e=(0,I.useRef)(ie),z=(0,I.useRef)(te),B=(0,I.useRef)(ne),V=(0,I.useRef)(ae),ve=(0,I.useRef)(oe),H=(0,I.useRef)(re),U,ye;t[4]===N?(U=t[5],ye=t[6]):(U=()=>{R.current=N},ye=[N],t[4]=N,t[5]=U,t[6]=ye),(0,I.useEffect)(U,ye);let be,xe;t[7]===ie?(be=t[8],xe=t[9]):(be=()=>{_e.current=ie},xe=[ie],t[7]=ie,t[8]=be,t[9]=xe),(0,I.useEffect)(be,xe);let Se,Ce;t[10]===te?(Se=t[11],Ce=t[12]):(Se=()=>{z.current=te},Ce=[te],t[10]=te,t[11]=Se,t[12]=Ce),(0,I.useEffect)(Se,Ce);let we,Te;t[13]===ne?(we=t[14],Te=t[15]):(we=()=>{B.current=ne},Te=[ne],t[13]=ne,t[14]=we,t[15]=Te),(0,I.useEffect)(we,Te);let Ee,De;t[16]===ae?(Ee=t[17],De=t[18]):(Ee=()=>{V.current=ae},De=[ae],t[16]=ae,t[17]=Ee,t[18]=De),(0,I.useEffect)(Ee,De);let Oe,ke;t[19]===oe?(Oe=t[20],ke=t[21]):(Oe=()=>{ve.current=oe},ke=[oe],t[19]=oe,t[20]=Oe,t[21]=ke),(0,I.useEffect)(Oe,ke);let Ae,je;t[22]===re?(Ae=t[23],je=t[24]):(Ae=()=>{H.current=re},je=[re],t[22]=re,t[23]=Ae,t[24]=je),(0,I.useEffect)(Ae,je);let Me,Ne;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Me=()=>{let e=fe.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0].contentRect;me({width:t.width,height:t.height})});return t.observe(e),()=>t.disconnect()},Ne=[],t[25]=Me,t[26]=Ne):(Me=t[25],Ne=t[26]),(0,I.useEffect)(Me,Ne);let Pe;t[27]!==te||t[28]!==k||t[29]!==a||t[30]!==P||t[31]!==le||t[32]!==ue||t[33]!==se||t[34]!==ce||t[35]!==D||t[36]!==de||t[37]!==T||t[38]!==j||t[39]!==A||t[40]!==ee||t[41]!==M||t[42]!==F.height||t[43]!==F.width||t[44]!==E?(Pe=()=>{let e=fe.current;if(!e||F.width===0||F.height===0)return;let t=new ii,n=new Ko(75,F.width/F.height,.1,1e3);n.position.set(k.x,k.y,k.z),n.lookAt(0,0,0);let r=new Au({alpha:!0,antialias:!0});r.setPixelRatio(Math.min(window.devicePixelRatio,de)),r.setSize(F.width,F.height),r.setClearColor(0,0),e.appendChild(r.domElement);let i=document.documentElement.classList.contains(`dark`),o=(a??(i?Mu:ju)).map(Yu),s,c,l,u=null,d=null,f=null,p=null,m=null,h=null,g=null,_=[],v=[],y=ee,b=M;if(E===`wireframe`){let e=new ro(A,j,y,b);e.setAttribute(`color`,new Z(Pu(e.attributes.position.count,o),3));let t=new ca({vertexColors:!0,wireframe:!0,transparent:!0,opacity:H.current});s=new ba(e,t),f=e.attributes.position,u=f.array,c=e,l=t}else if(E===`grid`){let{geo:e,pos:t}=Lu(y,b,A,j,o,D),n=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots`){let{geo:e,pos:t}=Ru(y,b,A,j,o),n=zu(se*2,H.current);s=new Xa(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots-wave`){let{geo:e,pos:t}=Ru(y,b,A,j,o),n=Bu(ce*2,se*2,te,H.current);s=new Xa(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`crosses`){let{geo:e,centers:t,pos:n}=Vu(y,b,A,j,o,le),r=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,r),f=e.attributes.position,u=n,p=t,c=e,l=r}else if(E===`diagonal-left`||E===`diagonal-right`){let{geo:e,pos:t}=Hu(y,b,A,j,o,E===`diagonal-left`?`left`:`right`),n=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`zigzag`){let{geo:e,pos:t}=Uu(y,b,A,j,o),n=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`hexagons`){let{geo:e,pos:t,hexCenters:n}=Wu(y,b,A,j,o),r=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,r),f=e.attributes.position,h=t,m=n,c=e,l=r}else if(E===`dashes`){let{geo:e,pos:t,basePos:n}=Gu(y,b,A,j,o,D,ue),r=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,r),f=e.attributes.position,u=t,d=n,c=e,l=r}else if(E===`contour`){let{geo:e,vtxGrid:t}=Ku(y,b,A,j,o,P),n=new Ma({vertexColors:!0,transparent:!0,opacity:H.current});s=new Wa(e,n),f=e.attributes.position,g=t,c=e,l=n}else{let{geo:e,pos:n}=qu(y,b,A,j,o),r=new ho({vertexColors:!0,transparent:!0,opacity:H.current,side:2,shininess:60}),i=new Yo(16777215,1.2);i.position.set(5,10,7);let a=new Xo(16777215,.4);t.add(i,a),v=[i,a],s=new ba(e,r),f=e.attributes.position,u=n,c=e,l=r}t.add(s);let x=()=>{n.aspect=e.clientWidth/e.clientHeight,n.updateProjectionMatrix(),r.setSize(e.clientWidth,e.clientHeight)},S=e=>{ge.current.x=e.clientX/window.innerWidth*2-1,ge.current.y=-(e.clientY/window.innerHeight)*2+1};window.addEventListener(`resize`,x),window.addEventListener(`mousemove`,S);let C=(e,t,n,r,i)=>{let a=y+1,c=0,l=r.array,u=i.array;for(let r of n){let n=Nu((r-(-te-1))/((te+1)*2),o);for(let i=0;i{if(e=2&&c+6<=l.length)for(let e=0;e<2;e++)l[c]=E[e][0],l[c+1]=E[e][1],l[c+2]=E[e][2],u[c]=n.r,u[c+1]=n.g,u[c+2]=n.b,c+=3}}r.needsUpdate=!0,i.needsUpdate=!0,s.geometry.setDrawRange(0,c/3)},w=E===`contour`?new Float32Array((y+1)*(b+1)):null,O,N=()=>{if(O=requestAnimationFrame(N),l.opacity!==void 0&&(l.opacity=H.current),l.uniforms?.uOpacity&&(l.uniforms.uOpacity.value=H.current),!_e.current){let e=performance.now()*.001*R.current,t=B.current,n=z.current,r=V.current,i=ge.current.x,a=ge.current.y;if(E===`crosses`&&p&&f&&u){let o=(y+1)*(b+1);for(let s=0;s{cancelAnimationFrame(O),window.removeEventListener(`resize`,x),window.removeEventListener(`mousemove`,S),v.forEach(e=>t.remove(e)),t.remove(s),c.dispose(),l.dispose(),_.forEach(Xu),r.dispose(),e.contains(r.domElement)&&e.removeChild(r.domElement)}},t[27]=te,t[28]=k,t[29]=a,t[30]=P,t[31]=le,t[32]=ue,t[33]=se,t[34]=ce,t[35]=D,t[36]=de,t[37]=T,t[38]=j,t[39]=A,t[40]=ee,t[41]=M,t[42]=F.height,t[43]=F.width,t[44]=E,t[45]=Pe):Pe=t[45];let Fe;t[46]!==k||t[47]!==a||t[48]!==P||t[49]!==le||t[50]!==ue||t[51]!==se||t[52]!==ce||t[53]!==D||t[54]!==de||t[55]!==T||t[56]!==j||t[57]!==A||t[58]!==ee||t[59]!==M||t[60]!==F.height||t[61]!==F.width||t[62]!==E?(Fe=[F.width,F.height,E,a,D,k,A,j,ee,M,se,ce,le,ue,P,de,T],t[46]=k,t[47]=a,t[48]=P,t[49]=le,t[50]=ue,t[51]=se,t[52]=ce,t[53]=D,t[54]=de,t[55]=T,t[56]=j,t[57]=A,t[58]=ee,t[59]=M,t[60]=F.height,t[61]=F.width,t[62]=E,t[63]=Fe):Fe=t[63],(0,I.useEffect)(Pe,Fe);let Ie;t[64]===n?Ie=t[65]:(Ie=h(`pointer-events-none absolute inset-0`,n),t[64]=n,t[65]=Ie);let Le;return t[66]===Ie?Le=t[67]:(Le=(0,L.jsx)(`div`,{ref:fe,className:Ie,"aria-hidden":`true`}),t[66]=Ie,t[67]=Le),Le};function Yu(e){return new X(e)}function Xu(e){return e.dispose()}var Zu=()=>{let e=(0,Ke.c)(15),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(S,{colors:`var(--primary)`,className:`absolute inset-0`}),n=(0,L.jsx)(S,{colors:`var(--primary)`,borderWidth:15,className:`absolute -inset-2 opacity-25 blur-xs`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,L.jsx)(`p`,{className:`font-mono text-xs tracking-wide text-balance text-primary md:text-sm`,children:`copy it, paste it, ship it`}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(S,{size:150,borderWidth:2,colors:[`var(--color-accent)`,`var(--color-primary)`]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsxs)(`div`,{className:`relative mx-auto inline-flex translate-y-2 justify-center rounded-full border border-border px-6 py-1`,children:[r,i,(0,L.jsx)(S,{size:150,borderWidth:4,className:`blur`,colors:[`var(--color-accent)`,`var(--color-primary)`]})]}),e[4]=a):a=e[4];let o,s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsxs)(`h1`,{className:`flex gap-2 text-center text-[clamp(1rem,6vw,5rem)] font-black`,children:[(0,L.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Component`}),(0,L.jsx)(`span`,{className:`inline-block scale-150 px-2 text-center font-serif`,children:`&`}),(0,L.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Animations`})]}),s=(0,L.jsx)(`p`,{className:`mx-auto max-w-3xl text-center text-sm tracking-wide text-balance md:text-lg`,children:`We are a team of passionate designers and developers dedicated to creating beautiful and functional user interfaces.`}),e[5]=o,e[6]=s):(o=e[5],s=e[6]);let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=[`var(--primary)`,`var(--color-muted)`],e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,L.jsx)(S,{size:150,colors:[`var(--primary), transparent`],borderWidth:3,className:`absolute -inset-1 blur-xs`}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(S,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-0.5`}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(tt,{colors:c,className:`text-xs md:text-sm`,children:[l,u,(0,L.jsx)(S,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),(0,L.jsx)(he,{className:`group-hover:text-brand size-4`}),(0,L.jsx)(`span`,{children:`Premium`})]}),e[10]=d):d=e[10];let f;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=[`var(--secondary)`,`var(--color-muted)`],e[11]=f):f=e[11];let p;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsxs)(`div`,{className:`flex flex-col space-y-3 p-6`,children:[a,o,s,(0,L.jsxs)(`div`,{className:`group flex justify-center space-x-2`,children:[d,(0,L.jsxs)(tt,{colors:f,className:`text-xs md:text-sm`,variant:`secondary`,children:[(0,L.jsx)(S,{colors:`var(--primary)`,size:150,borderWidth:3,className:`absolute -inset-1 blur-xs`}),(0,L.jsx)(S,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-0.5`}),(0,L.jsx)(S,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),`Themes`]})]})]}),e[12]=p):p=e[12];let m;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(m={x:0,y:-20,z:5},e[13]=m):m=e[13];let h;return e[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,L.jsxs)(`section`,{className:`relative isolate my-4 grid min-h-90 place-items-center rounded-md border border-border md:min-h-120`,children:[t,n,p,(0,L.jsx)(Ju,{cameraPosition:m,style:`wireframe`,colors:[`#a1a1a1`,`#646464`],className:`mask-linear inset-0 -z-20 rounded-[inherit] mask-linear-from-10% mask-linear-to-50% opacity-20`})]}),e[14]=h):h=e[14],h};Zu.displayName=`Hero`;function Qu(){let e=(0,Ke.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(C,{as:`section`,children:[(0,L.jsx)(Zu,{}),(0,L.jsx)(E,{code:`themes/yeti`}),(0,L.jsx)(Ye,{})]})}),e[0]=t):t=e[0],t}Qu.layout=w,Qu.displayName=`home`;export{Qu as default}; \ No newline at end of file diff --git a/public/build/assets/home-CDqIBBMJ.js b/public/build/assets/home-CDqIBBMJ.js deleted file mode 100644 index a647874..0000000 --- a/public/build/assets/home-CDqIBBMJ.js +++ /dev/null @@ -1,4211 +0,0 @@ -import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i,r as a}from"./button-B6E1T0qj.js";import{n as o,t as s}from"./createLucideIcon-wUA1TGAT.js";import{a as c,t as l}from"./main-layout-Bjl0T2Wa.js";import{t as u}from"./registry-installer-iv12Azo6.js";import{t as d}from"./glow-radial-BlYCryQ3.js";var f=s(`Crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),p=e(),m=r(t(),1),h=n(),g=i(`relative isolate inline-flex items-center justify-center gap-2 overflow-visible rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),_=20,v=`button-particle-styles-v2`;function y(e){if(typeof document>`u`)return;let t=document.getElementById(v),n=``,r=0;if(t){if(n=t.textContent||``,r=parseInt(t.dataset.maxIndex||`0`,10),r>=e)return}else t=document.createElement(`style`),t.id=v;t.dataset.maxIndex=String(e);let i=n;i||=` - .bp-particle { - position: absolute; - border-radius: 50%; - pointer-events: none; - z-index: 99999; - will-change: transform, opacity; - } - `;for(let t=r+1;t<=e;t++)i+=` - @keyframes particle-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="burst"][data-idx="${t}"] { - animation: particle-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes sparkle-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(180deg) scale(0.3); opacity: 0; } - } - .bp-particle[data-particle="sparkle"][data-idx="${t}"] { - animation: sparkle-burst-${t} var(--pdur) cubic-bezier(0.2, 0.8, 0.2, 1) forwards; - } - - @keyframes confetti-spray-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(360deg) scale(0.5); opacity: 0; } - } - .bp-particle[data-particle="confetti"][data-idx="${t}"] { - animation: confetti-spray-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes vburst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="vburst"][data-idx="${t}"] { - animation: vburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes hburst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="hburst"][data-idx="${t}"] { - animation: hburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes spiral-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(720deg) scale(0); opacity: 0; } - } - .bp-particle[data-particle="spiral"][data-idx="${t}"] { - animation: spiral-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - `;t.textContent=i,document.head.appendChild(t)}y(_);var b=[`#ff0083`,`#ff6b6b`,`#ffd93d`,`#6bcb77`,`#4d96ff`,`#c77dff`,`#ff9f1c`,`#00f5d4`];function x({className:e,variant:t,size:n,particle:r=`burst`,particles:i=_,colors:s=b,children:c,asChild:l=!1,...u}){let d=l?a:`button`,f=(0,m.useRef)(null);(0,m.useEffect)(()=>{y(i)},[i]);let p=(e,t,n,i)=>{if(!e)return;let a=document.createElement(`div`);a.classList.add(`bp-particle`),a.dataset.idx=String(i),a.dataset.particle=r;let o=s[Math.floor(Math.random()*s.length)],c=i%2==1;switch(r){case`burst`:{let r=Math.random()*2*Math.PI,i=70+Math.random()*90,s=14+Math.random()*14;a.style.width=`${s}px`,a.style.height=`${s}px`,c?(a.style.backgroundColor=`transparent`,a.style.border=`3px solid ${o}`):(a.style.backgroundColor=o,a.style.border=`none`);let l=550+Math.random()*400;a.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),a.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),a.style.setProperty(`--pdur`,`${l}ms`),a.style.left=`${t-s/2}px`,a.style.top=`${n-s/2}px`,e.appendChild(a),setTimeout(()=>a.remove(),l+50);break}case`sparkle`:{let r=(Math.random()-.5)*80,i=-(60+Math.random()*100),s=8+Math.random()*12;a.style.width=`${s}px`,a.style.height=`${s}px`,c?(a.style.backgroundColor=`transparent`,a.style.border=`2px solid ${o}`):(a.style.backgroundColor=o,a.style.border=`none`);let l=600+Math.random()*400;a.style.setProperty(`--pdx`,`${r}px`),a.style.setProperty(`--pdy`,`${i}px`),a.style.setProperty(`--pdur`,`${l}ms`),a.style.left=`${t-s/2}px`,a.style.top=`${n-s/2}px`,e.appendChild(a),setTimeout(()=>a.remove(),l+50);break}case`confetti`:{let r=(Math.random()-.5)*Math.PI*.8,i=-Math.PI/2+r,s=80+Math.random()*120,c=Math.cos(i)*s,l=Math.sin(i)*s-40,u=10+Math.random()*8;a.style.width=`${u}px`,a.style.height=`${u*.5}px`,a.style.borderRadius=`2px`,a.style.backgroundColor=o,a.style.border=`none`;let d=700+Math.random()*400;a.style.setProperty(`--pdx`,`${c}px`),a.style.setProperty(`--pdy`,`${l}px`),a.style.setProperty(`--pdur`,`${d}ms`),a.style.left=`${t-u/2}px`,a.style.top=`${n-u/4}px`,e.appendChild(a),setTimeout(()=>a.remove(),d+50);break}case`vburst`:{let r=i%2==0,s=80+Math.random()*100,c=12+Math.random()*12;a.style.width=`${c}px`,a.style.height=`${c}px`,a.style.backgroundColor=o,a.style.border=`none`;let l=550+Math.random()*400;a.style.setProperty(`--pdx`,`${(Math.random()-.5)*20}px`),a.style.setProperty(`--pdy`,`${r?-s:s}px`),a.style.setProperty(`--pdur`,`${l}ms`),a.style.left=`${t-c/2}px`,a.style.top=`${n-c/2}px`,e.appendChild(a),setTimeout(()=>a.remove(),l+50);break}case`hburst`:{let r=i%2==0,s=80+Math.random()*100,c=12+Math.random()*12;a.style.width=`${c}px`,a.style.height=`${c}px`,a.style.backgroundColor=o,a.style.border=`none`;let l=550+Math.random()*400;a.style.setProperty(`--pdx`,`${r?s:-s}px`),a.style.setProperty(`--pdy`,`${(Math.random()-.5)*40}px`),a.style.setProperty(`--pdur`,`${l}ms`),a.style.left=`${t-c/2}px`,a.style.top=`${n-c/2}px`,e.appendChild(a),setTimeout(()=>a.remove(),l+50);break}case`spiral`:{let r=Math.random()*2*Math.PI,i=60+Math.random()*100,s=8+Math.random()*8;a.style.width=`${s}px`,a.style.height=`${s}px`,a.style.backgroundColor=o,a.style.border=`none`;let c=600+Math.random()*400;a.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),a.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),a.style.setProperty(`--pdur`,`${c}ms`),a.style.left=`${t-s/2}px`,a.style.top=`${n-s/2}px`,e.appendChild(a),setTimeout(()=>a.remove(),c+50);break}}},v=e=>{if(!f.current||(u.onClick?.(e),e.defaultPrevented))return;let t=f.current.offsetWidth/2,n=f.current.offsetHeight/2,r=f.current;for(let e=1;e<=i;e++)setTimeout(()=>p(r,t,n,e),e*12)};return(0,h.jsx)(d,{ref:f,"data-slot":`button`,"data-particle":r,className:o(g({variant:t,size:n,className:e})),...u,onClick:v,children:c})}var S=1e3,C=1001,w=1002,T=1003,E=1004,D=1005,O=1006,k=1007,A=1008,ee=1009,j=1010,M=1011,N=1012,P=1013,F=1014,I=1015,te=1016,ne=1017,re=1018,ie=1020,ae=35902,oe=35899,se=1021,ce=1022,le=1023,L=1026,ue=1027,de=1028,fe=1029,pe=1030,me=1031,he=1033,ge=33776,_e=33777,ve=33778,ye=33779,be=35840,xe=35841,Se=35842,Ce=35843,we=36196,Te=37492,Ee=37496,De=37488,R=37489,Oe=37490,z=37491,ke=37808,B=37809,Ae=37810,V=37811,H=37812,je=37813,Me=37814,Ne=37815,Pe=37816,Fe=37817,Ie=37818,Le=37819,Re=37820,ze=37821,Be=36492,Ve=36494,He=36495,Ue=36283,We=36284,Ge=36285,Ke=36286,qe=2300,Je=2301,Ye=2302,Xe=2303,Ze=2400,Qe=2401,$e=2402,et=3200,tt=`srgb`,nt=`srgb-linear`,rt=`linear`,it=`srgb`,at=7680,ot=35044,st=35048,ct=2e3;function lt(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function ut(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dt(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function ft(){let e=dt(`canvas`);return e.style.display=`block`,e}var pt={},mt=null;function ht(...e){let t=`THREE.`+e.shift();mt?mt(`log`,t,...e):console.log(t,...e)}function gt(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function U(...e){e=gt(e);let t=`THREE.`+e.shift();if(mt)mt(`warn`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function W(...e){e=gt(e);let t=`THREE.`+e.shift();if(mt)mt(`error`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function _t(...e){let t=e.join(` `);t in pt||(pt[t]=!0,U(...e))}function vt(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var yt={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},bt=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+xt[e>>16&255]+xt[e>>24&255]+`-`+xt[t&255]+xt[t>>8&255]+`-`+xt[t>>16&15|64]+xt[t>>24&255]+`-`+xt[n&63|128]+xt[n>>8&255]+`-`+xt[n>>16&255]+xt[n>>24&255]+xt[r&255]+xt[r>>8&255]+xt[r>>16&255]+xt[r>>24&255]).toLowerCase()}function G(e,t,n){return Math.max(t,Math.min(n,e))}function Tt(e,t){return(e%t+t)%t}function Et(e,t,n){return(1-n)*e+n*t}function Dt(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function Ot(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}var K=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=G(this.x,e.x,t.x),this.y=G(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=G(this.x,e,t),this.y=G(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(G(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(G(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},kt=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:U(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(G(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},q=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(jt.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(jt.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=G(this.x,e.x,t.x),this.y=G(this.y,e.y,t.y),this.z=G(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=G(this.x,e,t),this.y=G(this.y,e,t),this.z=G(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(G(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return At.copy(this).projectOnVector(e),this.sub(At)}reflect(e){return this.sub(At.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(G(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},At=new q,jt=new kt,J=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Mt.makeScale(e,t)),this}rotate(e){return this.premultiply(Mt.makeRotation(-e)),this}translate(e,t){return this.premultiply(Mt.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},Mt=new J,Nt=new J().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Pt=new J().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Ft(){let e={enabled:!0,workingColorSpace:nt,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=It(e.r),e.g=It(e.g),e.b=It(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Lt(e.r),e.g=Lt(e.g),e.b=Lt(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?rt:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return _t(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return _t(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[nt]:{primaries:t,whitePoint:r,transfer:rt,toXYZ:Nt,fromXYZ:Pt,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:tt},outputColorSpaceConfig:{drawingBufferColorSpace:tt}},[tt]:{primaries:t,whitePoint:r,transfer:it,toXYZ:Nt,fromXYZ:Pt,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:tt}}}),e}var Y=Ft();function It(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Lt(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var Rt,zt=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Rt===void 0&&(Rt=dt(`canvas`)),Rt.width=e.width,Rt.height=e.height;let t=Rt.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Rt}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=dt(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(Wt).x}get height(){return this.source.getSize(Wt).y}get depth(){return this.source.getSize(Wt).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){U(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){U(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case S:e.x-=Math.floor(e.x);break;case C:e.x=e.x<0?0:1;break;case w:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case S:e.y-=Math.floor(e.y);break;case C:e.y=e.y<0?0:1;break;case w:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Gt.DEFAULT_IMAGE=null,Gt.DEFAULT_MAPPING=300,Gt.DEFAULT_ANISOTROPY=1;var Kt=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;ts+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Dn)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new En;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},kn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},An={h:0,s:0,l:0},jn={h:0,s:0,l:0};function Mn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var X=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=tt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Y.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Y.workingColorSpace){return this.r=e,this.g=t,this.b=n,Y.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Y.workingColorSpace){if(e=Tt(e,1),t=G(t,0,1),n=G(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Mn(i,r,e+1/3),this.g=Mn(i,r,e),this.b=Mn(i,r,e-1/3)}return Y.colorSpaceToWorking(this,r),this}setStyle(e,t=tt){function n(t){t!==void 0&&parseFloat(t)<1&&U(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:U(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);U(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=tt){let n=kn[e.toLowerCase()];return n===void 0?U(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=It(e.r),this.g=It(e.g),this.b=It(e.b),this}copyLinearToSRGB(e){return this.r=Lt(e.r),this.g=Lt(e.g),this.b=Lt(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tt){return Y.workingToColorSpace(Nn.copy(this),e),Math.round(G(Nn.r*255,0,255))*65536+Math.round(G(Nn.g*255,0,255))*256+Math.round(G(Nn.b*255,0,255))}getHexString(e=tt){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Y.workingColorSpace){Y.workingToColorSpace(Nn.copy(this),t);let n=Nn.r,r=Nn.g,i=Nn.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},Fn=new q,In=new q,Ln=new q,Rn=new q,zn=new q,Bn=new q,Vn=new q,Hn=new q,Un=new q,Wn=new q,Gn=new Kt,Kn=new Kt,qn=new Kt,Jn=class e{constructor(e=new q,t=new q,n=new q){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),Fn.subVectors(e,t),r.cross(Fn);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Fn.subVectors(r,t),In.subVectors(n,t),Ln.subVectors(e,t);let a=Fn.dot(Fn),o=Fn.dot(In),s=Fn.dot(Ln),c=In.dot(In),l=In.dot(Ln),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Rn)===null?!1:Rn.x>=0&&Rn.y>=0&&Rn.x+Rn.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Rn)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Rn.x),s.addScaledVector(a,Rn.y),s.addScaledVector(o,Rn.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Gn.setScalar(0),Kn.setScalar(0),qn.setScalar(0),Gn.fromBufferAttribute(e,t),Kn.fromBufferAttribute(e,n),qn.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Gn,i.x),a.addScaledVector(Kn,i.y),a.addScaledVector(qn,i.z),a}static isFrontFacing(e,t,n,r){return Fn.subVectors(n,t),In.subVectors(e,t),Fn.cross(In).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Fn.subVectors(this.c,this.b),In.subVectors(this.a,this.b),Fn.cross(In).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;zn.subVectors(r,n),Bn.subVectors(i,n),Hn.subVectors(e,n);let s=zn.dot(Hn),c=Bn.dot(Hn);if(s<=0&&c<=0)return t.copy(n);Un.subVectors(e,r);let l=zn.dot(Un),u=Bn.dot(Un);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(zn,a);Wn.subVectors(e,i);let f=zn.dot(Wn),p=Bn.dot(Wn);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Bn,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return Vn.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(Vn,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(zn,a).addScaledVector(Bn,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Yn=class{constructor(e=new q(1/0,1/0,1/0),t=new q(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Zn),Zn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ar),or.subVectors(this.max,ar),$n.subVectors(e.a,ar),er.subVectors(e.b,ar),tr.subVectors(e.c,ar),nr.subVectors(er,$n),rr.subVectors(tr,er),ir.subVectors($n,tr);let t=[0,-nr.z,nr.y,0,-rr.z,rr.y,0,-ir.z,ir.y,nr.z,0,-nr.x,rr.z,0,-rr.x,ir.z,0,-ir.x,-nr.y,nr.x,0,-rr.y,rr.x,0,-ir.y,ir.x,0];return!lr(t,$n,er,tr,or)||(t=[1,0,0,0,1,0,0,0,1],!lr(t,$n,er,tr,or))?!1:(sr.crossVectors(nr,rr),t=[sr.x,sr.y,sr.z],lr(t,$n,er,tr,or))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Zn).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Zn).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Xn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Xn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Xn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Xn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Xn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Xn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Xn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Xn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Xn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Xn=[new q,new q,new q,new q,new q,new q,new q,new q],Zn=new q,Qn=new Yn,$n=new q,er=new q,tr=new q,nr=new q,rr=new q,ir=new q,ar=new q,or=new q,sr=new q,cr=new q;function lr(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){cr.fromArray(e,a);let o=i.x*Math.abs(cr.x)+i.y*Math.abs(cr.y)+i.z*Math.abs(cr.z),s=t.dot(cr),c=n.dot(cr),l=r.dot(cr);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var ur=new q,dr=new K,fr=0,Z=class extends bt{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:fr++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=ot,this.updateRanges=[],this.gpuType=I,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;_r.subVectors(e,this.center);let t=_r.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(_r,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(vr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(_r.copy(e.center).add(vr)),this.expandByPoint(_r.copy(e.center).sub(vr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},br=0,xr=new Zt,Sr=new Tn,Cr=new q,wr=new Yn,Tr=new Yn,Er=new q,Dr=class e extends bt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,`id`,{value:br++}),this.uuid=wt(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(lt(e)?mr:pr)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new J().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return xr.makeRotationFromQuaternion(e),this.applyMatrix4(xr),this}rotateX(e){return xr.makeRotationX(e),this.applyMatrix4(xr),this}rotateY(e){return xr.makeRotationY(e),this.applyMatrix4(xr),this}rotateZ(e){return xr.makeRotationZ(e),this.applyMatrix4(xr),this}translate(e,t,n){return xr.makeTranslation(e,t,n),this.applyMatrix4(xr),this}scale(e,t,n){return xr.makeScale(e,t,n),this.applyMatrix4(xr),this}lookAt(e){return Sr.lookAt(e),Sr.updateMatrix(),this.applyMatrix4(Sr.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Cr).negate(),this.translate(Cr.x,Cr.y,Cr.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&U(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Yn);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){W(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new q(-1/0,-1/0,-1/0),new q(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){U(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){U(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},Ar=new q,jr=new q,Mr=new q,Nr=new q,Pr=new q,Fr=new q,Ir=new q,Lr=class{constructor(e=new q,t=new q(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Ar)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Ar.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Ar.copy(this.origin).addScaledVector(this.direction,t),Ar.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){jr.copy(e).add(t).multiplyScalar(.5),Mr.copy(t).sub(e).normalize(),Nr.copy(this.origin).sub(jr);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Mr),o=Nr.dot(this.direction),s=-Nr.dot(Mr),c=Nr.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(jr).addScaledVector(Mr,d),f}intersectSphere(e,t){Ar.subVectors(e.center,this.origin);let n=Ar.dot(this.direction),r=Ar.dot(Ar)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Ar)!==null}intersectTriangle(e,t,n,r,i){Pr.subVectors(t,e),Fr.subVectors(n,e),Ir.crossVectors(Pr,Fr);let a=this.direction.dot(Ir),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Nr.subVectors(this.origin,e);let s=o*this.direction.dot(Fr.crossVectors(Nr,Fr));if(s<0)return null;let c=o*this.direction.dot(Pr.cross(Nr));if(c<0||s+c>a)return null;let l=-o*Nr.dot(Ir);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Rr=class extends kr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new X(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new cn,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},zr=new Zt,Br=new Lr,Vr=new yr,Hr=new q,Ur=new q,Wr=new q,Gr=new q,Kr=new q,qr=new q,Jr=new q,Yr=new q,Xr=class extends Tn{constructor(e=new Dr,t=new Rr){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2))&&(zr.copy(i).invert(),Br.copy(e.ray).applyMatrix4(zr),!(n.boundingBox!==null&&Br.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Br)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Yr.clone(),object:e}}function Qr(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Ur),e.getVertexPosition(c,Wr),e.getVertexPosition(l,Gr);let u=Zr(e,t,n,r,Ur,Wr,Gr,Jr);if(u){let e=new q;Jn.getBarycoord(Jr,Ur,Wr,Gr,e),i&&(u.uv=Jn.getInterpolatedAttribute(i,s,c,l,e,new K)),a&&(u.uv1=Jn.getInterpolatedAttribute(a,s,c,l,e,new K)),o&&(u.normal=Jn.getInterpolatedAttribute(o,s,c,l,e,new q),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new q,materialIndex:0};Jn.getNormal(Ur,Wr,Gr,t.normal),u.face=t,u.barycoord=e}return u}var $r=class extends Gt{constructor(e=null,t=1,n=1,r,i,a,o,s,c=T,l=T,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},ei=new q,ti=new q,ni=new J,ri=class{constructor(e=new q(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=ei.subVectors(n,t).cross(ti.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(ei),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||ni.getNormalMatrix(e),r=this.coplanarPoint(ei).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}},ii=new yr,ai=new K(.5,.5),oi=new q,si=class{constructor(e=new ri,t=new ri,n=new ri,r=new ri,i=new ri,a=new ri){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=ct,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),ii.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),ii.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(ii)}intersectsSprite(e){return ii.center.set(0,0,0),ii.radius=.7071067811865476+ai.distanceTo(e.center),ii.applyMatrix4(e.matrixWorld),this.intersectsSphere(ii)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,oi.y=r.normal.y>0?e.max.y:e.min.y,oi.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(oi)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},ci=class extends kr{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new X(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},li=new q,ui=new q,di=new Zt,fi=new Lr,pi=new yr,mi=new q,hi=new q,gi=class extends Tn{constructor(e=new Dr,t=new ci){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;mi.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(mi);if(!(ct.far))return{distance:c,point:hi.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var vi=new q,yi=new q,bi=class extends gi{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Oi=class extends Gt{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},ki=class extends Gt{constructor(e,t,n=F,r,i,a,o=T,s=T,c,l=L,u=1){if(l!==1026&&l!==1027)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Vt(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},Ai=class extends ki{constructor(e,t=F,n=301,r,i,a=T,o=T,s,c=L){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},ji=class extends Gt{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Mi=class e extends Dr{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new hr(c,3)),this.setAttribute(`normal`,new hr(l,3)),this.setAttribute(`uv`,new hr(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new q;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},Ui=class extends Hi{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},Wi=class extends kr{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new X(16777215),this.specular=new X(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new X(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new K(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new cn,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Gi=class extends kr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=et,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Ki=class extends kr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function qi(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var Ji=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(W(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(W(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){W(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){W(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&ut(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){W(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Ye,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};$i.prototype.ValueTypeName=``,$i.prototype.TimeBufferType=Float32Array,$i.prototype.ValueBufferType=Float32Array,$i.prototype.DefaultInterpolation=Je;var ea=class extends $i{constructor(e,t,n){super(e,t,n)}};ea.prototype.ValueTypeName=`bool`,ea.prototype.ValueBufferType=Array,ea.prototype.DefaultInterpolation=qe,ea.prototype.InterpolantFactoryMethodLinear=void 0,ea.prototype.InterpolantFactoryMethodSmooth=void 0;var ta=class extends $i{constructor(e,t,n,r){super(e,t,n,r)}};ta.prototype.ValueTypeName=`color`;var na=class extends $i{constructor(e,t,n,r){super(e,t,n,r)}};na.prototype.ValueTypeName=`number`;var ra=class extends Ji{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)kt.slerpFlat(i,0,a,c-o,a,c,s);return i}},ia=class extends $i{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new ra(this.times,this.values,this.getValueSize(),e)}};ia.prototype.ValueTypeName=`quaternion`,ia.prototype.InterpolantFactoryMethodSmooth=void 0;var aa=class extends $i{constructor(e,t,n){super(e,t,n)}};aa.prototype.ValueTypeName=`string`,aa.prototype.ValueBufferType=Array,aa.prototype.DefaultInterpolation=qe,aa.prototype.InterpolantFactoryMethodLinear=void 0,aa.prototype.InterpolantFactoryMethodSmooth=void 0;var oa=class extends $i{constructor(e,t,n,r){super(e,t,n,r)}};oa.prototype.ValueTypeName=`vector`;var sa=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;te.start-t.start);let t=0;for(let e=1;e 0 - vec4 plane; - #ifdef ALPHA_TO_COVERAGE - float distanceToPlane, distanceGradient; - float clipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - if ( clipOpacity == 0.0 ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - float unionClipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - } - #pragma unroll_loop_end - clipOpacity *= 1.0 - unionClipOpacity; - #endif - diffuseColor.a *= clipOpacity; - if ( diffuseColor.a == 0.0 ) discard; - #else - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - bool clipped = true; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; - } - #pragma unroll_loop_end - if ( clipped ) discard; - #endif - #endif -#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; -#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0 - vClipPosition = - mvPosition.xyz; -#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) - diffuseColor *= vColor; -#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - varying vec4 vColor; -#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - vColor = vec4( 1.0 ); -#endif -#ifdef USE_COLOR_ALPHA - vColor *= color; -#elif defined( USE_COLOR ) - vColor.rgb *= color; -#endif -#ifdef USE_INSTANCING_COLOR - vColor.rgb *= instanceColor.rgb; -#endif -#ifdef USE_BATCHING_COLOR - vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) ); -#endif`,common:`#define PI 3.141592653589793 -#define PI2 6.283185307179586 -#define PI_HALF 1.5707963267948966 -#define RECIPROCAL_PI 0.3183098861837907 -#define RECIPROCAL_PI2 0.15915494309189535 -#define EPSILON 1e-6 -#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -#define whiteComplement( a ) ( 1.0 - saturate( a ) ) -float pow2( const in float x ) { return x*x; } -vec3 pow2( const in vec3 x ) { return x*x; } -float pow3( const in float x ) { return x*x*x; } -float pow4( const in float x ) { float x2 = x*x; return x2*x2; } -float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } -float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } -highp float rand( const in vec2 uv ) { - const highp float a = 12.9898, b = 78.233, c = 43758.5453; - highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); - return fract( sin( sn ) * c ); -} -#ifdef HIGH_PRECISION - float precisionSafeLength( vec3 v ) { return length( v ); } -#else - float precisionSafeLength( vec3 v ) { - float maxComponent = max3( abs( v ) ); - return length( v / maxComponent ) * maxComponent; - } -#endif -struct IncidentLight { - vec3 color; - vec3 direction; - bool visible; -}; -struct ReflectedLight { - vec3 directDiffuse; - vec3 directSpecular; - vec3 indirectDiffuse; - vec3 indirectSpecular; -}; -#ifdef USE_ALPHAHASH - varying vec3 vPosition; -#endif -vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); -} -vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); -} -bool isPerspectiveMatrix( mat4 m ) { - return m[ 2 ][ 3 ] == - 1.0; -} -vec2 equirectUv( in vec3 dir ) { - float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; - float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; - return vec2( u, v ); -} -vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; -} -vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} -float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV - #define cubeUV_minMipLevel 4.0 - #define cubeUV_minTileSize 16.0 - float getFace( vec3 direction ) { - vec3 absDirection = abs( direction ); - float face = - 1.0; - if ( absDirection.x > absDirection.z ) { - if ( absDirection.x > absDirection.y ) - face = direction.x > 0.0 ? 0.0 : 3.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } else { - if ( absDirection.z > absDirection.y ) - face = direction.z > 0.0 ? 2.0 : 5.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } - return face; - } - vec2 getUV( vec3 direction, float face ) { - vec2 uv; - if ( face == 0.0 ) { - uv = vec2( direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 1.0 ) { - uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); - } else if ( face == 2.0 ) { - uv = vec2( - direction.x, direction.y ) / abs( direction.z ); - } else if ( face == 3.0 ) { - uv = vec2( - direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 4.0 ) { - uv = vec2( - direction.x, direction.z ) / abs( direction.y ); - } else { - uv = vec2( direction.x, direction.y ) / abs( direction.z ); - } - return 0.5 * ( uv + 1.0 ); - } - vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { - float face = getFace( direction ); - float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); - mipInt = max( mipInt, cubeUV_minMipLevel ); - float faceSize = exp2( mipInt ); - highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; - if ( face > 2.0 ) { - uv.y += faceSize; - face -= 3.0; - } - uv.x += face * faceSize; - uv.x += filterInt * 3.0 * cubeUV_minTileSize; - uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); - uv.x *= CUBEUV_TEXEL_WIDTH; - uv.y *= CUBEUV_TEXEL_HEIGHT; - #ifdef texture2DGradEXT - return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; - #else - return texture2D( envMap, uv ).rgb; - #endif - } - #define cubeUV_r0 1.0 - #define cubeUV_m0 - 2.0 - #define cubeUV_r1 0.8 - #define cubeUV_m1 - 1.0 - #define cubeUV_r4 0.4 - #define cubeUV_m4 2.0 - #define cubeUV_r5 0.305 - #define cubeUV_m5 3.0 - #define cubeUV_r6 0.21 - #define cubeUV_m6 4.0 - float roughnessToMip( float roughness ) { - float mip = 0.0; - if ( roughness >= cubeUV_r1 ) { - mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; - } else if ( roughness >= cubeUV_r4 ) { - mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; - } else if ( roughness >= cubeUV_r5 ) { - mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; - } else if ( roughness >= cubeUV_r6 ) { - mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; - } else { - mip = - 2.0 * log2( 1.16 * roughness ); } - return mip; - } - vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { - float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); - float mipF = fract( mip ); - float mipInt = floor( mip ); - vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); - if ( mipF == 0.0 ) { - return vec4( color0, 1.0 ); - } else { - vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); - return vec4( mix( color0, color1, mipF ), 1.0 ); - } - } -#endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal; -#ifdef USE_TANGENT - vec3 transformedTangent = objectTangent; -#endif -#ifdef USE_BATCHING - mat3 bm = mat3( batchingMatrix ); - transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); - transformedNormal = bm * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = bm * transformedTangent; - #endif -#endif -#ifdef USE_INSTANCING - mat3 im = mat3( instanceMatrix ); - transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); - transformedNormal = im * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = im * transformedTangent; - #endif -#endif -transformedNormal = normalMatrix * transformedNormal; -#ifdef FLIP_SIDED - transformedNormal = - transformedNormal; -#endif -#ifdef USE_TANGENT - transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; - #ifdef FLIP_SIDED - transformedTangent = - transformedTangent; - #endif -#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP - uniform sampler2D displacementMap; - uniform float displacementScale; - uniform float displacementBias; -#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP - transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP - vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); - #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE - emissiveColor = sRGBTransferEOTF( emissiveColor ); - #endif - totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP - uniform sampler2D emissiveMap; -#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) { - return value; -} -vec4 sRGBTransferEOTF( in vec4 value ) { - return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); -} -vec4 sRGBTransferOETF( in vec4 value ) { - return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`,envmap_fragment:`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vec3 cameraToFrag; - if ( isOrthographic ) { - cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToFrag = normalize( vWorldPosition - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vec3 reflectVec = reflect( cameraToFrag, worldNormal ); - #else - vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); - #endif - #else - vec3 reflectVec = vReflect; - #endif - #ifdef ENVMAP_TYPE_CUBE - vec4 envColor = textureCube( envMap, envMapRotation * reflectVec ); - #ifdef ENVMAP_BLENDING_MULTIPLY - outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_MIX ) - outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_ADD ) - outgoingLight += envColor.xyz * specularStrength * reflectivity; - #endif - #endif -#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP - uniform float envMapIntensity; - uniform mat3 envMapRotation; - #ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; - #else - uniform sampler2D envMap; - #endif -#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP - uniform float reflectivity; - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - varying vec3 vWorldPosition; - uniform float refractionRatio; - #else - varying vec3 vReflect; - #endif -#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - - varying vec3 vWorldPosition; - #else - varying vec3 vReflect; - uniform float refractionRatio; - #endif -#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP - vec3 getIBLIrradiance( const in vec3 normal ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); - return PI * envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 reflectVec = reflect( - viewDir, normal ); - reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); - reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); - return envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - #ifdef USE_ANISOTROPY - vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 bentNormal = cross( bitangent, viewDir ); - bentNormal = normalize( cross( bentNormal, bitangent ) ); - bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); - return getIBLRadiance( viewDir, bentNormal, roughness ); - #else - return vec3( 0.0 ); - #endif - } - #endif -#endif`,envmap_vertex:`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vWorldPosition = worldPosition.xyz; - #else - vec3 cameraToVertex; - if ( isOrthographic ) { - cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vReflect = reflect( cameraToVertex, worldNormal ); - #else - vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); - #endif - #endif -#endif`,fog_vertex:`#ifdef USE_FOG - vFogDepth = - mvPosition.z; -#endif`,fog_pars_vertex:`#ifdef USE_FOG - varying float vFogDepth; -#endif`,fog_fragment:`#ifdef USE_FOG - #ifdef FOG_EXP2 - float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); - #else - float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); - #endif - gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,fog_pars_fragment:`#ifdef USE_FOG - uniform vec3 fogColor; - varying float vFogDepth; - #ifdef FOG_EXP2 - uniform float fogDensity; - #else - uniform float fogNear; - uniform float fogFar; - #endif -#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP - uniform sampler2D gradientMap; -#endif -vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { - float dotNL = dot( normal, lightDirection ); - vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); - #ifdef USE_GRADIENTMAP - return vec3( texture2D( gradientMap, coord ).r ); - #else - vec2 fw = fwidth( coord ) * 0.5; - return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); - #endif -}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP - uniform sampler2D lightMap; - uniform float lightMapIntensity; -#endif`,lights_lambert_fragment:`LambertMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition; -struct LambertMaterial { - vec3 diffuseColor; - float specularStrength; -}; -void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow; -uniform vec3 ambientLightColor; -#if defined( USE_LIGHT_PROBES ) - uniform vec3 lightProbe[ 9 ]; -#endif -vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { - float x = normal.x, y = normal.y, z = normal.z; - vec3 result = shCoefficients[ 0 ] * 0.886227; - result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; - result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; - result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; - result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; - result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; - result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); - result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; - result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); - return result; -} -vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); - return irradiance; -} -vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { - vec3 irradiance = ambientLightColor; - return irradiance; -} -float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { - float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); - if ( cutoffDistance > 0.0 ) { - distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); - } - return distanceFalloff; -} -float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { - return smoothstep( coneCosine, penumbraCosine, angleCosine ); -} -#if NUM_DIR_LIGHTS > 0 - struct DirectionalLight { - vec3 direction; - vec3 color; - }; - uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; - void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { - light.color = directionalLight.color; - light.direction = directionalLight.direction; - light.visible = true; - } -#endif -#if NUM_POINT_LIGHTS > 0 - struct PointLight { - vec3 position; - vec3 color; - float distance; - float decay; - }; - uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; - void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = pointLight.position - geometryPosition; - light.direction = normalize( lVector ); - float lightDistance = length( lVector ); - light.color = pointLight.color; - light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } -#endif -#if NUM_SPOT_LIGHTS > 0 - struct SpotLight { - vec3 position; - vec3 direction; - vec3 color; - float distance; - float decay; - float coneCos; - float penumbraCos; - }; - uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; - void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = spotLight.position - geometryPosition; - light.direction = normalize( lVector ); - float angleCos = dot( light.direction, spotLight.direction ); - float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); - if ( spotAttenuation > 0.0 ) { - float lightDistance = length( lVector ); - light.color = spotLight.color * spotAttenuation; - light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } else { - light.color = vec3( 0.0 ); - light.visible = false; - } - } -#endif -#if NUM_RECT_AREA_LIGHTS > 0 - struct RectAreaLight { - vec3 color; - vec3 position; - vec3 halfWidth; - vec3 halfHeight; - }; - uniform sampler2D ltc_1; uniform sampler2D ltc_2; - uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; -#endif -#if NUM_HEMI_LIGHTS > 0 - struct HemisphereLight { - vec3 direction; - vec3 skyColor; - vec3 groundColor; - }; - uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; - vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { - float dotNL = dot( normal, hemiLight.direction ); - float hemiDiffuseWeight = 0.5 * dotNL + 0.5; - vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); - return irradiance; - } -#endif -#include `,lights_toon_fragment:`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition; -struct ToonMaterial { - vec3 diffuseColor; -}; -void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularColor = specular; -material.specularShininess = shininess; -material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition; -struct BlinnPhongMaterial { - vec3 diffuseColor; - vec3 specularColor; - float specularShininess; - float specularStrength; -}; -void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; -} -void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); -material.metalness = metalnessFactor; -vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); -float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); -material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; -material.roughness = min( material.roughness, 1.0 ); -#ifdef IOR - material.ior = ior; - #ifdef USE_SPECULAR - float specularIntensityFactor = specularIntensity; - vec3 specularColorFactor = specularColor; - #ifdef USE_SPECULAR_COLORMAP - specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; - #endif - material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); - #else - float specularIntensityFactor = 1.0; - vec3 specularColorFactor = vec3( 1.0 ); - material.specularF90 = 1.0; - #endif - material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; - material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); -#else - material.specularColor = vec3( 0.04 ); - material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); - material.specularF90 = 1.0; -#endif -#ifdef USE_CLEARCOAT - material.clearcoat = clearcoat; - material.clearcoatRoughness = clearcoatRoughness; - material.clearcoatF0 = vec3( 0.04 ); - material.clearcoatF90 = 1.0; - #ifdef USE_CLEARCOATMAP - material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; - #endif - #ifdef USE_CLEARCOAT_ROUGHNESSMAP - material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; - #endif - material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); - material.clearcoatRoughness += geometryRoughness; - material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); -#endif -#ifdef USE_DISPERSION - material.dispersion = dispersion; -#endif -#ifdef USE_IRIDESCENCE - material.iridescence = iridescence; - material.iridescenceIOR = iridescenceIOR; - #ifdef USE_IRIDESCENCEMAP - material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; - #endif - #ifdef USE_IRIDESCENCE_THICKNESSMAP - material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; - #else - material.iridescenceThickness = iridescenceThicknessMaximum; - #endif -#endif -#ifdef USE_SHEEN - material.sheenColor = sheenColor; - #ifdef USE_SHEEN_COLORMAP - material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; - #endif - material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); - #ifdef USE_SHEEN_ROUGHNESSMAP - material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; - #endif -#endif -#ifdef USE_ANISOTROPY - #ifdef USE_ANISOTROPYMAP - mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); - vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; - vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; - #else - vec2 anisotropyV = anisotropyVector; - #endif - material.anisotropy = length( anisotropyV ); - if( material.anisotropy == 0.0 ) { - anisotropyV = vec2( 1.0, 0.0 ); - } else { - anisotropyV /= material.anisotropy; - material.anisotropy = saturate( material.anisotropy ); - } - material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); - material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; - material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT; -struct PhysicalMaterial { - vec3 diffuseColor; - vec3 diffuseContribution; - vec3 specularColor; - vec3 specularColorBlended; - float roughness; - float metalness; - float specularF90; - float dispersion; - #ifdef USE_CLEARCOAT - float clearcoat; - float clearcoatRoughness; - vec3 clearcoatF0; - float clearcoatF90; - #endif - #ifdef USE_IRIDESCENCE - float iridescence; - float iridescenceIOR; - float iridescenceThickness; - vec3 iridescenceFresnel; - vec3 iridescenceF0; - vec3 iridescenceFresnelDielectric; - vec3 iridescenceFresnelMetallic; - #endif - #ifdef USE_SHEEN - vec3 sheenColor; - float sheenRoughness; - #endif - #ifdef IOR - float ior; - #endif - #ifdef USE_TRANSMISSION - float transmission; - float transmissionAlpha; - float thickness; - float attenuationDistance; - vec3 attenuationColor; - #endif - #ifdef USE_ANISOTROPY - float anisotropy; - float alphaT; - vec3 anisotropyT; - vec3 anisotropyB; - #endif -}; -vec3 clearcoatSpecularDirect = vec3( 0.0 ); -vec3 clearcoatSpecularIndirect = vec3( 0.0 ); -vec3 sheenSpecularDirect = vec3( 0.0 ); -vec3 sheenSpecularIndirect = vec3(0.0 ); -vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { - float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); - float x2 = x * x; - float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); - return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); -} -float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { - float a2 = pow2( alpha ); - float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); - float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); -} -float D_GGX( const in float alpha, const in float dotNH ) { - float a2 = pow2( alpha ); - float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; - return RECIPROCAL_PI * a2 / pow2( denom ); -} -#ifdef USE_ANISOTROPY - float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { - float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); - float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); - } - float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { - float a2 = alphaT * alphaB; - highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); - highp float v2 = dot( v, v ); - float w2 = a2 / v2; - return RECIPROCAL_PI * a2 * pow2 ( w2 ); - } -#endif -#ifdef USE_CLEARCOAT - vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { - vec3 f0 = material.clearcoatF0; - float f90 = material.clearcoatF90; - float roughness = material.clearcoatRoughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - return F * ( V * D ); - } -#endif -vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 f0 = material.specularColorBlended; - float f90 = material.specularF90; - float roughness = material.roughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - #ifdef USE_IRIDESCENCE - F = mix( F, material.iridescenceFresnel, material.iridescence ); - #endif - #ifdef USE_ANISOTROPY - float dotTL = dot( material.anisotropyT, lightDir ); - float dotTV = dot( material.anisotropyT, viewDir ); - float dotTH = dot( material.anisotropyT, halfDir ); - float dotBL = dot( material.anisotropyB, lightDir ); - float dotBV = dot( material.anisotropyB, viewDir ); - float dotBH = dot( material.anisotropyB, halfDir ); - float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); - float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); - #else - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - #endif - return F * ( V * D ); -} -vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { - const float LUT_SIZE = 64.0; - const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; - const float LUT_BIAS = 0.5 / LUT_SIZE; - float dotNV = saturate( dot( N, V ) ); - vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); - uv = uv * LUT_SCALE + LUT_BIAS; - return uv; -} -float LTC_ClippedSphereFormFactor( const in vec3 f ) { - float l = length( f ); - return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); -} -vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { - float x = dot( v1, v2 ); - float y = abs( x ); - float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; - float b = 3.4175940 + ( 4.1616724 + y ) * y; - float v = a / b; - float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; - return cross( v1, v2 ) * theta_sintheta; -} -vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { - vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; - vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; - vec3 lightNormal = cross( v1, v2 ); - if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); - vec3 T1, T2; - T1 = normalize( V - N * dot( V, N ) ); - T2 = - cross( N, T1 ); - mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); - vec3 coords[ 4 ]; - coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); - coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); - coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); - coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); - coords[ 0 ] = normalize( coords[ 0 ] ); - coords[ 1 ] = normalize( coords[ 1 ] ); - coords[ 2 ] = normalize( coords[ 2 ] ); - coords[ 3 ] = normalize( coords[ 3 ] ); - vec3 vectorFormFactor = vec3( 0.0 ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); - float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); - return vec3( result ); -} -#if defined( USE_SHEEN ) -float D_Charlie( float roughness, float dotNH ) { - float alpha = pow2( roughness ); - float invAlpha = 1.0 / alpha; - float cos2h = dotNH * dotNH; - float sin2h = max( 1.0 - cos2h, 0.0078125 ); - return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); -} -float V_Neubelt( float dotNV, float dotNL ) { - return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); -} -vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float D = D_Charlie( sheenRoughness, dotNH ); - float V = V_Neubelt( dotNV, dotNL ); - return sheenColor * ( D * V ); -} -#endif -float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - float r2 = roughness * roughness; - float rInv = 1.0 / ( roughness + 0.1 ); - float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; - float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; - float DG = exp( a * dotNV + b ); - return saturate( DG ); -} -vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; - return specularColor * fab.x + specularF90 * fab.y; -} -#ifdef USE_IRIDESCENCE -void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#else -void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#endif - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; - #ifdef USE_IRIDESCENCE - vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); - #else - vec3 Fr = specularColor; - #endif - vec3 FssEss = Fr * fab.x + specularF90 * fab.y; - float Ess = fab.x + fab.y; - float Ems = 1.0 - Ess; - vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); - singleScatter += FssEss; - multiScatter += Fms * Ems; -} -vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; - vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; - vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; - vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; - float Ess_V = dfgV.x + dfgV.y; - float Ess_L = dfgL.x + dfgL.y; - float Ems_V = 1.0 - Ess_V; - float Ems_L = 1.0 - Ess_L; - vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; - vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); - float compensationFactor = Ems_V * Ems_L; - vec3 multiScatter = Fms * compensationFactor; - return singleScatter + multiScatter; -} -#if NUM_RECT_AREA_LIGHTS > 0 - void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 normal = geometryNormal; - vec3 viewDir = geometryViewDir; - vec3 position = geometryPosition; - vec3 lightPos = rectAreaLight.position; - vec3 halfWidth = rectAreaLight.halfWidth; - vec3 halfHeight = rectAreaLight.halfHeight; - vec3 lightColor = rectAreaLight.color; - float roughness = material.roughness; - vec3 rectCoords[ 4 ]; - rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; - rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; - rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; - vec2 uv = LTC_Uv( normal, viewDir, roughness ); - vec4 t1 = texture2D( ltc_1, uv ); - vec4 t2 = texture2D( ltc_2, uv ); - mat3 mInv = mat3( - vec3( t1.x, 0, t1.y ), - vec3( 0, 1, 0 ), - vec3( t1.z, 0, t1.w ) - ); - vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y ); - reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); - reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); - #ifdef USE_CLEARCOAT - vec3 Ncc = geometryClearcoatNormal; - vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness ); - vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat ); - vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat ); - mat3 mInvClearcoat = mat3( - vec3( t1Clearcoat.x, 0, t1Clearcoat.y ), - vec3( 0, 1, 0 ), - vec3( t1Clearcoat.z, 0, t1Clearcoat.w ) - ); - vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y; - clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords ); - #endif - } -#endif -void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - #ifdef USE_CLEARCOAT - float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); - vec3 ccIrradiance = dotNLcc * directLight.color; - clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); - #endif - #ifdef USE_SHEEN - - sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); - - float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); - - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); - - irradiance *= sheenEnergyComp; - - #endif - reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); -} -void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); - #ifdef USE_SHEEN - float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; - diffuse *= sheenEnergyComp; - #endif - reflectedLight.indirectDiffuse += diffuse; -} -void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { - #ifdef USE_CLEARCOAT - clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); - #endif - #ifdef USE_SHEEN - sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; - #endif - vec3 singleScatteringDielectric = vec3( 0.0 ); - vec3 multiScatteringDielectric = vec3( 0.0 ); - vec3 singleScatteringMetallic = vec3( 0.0 ); - vec3 multiScatteringMetallic = vec3( 0.0 ); - #ifdef USE_IRIDESCENCE - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); - #else - computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); - computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); - #endif - vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); - vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); - vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; - vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); - vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; - vec3 indirectSpecular = radiance * singleScattering; - indirectSpecular += multiScattering * cosineWeightedIrradiance; - vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; - #ifdef USE_SHEEN - float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; - indirectSpecular *= sheenEnergyComp; - indirectDiffuse *= sheenEnergyComp; - #endif - reflectedLight.indirectSpecular += indirectSpecular; - reflectedLight.indirectDiffuse += indirectDiffuse; -} -#define RE_Direct RE_Direct_Physical -#define RE_Direct_RectArea RE_Direct_RectArea_Physical -#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical -#define RE_IndirectSpecular RE_IndirectSpecular_Physical -float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { - return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,lights_fragment_begin:` -vec3 geometryPosition = - vViewPosition; -vec3 geometryNormal = normal; -vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); -vec3 geometryClearcoatNormal = vec3( 0.0 ); -#ifdef USE_CLEARCOAT - geometryClearcoatNormal = clearcoatNormal; -#endif -#ifdef USE_IRIDESCENCE - float dotNVi = saturate( dot( normal, geometryViewDir ) ); - if ( material.iridescenceThickness == 0.0 ) { - material.iridescence = 0.0; - } else { - material.iridescence = saturate( material.iridescence ); - } - if ( material.iridescence > 0.0 ) { - material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); - material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); - material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); - material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); - } -#endif -IncidentLight directLight; -#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - pointLight = pointLights[ i ]; - getPointLightInfo( pointLight, geometryPosition, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) - pointLightShadow = pointLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - SpotLight spotLight; - vec4 spotColor; - vec3 spotLightCoord; - bool inSpotLightMap; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - spotLight = spotLights[ i ]; - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX - #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS - #else - #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #endif - #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) - spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; - inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); - spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); - directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; - #endif - #undef SPOT_LIGHT_MAP_INDEX - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - directionalLight = directionalLights[ i ]; - getDirectionalLightInfo( directionalLight, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - RectAreaLight rectAreaLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - rectAreaLight = rectAreaLights[ i ]; - RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if defined( RE_IndirectDiffuse ) - vec3 iblIrradiance = vec3( 0.0 ); - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #if ( NUM_HEMI_LIGHTS > 0 ) - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - } - #pragma unroll_loop_end - #endif - #ifdef USE_LIGHT_PROBES_GRID - vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz; - vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix ); - irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal ); - #endif -#endif -#if defined( RE_IndirectSpecular ) - vec3 radiance = vec3( 0.0 ); - vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse ) - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - irradiance += lightMapIrradiance; - #endif - #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV ) - #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG ) - iblIrradiance += getIBLIrradiance( geometryNormal ); - #endif - #endif -#endif -#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) - #ifdef USE_ANISOTROPY - radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); - #else - radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); - #endif - #ifdef USE_CLEARCOAT - clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); - #endif -#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse ) - #if defined( LAMBERT ) || defined( PHONG ) - irradiance += iblIrradiance; - #endif - RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif -#if defined( RE_IndirectSpecular ) - RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,lightprobes_pars_fragment:`#ifdef USE_LIGHT_PROBES_GRID -uniform highp sampler3D probesSH; -uniform vec3 probesMin; -uniform vec3 probesMax; -uniform vec3 probesResolution; -vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) { - vec3 res = probesResolution; - vec3 gridRange = probesMax - probesMin; - vec3 resMinusOne = res - 1.0; - vec3 probeSpacing = gridRange / resMinusOne; - vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5; - vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 ); - uvw = uvw * resMinusOne / res + 0.5 / res; - float nz = res.z; - float paddedSlices = nz + 2.0; - float atlasDepth = 7.0 * paddedSlices; - float uvZBase = uvw.z * nz + 1.0; - vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) ); - vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) ); - vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) ); - vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) ); - vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) ); - vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) ); - vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) ); - vec3 c0 = s0.xyz; - vec3 c1 = vec3( s0.w, s1.xy ); - vec3 c2 = vec3( s1.zw, s2.x ); - vec3 c3 = s2.yzw; - vec3 c4 = s3.xyz; - vec3 c5 = vec3( s3.w, s4.xy ); - vec3 c6 = vec3( s4.zw, s5.x ); - vec3 c7 = s5.yzw; - vec3 c8 = s6.xyz; - float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z; - vec3 result = c0 * 0.886227; - result += c1 * 2.0 * 0.511664 * y; - result += c2 * 2.0 * 0.511664 * z; - result += c3 * 2.0 * 0.511664 * x; - result += c4 * 2.0 * 0.429043 * x * y; - result += c5 * 2.0 * 0.429043 * y * z; - result += c6 * ( 0.743125 * z * z - 0.247708 ); - result += c7 * 2.0 * 0.429043 * x * z; - result += c8 * 0.429043 * ( x * x - y * y ); - return max( result, vec3( 0.0 ) ); -} -#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - uniform float logDepthBufFC; - varying float vFragDepth; - varying float vIsPerspective; -#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - varying float vFragDepth; - varying float vIsPerspective; -#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - vFragDepth = 1.0 + gl_Position.w; - vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,map_fragment:`#ifdef USE_MAP - vec4 sampledDiffuseColor = texture2D( map, vMapUv ); - #ifdef DECODE_VIDEO_TEXTURE - sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); - #endif - diffuseColor *= sampledDiffuseColor; -#endif`,map_pars_fragment:`#ifdef USE_MAP - uniform sampler2D map; -#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - #if defined( USE_POINTS_UV ) - vec2 uv = vUv; - #else - vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; - #endif -#endif -#ifdef USE_MAP - diffuseColor *= texture2D( map, uv ); -#endif -#ifdef USE_ALPHAMAP - diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV ) - varying vec2 vUv; -#else - #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - uniform mat3 uvTransform; - #endif -#endif -#ifdef USE_MAP - uniform sampler2D map; -#endif -#ifdef USE_ALPHAMAP - uniform sampler2D alphaMap; -#endif`,metalnessmap_fragment:`float metalnessFactor = metalness; -#ifdef USE_METALNESSMAP - vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); - metalnessFactor *= texelMetalness.b; -#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP - uniform sampler2D metalnessMap; -#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH - float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; - } -#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS ) - vColor *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - #if defined( USE_COLOR_ALPHA ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; - #elif defined( USE_COLOR ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; - #endif - } -#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS - objectNormal *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS - #ifndef USE_INSTANCING_MORPH - uniform float morphTargetBaseInfluence; - uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - #endif - uniform sampler2DArray morphTargetsTexture; - uniform ivec2 morphTargetsTextureSize; - vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { - int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; - int y = texelIndex / morphTargetsTextureSize.x; - int x = texelIndex - y * morphTargetsTextureSize.x; - ivec3 morphUV = ivec3( x, y, morphTargetIndex ); - return texelFetch( morphTargetsTexture, morphUV, 0 ); - } -#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS - transformed *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; -#ifdef FLAT_SHADED - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); -#else - vec3 normal = normalize( vNormal ); - #ifdef DOUBLE_SIDED - normal *= faceDirection; - #endif -#endif -#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) - #ifdef USE_TANGENT - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn = getTangentFrame( - vViewPosition, normal, - #if defined( USE_NORMALMAP ) - vNormalMapUv - #elif defined( USE_CLEARCOAT_NORMALMAP ) - vClearcoatNormalMapUv - #else - vUv - #endif - ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - #endif -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - #ifdef USE_TANGENT - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - #endif -#endif -vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE - normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #ifdef FLIP_SIDED - normal = - normal; - #endif - #ifdef DOUBLE_SIDED - normal = normal * faceDirection; - #endif - normal = normalize( normalMatrix * normal ); -#elif defined( USE_NORMALMAP_TANGENTSPACE ) - vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #if defined( USE_PACKED_NORMALMAP ) - mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) ); - #endif - mapN.xy *= normalScale; - normal = normalize( tbn * mapN ); -#elif defined( USE_BUMPMAP ) - normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,normal_vertex:`#ifndef FLAT_SHADED - vNormal = normalize( transformedNormal ); - #ifdef USE_TANGENT - vTangent = normalize( transformedTangent ); - vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); - #endif -#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP - uniform sampler2D normalMap; - uniform vec2 normalScale; -#endif -#ifdef USE_NORMALMAP_OBJECTSPACE - uniform mat3 normalMatrix; -#endif -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - vec3 N = surf_norm; - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - return mat3( T * scale, B * scale, N ); - } -#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT - vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP - vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; - clearcoatMapN.xy *= clearcoatNormalScale; - clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP - uniform sampler2D clearcoatMap; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform sampler2D clearcoatNormalMap; - uniform vec2 clearcoatNormalScale; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform sampler2D clearcoatRoughnessMap; -#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP - uniform sampler2D iridescenceMap; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform sampler2D iridescenceThicknessMap; -#endif`,opaque_fragment:`#ifdef OPAQUE -diffuseColor.a = 1.0; -#endif -#ifdef USE_TRANSMISSION -diffuseColor.a *= material.transmissionAlpha; -#endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) { - return normalize( normal ) * 0.5 + 0.5; -} -vec3 unpackRGBToNormal( const in vec3 rgb ) { - return 2.0 * rgb.xyz - 1.0; -} -const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; -const float Inv255 = 1. / 255.; -const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); -const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); -const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); -const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); -vec4 packDepthToRGBA( const in float v ) { - if( v <= 0.0 ) - return vec4( 0., 0., 0., 0. ); - if( v >= 1.0 ) - return vec4( 1., 1., 1., 1. ); - float vuf; - float af = modf( v * PackFactors.a, vuf ); - float bf = modf( vuf * ShiftRight8, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); -} -vec3 packDepthToRGB( const in float v ) { - if( v <= 0.0 ) - return vec3( 0., 0., 0. ); - if( v >= 1.0 ) - return vec3( 1., 1., 1. ); - float vuf; - float bf = modf( v * PackFactors.b, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec3( vuf * Inv255, gf * PackUpscale, bf ); -} -vec2 packDepthToRG( const in float v ) { - if( v <= 0.0 ) - return vec2( 0., 0. ); - if( v >= 1.0 ) - return vec2( 1., 1. ); - float vuf; - float gf = modf( v * 256., vuf ); - return vec2( vuf * Inv255, gf ); -} -float unpackRGBAToDepth( const in vec4 v ) { - return dot( v, UnpackFactors4 ); -} -float unpackRGBToDepth( const in vec3 v ) { - return dot( v, UnpackFactors3 ); -} -float unpackRGToDepth( const in vec2 v ) { - return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; -} -vec4 pack2HalfToRGBA( const in vec2 v ) { - vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); - return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); -} -vec2 unpackRGBATo2Half( const in vec4 v ) { - return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); -} -float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { - return ( viewZ + near ) / ( near - far ); -} -float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { - #ifdef USE_REVERSED_DEPTH_BUFFER - - return depth * ( far - near ) - far; - #else - return depth * ( near - far ) - near; - #endif -} -float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { - return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); -} -float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { - - #ifdef USE_REVERSED_DEPTH_BUFFER - return ( near * far ) / ( ( near - far ) * depth - near ); - #else - return ( near * far ) / ( ( far - near ) * depth - far ); - #endif -}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 ); -#ifdef USE_BATCHING - mvPosition = batchingMatrix * mvPosition; -#endif -#ifdef USE_INSTANCING - mvPosition = instanceMatrix * mvPosition; -#endif -mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING - gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,dithering_pars_fragment:`#ifdef DITHERING - vec3 dithering( vec3 color ) { - float grid_position = rand( gl_FragCoord.xy ); - vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); - dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); - return color + dither_shift_RGB; - } -#endif`,roughnessmap_fragment:`float roughnessFactor = roughness; -#ifdef USE_ROUGHNESSMAP - vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); - roughnessFactor *= texelRoughness.g; -#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP - uniform sampler2D roughnessMap; -#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0 - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#if NUM_SPOT_LIGHT_MAPS > 0 - uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - #else - uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - #else - uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - #elif defined( SHADOWMAP_TYPE_BASIC ) - uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - #if defined( SHADOWMAP_TYPE_PCF ) - float interleavedGradientNoise( vec2 position ) { - return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); - } - vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { - const float goldenAngle = 2.399963229728653; - float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); - float theta = float( sampleIndex ) * goldenAngle + phi; - return vec2( cos( theta ), sin( theta ) ) * r; - } - #endif - #if defined( SHADOWMAP_TYPE_PCF ) - float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - shadowCoord.z += shadowBias; - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float radius = shadowRadius * texelSize.x; - float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; - shadow = ( - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) - ) * 0.2; - } - return mix( 1.0, shadow, shadowIntensity ); - } - #elif defined( SHADOWMAP_TYPE_VSM ) - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadowCoord.z -= shadowBias; - #else - shadowCoord.z += shadowBias; - #endif - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; - float mean = distribution.x; - float variance = distribution.y * distribution.y; - #ifdef USE_REVERSED_DEPTH_BUFFER - float hard_shadow = step( mean, shadowCoord.z ); - #else - float hard_shadow = step( shadowCoord.z, mean ); - #endif - - if ( hard_shadow == 1.0 ) { - shadow = 1.0; - } else { - variance = max( variance, 0.0000001 ); - float d = shadowCoord.z - mean; - float p_max = variance / ( variance + d * d ); - p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); - shadow = max( hard_shadow, p_max ); - } - } - return mix( 1.0, shadow, shadowIntensity ); - } - #else - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadowCoord.z -= shadowBias; - #else - shadowCoord.z += shadowBias; - #endif - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - float depth = texture2D( shadowMap, shadowCoord.xy ).r; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadow = step( depth, shadowCoord.z ); - #else - shadow = step( shadowCoord.z, depth ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - vec3 bd3D = normalize( lightToPosition ); - vec3 absVec = abs( lightToPosition ); - float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); - if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { - #ifdef USE_REVERSED_DEPTH_BUFFER - float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp -= shadowBias; - #else - float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp += shadowBias; - #endif - float texelSize = shadowRadius / shadowMapSize.x; - vec3 absDir = abs( bd3D ); - vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); - tangent = normalize( cross( bd3D, tangent ) ); - vec3 bitangent = cross( bd3D, tangent ); - float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; - vec2 sample0 = vogelDiskSample( 0, 5, phi ); - vec2 sample1 = vogelDiskSample( 1, 5, phi ); - vec2 sample2 = vogelDiskSample( 2, 5, phi ); - vec2 sample3 = vogelDiskSample( 3, 5, phi ); - vec2 sample4 = vogelDiskSample( 4, 5, phi ); - shadow = ( - texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) ) - ) * 0.2; - } - return mix( 1.0, shadow, shadowIntensity ); - } - #elif defined( SHADOWMAP_TYPE_BASIC ) - float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - vec3 absVec = abs( lightToPosition ); - float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); - if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { - float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp += shadowBias; - vec3 bd3D = normalize( lightToPosition ); - float depth = textureCube( shadowMap, bd3D ).r; - #ifdef USE_REVERSED_DEPTH_BUFFER - depth = 1.0 - depth; - #endif - shadow = step( dp, depth ); - } - return mix( 1.0, shadow, shadowIntensity ); - } - #endif - #endif -#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0 - uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif -#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) - #ifdef HAS_NORMAL - vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #else - vec3 shadowWorldNormal = vec3( 0.0 ); - #endif - vec4 shadowWorldPosition; -#endif -#if defined( USE_SHADOWMAP ) - #if NUM_DIR_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); - vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); - vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif -#endif -#if NUM_SPOT_LIGHT_COORDS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { - shadowWorldPosition = worldPosition; - #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; - #endif - vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end -#endif`,shadowmask_pars_fragment:`float getShadowMask() { - float shadow = 1.0; - #ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - directionalLight = directionalLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { - spotLight = spotLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) - PointLightShadow pointLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - pointLight = pointLightShadows[ i ]; - shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; - } - #pragma unroll_loop_end - #endif - #endif - return shadow; -}`,skinbase_vertex:`#ifdef USE_SKINNING - mat4 boneMatX = getBoneMatrix( skinIndex.x ); - mat4 boneMatY = getBoneMatrix( skinIndex.y ); - mat4 boneMatZ = getBoneMatrix( skinIndex.z ); - mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING - uniform mat4 bindMatrix; - uniform mat4 bindMatrixInverse; - uniform highp sampler2D boneTexture; - mat4 getBoneMatrix( const in float i ) { - int size = textureSize( boneTexture, 0 ).x; - int j = int( i ) * 4; - int x = j % size; - int y = j / size; - vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); - vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); - vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); - vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); - return mat4( v1, v2, v3, v4 ); - } -#endif`,skinning_vertex:`#ifdef USE_SKINNING - vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); - vec4 skinned = vec4( 0.0 ); - skinned += boneMatX * skinVertex * skinWeight.x; - skinned += boneMatY * skinVertex * skinWeight.y; - skinned += boneMatZ * skinVertex * skinWeight.z; - skinned += boneMatW * skinVertex * skinWeight.w; - transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,skinnormal_vertex:`#ifdef USE_SKINNING - mat4 skinMatrix = mat4( 0.0 ); - skinMatrix += skinWeight.x * boneMatX; - skinMatrix += skinWeight.y * boneMatY; - skinMatrix += skinWeight.z * boneMatZ; - skinMatrix += skinWeight.w * boneMatW; - skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; - objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; - #ifdef USE_TANGENT - objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; - #endif -#endif`,specularmap_fragment:`float specularStrength; -#ifdef USE_SPECULARMAP - vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); - specularStrength = texelSpecular.r; -#else - specularStrength = 1.0; -#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP - uniform sampler2D specularMap; -#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING ) - gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,tonemapping_pars_fragment:`#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -uniform float toneMappingExposure; -vec3 LinearToneMapping( vec3 color ) { - return saturate( toneMappingExposure * color ); -} -vec3 ReinhardToneMapping( vec3 color ) { - color *= toneMappingExposure; - return saturate( color / ( vec3( 1.0 ) + color ) ); -} -vec3 CineonToneMapping( vec3 color ) { - color *= toneMappingExposure; - color = max( vec3( 0.0 ), color - 0.004 ); - return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); -} -vec3 RRTAndODTFit( vec3 v ) { - vec3 a = v * ( v + 0.0245786 ) - 0.000090537; - vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; - return a / b; -} -vec3 ACESFilmicToneMapping( vec3 color ) { - const mat3 ACESInputMat = mat3( - vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), - vec3( 0.04823, 0.01566, 0.83777 ) - ); - const mat3 ACESOutputMat = mat3( - vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), - vec3( -0.07367, -0.00605, 1.07602 ) - ); - color *= toneMappingExposure / 0.6; - color = ACESInputMat * color; - color = RRTAndODTFit( color ); - color = ACESOutputMat * color; - return saturate( color ); -} -const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( - vec3( 1.6605, - 0.1246, - 0.0182 ), - vec3( - 0.5876, 1.1329, - 0.1006 ), - vec3( - 0.0728, - 0.0083, 1.1187 ) -); -const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( - vec3( 0.6274, 0.0691, 0.0164 ), - vec3( 0.3293, 0.9195, 0.0880 ), - vec3( 0.0433, 0.0113, 0.8956 ) -); -vec3 agxDefaultContrastApprox( vec3 x ) { - vec3 x2 = x * x; - vec3 x4 = x2 * x2; - return + 15.5 * x4 * x2 - - 40.14 * x4 * x - + 31.96 * x4 - - 6.868 * x2 * x - + 0.4298 * x2 - + 0.1191 * x - - 0.00232; -} -vec3 AgXToneMapping( vec3 color ) { - const mat3 AgXInsetMatrix = mat3( - vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), - vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), - vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) - ); - const mat3 AgXOutsetMatrix = mat3( - vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), - vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), - vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) - ); - const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; - color *= toneMappingExposure; - color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; - color = AgXInsetMatrix * color; - color = max( color, 1e-10 ); color = log2( color ); - color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); - color = clamp( color, 0.0, 1.0 ); - color = agxDefaultContrastApprox( color ); - color = AgXOutsetMatrix * color; - color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); - color = LINEAR_REC2020_TO_LINEAR_SRGB * color; - color = clamp( color, 0.0, 1.0 ); - return color; -} -vec3 NeutralToneMapping( vec3 color ) { - const float StartCompression = 0.8 - 0.04; - const float Desaturation = 0.15; - color *= toneMappingExposure; - float x = min( color.r, min( color.g, color.b ) ); - float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; - color -= offset; - float peak = max( color.r, max( color.g, color.b ) ); - if ( peak < StartCompression ) return color; - float d = 1. - StartCompression; - float newPeak = 1. - d * d / ( peak + d - StartCompression ); - color *= newPeak / peak; - float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); - return mix( color, vec3( newPeak ), g ); -} -vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION - material.transmission = transmission; - material.transmissionAlpha = 1.0; - material.thickness = thickness; - material.attenuationDistance = attenuationDistance; - material.attenuationColor = attenuationColor; - #ifdef USE_TRANSMISSIONMAP - material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; - #endif - #ifdef USE_THICKNESSMAP - material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; - #endif - vec3 pos = vWorldPosition; - vec3 v = normalize( cameraPosition - pos ); - vec3 n = inverseTransformDirection( normal, viewMatrix ); - vec4 transmitted = getIBLVolumeRefraction( - n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, - pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, - material.attenuationColor, material.attenuationDistance ); - material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); - totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION - uniform float transmission; - uniform float thickness; - uniform float attenuationDistance; - uniform vec3 attenuationColor; - #ifdef USE_TRANSMISSIONMAP - uniform sampler2D transmissionMap; - #endif - #ifdef USE_THICKNESSMAP - uniform sampler2D thicknessMap; - #endif - uniform vec2 transmissionSamplerSize; - uniform sampler2D transmissionSamplerMap; - uniform mat4 modelMatrix; - uniform mat4 projectionMatrix; - varying vec3 vWorldPosition; - float w0( float a ) { - return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); - } - float w1( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); - } - float w2( float a ){ - return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); - } - float w3( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * a ); - } - float g0( float a ) { - return w0( a ) + w1( a ); - } - float g1( float a ) { - return w2( a ) + w3( a ); - } - float h0( float a ) { - return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); - } - float h1( float a ) { - return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); - } - vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { - uv = uv * texelSize.zw + 0.5; - vec2 iuv = floor( uv ); - vec2 fuv = fract( uv ); - float g0x = g0( fuv.x ); - float g1x = g1( fuv.x ); - float h0x = h0( fuv.x ); - float h1x = h1( fuv.x ); - float h0y = h0( fuv.y ); - float h1y = h1( fuv.y ); - vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + - g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); - } - vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { - vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); - vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); - vec2 fLodSizeInv = 1.0 / fLodSize; - vec2 cLodSizeInv = 1.0 / cLodSize; - vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); - vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); - return mix( fSample, cSample, fract( lod ) ); - } - vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { - vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); - vec3 modelScale; - modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); - modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); - modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); - return normalize( refractionVector ) * thickness * modelScale; - } - float applyIorToRoughness( const in float roughness, const in float ior ) { - return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); - } - vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { - float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); - return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); - } - vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { - if ( isinf( attenuationDistance ) ) { - return vec3( 1.0 ); - } else { - vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; - vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; - } - } - vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, - const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, - const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, - const in vec3 attenuationColor, const in float attenuationDistance ) { - vec4 transmittedLight; - vec3 transmittance; - #ifdef USE_DISPERSION - float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; - vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); - for ( int i = 0; i < 3; i ++ ) { - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); - transmittedLight[ i ] = transmissionSample[ i ]; - transmittedLight.a += transmissionSample.a; - transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; - } - transmittedLight.a /= 3.0; - #else - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); - transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); - #endif - vec3 attenuatedColor = transmittance * transmittedLight.rgb; - vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); - float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; - return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); - } -#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - varying vec2 vNormalMapUv; -#endif -#ifdef USE_EMISSIVEMAP - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_SPECULARMAP - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - uniform mat3 mapTransform; - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - uniform mat3 alphaMapTransform; - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - uniform mat3 lightMapTransform; - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - uniform mat3 aoMapTransform; - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - uniform mat3 bumpMapTransform; - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - uniform mat3 normalMapTransform; - varying vec2 vNormalMapUv; -#endif -#ifdef USE_DISPLACEMENTMAP - uniform mat3 displacementMapTransform; - varying vec2 vDisplacementMapUv; -#endif -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapTransform; - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - uniform mat3 metalnessMapTransform; - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - uniform mat3 roughnessMapTransform; - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - uniform mat3 anisotropyMapTransform; - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - uniform mat3 clearcoatMapTransform; - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform mat3 clearcoatNormalMapTransform; - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform mat3 clearcoatRoughnessMapTransform; - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - uniform mat3 sheenColorMapTransform; - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - uniform mat3 sheenRoughnessMapTransform; - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - uniform mat3 iridescenceMapTransform; - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform mat3 iridescenceThicknessMapTransform; - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SPECULARMAP - uniform mat3 specularMapTransform; - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - uniform mat3 specularColorMapTransform; - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - uniform mat3 specularIntensityMapTransform; - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - vUv = vec3( uv, 1 ).xy; -#endif -#ifdef USE_MAP - vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ALPHAMAP - vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_LIGHTMAP - vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_AOMAP - vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_BUMPMAP - vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_NORMALMAP - vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_DISPLACEMENTMAP - vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_EMISSIVEMAP - vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_METALNESSMAP - vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ROUGHNESSMAP - vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ANISOTROPYMAP - vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOATMAP - vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCEMAP - vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_COLORMAP - vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULARMAP - vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_COLORMAP - vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_TRANSMISSIONMAP - vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_THICKNESSMAP - vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 - vec4 worldPosition = vec4( transformed, 1.0 ); - #ifdef USE_BATCHING - worldPosition = batchingMatrix * worldPosition; - #endif - #ifdef USE_INSTANCING - worldPosition = instanceMatrix * worldPosition; - #endif - worldPosition = modelMatrix * worldPosition; -#endif`,background_vert:`varying vec2 vUv; -uniform mat3 uvTransform; -void main() { - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,background_frag:`uniform sampler2D t2D; -uniform float backgroundIntensity; -varying vec2 vUv; -void main() { - vec4 texColor = texture2D( t2D, vUv ); - #ifdef DECODE_VIDEO_TEXTURE - texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,backgroundCube_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,backgroundCube_frag:`#ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; -#elif defined( ENVMAP_TYPE_CUBE_UV ) - uniform sampler2D envMap; -#endif -uniform float backgroundBlurriness; -uniform float backgroundIntensity; -uniform mat3 backgroundRotation; -varying vec3 vWorldDirection; -#include -void main() { - #ifdef ENVMAP_TYPE_CUBE - vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection ); - #elif defined( ENVMAP_TYPE_CUBE_UV ) - vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); - #else - vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,cube_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,cube_frag:`uniform samplerCube tCube; -uniform float tFlip; -uniform float opacity; -varying vec3 vWorldDirection; -void main() { - vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); - gl_FragColor = texColor; - gl_FragColor.a *= opacity; - #include - #include -}`,depth_vert:`#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vHighPrecisionZW = gl_Position.zw; -}`,depth_frag:`#if DEPTH_PACKING == 3200 - uniform float opacity; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - vec4 diffuseColor = vec4( 1.0 ); - #include - #if DEPTH_PACKING == 3200 - diffuseColor.a = opacity; - #endif - #include - #include - #include - #include - #include - #ifdef USE_REVERSED_DEPTH_BUFFER - float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; - #else - float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; - #endif - #if DEPTH_PACKING == 3200 - gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); - #elif DEPTH_PACKING == 3201 - gl_FragColor = packDepthToRGBA( fragCoordZ ); - #elif DEPTH_PACKING == 3202 - gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); - #elif DEPTH_PACKING == 3203 - gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); - #endif -}`,distance_vert:`#define DISTANCE -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vWorldPosition = worldPosition.xyz; -}`,distance_frag:`#define DISTANCE -uniform vec3 referencePosition; -uniform float nearDistance; -uniform float farDistance; -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main () { - vec4 diffuseColor = vec4( 1.0 ); - #include - #include - #include - #include - #include - float dist = length( vWorldPosition - referencePosition ); - dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); - dist = saturate( dist ); - gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); -}`,equirect_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include -}`,equirect_frag:`uniform sampler2D tEquirect; -varying vec3 vWorldDirection; -#include -void main() { - vec3 direction = normalize( vWorldDirection ); - vec2 sampleUV = equirectUv( direction ); - gl_FragColor = texture2D( tEquirect, sampleUV ); - #include - #include -}`,linedashed_vert:`uniform float scale; -attribute float lineDistance; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vLineDistance = scale * lineDistance; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,linedashed_frag:`uniform vec3 diffuse; -uniform float opacity; -uniform float dashSize; -uniform float totalSize; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - if ( mod( vLineDistance, totalSize ) > dashSize ) { - discard; - } - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,meshbasic_vert:`#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) - #include - #include - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,meshbasic_frag:`uniform vec3 diffuse; -uniform float opacity; -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; - #else - reflectedLight.indirectDiffuse += vec3( 1.0 ); - #endif - #include - reflectedLight.indirectDiffuse *= diffuseColor.rgb; - vec3 outgoingLight = reflectedLight.indirectDiffuse; - #include - #include - #include - #include - #include - #include - #include -}`,meshlambert_vert:`#define LAMBERT -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,meshlambert_frag:`#define LAMBERT -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,meshmatcap_vert:`#define MATCAP -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; -}`,meshmatcap_frag:`#define MATCAP -uniform vec3 diffuse; -uniform float opacity; -uniform sampler2D matcap; -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 viewDir = normalize( vViewPosition ); - vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); - vec3 y = cross( viewDir, x ); - vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; - #ifdef USE_MATCAP - vec4 matcapColor = texture2D( matcap, uv ); - #else - vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); - #endif - vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; - #include - #include - #include - #include - #include - #include -}`,meshnormal_vert:`#define NORMAL -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - vViewPosition = - mvPosition.xyz; -#endif -}`,meshnormal_frag:`#define NORMAL -uniform float opacity; -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); - #include - #include - #include - #include - gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); - #ifdef OPAQUE - gl_FragColor.a = 1.0; - #endif -}`,meshphong_vert:`#define PHONG -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,meshphong_frag:`#define PHONG -uniform vec3 diffuse; -uniform vec3 emissive; -uniform vec3 specular; -uniform float shininess; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,meshphysical_vert:`#define STANDARD -varying vec3 vViewPosition; -#ifdef USE_TRANSMISSION - varying vec3 vWorldPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -#ifdef USE_TRANSMISSION - vWorldPosition = worldPosition.xyz; -#endif -}`,meshphysical_frag:`#define STANDARD -#ifdef PHYSICAL - #define IOR - #define USE_SPECULAR -#endif -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float roughness; -uniform float metalness; -uniform float opacity; -#ifdef IOR - uniform float ior; -#endif -#ifdef USE_SPECULAR - uniform float specularIntensity; - uniform vec3 specularColor; - #ifdef USE_SPECULAR_COLORMAP - uniform sampler2D specularColorMap; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - uniform sampler2D specularIntensityMap; - #endif -#endif -#ifdef USE_CLEARCOAT - uniform float clearcoat; - uniform float clearcoatRoughness; -#endif -#ifdef USE_DISPERSION - uniform float dispersion; -#endif -#ifdef USE_IRIDESCENCE - uniform float iridescence; - uniform float iridescenceIOR; - uniform float iridescenceThicknessMinimum; - uniform float iridescenceThicknessMaximum; -#endif -#ifdef USE_SHEEN - uniform vec3 sheenColor; - uniform float sheenRoughness; - #ifdef USE_SHEEN_COLORMAP - uniform sampler2D sheenColorMap; - #endif - #ifdef USE_SHEEN_ROUGHNESSMAP - uniform sampler2D sheenRoughnessMap; - #endif -#endif -#ifdef USE_ANISOTROPY - uniform vec2 anisotropyVector; - #ifdef USE_ANISOTROPYMAP - uniform sampler2D anisotropyMap; - #endif -#endif -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; - #include - vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; - #ifdef USE_SHEEN - - outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; - - #endif - #ifdef USE_CLEARCOAT - float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); - vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); - outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; - #endif - #include - #include - #include - #include - #include - #include -}`,meshtoon_vert:`#define TOON -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -}`,meshtoon_frag:`#define TOON -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include -}`,points_vert:`uniform float size; -uniform float scale; -#include -#include -#include -#include -#include -#include -#ifdef USE_POINTS_UV - varying vec2 vUv; - uniform mat3 uvTransform; -#endif -void main() { - #ifdef USE_POINTS_UV - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #include - #include - #include - #include - #include - #include - gl_PointSize = size; - #ifdef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); - #endif - #include - #include - #include - #include -}`,points_frag:`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,shadow_vert:`#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,shadow_frag:`uniform vec3 color; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); - #include - #include - #include - #include -}`,sprite_vert:`uniform float rotation; -uniform vec2 center; -#include -#include -#include -#include -#include -void main() { - #include - vec4 mvPosition = modelViewMatrix[ 3 ]; - vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); - #ifndef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - #endif - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - gl_Position = projectionMatrix * mvPosition; - #include - #include - #include -}`,sprite_frag:`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include -}`},$={common:{diffuse:{value:new X(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new J},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new J}},envmap:{envMap:{value:null},envMapRotation:{value:new J},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new J}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new J}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new J},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new J},normalScale:{value:new K(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new J},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new J}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new J}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new J}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new X(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new q},probesMax:{value:new q},probesResolution:{value:new q}},points:{diffuse:{value:new X(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0},uvTransform:{value:new J}},sprite:{diffuse:{value:new X(16777215)},opacity:{value:1},center:{value:new K(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new J},alphaMap:{value:null},alphaMapTransform:{value:new J},alphaTest:{value:0}}},Ka={basic:{uniforms:Fi([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.fog]),vertexShader:Q.meshbasic_vert,fragmentShader:Q.meshbasic_frag},lambert:{uniforms:Fi([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new X(0)},envMapIntensity:{value:1}}]),vertexShader:Q.meshlambert_vert,fragmentShader:Q.meshlambert_frag},phong:{uniforms:Fi([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new X(0)},specular:{value:new X(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Q.meshphong_vert,fragmentShader:Q.meshphong_frag},standard:{uniforms:Fi([$.common,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.roughnessmap,$.metalnessmap,$.fog,$.lights,{emissive:{value:new X(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag},toon:{uniforms:Fi([$.common,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.gradientmap,$.fog,$.lights,{emissive:{value:new X(0)}}]),vertexShader:Q.meshtoon_vert,fragmentShader:Q.meshtoon_frag},matcap:{uniforms:Fi([$.common,$.bumpmap,$.normalmap,$.displacementmap,$.fog,{matcap:{value:null}}]),vertexShader:Q.meshmatcap_vert,fragmentShader:Q.meshmatcap_frag},points:{uniforms:Fi([$.points,$.fog]),vertexShader:Q.points_vert,fragmentShader:Q.points_frag},dashed:{uniforms:Fi([$.common,$.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Q.linedashed_vert,fragmentShader:Q.linedashed_frag},depth:{uniforms:Fi([$.common,$.displacementmap]),vertexShader:Q.depth_vert,fragmentShader:Q.depth_frag},normal:{uniforms:Fi([$.common,$.bumpmap,$.normalmap,$.displacementmap,{opacity:{value:1}}]),vertexShader:Q.meshnormal_vert,fragmentShader:Q.meshnormal_frag},sprite:{uniforms:Fi([$.sprite,$.fog]),vertexShader:Q.sprite_vert,fragmentShader:Q.sprite_frag},background:{uniforms:{uvTransform:{value:new J},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Q.background_vert,fragmentShader:Q.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new J}},vertexShader:Q.backgroundCube_vert,fragmentShader:Q.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Q.cube_vert,fragmentShader:Q.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Q.equirect_vert,fragmentShader:Q.equirect_frag},distance:{uniforms:Fi([$.common,$.displacementmap,{referencePosition:{value:new q},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Q.distance_vert,fragmentShader:Q.distance_frag},shadow:{uniforms:Fi([$.lights,$.fog,{color:{value:new X(0)},opacity:{value:1}}]),vertexShader:Q.shadow_vert,fragmentShader:Q.shadow_frag}};Ka.physical={uniforms:Fi([Ka.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new J},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new J},clearcoatNormalScale:{value:new K(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new J},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new J},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new J},sheen:{value:0},sheenColor:{value:new X(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new J},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new J},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new J},transmissionSamplerSize:{value:new K},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new J},attenuationDistance:{value:0},attenuationColor:{value:new X(0)},specularColor:{value:new X(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new J},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new J},anisotropyVector:{value:new K},anisotropyMap:{value:null},anisotropyMapTransform:{value:new J}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag};var qa={r:0,b:0,g:0},Ja=new Zt,Ya=new J;Ya.set(-1,0,0,0,1,0,0,0,1);function Xa(e,t,n,r,i,a){let o=new X(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new Xr(new Mi(1,1,1),new Hi({name:`BackgroundCubeMaterial`,uniforms:Pi(Ka.backgroundCube.uniforms),vertexShader:Ka.backgroundCube.vertexShader,fragmentShader:Ka.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Ja.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(Ya),l.material.toneMapped=Y.getTransfer(i.colorSpace)!==it,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new Xr(new Ni(2,2),new Hi({name:`BackgroundMaterial`,uniforms:Pi(Ka.background.uniforms),vertexShader:Ka.background.vertexShader,fragmentShader:Ka.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,`map`,{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Y.getTransfer(i.colorSpace)!==it,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(qa,Ri(e)),n.buffers.color.setClear(qa.r,qa.g,qa.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Za(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(U(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&U(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function eo(e){let t=this,n=null,r=0,i=!1,a=!1,o=new ri,s=new J,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=bo(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=yo(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=bo()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=yo());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;go(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,ao)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-to?n-d+to:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,go(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,ao),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,go(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,ao)}_blur(e,t,n,r,i){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,`latitudinal`,i),this._halfBlur(a,e,n,n,r,`longitudinal`,i)}_halfBlur(e,t,n,r,i,a,o){let s=this._renderer,c=this._blurMaterial;a!==`latitudinal`&&a!==`longitudinal`&&W(`blur direction must be either latitudinal or longitudinal!`);let l=this._lodMeshes[r];l.material=c;let u=c.uniforms,d=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*d):2*Math.PI/(2*ro-1),p=i/f,m=isFinite(i)?1+Math.floor(3*p):ro;m>ro&&U(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${ro}`);let h=[],g=0;for(let e=0;e_-to?r-_+to:0),4*(this._cubeSize-v),3*v,2*v),s.setRenderTarget(t),s.render(l,ao)}};function mo(e){let t=[],n=[],r=[],i=e,a=e-to+1+no.length;for(let o=0;oe-to?s=no[o-e+to-1]:o===0&&(s=0),n.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new Dr;h.setAttribute(`position`,new Z(f,3)),h.setAttribute(`uv`,new Z(p,2)),h.setAttribute(`faceIndex`,new Z(m,1)),r.push(new Xr(h,null)),i>to&&i--}return{lodMeshes:r,sizeLods:t,sigmas:n}}function ho(e,t,n){let r=new Jt(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function go(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function _o(e,t,n){return new Hi({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:io,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:xo(),fragmentShader:` - - precision highp float; - precision highp int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform float roughness; - uniform float mipInt; - - #define ENVMAP_TYPE_CUBE_UV - #include - - #define PI 3.14159265359 - - // Van der Corput radical inverse - float radicalInverse_VdC(uint bits) { - bits = (bits << 16u) | (bits >> 16u); - bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); - bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); - bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); - bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); - return float(bits) * 2.3283064365386963e-10; // / 0x100000000 - } - - // Hammersley sequence - vec2 hammersley(uint i, uint N) { - return vec2(float(i) / float(N), radicalInverse_VdC(i)); - } - - // GGX VNDF importance sampling (Eric Heitz 2018) - // "Sampling the GGX Distribution of Visible Normals" - // https://jcgt.org/published/0007/04/01/ - vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { - float alpha = roughness * roughness; - - // Section 4.1: Orthonormal basis - vec3 T1 = vec3(1.0, 0.0, 0.0); - vec3 T2 = cross(V, T1); - - // Section 4.2: Parameterization of projected area - float r = sqrt(Xi.x); - float phi = 2.0 * PI * Xi.y; - float t1 = r * cos(phi); - float t2 = r * sin(phi); - float s = 0.5 * (1.0 + V.z); - t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; - - // Section 4.3: Reprojection onto hemisphere - vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V; - - // Section 3.4: Transform back to ellipsoid configuration - return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); - } - - void main() { - vec3 N = normalize(vOutputDirection); - vec3 V = N; // Assume view direction equals normal for pre-filtering - - vec3 prefilteredColor = vec3(0.0); - float totalWeight = 0.0; - - // For very low roughness, just sample the environment directly - if (roughness < 0.001) { - gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); - return; - } - - // Tangent space basis for VNDF sampling - vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); - vec3 tangent = normalize(cross(up, N)); - vec3 bitangent = cross(N, tangent); - - for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { - vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); - - // For PMREM, V = N, so in tangent space V is always (0, 0, 1) - vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); - - // Transform H back to world space - vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); - vec3 L = normalize(2.0 * dot(V, H) * H - V); - - float NdotL = max(dot(N, L), 0.0); - - if(NdotL > 0.0) { - // Sample environment at fixed mip level - // VNDF importance sampling handles the distribution filtering - vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); - - // Weight by NdotL for the split-sum approximation - // VNDF PDF naturally accounts for the visible microfacet distribution - prefilteredColor += sampleColor * NdotL; - totalWeight += NdotL; - } - } - - if (totalWeight > 0.0) { - prefilteredColor = prefilteredColor / totalWeight; - } - - gl_FragColor = vec4(prefilteredColor, 1.0); - } - `,blending:0,depthTest:!1,depthWrite:!1})}function vo(e,t,n){let r=new Float32Array(ro),i=new q(0,1,0);return new Hi({name:`SphericalGaussianBlur`,defines:{n:ro,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:xo(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function yo(){return new Hi({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:xo(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function bo(){return new Hi({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:xo(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function xo(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}var So=class extends Jt{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Oi(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},r=new Mi(5,5,5),i=new Hi({name:`CubemapFromEquirect`,uniforms:Pi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new Xr(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=O),new Oa(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function Co(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304)if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}else{let r=n.image;if(r&&r.height>0){let i=new So(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}else return null}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new po(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new po(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function wo(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&_t(`WebGLRenderer: `+e+` extension not supported.`),t}}}function To(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?mr:pr)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Yt(h,p,m,u);g.type=I,g.needsUpdate=!0;let _=f*4;for(let t=0;t - #include - - void main() { - gl_FragColor = texture2D( tDiffuse, vUv ); - - #ifdef LINEAR_TONE_MAPPING - gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); - #elif defined( REINHARD_TONE_MAPPING ) - gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); - #elif defined( CINEON_TONE_MAPPING ) - gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); - #elif defined( ACES_FILMIC_TONE_MAPPING ) - gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); - #elif defined( AGX_TONE_MAPPING ) - gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); - #elif defined( NEUTRAL_TONE_MAPPING ) - gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); - #elif defined( CUSTOM_TONE_MAPPING ) - gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); - #endif - - #ifdef SRGB_TRANSFER - gl_FragColor = sRGBTransferOETF( gl_FragColor ); - #endif - }`,depthTest:!1,depthWrite:!1}),l=new Xr(s,c),u=new Sa(-1,1,1,-1,0,1),d=null,f=null,p=!1,m,h=null,g=[],_=!1;this.setSize=function(e,t){a.setSize(e,t),o.setSize(e,t);for(let n=0;n0&&g[0].isRenderPass===!0;let t=a.width,n=a.height;for(let e=0;e0)return e;let i=t*n,a=Lo[i];if(a===void 0&&(a=new Float32Array(i),Lo[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Uo(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function zs(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var Bs=37297,Vs=0;function Hs(e,t){let n=e.split(` -`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}var Us=new J;function Ws(e){Y._getMatrix(Us,Y.workingColorSpace,e);let t=`mat3( ${Us.elements.map(e=>e.toFixed(4))} )`;switch(Y.getTransfer(e)){case rt:return[t,`LinearTransferOETF`];case it:return[t,`sRGBTransferOETF`];default:return U(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function Gs(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` - -`+i+` - -`+Hs(e.getShaderSource(t),r)}else return i}function Ks(e,t){let n=Ws(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}var qs={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function Js(e,t){let n=qs[t];return n===void 0?(U(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Ys=new q;function Xs(){return Y.getLuminanceCoefficients(Ys),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Ys.x.toFixed(4)}, ${Ys.y.toFixed(4)}, ${Ys.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function Zs(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(ec).join(` -`)}function Qs(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` -`)}function $s(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function ic(e){return e.replace(rc,oc)}var ac=new Map;function oc(e,t){let n=Q[t];if(n===void 0){let e=ac.get(t);if(e!==void 0)n=Q[e],U(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return ic(n)}var sc=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function cc(e){return e.replace(sc,lc)}function lc(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(ec).join(` -`),_.length>0&&(_+=` -`)):(g=[uc(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(ec).join(` -`),_=[uc(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Q.tonemapping_pars_fragment,n.toneMapping===0?``:Js(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Q.colorspace_pars_fragment,Ks(`linearToOutputTexel`,n.outputColorSpace),Xs(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(ec).join(` -`)),o=ic(o),o=tc(o,n),o=nc(o,n),s=ic(s),s=tc(s,n),s=nc(s,n),o=cc(o),s=cc(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es -`,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` -`)+` -`+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` -`)+` -`+_);let y=v+g+o,b=v+_+s,x=zs(i,i.VERTEX_SHADER,y),S=zs(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=Gs(i,x,`vertex`),n=Gs(i,S,`fragment`);W(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` - -Material Name: `+t.name+` -Material Type: `+t.type+` - -Program Info Log: `+o+` -`+e+` -`+n)}else o===``?(s===``||c===``)&&(u=!1):U(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new Rs(i,h),T=$s(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,Bs)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Vs++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var xc=0,Sc=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Cc(e),t.set(e,n)),n}},Cc=class{constructor(e){this.id=xc++,this.code=e,this.usedTimes=0}};function wc(e){return e===1030||e===37490||e===36285}function Tc(e,t,n,r,i,a){let o=new ln,s=new Sc,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&U(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=Ka[C];D=e.vertexShader,O=e.fragmentShader}else D=i.vertexShader,O=i.fragmentShader,s.update(i),k=s.getVertexShaderID(i),A=s.getFragmentShaderID(i);let ee=e.getRenderTarget(),j=e.state.buffers.depth.getReversed(),M=h.isInstancedMesh===!0,N=h.isBatchedMesh===!0,P=!!i.map,F=!!i.matcap,I=!!x,te=!!i.aoMap,ne=!!i.lightMap,re=!!i.bumpMap,ie=!!i.normalMap,ae=!!i.displacementMap,oe=!!i.emissiveMap,se=!!i.metalnessMap,ce=!!i.roughnessMap,le=i.anisotropy>0,L=i.clearcoat>0,ue=i.dispersion>0,de=i.iridescence>0,fe=i.sheen>0,pe=i.transmission>0,me=le&&!!i.anisotropyMap,he=L&&!!i.clearcoatMap,ge=L&&!!i.clearcoatNormalMap,_e=L&&!!i.clearcoatRoughnessMap,ve=de&&!!i.iridescenceMap,ye=de&&!!i.iridescenceThicknessMap,be=fe&&!!i.sheenColorMap,xe=fe&&!!i.sheenRoughnessMap,Se=!!i.specularMap,Ce=!!i.specularColorMap,we=!!i.specularIntensityMap,Te=pe&&!!i.transmissionMap,Ee=pe&&!!i.thicknessMap,De=!!i.gradientMap,R=!!i.alphaMap,Oe=i.alphaTest>0,z=!!i.alphaHash,ke=!!i.extensions,B=0;i.toneMapped&&(ee===null||ee.isXRRenderTarget===!0)&&(B=e.toneMapping);let Ae={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:N,batchingColor:N&&h._colorsTexture!==null,instancing:M,instancingColor:M&&h.instanceColor!==null,instancingMorph:M&&h.morphTexture!==null,outputColorSpace:ee===null?e.outputColorSpace:ee.isXRRenderTarget===!0?ee.texture.colorSpace:Y.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:P,matcap:F,envMap:I,envMapMode:I&&x.mapping,envMapCubeUVHeight:S,aoMap:te,lightMap:ne,bumpMap:re,normalMap:ie,displacementMap:ae,emissiveMap:oe,normalMapObjectSpace:ie&&i.normalMapType===1,normalMapTangentSpace:ie&&i.normalMapType===0,packedNormalMap:ie&&i.normalMapType===0&&wc(i.normalMap.format),metalnessMap:se,roughnessMap:ce,anisotropy:le,anisotropyMap:me,clearcoat:L,clearcoatMap:he,clearcoatNormalMap:ge,clearcoatRoughnessMap:_e,dispersion:ue,iridescence:de,iridescenceMap:ve,iridescenceThicknessMap:ye,sheen:fe,sheenColorMap:be,sheenRoughnessMap:xe,specularMap:Se,specularColorMap:Ce,specularIntensityMap:we,transmission:pe,transmissionMap:Te,thicknessMap:Ee,gradientMap:De,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:R,alphaTest:Oe,alphaHash:z,combine:i.combine,mapUv:P&&m(i.map.channel),aoMapUv:te&&m(i.aoMap.channel),lightMapUv:ne&&m(i.lightMap.channel),bumpMapUv:re&&m(i.bumpMap.channel),normalMapUv:ie&&m(i.normalMap.channel),displacementMapUv:ae&&m(i.displacementMap.channel),emissiveMapUv:oe&&m(i.emissiveMap.channel),metalnessMapUv:se&&m(i.metalnessMap.channel),roughnessMapUv:ce&&m(i.roughnessMap.channel),anisotropyMapUv:me&&m(i.anisotropyMap.channel),clearcoatMapUv:he&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:ge&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:_e&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:ve&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:ye&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:be&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:xe&&m(i.sheenRoughnessMap.channel),specularMapUv:Se&&m(i.specularMap.channel),specularColorMapUv:Ce&&m(i.specularColorMap.channel),specularIntensityMapUv:we&&m(i.specularIntensityMap.channel),transmissionMapUv:Te&&m(i.transmissionMap.channel),thicknessMapUv:Ee&&m(i.thicknessMap.channel),alphaMapUv:R&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(ie||le),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(P||R),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&ie===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:j,skinning:h.isSkinnedMesh===!0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:B,decodeVideoTexture:P&&i.map.isVideoTexture===!0&&Y.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:oe&&i.emissiveMap.isVideoTexture===!0&&Y.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:ke&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(ke&&i.extensions.multiDraw===!0||N)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Ae.vertexUv1s=c.has(1),Ae.vertexUv2s=c.has(2),Ae.vertexUv3s=c.has(3),c.clear(),Ae}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=Ka[t];n=zi.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new bc(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function Ec(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function Dc(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function Oc(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function kc(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||Dc),r.length>1&&r.sort(t||Oc),i.length>1&&i.sort(t||Oc)}function d(){for(let n=t,r=e.length;n=r.length?(i=new kc,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function jc(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new q,color:new X};break;case`SpotLight`:n={position:new q,direction:new q,color:new X,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new q,color:new X,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new q,skyColor:new X,groundColor:new X};break;case`RectAreaLight`:n={color:new X,position:new q,halfWidth:new q,halfHeight:new q};break}return e[t.id]=n,n}}}function Mc(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new K};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new K};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new K,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var Nc=0;function Pc(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function Fc(e){let t=new jc,n=Mc(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new q);let i=new q,a=new Zt,o=new Zt;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(Pc);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$.LTC_FLOAT_1,r.rectAreaLTC2=$.LTC_FLOAT_2):(r.rectAreaLTC1=$.LTC_HALF_1,r.rectAreaLTC2=$.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=Nc++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new Ic(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var Rc=`void main() { - gl_Position = vec4( position, 1.0 ); -}`,zc=`uniform sampler2D shadow_pass; -uniform vec2 resolution; -uniform float radius; -void main() { - const float samples = float( VSM_SAMPLES ); - float mean = 0.0; - float squared_mean = 0.0; - float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); - float uvStart = samples <= 1.0 ? 0.0 : - 1.0; - for ( float i = 0.0; i < samples; i ++ ) { - float uvOffset = uvStart + i * uvStride; - #ifdef HORIZONTAL_PASS - vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; - mean += distribution.x; - squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; - #else - float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; - mean += depth; - squared_mean += depth * depth; - #endif - } - mean = mean / samples; - squared_mean = squared_mean / samples; - float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); - gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); -}`,Bc=[new q(1,0,0),new q(-1,0,0),new q(0,1,0),new q(0,-1,0),new q(0,0,1),new q(0,0,-1)],Vc=[new q(0,-1,0),new q(0,-1,0),new q(0,0,1),new q(0,0,-1),new q(0,-1,0),new q(0,-1,0)],Hc=new Zt,Uc=new q,Wc=new q;function Gc(e,t,n){let r=new si,i=new K,a=new K,o=new Kt,s=new Gi,c=new Ki,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Hi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new K},radius:{value:4}},vertexShader:Rc,fragmentShader:zc}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new Dr;m.setAttribute(`position`,new Z(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new Xr(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(U(`WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){U(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Jt(i.x,i.y,{format:pe,type:te,minFilter:O,magFilter:O,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new ki(i.x,i.y,I),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=L,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=T,d.map.depthTexture.magFilter=T}else l.isPointLight?(d.map=new So(i.x),d.map.depthTexture=new Ai(i.x,F)):(d.map=new Jt(i.x,i.y),d.map.depthTexture=new ki(i.x,i.y,F)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=L,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=O,d.map.depthTexture.magFilter=O):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=T,d.map.depthTexture.magFilter=T);d.camera.updateProjectionMatrix()}let g=d.map.isWebGLCubeRenderTarget?6:1;for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(N=parseFloat(/^WebGL (\d)/.exec(P)[1]),M=N>=1);let F=null,I={},te=e.getParameter(e.SCISSOR_BOX),ne=e.getParameter(e.VIEWPORT),re=new Kt().fromArray(te),ie=new Kt().fromArray(ne);function ae(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new K,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):dt(`canvas`)}function g(e,t,n){let r=1,i=Ae(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),U(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&U(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];U(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||U(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?rt:Y.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,U(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function ee(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function j(e){let t=e.target;t.removeEventListener(`dispose`,j),N(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function M(e){let t=e.target;t.removeEventListener(`dispose`,M),F(t)}function N(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&P(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function P(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function F(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&U(`WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),I+=1,e}function ae(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function oe(t,i){let a=r.get(t);if(t.isVideoTexture&&ke(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)U(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)U(`WebGLRenderer: Texture marked for update but image is incomplete`);else{_e(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function se(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){_e(a,t,i);return}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function ce(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){_e(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function le(t,i){let a=r.get(t);if(t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version){ve(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let L={[S]:e.REPEAT,[C]:e.CLAMP_TO_EDGE,[w]:e.MIRRORED_REPEAT},de={[T]:e.NEAREST,[E]:e.NEAREST_MIPMAP_NEAREST,[D]:e.NEAREST_MIPMAP_LINEAR,[O]:e.LINEAR,[k]:e.LINEAR_MIPMAP_NEAREST,[A]:e.LINEAR_MIPMAP_LINEAR},fe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function pe(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&U(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,L[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,L[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,L[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,de[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,de[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,fe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function me(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,j));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=ae(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&P(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function he(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ge(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){S&&C&&n.texStorage2D(e.TEXTURE_2D,T,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=Ha(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0);else U(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else S?w&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data)}else{S&&C&&n.texStorage2D(e.TEXTURE_2D,T,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=Ha(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isData3DTexture)S?(C&&n.texStorage3D(e.TEXTURE_3D,T,m,t.width,t.height,t.depth),w&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(C)if(S)n.texStorage2D(e.TEXTURE_2D,T,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}let r=e.RGBA,i=e.RGBA,a=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,r,i,a,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(S&&C){let t=Ae(y[0]);n.texStorage2D(e.TEXTURE_2D,T,m,t.width,t.height)}for(let t=0,i=y.length;t0&&E++;let t=Ae(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,E,S,t.width,t.height)}for(let t=0;t<6;t++)if(p){C?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,S,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),z(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Oe(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function be(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;z(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Oe(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Oe(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer)if(a)for(let e=0;e<6;e++)xe(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?xe(i.__webglFramebuffer[0],t,0):xe(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),be(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),be(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function Ce(t,n,i){let a=r.get(t);n!==void 0&&ye(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&Se(t)}function we(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,M);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&z(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(z(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function ke(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function B(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Y.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&U(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):W(`WebGLTextures: Unsupported texture color space:`,n)),t}function Ae(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=ie,this.resetTextureUnits=te,this.getTextureUnits=ne,this.setTextureUnits=re,this.setTexture2D=oe,this.setTexture2DArray=se,this.setTexture3D=ce,this.setTextureCube=le,this.rebindTextures=Ce,this.setupRenderTarget=we,this.updateRenderTargetMipmap=Te,this.updateMultisampleRenderTarget=R,this.setupDepthRenderbuffer=Se,this.setupFrameBufferTexture=ye,this.useMultisampledRTT=z,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Jc(e,t){function n(n,r=``){let i,a=Y.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779)if(a===`srgb`)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===35840||n===35841||n===35842||n===35843)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null;if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===36492||n===36494||n===36495)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===36283||n===36284||n===36285||n===36286)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Yc=` -void main() { - - gl_Position = vec4( position, 1.0 ); - -}`,Xc=` -uniform sampler2DArray depthColor; -uniform float depthWidth; -uniform float depthHeight; - -void main() { - - vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); - - if ( coord.x >= 1.0 ) { - - gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; - - } else { - - gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; - - } - -}`,Zc=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new ji(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new Hi({vertexShader:Yc,fragmentShader:Xc,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Xr(new Ni(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Qc=class extends bt{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Zc,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new K,C=null,w=new xa;w.viewport=new Kt;let T=new xa;T.viewport=new Kt;let E=[w,T],D=new ka,O=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new On,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new On,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new On,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function j(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,j),r.removeEventListener(`inputsourceschange`,M);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let N=new q,P=new q;function I(e,t,n){N.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);let r=N.distanceTo(P),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function te(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),D.near=T.near=w.near=t,D.far=T.far=w.far=n,(O!==D.near||k!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),O=D.near,k=D.far),D.layers.mask=e.layers.mask|6,w.layers.mask=D.layers.mask&-5,T.layers.mask=D.layers.mask&-3;let i=e.parent,a=D.cameras;te(D,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4($c.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(el),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function nl(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?U(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):U(`WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var rl=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),il=null;function al(){return il===null&&(il=new $r(rl,16,16,pe,te),il.name=`DFG_LUT`,il.minFilter=O,il.magFilter=O,il.wrapS=C,il.wrapT=C,il.generateMipmaps=!1,il.needsUpdate=!0),il}var ol=class{constructor(e={}){let{canvas:t=ft(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=ee}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([he,me,fe]),g=new Set([ee,F,N,ie,ne,re]),_=new Uint32Array(4),v=new Int32Array(4),y=new q,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null;this._outputColorSpace=tt;let O=0,k=0,j=null,M=-1,P=null,I=new Kt,ae=new Kt,oe=null,se=new X(0),ce=0,le=t.width,L=t.height,ue=1,de=null,pe=null,ge=new Kt(0,0,le,L),_e=new Kt(0,0,le,L),ve=!1,ye=new si,be=!1,xe=!1,Se=new Zt,Ce=new q,we=new Kt,Te={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Ee=!1;function De(){return j===null?ue:1}let R=n;function Oe(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r184`),t.addEventListener(`webglcontextlost`,Xe,!1),t.addEventListener(`webglcontextrestored`,Ze,!1),t.addEventListener(`webglcontextcreationerror`,Qe,!1),R===null){let t=`webgl2`;if(R=Oe(t,e),R===null)throw Oe(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw W(`WebGLRenderer: `+e.message),e}let z,ke,B,Ae,V,H,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe;function Je(){z=new wo(R),z.init(),Ge=new Jc(R,z),ke=new $a(R,z,e,Ge),B=new Kc(R,z),ke.reversedDepthBuffer&&d&&B.buffers.depth.setReversed(!0),Ae=new Do(R),V=new Ec,H=new qc(R,z,B,V,ke,Ge,Ae),je=new Co(T),Me=new Ga(R),Ke=new Za(R,Me),Ne=new To(R,Me,Ae,Ke),Pe=new ko(R,Ne,Me,Ke,Ae),He=new Oo(R,ke,H),ze=new eo(V),Fe=new Tc(T,je,z,ke,Ke,ze),Ie=new tl(T,V),Le=new Ac,Re=new Lc(z),Ve=new Xa(T,je,B,Pe,p,s),Be=new Gc(T,Pe,ke),qe=new nl(R,Ae,ke,B),Ue=new Qa(R,z,Ae),We=new Eo(R,z,Ae),Ae.programs=Fe.programs,T.capabilities=ke,T.extensions=z,T.properties=V,T.renderLists=Le,T.shadowMap=Be,T.state=B,T.info=Ae}Je(),m!==1009&&(w=new jo(m,t.width,t.height,r,i));let Ye=new Qc(T,R);this.xr=Ye,this.getContext=function(){return R},this.getContextAttributes=function(){return R.getContextAttributes()},this.forceContextLoss=function(){let e=z.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=z.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ue},this.setPixelRatio=function(e){e!==void 0&&(ue=e,this.setSize(le,L,!1))},this.getSize=function(e){return e.set(le,L)},this.setSize=function(e,n,r=!0){if(Ye.isPresenting){U(`WebGLRenderer: Can't change size while VR device is presenting.`);return}le=e,L=n,t.width=Math.floor(e*ue),t.height=Math.floor(n*ue),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(le*ue,L*ue).floor()},this.setDrawingBufferSize=function(e,n,r){le=e,L=n,ue=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009){W(`THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);return}if(e){for(let t=0;t{function n(){if(r.forEach(function(e){V.get(e).currentProgram.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}z.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let it=null;function at(e){it&&it(e)}function ot(){lt.stop()}function st(){lt.start()}let lt=new Wa;lt.setAnimationLoop(at),typeof self<`u`&<.setContext(self),this.setAnimationLoop=function(e){it=e,Ye.setAnimationLoop(e),e===null?lt.stop():lt.start()},Ye.addEventListener(`sessionstart`,ot),Ye.addEventListener(`sessionend`,st),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){W(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Ye.enabled===!0&&Ye.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Ye.enabled===!0&&Ye.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Ye.cameraAutoUpdate===!0&&Ye.updateCamera(t),t=Ye.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Re.get(e,C.length),x.init(t),x.state.textureUnits=H.getTextureUnits(),C.push(x),Se.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ye.setFromProjectionMatrix(Se,ct,t.reversedDepth),xe=this.localClippingEnabled,be=ze.init(this.clippingPlanes,xe),b=Le.get(e,S.length),b.init(),S.push(b),Ye.enabled===!0&&Ye.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ut(e,t,-1/0,T.sortObjects)}ut(e,t,0,T.sortObjects),b.finish(),T.sortObjects===!0&&b.sort(de,pe),Ee=Ye.enabled===!1||Ye.isPresenting===!1||Ye.hasDepthSensing()===!1,Ee&&Ve.addToRenderList(b,e),this.info.render.frame++,be===!0&&ze.beginShadows();let i=x.state.shadowsArray;if(Be.render(i,e,t),be===!0&&ze.endShadows(),this.info.autoReset===!0&&this.info.reset(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&pt(n,r,e,t),Ee&&Ve.render(e),dt(b,e,t)}j!==null&&k===0&&(H.updateMultisampleRenderTarget(j),H.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),Ke.resetDefaultState(),M=-1,P=null,C.pop(),C.length>0?(x=C[C.length-1],H.setTextureUnits(x.state.textureUnits),be===!0&&ze.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ut(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ye.intersectsSprite(e)){r&&we.setFromMatrixPosition(e.matrixWorld).applyMatrix4(Se);let t=Pe.update(e),i=e.material;i.visible&&b.push(e,t,i,n,we.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ye.intersectsObject(e))){let t=Pe.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),we.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),we.copy(e.boundingSphere.center)),we.applyMatrix4(e.matrixWorld).applyMatrix4(Se)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&&mt(i,t,n),a.length>0&&mt(a,t,n),o.length>0&&mt(o,t,n),B.buffers.depth.setTest(!0),B.buffers.depth.setMask(!0),B.buffers.color.setMask(!0),B.setPolygonOffset(!1)}function pt(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=z.has(`EXT_color_buffer_half_float`)||z.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Jt(1,1,{generateMipmaps:!0,type:e?te:ee,minFilter:A,samples:Math.max(4,ke.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Y.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||I;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(se),ce=T.getClearAlpha(),ce<1&&T.setClearColor(16777215,.5),T.clear(),Ee&&Ve.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),be===!0&&ze.setGlobalState(T.clippingPlanes,r),mt(e,n,r),H.updateMultisampleRenderTarget(a),H.updateRenderTargetMipmap(a),z.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function yt(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=Rs.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function bt(e,t){let n=V.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function xt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=V.get(r),y=x.state.lights;if(be===!0&&(xe===!0||e!==P)){let t=e===P&&r.id===M;ze.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==ze.numPlanes||v.numIntersection!==ze.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=_t(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(B.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==M&&(M=r.id,w=!0),v.needsLights){let e=xt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||P!==e){B.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(R,`projectionMatrix`,e.projectionMatrix),O.setValue(R,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(R,Ce.setFromMatrixPosition(e.matrixWorld)),ke.logarithmicDepthBuffer&&O.setValue(R,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(R,`isOrthographic`,e.isOrthographicCamera===!0),P!==e&&(P=e,w=!0,E=!0)}if(v.needsLights&&(y.state.directionalShadowMap.length>0&&O.setValue(R,`directionalShadowMap`,y.state.directionalShadowMap,H),y.state.spotShadowMap.length>0&&O.setValue(R,`spotShadowMap`,y.state.spotShadowMap,H),y.state.pointShadowMap.length>0&&O.setValue(R,`pointShadowMap`,y.state.pointShadowMap,H)),i.isSkinnedMesh){O.setOptional(R,i,`bindMatrix`),O.setOptional(R,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(R,`boneTexture`,e.boneTexture,H))}i.isBatchedMesh&&(O.setOptional(R,i,`batchingTexture`),O.setValue(R,`batchingTexture`,i._matricesTexture,H),O.setOptional(R,i,`batchingIdTexture`),O.setValue(R,`batchingIdTexture`,i._indirectTexture,H),O.setOptional(R,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(R,`batchingColorTexture`,i._colorsTexture,H));let A=n.morphAttributes;if((A.position!==void 0||A.normal!==void 0||A.color!==void 0)&&He.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(R,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=al()),w){if(O.setValue(R,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&&Ct(k,E),a&&r.fog===!0&&Ie.refreshFogUniforms(k,a),Ie.refreshMaterialUniforms(k,r,ue,L,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}Rs.upload(R,yt(v),k,H)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(Rs.upload(R,yt(v),k,H),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(R,`center`,i.center),O.setValue(R,`modelViewMatrix`,i.modelViewMatrix),O.setValue(R,`normalMatrix`,i.normalMatrix),O.setValue(R,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&H.useMultisampledRTT(e)===!1?V.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,I.copy(e.viewport),ae.copy(e.scissor),oe=e.scissorTest}else I.copy(ge).multiplyScalar(ue).floor(),ae.copy(_e).multiplyScalar(ue).floor(),oe=ve;if(n!==0&&(r=G),B.bindFramebuffer(R.FRAMEBUFFER,r)&&B.drawBuffers(e,r),B.viewport(I),B.scissor(ae),B.setScissorTest(oe),i){let r=V.get(e.texture);R.framebufferTexture2D(R.FRAMEBUFFER,R.COLOR_ATTACHMENT0,R.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&R.readBuffer(R.COLOR_ATTACHMENT0+s),!ke.textureFormatReadable(c)){W(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!ke.textureTypeReadable(l)){W(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&R.readPixels(t,n,r,i,Ge.convert(c),Ge.convert(l),a)}finally{let e=j===null?null:V.get(j).__webglFramebuffer;B.bindFramebuffer(R.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=V.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){B.bindFramebuffer(R.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(e.textures.length>1&&R.readBuffer(R.COLOR_ATTACHMENT0+s),!ke.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ke.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=R.createBuffer();R.bindBuffer(R.PIXEL_PACK_BUFFER,d),R.bufferData(R.PIXEL_PACK_BUFFER,a.byteLength,R.STREAM_READ),R.readPixels(t,n,r,i,Ge.convert(l),Ge.convert(u),0);let f=j===null?null:V.get(j).__webglFramebuffer;B.bindFramebuffer(R.FRAMEBUFFER,f);let p=R.fenceSync(R.SYNC_GPU_COMMANDS_COMPLETE,0);return R.flush(),await vt(R,p,4),R.bindBuffer(R.PIXEL_PACK_BUFFER,d),R.getBufferSubData(R.PIXEL_PACK_BUFFER,0,a),R.deleteBuffer(d),R.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;H.setTexture2D(e,0),R.copyTexSubImage2D(R.TEXTURE_2D,n,0,0,o,s,i,a),B.unbindTexture()};let Tt=R.createFramebuffer(),Et=R.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ge.convert(t.format),_=Ge.convert(t.type),v;t.isData3DTexture?(H.setTexture3D(t,0),v=R.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(H.setTexture2DArray(t,0),v=R.TEXTURE_2D_ARRAY):(H.setTexture2D(t,0),v=R.TEXTURE_2D),B.activeTexture(R.TEXTURE0),B.pixelStorei(R.UNPACK_FLIP_Y_WEBGL,t.flipY),B.pixelStorei(R.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),B.pixelStorei(R.UNPACK_ALIGNMENT,t.unpackAlignment);let y=B.getParameter(R.UNPACK_ROW_LENGTH),b=B.getParameter(R.UNPACK_IMAGE_HEIGHT),x=B.getParameter(R.UNPACK_SKIP_PIXELS),S=B.getParameter(R.UNPACK_SKIP_ROWS),C=B.getParameter(R.UNPACK_SKIP_IMAGES);B.pixelStorei(R.UNPACK_ROW_LENGTH,h.width),B.pixelStorei(R.UNPACK_IMAGE_HEIGHT,h.height),B.pixelStorei(R.UNPACK_SKIP_PIXELS,l),B.pixelStorei(R.UNPACK_SKIP_ROWS,u),B.pixelStorei(R.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=V.get(e),r=V.get(t),h=V.get(n.__renderTarget),g=V.get(r.__renderTarget);B.bindFramebuffer(R.READ_FRAMEBUFFER,h.__webglFramebuffer),B.bindFramebuffer(R.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n 0.5) discard; // outside circle → transparent - // soft anti-alias ring at the edge - float alpha = 1.0 - smoothstep(0.45, 0.5, dist); - gl_FragColor = vec4(vColor, alpha * uOpacity); - } - `,transparent:!0,depthWrite:!1})}function gl(e,t,n,r){return new Hi({uniforms:{uSizeMin:{value:e},uSizeMax:{value:t},uAmp:{value:n},uOpacity:{value:r}},vertexShader:` - attribute vec3 color; - varying vec3 vColor; - uniform float uSizeMin; - uniform float uSizeMax; - uniform float uAmp; - void main() { - vColor = color; - // Map Z (-amp..+amp) → (sizeMin..sizeMax) - float t = clamp((position.z + uAmp) / (2.0 * uAmp), 0.0, 1.0); - gl_PointSize = mix(uSizeMin, uSizeMax, t); - gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); - } - `,fragmentShader:` - varying vec3 vColor; - uniform float uOpacity; - void main() { - vec2 uv = gl_PointCoord - vec2(0.5); - float dist = length(uv); - if (dist > 0.5) discard; - float alpha = 1.0 - smoothstep(0.45, 0.5, dist); - gl_FragColor = vec4(vColor, alpha * uOpacity); - } - `,transparent:!0,depthWrite:!1})}function _l(e,t,n,r,i,a){let o=e+1,s=t+1,c=o*s,l=a/2,u=n/e,d=r/t,f=new Float32Array(c*3),p=new Float32Array(c*4*3),m=new Float32Array(c*4*3);for(let e=0;e{let o=ll(a/Math.max(s*c-1,1),i);for(let i=0;i<2;i++){let[a,s]=i===0?[e,t]:[n,r];p[g*3]=a,p[g*3+1]=s,p[g*3+2]=0,m[g*3]=a,m[g*3+1]=s,m[g*3+2]=0,h[g*3]=o.r,h[g*3+1]=o.g,h[g*3+2]=o.b,g++}};if(a!==`vertical`)for(let t=0;t{let t=(0,p.c)(68),{className:n,style:r,lines:i,colors:a,cameraPosition:s,planeWidth:c,planeHeight:l,segmentsX:u,segmentsY:d,speed:f,amplitude:g,frequency:_,opacity:v,paused:y,mouseInfluence:b,mouseRotation:x,dotSize:S,dotSizeMin:C,crossSize:w,dashRatio:T,contourLevels:E,maxPixelRatio:D,onReady:O}=e,k=r===void 0?`grid`:r,A=i===void 0?`both`:i,ee;t[0]===s?ee=t[1]:(ee=s===void 0?{x:0,y:0,z:10}:s,t[0]=s,t[1]=ee);let j=ee,M=c===void 0?80:c,N=l===void 0?40:l,P=u===void 0?60:u,F=d===void 0?30:d,I=f===void 0?1:f,te=g===void 0?1.5:g,ne=_===void 0?.3:_,re=v===void 0?.6:v,ie=y===void 0?!1:y,ae=b===void 0?2:b,oe=x===void 0?.1:x,se=S===void 0?3:S,ce=C===void 0?1:C,le=w===void 0?.3:w,L=T===void 0?.5:T,ue=E===void 0?6:E,de=D===void 0?2:D,fe=(0,m.useRef)(null),pe;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(pe={width:0,height:0},t[2]=pe):pe=t[2];let[me,he]=(0,m.useState)(pe),ge;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(ge={x:0,y:0},t[3]=ge):ge=t[3];let _e=(0,m.useRef)(ge),ve=(0,m.useRef)(I),ye=(0,m.useRef)(ie),be=(0,m.useRef)(te),xe=(0,m.useRef)(ne),Se=(0,m.useRef)(ae),Ce=(0,m.useRef)(oe),we=(0,m.useRef)(re),Te,Ee;t[4]===I?(Te=t[5],Ee=t[6]):(Te=()=>{ve.current=I},Ee=[I],t[4]=I,t[5]=Te,t[6]=Ee),(0,m.useEffect)(Te,Ee);let De,R;t[7]===ie?(De=t[8],R=t[9]):(De=()=>{ye.current=ie},R=[ie],t[7]=ie,t[8]=De,t[9]=R),(0,m.useEffect)(De,R);let Oe,z;t[10]===te?(Oe=t[11],z=t[12]):(Oe=()=>{be.current=te},z=[te],t[10]=te,t[11]=Oe,t[12]=z),(0,m.useEffect)(Oe,z);let ke,B;t[13]===ne?(ke=t[14],B=t[15]):(ke=()=>{xe.current=ne},B=[ne],t[13]=ne,t[14]=ke,t[15]=B),(0,m.useEffect)(ke,B);let Ae,V;t[16]===ae?(Ae=t[17],V=t[18]):(Ae=()=>{Se.current=ae},V=[ae],t[16]=ae,t[17]=Ae,t[18]=V),(0,m.useEffect)(Ae,V);let H,je;t[19]===oe?(H=t[20],je=t[21]):(H=()=>{Ce.current=oe},je=[oe],t[19]=oe,t[20]=H,t[21]=je),(0,m.useEffect)(H,je);let Me,Ne;t[22]===re?(Me=t[23],Ne=t[24]):(Me=()=>{we.current=re},Ne=[re],t[22]=re,t[23]=Me,t[24]=Ne),(0,m.useEffect)(Me,Ne);let Pe,Fe;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=()=>{let e=fe.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0].contentRect;he({width:t.width,height:t.height})});return t.observe(e),()=>t.disconnect()},Fe=[],t[25]=Pe,t[26]=Fe):(Pe=t[25],Fe=t[26]),(0,m.useEffect)(Pe,Fe);let Ie;t[27]!==te||t[28]!==j||t[29]!==a||t[30]!==ue||t[31]!==le||t[32]!==L||t[33]!==se||t[34]!==ce||t[35]!==A||t[36]!==de||t[37]!==O||t[38]!==N||t[39]!==M||t[40]!==P||t[41]!==F||t[42]!==me.height||t[43]!==me.width||t[44]!==k?(Ie=()=>{let e=fe.current;if(!e||me.width===0||me.height===0)return;let t=new Pn,n=new xa(75,me.width/me.height,.1,1e3);n.position.set(j.x,j.y,j.z),n.lookAt(0,0,0);let r=new ol({alpha:!0,antialias:!0});r.setPixelRatio(Math.min(window.devicePixelRatio,de)),r.setSize(me.width,me.height),r.setClearColor(0,0),e.appendChild(r.domElement);let i=document.documentElement.classList.contains(`dark`),o=(a??(i?cl:sl)).map(Tl),s,c,l,u=null,d=null,f=null,p=null,m=null,h=null,g=null,_=[],v=[],y=P,b=F;if(k===`wireframe`){let e=new Ni(M,N,y,b);e.setAttribute(`color`,new Z(ul(e.attributes.position.count,o),3));let t=new Rr({vertexColors:!0,wireframe:!0,transparent:!0,opacity:we.current});s=new Xr(e,t),f=e.attributes.position,u=f.array,c=e,l=t}else if(k===`grid`){let{geo:e,pos:t}=pl(y,b,M,N,o,A),n=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(k===`dots`){let{geo:e,pos:t}=ml(y,b,M,N,o),n=hl(se*2,we.current);s=new Ei(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(k===`dots-wave`){let{geo:e,pos:t}=ml(y,b,M,N,o),n=gl(ce*2,se*2,te,we.current);s=new Ei(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(k===`crosses`){let{geo:e,centers:t,pos:n}=_l(y,b,M,N,o,le),r=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,r),f=e.attributes.position,u=n,p=t,c=e,l=r}else if(k===`diagonal-left`||k===`diagonal-right`){let{geo:e,pos:t}=vl(y,b,M,N,o,k===`diagonal-left`?`left`:`right`),n=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(k===`zigzag`){let{geo:e,pos:t}=yl(y,b,M,N,o),n=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(k===`hexagons`){let{geo:e,pos:t,hexCenters:n}=bl(y,b,M,N,o),r=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,r),f=e.attributes.position,h=t,m=n,c=e,l=r}else if(k===`dashes`){let{geo:e,pos:t,basePos:n}=xl(y,b,M,N,o,A,L),r=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,r),f=e.attributes.position,u=t,d=n,c=e,l=r}else if(k===`contour`){let{geo:e,vtxGrid:t}=Sl(y,b,M,N,o,ue),n=new ci({vertexColors:!0,transparent:!0,opacity:we.current});s=new bi(e,n),f=e.attributes.position,g=t,c=e,l=n}else{let{geo:e,pos:n}=Cl(y,b,M,N,o),r=new Wi({vertexColors:!0,transparent:!0,opacity:we.current,side:2,shininess:60}),i=new wa(16777215,1.2);i.position.set(5,10,7);let a=new Ta(16777215,.4);t.add(i,a),v=[i,a],s=new Xr(e,r),f=e.attributes.position,u=n,c=e,l=r}t.add(s);let x=()=>{n.aspect=e.clientWidth/e.clientHeight,n.updateProjectionMatrix(),r.setSize(e.clientWidth,e.clientHeight)},S=e=>{_e.current.x=e.clientX/window.innerWidth*2-1,_e.current.y=-(e.clientY/window.innerHeight)*2+1};window.addEventListener(`resize`,x),window.addEventListener(`mousemove`,S);let C=(e,t,n,r,i)=>{let a=y+1,c=0,l=r.array,u=i.array;for(let r of n){let n=ll((r-(-te-1))/((te+1)*2),o);for(let i=0;i{if(e=2&&c+6<=l.length)for(let e=0;e<2;e++)l[c]=E[e][0],l[c+1]=E[e][1],l[c+2]=E[e][2],u[c]=n.r,u[c+1]=n.g,u[c+2]=n.b,c+=3}}r.needsUpdate=!0,i.needsUpdate=!0,s.geometry.setDrawRange(0,c/3)},w=k===`contour`?new Float32Array((y+1)*(b+1)):null,T,E=()=>{if(T=requestAnimationFrame(E),l.opacity!==void 0&&(l.opacity=we.current),l.uniforms?.uOpacity&&(l.uniforms.uOpacity.value=we.current),!ye.current){let e=performance.now()*.001*ve.current,t=xe.current,n=be.current,r=Se.current,i=_e.current.x,a=_e.current.y;if(k===`crosses`&&p&&f&&u){let o=(y+1)*(b+1);for(let s=0;s{cancelAnimationFrame(T),window.removeEventListener(`resize`,x),window.removeEventListener(`mousemove`,S),v.forEach(e=>t.remove(e)),t.remove(s),c.dispose(),l.dispose(),_.forEach(El),r.dispose(),e.contains(r.domElement)&&e.removeChild(r.domElement)}},t[27]=te,t[28]=j,t[29]=a,t[30]=ue,t[31]=le,t[32]=L,t[33]=se,t[34]=ce,t[35]=A,t[36]=de,t[37]=O,t[38]=N,t[39]=M,t[40]=P,t[41]=F,t[42]=me.height,t[43]=me.width,t[44]=k,t[45]=Ie):Ie=t[45];let Le;t[46]!==j||t[47]!==a||t[48]!==ue||t[49]!==le||t[50]!==L||t[51]!==se||t[52]!==ce||t[53]!==A||t[54]!==de||t[55]!==O||t[56]!==N||t[57]!==M||t[58]!==P||t[59]!==F||t[60]!==me.height||t[61]!==me.width||t[62]!==k?(Le=[me.width,me.height,k,a,A,j,M,N,P,F,se,ce,le,L,ue,de,O],t[46]=j,t[47]=a,t[48]=ue,t[49]=le,t[50]=L,t[51]=se,t[52]=ce,t[53]=A,t[54]=de,t[55]=O,t[56]=N,t[57]=M,t[58]=P,t[59]=F,t[60]=me.height,t[61]=me.width,t[62]=k,t[63]=Le):Le=t[63],(0,m.useEffect)(Ie,Le);let Re;t[64]===n?Re=t[65]:(Re=o(`pointer-events-none absolute inset-0`,n),t[64]=n,t[65]=Re);let ze;return t[66]===Re?ze=t[67]:(ze=(0,h.jsx)(`div`,{ref:fe,className:Re,"aria-hidden":`true`}),t[66]=Re,t[67]=ze),ze};function Tl(e){return new X(e)}function El(e){return e.dispose()}var Dl=()=>{let e=(0,p.c)(15),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(d,{colors:`var(--primary)`,className:`absolute inset-0`}),n=(0,h.jsx)(d,{colors:`var(--primary)`,borderWidth:15,className:`absolute -inset-2 opacity-25 blur-xs`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,h.jsx)(`p`,{className:`font-mono text-xs tracking-wide text-balance text-primary md:text-sm`,children:`copy it, paste it, ship it`}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,h.jsx)(d,{size:150,borderWidth:2,colors:[`var(--color-accent)`,`var(--color-primary)`]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,h.jsxs)(`div`,{className:`relative mx-auto inline-flex translate-y-2 justify-center rounded-full border border-border px-6 py-1`,children:[r,i,(0,h.jsx)(d,{size:150,borderWidth:4,className:`blur`,colors:[`var(--color-accent)`,`var(--color-primary)`]})]}),e[4]=a):a=e[4];let o,s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,h.jsxs)(`h1`,{className:`flex gap-2 text-center text-[clamp(1rem,6vw,5rem)] font-black`,children:[(0,h.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Component`}),(0,h.jsx)(`span`,{className:`inline-block scale-150 px-2 text-center font-serif`,children:`&`}),(0,h.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Animations`})]}),s=(0,h.jsx)(`p`,{className:`mx-auto max-w-3xl text-center text-sm tracking-wide text-balance md:text-lg`,children:`We are a team of passionate designers and developers dedicated to creating beautiful and functional user interfaces.`}),e[5]=o,e[6]=s):(o=e[5],s=e[6]);let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=[`var(--primary)`,`var(--color-muted)`],e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,h.jsx)(d,{size:150,colors:[`var(--primary), transparent`],borderWidth:3,className:`absolute -inset-1 blur-xs`}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,h.jsx)(d,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-0.5`}),e[9]=u):u=e[9];let m;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,h.jsxs)(x,{colors:c,className:`text-xs md:text-sm`,children:[l,u,(0,h.jsx)(d,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),(0,h.jsx)(f,{className:`group-hover:text-brand size-4`}),(0,h.jsx)(`span`,{children:`Premium`})]}),e[10]=m):m=e[10];let g;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=[`var(--secondary)`,`var(--color-muted)`],e[11]=g):g=e[11];let _;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,h.jsxs)(`div`,{className:`flex flex-col space-y-3 p-6`,children:[a,o,s,(0,h.jsxs)(`div`,{className:`group flex justify-center space-x-2`,children:[m,(0,h.jsxs)(x,{colors:g,className:`text-xs md:text-sm`,variant:`secondary`,children:[(0,h.jsx)(d,{colors:`var(--primary)`,size:150,borderWidth:3,className:`absolute -inset-1 blur-xs`}),(0,h.jsx)(d,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-0.5`}),(0,h.jsx)(d,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),`Themes`]})]})]}),e[12]=_):_=e[12];let v;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(v={x:0,y:-20,z:5},e[13]=v):v=e[13];let y;return e[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,h.jsxs)(`section`,{className:`relative isolate my-4 grid min-h-90 place-items-center rounded-md border border-border md:min-h-120`,children:[t,n,_,(0,h.jsx)(wl,{cameraPosition:v,style:`wireframe`,colors:[`#a1a1a1`,`#646464`],className:`mask-linear inset-0 -z-20 rounded-[inherit] mask-linear-from-10% mask-linear-to-50% opacity-20`})]}),e[14]=y):y=e[14],y};Dl.displayName=`Hero`;function Ol(){let e=(0,p.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(c,{as:`section`,children:[(0,h.jsx)(Dl,{}),(0,h.jsx)(u,{code:`themes/yeti`})]})}),e[0]=t):t=e[0],t}Ol.layout=l,Ol.displayName=`home`;export{Ol as default}; \ No newline at end of file diff --git a/public/build/assets/input-error-CXzYDMKp.js b/public/build/assets/input-error-B7LHFA6O.js similarity index 85% rename from public/build/assets/input-error-CXzYDMKp.js rename to public/build/assets/input-error-B7LHFA6O.js index 2d61edd..9ad3957 100644 --- a/public/build/assets/input-error-CXzYDMKp.js +++ b/public/build/assets/input-error-B7LHFA6O.js @@ -1 +1 @@ -import{i as e,r as t}from"./wayfinder-DGNmxDkm.js";import{n}from"./createLucideIcon-wUA1TGAT.js";var r=e(),i=t();function a(e){let t=(0,r.c)(8),a,o,s;t[0]===e?(a=t[1],o=t[2],s=t[3]):({message:a,className:s,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s);let c=s===void 0?``:s,l;return t[4]!==c||t[5]!==a||t[6]!==o?(l=a?(0,i.jsx)(`p`,{...o,className:n(`text-sm text-red-600 dark:text-red-400`,c),children:a}):null,t[4]=c,t[5]=a,t[6]=o,t[7]=l):l=t[7],l}export{a as t}; \ No newline at end of file +import{i as e,r as t}from"./wayfinder-DGNmxDkm.js";import{n}from"./createLucideIcon-BN-jDSEO.js";var r=e(),i=t();function a(e){let t=(0,r.c)(8),a,o,s;t[0]===e?(a=t[1],o=t[2],s=t[3]):({message:a,className:s,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s);let c=s===void 0?``:s,l;return t[4]!==c||t[5]!==a||t[6]!==o?(l=a?(0,i.jsx)(`p`,{...o,className:n(`text-sm text-red-600 dark:text-red-400`,c),children:a}):null,t[4]=c,t[5]=a,t[6]=o,t[7]=l):l=t[7],l}export{a as t}; \ No newline at end of file diff --git a/public/build/assets/label-DR9FZUM0.js b/public/build/assets/label-shgfY21t.js similarity index 85% rename from public/build/assets/label-DR9FZUM0.js rename to public/build/assets/label-shgfY21t.js index 5d9473e..c68e705 100644 --- a/public/build/assets/label-DR9FZUM0.js +++ b/public/build/assets/label-shgfY21t.js @@ -1 +1 @@ -import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i}from"./createLucideIcon-wUA1TGAT.js";import{t as a}from"./dist-2FHDdoqV.js";var o=e(),s=r(t(),1),c=n(),l=`Label`,u=s.forwardRef((e,t)=>(0,c.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName=l;var d=u;function f(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[3]=n,t[4]=a);let s;return t[5]!==r||t[6]!==a?(s=(0,c.jsx)(d,{"data-slot":`label`,className:a,...r}),t[5]=r,t[6]=a,t[7]=s):s=t[7],s}export{f as t}; \ No newline at end of file +import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i}from"./createLucideIcon-BN-jDSEO.js";import{t as a}from"./dist-Hfu0N5sY.js";var o=e(),s=r(t(),1),c=n(),l=`Label`,u=s.forwardRef((e,t)=>(0,c.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName=l;var d=u;function f(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[3]=n,t[4]=a);let s;return t[5]!==r||t[6]!==a?(s=(0,c.jsx)(d,{"data-slot":`label`,className:a,...r}),t[5]=r,t[6]=a,t[7]=s):s=t[7],s}export{f as t}; \ No newline at end of file diff --git a/public/build/assets/loader-circle-BczqqvyR.js b/public/build/assets/loader-circle-kx-CiozJ.js similarity index 55% rename from public/build/assets/loader-circle-BczqqvyR.js rename to public/build/assets/loader-circle-kx-CiozJ.js index 49f094d..bbbae8b 100644 --- a/public/build/assets/loader-circle-BczqqvyR.js +++ b/public/build/assets/loader-circle-kx-CiozJ.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t}; \ No newline at end of file +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/login-CzdxtsZ7.js b/public/build/assets/login-CzdxtsZ7.js deleted file mode 100644 index 76186c7..0000000 --- a/public/build/assets/login-CzdxtsZ7.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,m as n,n as r,o as i,p as a,r as o,x as s}from"./wayfinder-DGNmxDkm.js";import{i as c,n as l,t as u}from"./dist-uBvN1Epe.js";import{a as d,o as f,t as p}from"./button-B6E1T0qj.js";import{n as m}from"./createLucideIcon-wUA1TGAT.js";import{t as h}from"./check-JLGZ6ERA.js";import{n as g,r as _,t as v}from"./socialite-CXgr0CAW.js";import{t as y}from"./password-input-HSktczCa.js";import{t as b}from"./github-DdPrsZVB.js";import{t as x}from"./dist-DlwT0Sy6.js";import{M as S,b as C,l as ee,x as te}from"./app-NKzAktB4.js";import{t as w}from"./input-error-CXzYDMKp.js";import{t as T}from"./label-DR9FZUM0.js";import{t as ne}from"./spinner-DVMDXl0V.js";import{t as E}from"./text-link-B-rnxz_C.js";import{n as D}from"./password-DgvYQGdP.js";var O=t(),k=s(n(),1),A=o();function j(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,A.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=k.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>k.createContext(e));return function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,M(i,...t)]}function M(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}a();function N(e){let t=P(e),n=k.forwardRef((e,n)=>{let{children:r,...i}=e,a=k.Children.toArray(r),o=a.find(I);if(o){let e=o.props.children,r=a.map(t=>t===o?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t);return(0,A.jsx)(t,{...i,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return(0,A.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function P(e){let t=k.forwardRef((e,t)=>{let{children:n,...r}=e;if(k.isValidElement(n)){let e=ie(n),i=re(r,n.props);return n.type!==k.Fragment&&(i.ref=t?d(t,e):e),k.cloneElement(n,i)}return k.Children.count(n)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F=Symbol(`radix.slottable`);function I(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===F}function re(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ie(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var L=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=N(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),R=`Checkbox`,[ae,oe]=j(R),[z,B]=ae(R);function V(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:d=`on`,internal_do_not_use_render:f}=e,[p,m]=u({prop:n,defaultProp:i??!1,onChange:c,caller:R}),[h,g]=k.useState(null),[_,v]=k.useState(null),y=k.useRef(!1),b=h?!!o||!!h.closest(`form`):!0,x={checked:p,disabled:a,setChecked:m,control:h,setControl:g,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:Y(i)?!1:i,isFormControl:b,bubbleInput:_,setBubbleInput:v};return(0,A.jsx)(z,{scope:t,...x,children:se(f)?f(x):r})}var H=`CheckboxTrigger`,U=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=B(H,e),_=f(i,d),v=k.useRef(l);return k.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,A.jsx)(L.button,{type:`button`,role:`checkbox`,"aria-checked":Y(l)?`mixed`:l,"aria-required":u,"data-state":X(l),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:_,onKeyDown:c(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:c(n,e=>{p(e=>Y(e)?!0:!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});U.displayName=H;var W=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,A.jsx)(V,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(U,{...d,ref:t,__scopeCheckbox:n}),e&&(0,A.jsx)(J,{__scopeCheckbox:n})]})})});W.displayName=R;var G=`CheckboxIndicator`,K=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=B(G,n);return(0,A.jsx)(l,{present:r||Y(a.checked)||a.checked===!0,children:(0,A.jsx)(L.span,{"data-state":X(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});K.displayName=G;var q=`CheckboxBubbleInput`,J=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:p,setBubbleInput:m}=B(q,e),h=f(n,m),g=x(a),_=S(r);k.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(g!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Y(a),n.call(e,Y(a)?!1:a),e.dispatchEvent(t)}},[p,g,a,i]);let v=k.useRef(Y(a)?!1:a);return(0,A.jsx)(L.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??v.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});J.displayName=q;function se(e){return typeof e==`function`}function Y(e){return e===`indeterminate`}function X(e){return Y(e)?`indeterminate`:e?`checked`:`unchecked`}function ce(e){let t=(0,O.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=m(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,A.jsx)(K,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,A.jsx)(h,{className:`size-3.5`})}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,A.jsx)(W,{"data-slot":`checkbox`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/login`},Z.url=e=>Z.definition.url+r(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({action:Z.url(e),method:`post`});Q.post=e=>({action:Z.url(e),method:`post`}),Z.form=Q,Object.assign(Z,Z);function $(t){let n=(0,O.c)(15),{status:r,canResetPassword:a,canRegister:o}=t,s;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,A.jsx)(i,{title:`Log in`}),n[0]=s):s=n[0];let c;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:v.url(`github`),children:[(0,A.jsx)(g,{iconNode:b,className:`mr-2 h-4 w-4`}),`Github`]})}),n[1]=c):c=n[1];let l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[c,(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:v.url(`google`),children:[(0,A.jsx)(g,{iconNode:_,className:`mr-2 h-4 w-4`}),`Google`]})})]}),n[2]=l):l=n[2];let u;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,A.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,A.jsx)(C,{})}),n[3]=u):u=n[3];let d;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,A.jsxs)(`div`,{className:`relative`,children:[u,(0,A.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,A.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),n[4]=d):d=n[4];let f,m;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=Z.form(),m=[`password`],n[5]=f,n[6]=m):(f=n[5],m=n[6]);let h;n[7]!==o||n[8]!==a?(h=(0,A.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[l,d,(0,A.jsx)(e,{...f,resetOnSuccess:m,className:`flex flex-col gap-6`,children:e=>{let{processing:t,errors:n}=e;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`grid gap-6`,children:[(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsx)(T,{htmlFor:`email`,children:`Email address`}),(0,A.jsx)(te,{id:`email`,type:`email`,name:`email`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`email`,placeholder:`email@example.com`}),(0,A.jsx)(w,{message:n.email})]}),(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsxs)(`div`,{className:`flex items-center`,children:[(0,A.jsx)(T,{htmlFor:`password`,children:`Password`}),a&&(0,A.jsx)(E,{href:D(),className:`ml-auto text-sm`,tabIndex:5,children:`Forgot password?`})]}),(0,A.jsx)(y,{id:`password`,name:`password`,required:!0,tabIndex:2,autoComplete:`current-password`,placeholder:`Password`}),(0,A.jsx)(w,{message:n.password})]}),(0,A.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,A.jsx)(ce,{id:`remember`,name:`remember`,tabIndex:3}),(0,A.jsx)(T,{htmlFor:`remember`,children:`Remember me`})]}),(0,A.jsxs)(p,{type:`submit`,className:`mt-4 w-full`,tabIndex:4,disabled:t,"data-test":`login-button`,children:[t&&(0,A.jsx)(ne,{}),`Log in`]})]}),o&&(0,A.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Don't have an account?`,` `,(0,A.jsx)(E,{href:ee(),tabIndex:5,children:`Sign up`})]})]})}})]}),n[7]=o,n[8]=a,n[9]=h):h=n[9];let x;n[10]===r?x=n[11]:(x=r&&(0,A.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:r}),n[10]=r,n[11]=x);let S;return n[12]!==h||n[13]!==x?(S=(0,A.jsxs)(A.Fragment,{children:[s,h,x]}),n[12]=h,n[13]=x,n[14]=S):S=n[14],S}$.layout={title:`Log in to your account`,description:`Enter your email and password below to log in`};export{$ as default}; \ No newline at end of file diff --git a/public/build/assets/login-DDiqb3zu.js b/public/build/assets/login-DDiqb3zu.js new file mode 100644 index 0000000..82327c6 --- /dev/null +++ b/public/build/assets/login-DDiqb3zu.js @@ -0,0 +1 @@ +import{a as e,i as t,n,o as r,r as i}from"./wayfinder-DGNmxDkm.js";import{t as a}from"./button-CJIRvoa4.js";import{n as o,r as s,t as c}from"./socialite-BKXn5KQb.js";import{t as l}from"./password-input-uWAWfR_8.js";import{t as u}from"./github-D7dT9N2Y.js";import{t as d}from"./checkbox-DlkBWsch.js";import{T as f,l as p,w as m}from"./app-0l60ScAC.js";import{t as h}from"./input-error-B7LHFA6O.js";import{t as g}from"./label-shgfY21t.js";import{t as _}from"./spinner-CO4WEyCd.js";import{t as v}from"./text-link-UmmgvXHR.js";import{n as y}from"./password-4MQY-sCe.js";var b=t(),x=e=>({url:x.url(e),method:`post`});x.definition={methods:[`post`],url:`/login`},x.url=e=>x.definition.url+n(e),x.post=e=>({url:x.url(e),method:`post`});var S=e=>({action:x.url(e),method:`post`});S.post=e=>({action:x.url(e),method:`post`}),x.form=S,Object.assign(x,x);var C=i();function w(t){let n=(0,b.c)(15),{status:i,canResetPassword:S,canRegister:w}=t,T;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,C.jsx)(r,{title:`Log in`}),n[0]=T):T=n[0];let E;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,C.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,C.jsxs)(`a`,{href:c.url(`github`),children:[(0,C.jsx)(o,{iconNode:u,className:`mr-2 h-4 w-4`}),`Github`]})}),n[1]=E):E=n[1];let D;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,C.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[E,(0,C.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,C.jsxs)(`a`,{href:c.url(`google`),children:[(0,C.jsx)(o,{iconNode:s,className:`mr-2 h-4 w-4`}),`Google`]})})]}),n[2]=D):D=n[2];let O;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,C.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,C.jsx)(m,{})}),n[3]=O):O=n[3];let k;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,C.jsxs)(`div`,{className:`relative`,children:[O,(0,C.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,C.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),n[4]=k):k=n[4];let A,j;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(A=x.form(),j=[`password`],n[5]=A,n[6]=j):(A=n[5],j=n[6]);let M;n[7]!==w||n[8]!==S?(M=(0,C.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[D,k,(0,C.jsx)(e,{...A,resetOnSuccess:j,className:`flex flex-col gap-6`,children:e=>{let{processing:t,errors:n}=e;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`grid gap-6`,children:[(0,C.jsxs)(`div`,{className:`grid gap-2`,children:[(0,C.jsx)(g,{htmlFor:`email`,children:`Email address`}),(0,C.jsx)(f,{id:`email`,type:`email`,name:`email`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`email`,placeholder:`email@example.com`}),(0,C.jsx)(h,{message:n.email})]}),(0,C.jsxs)(`div`,{className:`grid gap-2`,children:[(0,C.jsxs)(`div`,{className:`flex items-center`,children:[(0,C.jsx)(g,{htmlFor:`password`,children:`Password`}),S&&(0,C.jsx)(v,{href:y(),className:`ml-auto text-sm`,tabIndex:5,children:`Forgot password?`})]}),(0,C.jsx)(l,{id:`password`,name:`password`,required:!0,tabIndex:2,autoComplete:`current-password`,placeholder:`Password`}),(0,C.jsx)(h,{message:n.password})]}),(0,C.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,C.jsx)(d,{id:`remember`,name:`remember`,tabIndex:3}),(0,C.jsx)(g,{htmlFor:`remember`,children:`Remember me`})]}),(0,C.jsxs)(a,{type:`submit`,className:`mt-4 w-full`,tabIndex:4,disabled:t,"data-test":`login-button`,children:[t&&(0,C.jsx)(_,{}),`Log in`]})]}),w&&(0,C.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Don't have an account?`,` `,(0,C.jsx)(v,{href:p(),tabIndex:5,children:`Sign up`})]})]})}})]}),n[7]=w,n[8]=S,n[9]=M):M=n[9];let N;n[10]===i?N=n[11]:(N=i&&(0,C.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:i}),n[10]=i,n[11]=N);let P;return n[12]!==M||n[13]!==N?(P=(0,C.jsxs)(C.Fragment,{children:[T,M,N]}),n[12]=M,n[13]=N,n[14]=P):P=n[14],P}w.layout={title:`Log in to your account`,description:`Enter your email and password below to log in`};export{w as default}; \ No newline at end of file diff --git a/public/build/assets/main-layout-BDfUDiNw.js b/public/build/assets/main-layout-BDfUDiNw.js new file mode 100644 index 0000000..deeecb3 --- /dev/null +++ b/public/build/assets/main-layout-BDfUDiNw.js @@ -0,0 +1 @@ +import{b as e,c as t,i as n,m as r,n as i,p as a,r as o,v as s,x as c,y as l}from"./wayfinder-DGNmxDkm.js";import{n as u}from"./use-appearance-QmpypXC6.js";import{t as d}from"./button-CJIRvoa4.js";import{p as f}from"./dist-Cw-hV1_S.js";import{n as p,t as m}from"./createLucideIcon-BN-jDSEO.js";import{t as h}from"./check-CWekFaHD.js";import{t as g}from"./github-D7dT9N2Y.js";import{n as _,t as v}from"./sun-DKOQEsNV.js";import{D as y,E as b,O as x,T as S,_ as C,b as ee,g as te,h as ne,k as re,o as w,p as ie,r as ae,v as oe,y as se}from"./app-0l60ScAC.js";import{t as ce}from"./placeholder-pattern-B0M5WUpE.js";var le=m(`Menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),ue=m(`Palette`,[[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`,key:`12rzf8`}]]),de=m(`RotateCcw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),fe=m(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),T=o(),E=c(r(),1),pe=(0,E.createContext)({});function me(e){let t=(0,E.useRef)(null);return t.current===null&&(t.current=e()),t.current}var he=typeof window<`u`?E.useLayoutEffect:E.useEffect,ge=(0,E.createContext)(null);function _e(e,t){e.indexOf(t)===-1&&e.push(t)}function ve(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var D=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xe(e){return typeof e==`object`&&!!e}var Se=e=>/^0[^.\s]+$/u.test(e);function Ce(e){let t;return()=>(t===void 0&&(t=e()),t)}var O=e=>e,we=(e,t)=>n=>t(e(n)),Te=(...e)=>e.reduce(we),Ee=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},De=class{constructor(){this.subscriptions=[]}add(e){return _e(this.subscriptions,e),()=>ve(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,A=e=>e/1e3;function Oe(e,t){return t?1e3/t*e:0}var ke=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ae=1e-7,je=12;function Me(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ke(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ae&&++sMe(t,0,1,e,n);return e=>e===0||e===1?e:ke(i(e),t,r)}var Pe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fe=e=>t=>1-e(1-t),Ie=Ne(.33,1.53,.69,.99),Le=Fe(Ie),Re=Pe(Le),ze=e=>e>=1?1:(e*=2)<1?.5*Le(e):.5*(2-2**(-10*(e-1))),Be=e=>1-Math.sin(Math.acos(e)),Ve=Fe(Be),He=Pe(Be),Ue=Ne(.42,0,1,1),We=Ne(0,0,.58,1),Ge=Ne(.42,0,.58,1),Ke=e=>Array.isArray(e)&&typeof e[0]!=`number`,qe=e=>Array.isArray(e)&&typeof e[0]==`number`,Je={linear:O,easeIn:Ue,easeInOut:Ge,easeOut:We,circIn:Be,circInOut:He,circOut:Ve,backIn:Le,backInOut:Re,backOut:Ie,anticipate:ze},Ye=e=>typeof e==`string`,Xe=e=>{if(qe(e)){e.length;let[t,n,r,i]=e;return Ne(t,n,r,i)}else if(Ye(e))return Je[e],`${e}`,Je[e];return e},Ze=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],j={value:null,addProjectionMetrics:null};function Qe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&j.value&&j.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var $e=40;function et(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ze.reduce((e,n)=>(e[n]=Qe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ye.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,$e),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ze.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(rt===void 0&&P.set(N.isProcessing||ye.useManualTiming?N.timestamp:performance.now()),rt),set:e=>{rt=e,queueMicrotask(it)}},at={layout:0,mainThread:0,waapi:0},ot=e=>t=>typeof t==`string`&&t.startsWith(e),st=ot(`--`),ct=ot(`var(--`),lt=e=>ct(e)?ut.test(e.split(`/*`)[0].trim()):!1,ut=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dt(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var ft={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},pt={...ft,transform:e=>D(0,1,e)},mt={...ft,default:1},ht=e=>Math.round(e*1e5)/1e5,gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _t(e){return e==null}var vt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yt=(e,t)=>n=>!!(typeof n==`string`&&vt.test(n)&&n.startsWith(e)||t&&!_t(n)&&Object.prototype.hasOwnProperty.call(n,t)),bt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(gt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},xt=e=>D(0,255,e),St={...ft,transform:e=>Math.round(xt(e))},Ct={test:yt(`rgb`,`red`),parse:bt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+St.transform(e)+`, `+St.transform(t)+`, `+St.transform(n)+`, `+ht(pt.transform(r))+`)`};function wt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Tt={test:yt(`#`),parse:wt,transform:Ct.transform},Et=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=Et(`deg`),I=Et(`%`),L=Et(`px`),Dt=Et(`vh`),Ot=Et(`vw`),kt={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},At={test:yt(`hsl`,`hue`),parse:bt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(ht(t))+`, `+I.transform(ht(n))+`, `+ht(pt.transform(r))+`)`},R={test:e=>Ct.test(e)||Tt.test(e)||At.test(e),parse:e=>Ct.test(e)?Ct.parse(e):At.test(e)?At.parse(e):Tt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ct.transform(e):At.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mt(e){return isNaN(e)&&typeof e==`string`&&(e.match(gt)?.length||0)+(e.match(jt)?.length||0)>0}var Nt=`number`,Pt=`color`,Ft=`var`,It=`var(`,Lt="${}",Rt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Rt,e=>(R.test(e)?(r.color.push(a),i.push(Pt),n.push(R.parse(e))):e.startsWith(It)?(r.var.push(a),i.push(Ft),n.push(e)):(r.number.push(a),i.push(Nt),n.push(parseFloat(e))),++a,Lt)).split(Lt),indexes:r,types:i}}function Bt(e){return zt(e).values}function Vt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,Wt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ut(e);function Gt(e){let t=zt(e);return Vt(t)(t.values.map((e,n)=>Wt(e,t.split[n])))}var z={test:Mt,parse:Bt,createTransformer:Ht,getAnimatableNone:Gt};function Kt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Kt(s,r,e+1/3),a=Kt(s,r,e),o=Kt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Jt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Yt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xt=[Tt,Ct,At],Zt=e=>Xt.find(t=>t.test(e));function Qt(e){let t=Zt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===At&&(n=qt(n)),n}var $t=(e,t)=>{let n=Qt(e),r=Qt(t);if(!n||!r)return Jt(e,t);let i={...n};return e=>(i.red=Yt(n.red,r.red,e),i.green=Yt(n.green,r.green,e),i.blue=Yt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),Ct.transform(i))},en=new Set([`none`,`hidden`]);function tn(e,t){return en.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nn(e,t){return n=>B(e,t,n)}function rn(e){return typeof e==`number`?nn:typeof e==`string`?lt(e)?Jt:R.test(e)?$t:cn:Array.isArray(e)?an:typeof e==`object`?R.test(e)?$t:on:Jt}function an(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rn(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function sn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=z.createTransformer(t),r=zt(e),i=zt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?en.has(e)&&!i.values.length||en.has(t)&&!r.values.length?tn(e,t):Te(an(sn(r,i),i.values),n):(`${e}${t}`,Jt(e,t))};function ln(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):rn(e)(e,t)}var un=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>M.update(t,e),stop:()=>tt(t),now:()=>N.isProcessing?N.timestamp:P.now()}},dn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function mn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(pn(r),fn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function hn(e,t){return e*Math.sqrt(1-t*t)}var gn=12;function _n(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=hn(t,o),c=Math.exp(-i);return vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=hn(t**2,o);return(-i(t)+vn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-vn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=_n(i,a,s);if(e=k(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var bn=[`duration`,`bounce`],xn=[`stiffness`,`damping`,`mass`];function Sn(e,t){return t.some(t=>e[t]!==void 0)}function Cn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Sn(e,xn)&&Sn(e,bn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*D(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=yn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function wn(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Cn({...n,velocity:-A(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=A(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=hn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>k(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=k(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=k(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(pn(te),fn),t=dn(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}wn.applyToOptions=e=>{let t=mn(e,100,wn);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};var Tn=5;function En(e,t,n){let r=Math.max(t-Tn,0);return Oe(n-e(r),t-r)}function Dn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=wn({keyframes:[f.value,m(f.value)],velocity:En(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function On(e,t,n){let r=[],i=n||ye.mix||ln,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=On(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(D(e[0],e[a-1],t)):l}function An(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ee(0,t,r);e.push(B(n,1,i))}}function jn(e){let t=[0];return An(t,e.length-1),t}function Mn(e,t){return e.map(e=>e*t)}function Nn(e,t){return e.map(()=>t||Ge).splice(0,e.length-1)}function Pn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ke(r)?r.map(Xe):Xe(r),a={done:!1,value:t[0]},o=kn(Mn(n&&n.length===t.length?n:jn(t),e),t,{ease:Array.isArray(i)?i:Nn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Fn=e=>e!==null;function In(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ln={decay:Dn,inertia:Dn,tween:Pn,keyframes:Pn,spring:wn};function Rn(e){typeof e.type==`string`&&(e.type=Ln[e.type])}var zn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Bn=e=>e/100,Vn=class extends zn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},at.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Rn(e);let{type:t=Pn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Pn;s!==Pn&&typeof o[0]!=`number`&&(this.mixKeyframes=Te(Bn,ln(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=pn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=D(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Dn&&(b.value=In(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return En(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=un,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,at.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Hn(e){for(let t=1;te*180/Math.PI,Wn=e=>Kn(Un(Math.atan2(e[1],e[0]))),Gn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wn,rotateZ:Wn,skewX:e=>Un(Math.atan(e[1])),skewY:e=>Un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kn=e=>(e%=360,e<0&&(e+=360),e),qn=Wn,Jn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Yn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jn,scaleY:Yn,scale:e=>(Jn(e)+Yn(e))/2,rotateX:e=>Kn(Un(Math.atan2(e[6],e[5]))),rotateY:e=>Kn(Un(Math.atan2(-e[2],e[0]))),rotateZ:qn,rotate:qn,skewX:e=>Un(Math.atan(e[4])),skewY:e=>Un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return+!!e.includes(`scale`)}function Qn(e,t){if(!e||e===`none`)return Zn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Xn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Gn,i=t}if(!i)return Zn(t);let a=r[t],o=i[1].split(`,`).map(er);return typeof a==`function`?a(o):o[a]}var $n=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qn(n,t)};function er(e){return parseFloat(e.trim())}var tr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],nr=new Set(tr),rr=e=>e===ft||e===L,ir=new Set([`x`,`y`,`z`]),ar=tr.filter(e=>!ir.has(e));function or(e){let t=[];return ar.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var sr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qn(t,`x`),y:(e,{transform:t})=>Qn(t,`y`)};sr.translateX=sr.x,sr.translateY=sr.y;var cr=new Set,lr=!1,ur=!1,dr=!1;function fr(){if(ur){let e=Array.from(cr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=or(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ur=!1,lr=!1,cr.forEach(e=>e.complete(dr)),cr.clear()}function pr(){cr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ur=!0)})}function mr(){dr=!0,pr(),fr(),dr=!1}var hr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(cr.add(this),lr||(lr=!0,M.read(pr),M.resolveKeyframes(fr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),cr.delete(this)}cancel(){this.state===`scheduled`&&(cr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},gr=e=>e.startsWith(`--`);function _r(e,t,n){gr(t)?e.style.setProperty(t,n):e.style[t]=n}var vr={};function yr(e,t){let n=Ce(e);return()=>vr[t]??n()}var br=yr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),xr=yr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Cr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function wr(e,t){if(e)return typeof e==`function`?xr()?dn(e,t):`ease-out`:qe(e)?Sr(e):Array.isArray(e)?e.map(e=>wr(e,t)||Cr.easeOut):Cr[e]}function Tr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=wr(s,i);Array.isArray(d)&&(u.easing=d),j.value&&at.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return j.value&&p.finished.finally(()=>{at.waapi--}),p}function Er(e){return typeof e==`function`&&`applyToOptions`in e}function Dr({type:e,...t}){return Er(e)&&xr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Or=class extends zn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Dr(e);this.animation=Tr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=In(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),_r(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&br()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),O):r(this)}},kr={anticipate:ze,backInOut:Re,circInOut:He};function Ar(e){return e in kr}function jr(e){typeof e.ease==`string`&&Ar(e.ease)&&(e.ease=kr[e.ease])}var Mr=10,Nr=class extends Or{constructor(e){jr(e),Rn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Vn({...a,autoplay:!1}),s=Math.max(Mr,P.now()-this.startTime),c=D(0,Mr,s-Mr),l=o.sample(s).value,{name:u}=this.options;i&&u&&_r(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Pr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function Fr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function Ur(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Hr()&&n&&(Rr.has(n)||Vr.has(n)&&Br(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Wr=40,Gr=class extends zn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||hr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;Ir(e,i,a,o)||(u=!1,(ye.instantAnimations||!s)&&l?.(In(e,n,t)),e[0]=e[e.length-1],Lr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Wr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ur(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Nr({...d,element:p})}catch{m=new Vn(d)}else m=new Vn(d);m.finished.then(()=>{this.notifyFinished()}).catch(O),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),mr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Kr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var qr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jr(e){let t=qr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Yr(e,t,n=1){`${e}`;let[r,i]=Jr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return be(e)?parseFloat(e):e}return lt(i)?Yr(i,t,n+1):i}var Xr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Zr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qr={type:`keyframes`,duration:.8},$r={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ei=(e,{keyframes:t})=>t.length>2?Qr:nr.has(e)?e.startsWith(`scale`)?Zr(t[1]):Xr:$r;function ti(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ni(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ti(n,e)}var ri=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ii(e){for(let t in e)if(!ri.has(t))return!0;return!1}var ai=(e,t,n,r={},i,a)=>o=>{let s=ni(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ii(s)||Object.assign(u,ei(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Lr(u),u.delay===0&&(d=!0)),(ye.instantAnimations||ye.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Lr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=In(u.keyframes,s);if(e!==void 0){M.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Vn(u):new Gr(u)};function oi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function si(e,t,n,r){if(typeof t==`function`){let[i,a]=oi(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=oi(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ci(e,t,n){let r=e.getProps();return si(r,t,n===void 0?r.custom:n,e)}var li=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...tr]),ui=30,di=e=>!isNaN(parseFloat(e)),fi={current:void 0},pi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=di(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new De);let n=this.events[e].add(t);return e===`change`?()=>{n(),M.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return fi.current&&fi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ui)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ui);return Oe(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function mi(e,t){return new pi(e,t)}var hi=e=>Array.isArray(e);function gi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mi(n))}function _i(e){return hi(e)?e[e.length-1]||0:e}function vi(e,t){let{transitionEnd:n={},transition:r={},...i}=ci(e,t)||{};i={...i,...n};for(let t in i)gi(e,t,_i(i[t]))}var H=e=>!!(e&&e.getVelocity);function yi(e){return!!(H(e)&&e.add)}function bi(e,t){let n=e.getValue(`willChange`);if(yi(n))return n.add(t);if(!n&&ye.WillChange){let n=new ye.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function xi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Si=`data-`+xi(`framerAppearId`);function Ci(e){return e.props[Si]}function wi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ti(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ti(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&wi(d,t))continue;let o={delay:n,...ni(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){M.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Ci(e);if(n){let e=window.MotionHandoffAnimation(n,t,M);e!==null&&(o.startTime=e,f=!0)}}bi(e,t);let p=l??e.shouldReduceMotion;r.start(ai(t,r,i,p&&li.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>M.update(()=>{o&&vi(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Ei(e,t,n={}){let r=ci(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ti(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Di(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Di(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ei(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Kr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Oi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ei(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ei(e,t,n);else{let i=typeof t==`function`?ci(e,t,n.custom):t;r=Promise.all(Ti(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ki={test:e=>e===`auto`,parse:e=>e},Ai=e=>t=>t.test(e),ji=[ft,L,I,F,Ot,Dt,ki],Mi=e=>ji.find(Ai(e));function Ni(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Se(e)}var Pi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Fi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(gt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Pi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ii=/\b([a-z-]*)\(.*?\)/gu,Li={...z,getAnimatableNone:e=>{let t=e.match(Ii);return t?t.map(Fi).join(` `):e}},Ri={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},zi={...ft,transform:Math.round},Bi={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:mt,scaleX:mt,scaleY:mt,scaleZ:mt,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:pt,originX:kt,originY:kt,originZ:L,zIndex:zi,fillOpacity:pt,strokeOpacity:pt,numOctaves:zi},Vi={...Bi,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Li,WebkitFilter:Li,mask:Ri,WebkitMask:Ri},Hi=e=>Vi[e],Ui=new Set([Li,Ri]);function Wi(e,t){let n=Hi(e);return Ui.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Gi=new Set([`auto`,`none`,`0`]);function Ki(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ji(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Yi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Xi(e){return xe(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Zi,cancel:Qi}=et(queueMicrotask,!1),U={x:!1,y:!1};function $i(){return U.x||U.y}function ea(e){return e===`x`||e===`y`?U[e]?null:(U[e]=!0,()=>{U[e]=!1}):U.x||U.y?null:(U.x=U.y=!0,()=>{U.x=U.y=!1})}function ta(e,t){let n=Ji(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function na(e){return!(e.pointerType===`touch`||$i())}function ra(e,t,n={}){let[r,i,a]=ta(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!na(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ia=(e,t)=>t?e===t?!0:ia(e,t.parentElement):!1,aa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,oa=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function sa(e){return oa.has(e.tagName)||e.isContentEditable===!0}var ca=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function la(e){return ca.has(e.tagName)||e.isContentEditable===!0}var ua=new WeakSet;function da(e){return t=>{t.key===`Enter`&&e(t)}}function fa(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var pa=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=da(()=>{if(ua.has(n))return;fa(n,`down`);let e=da(()=>{fa(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>fa(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ma(e){return aa(e)&&!$i()}var ha=new WeakSet;function ga(e,t,n={}){let[r,i,a]=ta(e,n),o=e=>{let r=e.currentTarget;if(!ma(e)||ha.has(e))return;ua.add(r),n.stopPropagation&&ha.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ua.has(r)&&ua.delete(r),ma(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ia(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Xi(e)&&(e.addEventListener(`focus`,e=>pa(e,i)),!sa(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function _a(e){return xe(e)&&`ownerSVGElement`in e}var va=new WeakMap,ya,ba=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:_a(r)&&`getBBox`in r?r.getBBox()[t]:r[n],xa=ba(`inline`,`width`,`offsetWidth`),Sa=ba(`block`,`height`,`offsetHeight`);function Ca({target:e,borderBoxSize:t}){va.get(e)?.forEach(n=>{n(e,{get width(){return xa(e,t)},get height(){return Sa(e,t)}})})}function wa(e){e.forEach(Ca)}function Ta(){typeof ResizeObserver>`u`||(ya=new ResizeObserver(wa))}function Ea(e,t){ya||Ta();let n=Ji(e);return n.forEach(e=>{let n=va.get(e);n||(n=new Set,va.set(e,n)),n.add(t),ya?.observe(e)}),()=>{n.forEach(e=>{let n=va.get(e);n?.delete(t),n?.size||ya?.unobserve(e)})}}var Da=new Set,Oa;function ka(){Oa=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Da.forEach(t=>t(e))},window.addEventListener(`resize`,Oa)}function Aa(e){return Da.add(e),Oa||ka(),()=>{Da.delete(e),!Da.size&&typeof Oa==`function`&&(window.removeEventListener(`resize`,Oa),Oa=void 0)}}function ja(e,t){return typeof e==`function`?Aa(e):Ea(e,t)}function Ma(e){return _a(e)&&e.tagName===`svg`}var Na=[...ji,R,z],Pa=e=>Na.find(Ai(e)),Fa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ia=()=>({x:Fa(),y:Fa()}),La=()=>({min:0,max:0}),W=()=>({x:La(),y:La()}),Ra=new WeakMap;function za(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ba(e){return typeof e==`string`||Array.isArray(e)}var Va=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ha=[`initial`,...Va];function Ua(e){return za(e.animate)||Ha.some(t=>Ba(e[t]))}function Wa(e){return!!(Ua(e)||e.variants)}function Ga(e,t,n){for(let r in t){let i=t[r],a=n[r];if(H(i))e.addValue(r,i);else if(H(a))e.addValue(r,mi(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,mi(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ka={current:null},qa={current:!1},Ja=typeof window<`u`;function Ya(){if(qa.current=!0,Ja)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ka.current=e.matches;e.addEventListener(`change`,t),t()}else Ka.current=!1}var Xa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Za={};function Qa(e){Za=e}function $a(){return Za}var eo=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=P.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(qa.current||Ya(),this.shouldReduceMotion=Ka.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Rr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Or({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=nr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&M.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Za){let t=Za[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):W()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=mi(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(be(n)||Se(n))?n=parseFloat(n):!Pa(n)&&z.test(t)&&(n=Wi(e,t)),this.setBaseTarget(e,H(n)?n.get():n)),H(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=si(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!H(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new De),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Zi.render(this.render)}},to=class extends eo{constructor(){super(...arguments),this.KeyframeResolver=qi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;H(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},G=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function no({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ro({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function io(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ao(e){return e===void 0||e===1}function oo({scale:e,scaleX:t,scaleY:n}){return!ao(e)||!ao(t)||!ao(n)}function so(e){return oo(e)||co(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function co(e){return lo(e.x)||lo(e.y)}function lo(e){return e&&e!==`0%`}function uo(e,t,n){return n+t*(e-n)}function fo(e,t,n,r,i){return i!==void 0&&(e=uo(e,i,r)),uo(e,n,r)+t}function po(e,t=0,n=1,r,i){e.min=fo(e.min,t,n,r,i),e.max=fo(e.max,t,n,r,i)}function mo(e,{x:t,y:n}){po(e.x,t.translate,t.scale,t.originPoint),po(e.y,n.translate,n.scale,n.originPoint)}var ho=.999999999999,go=1.0000000000001;function _o(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sho&&(t.x=1),t.yho&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function vo(e,t,n,r,i=.5){po(e,t,n,B(e.min,e.max,i),r)}function yo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function bo(e,t,n){let r=n??e;vo(e.x,yo(t.x,r.x),t.scaleX,t.scale,t.originX),vo(e.y,yo(t.y,r.y),t.scaleY,t.scale,t.originY)}function xo(e,t){return no(io(e.getBoundingClientRect(),t))}function So(e,t,n){let r=xo(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var Co={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},wo=tr.length;function To(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${Oo(e,t.target.x)}% ${Oo(e,t.target.y)}%`}},Ao={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},jo={borderRadius:{...ko,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ko,borderTopRightRadius:ko,borderBottomLeftRadius:ko,borderBottomRightRadius:ko,boxShadow:Ao};function Mo(e,{layout:t,layoutId:n}){return nr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!jo[e]||e===`opacity`)}function No(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(H(r[t])||i&&H(i[t])||Mo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Po(e){return window.getComputedStyle(e)}var Fo=class extends to{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Do}readValueFromInstance(e,t){if(nr.has(t))return this.projection?.isProjecting?Zn(t):$n(e,t);{let n=Po(e),r=(st(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return xo(e,t)}build(e,t,n){Eo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return No(e,t,n)}},Io={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Lo={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ro(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Io:Lo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var zo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Bo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Eo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of zo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ro(d,i,a,o,!1)}var Vo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ho=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Uo(e,t,n,r){Do(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Vo.has(n)?n:xi(n),t.attrs[n])}function Wo(e,t,n){let r=No(e,t,n);for(let n in e)if(H(e[n])||H(t[n])){let t=tr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Go=class extends to{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=W}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(nr.has(t)){let e=Hi(t);return e&&e.default||0}return t=Vo.has(t)?t:xi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Wo(e,t,n)}build(e,t,n){Bo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Uo(e,t,n,r)}mount(e){this.isSVGTag=Ho(e.tagName),super.mount(e)}},Ko=Ha.length;function qo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&qo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>Oi(e,t,n)))}function Qo(e){let t=Zo(e),n=ts(),r=!0,i=!1,a=t=>(n,r)=>{let i=ci(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=qo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},ne=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=hi(t)&&hi(n)?!Jo(t,n):t!==n,r?t==null?u.add(e):ne(e):t!==void 0&&u.has(e)?ne(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let re=v&&y;b&&(!re||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!re&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ci(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Kr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ci(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ts(),i=!0}}}function $o(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Jo(t,e):!1}function es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ts(){return{animate:es(!0),whileInView:es(),whileHover:es(),whileTap:es(),whileDrag:es(),whileFocus:es(),exit:es()}}function ns(e,t){e.min=t.min,e.max=t.max}function q(e,t){ns(e.x,t.x),ns(e.y,t.y)}function rs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var is=1e-4,as=1-is,os=1+is,ss=.01,cs=0-ss,ls=0+ss;function J(e){return e.max-e.min}function us(e,t,n){return Math.abs(e-t)<=n}function ds(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=as&&e.scale<=os||isNaN(e.scale))&&(e.scale=1),(e.translate>=cs&&e.translate<=ls||isNaN(e.translate))&&(e.translate=0)}function fs(e,t,n,r){ds(e.x,t.x,n.x,r?r.originX:void 0),ds(e.y,t.y,n.y,r?r.originY:void 0)}function ps(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function ms(e,t,n,r){ps(e.x,t.x,n.x,r?.x),ps(e.y,t.y,n.y,r?.y)}function hs(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function gs(e,t,n,r){hs(e.x,t.x,n.x,r?.x),hs(e.y,t.y,n.y,r?.y)}function _s(e,t,n,r,i){return e-=t,e=uo(e,1/n,r),i!==void 0&&(e=uo(e,1/i,r)),e}function vs(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=_s(e.min,t,n,s,i),e.max=_s(e.max,t,n,s,i)}function ys(e,t,[n,r,i],a,o){vs(e,t[n],t[r],t[i],t.scale,a,o)}var bs=[`x`,`scaleX`,`originX`],xs=[`y`,`scaleY`,`originY`];function Ss(e,t,n,r){ys(e.x,t,bs,n?n.x:void 0,r?r.x:void 0),ys(e.y,t,xs,n?n.y:void 0,r?r.y:void 0)}function Cs(e){return e.translate===0&&e.scale===1}function ws(e){return Cs(e.x)&&Cs(e.y)}function Ts(e,t){return e.min===t.min&&e.max===t.max}function Es(e,t){return Ts(e.x,t.x)&&Ts(e.y,t.y)}function Ds(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Os(e,t){return Ds(e.x,t.x)&&Ds(e.y,t.y)}function ks(e){return J(e.x)/J(e.y)}function As(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function js(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ms=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Ns=Ms.length,Ps=e=>typeof e==`string`?parseFloat(e):e,Fs=e=>typeof e==`number`||L.test(e);function Is(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,Rs(r)),e.opacityExit=B(t.opacity??1,0,zs(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(Ee(e,t,r))}function Vs(e,t,n){let r=H(e)?e:mi(e);return r.start(ai(``,r,t,n)),r.animation}function Hs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Us=(e,t)=>e.depth-t.depth,Ws=class{constructor(){this.children=[],this.isDirty=!1}add(e){_e(this.children,e),this.isDirty=!0}remove(e){ve(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Us),this.isDirty=!1,this.children.forEach(e)}};function Gs(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(tt(r),e(a-t))};return M.setup(r,!0),()=>tt(r)}function Ks(e){return H(e)?e.get():e}var qs=class{constructor(){this.members=[]}add(e){_e(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ve(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ve(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Js={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ys={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Xs=[``,`X`,`Y`,`Z`],Zs=1e3,Qs=0;function $s(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ec(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ci(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,M,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ec(r)}function tc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Qs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,j.value&&(Ys.nodes=Ys.calculatedTargetDeltas=Ys.calculatedProjections=0),this.nodes.forEach(ic),this.nodes.forEach(pc),this.nodes.forEach(mc),this.nodes.forEach(ac),j.addProjectionMetrics&&j.addProjectionMetrics(Ys)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;M.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Gs(i,250),Js.hasAnimatedSinceResize&&(Js.hasAnimatedSinceResize=!1,this.nodes.forEach(fc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||xc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Os(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ni(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||fc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ec(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3;_c(a.x,e.x,n),_c(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gs(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Es(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=W(),q(d,this.relativeTarget)),s&&(this.animationValues=i,Is(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(tt(this.pendingAnimation),void 0),this.pendingAnimation=M.update(()=>{Js.hasAnimatedSinceResize=!0,at.layout++,this.motionValue||=mi(0),this.motionValue.jump(0,!1),this.currentAnimation=Vs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{at.layout--},onComplete:()=>{at.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Ec(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||W();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),bo(t,i),fs(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&$s(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(sc),this.root.sharedNodes.clear()}}}function nc(e){e.updateLayout()}function rc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ns(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ec(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ia();fs(o,n,t.layoutBox);let s=Ia();a?fs(s,e.applyTransform(r,!0),t.measuredBox):fs(s,n,t.layoutBox);let c=!ws(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=W();gs(s,t.layoutBox,i.layoutBox,o);let c=W();gs(c,n,a.layoutBox,o),Os(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ic(e){j.value&&Ys.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ac(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oc(e){e.clearSnapshot()}function sc(e){e.clearMeasurements()}function cc(e){e.isLayoutDirty=!0,e.updateLayout()}function lc(e){e.isLayoutDirty=!1}function uc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function fc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pc(e){e.resolveTargetDelta()}function mc(e){e.calcProjection()}function hc(e){e.resetSkewAndRotation()}function gc(e){e.removeLeadSnapshot()}function _c(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vc(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function yc(e,t,n,r){vc(e.x,t.x,n.x,r),vc(e.y,t.y,n.y,r)}function bc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var xc={duration:.45,ease:[.4,0,.1,1]},Sc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cc=Sc(`applewebkit/`)&&!Sc(`chrome/`)?Math.round:O;function wc(e){e.min=Cc(e.min),e.max=Cc(e.max)}function Tc(e){wc(e.x),wc(e.y)}function Ec(e,t,n){return e===`position`||e===`preserve-aspect`&&!us(ks(t),ks(n),.2)}function Dc(e){return e!==e.root&&e.scroll?.wasRoot}var Oc=tc({attachResizeListener:(e,t)=>Hs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),kc={current:void 0},Ac=tc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!kc.current){let e=new Oc({});e.mount(window),e.setOptions({layoutScroll:!0}),kc.current=e}return kc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),jc=(0,E.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Mc(e=!0){let t=(0,E.useContext)(ge);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,E.useId)();(0,E.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,E.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Nc=(0,E.createContext)({strict:!1}),Pc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Fc=!1;function Ic(){if(Fc)return;let e={};for(let t in Pc)e[t]={isEnabled:e=>Pc[t].some(t=>!!e[t])};Qa(e),Fc=!0}function Lc(){return Ic(),$a()}function Rc(e){let t=Lc();for(let n in e)t[n]={...t[n],...e[n]};Qa(t)}var zc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Bc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||zc.has(e)}var Vc=l({default:()=>Hc}),Hc,Uc=s((()=>{throw Hc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Wc=e=>!Bc(e);function Gc(e){typeof e==`function`&&(Wc=t=>t.startsWith(`on`)?!Bc(t):e(t))}try{Gc((Uc(),e(Vc)).default)}catch{}function Kc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||H(e[i])||(Wc(i)||n===!0&&Bc(i)||!t&&!Bc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var qc=(0,E.createContext)({});function Jc(e,t){if(Ua(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ba(t)?t:void 0,animate:Ba(n)?n:void 0}}return e.inherit===!1?{}:t}function Yc(e){let{initial:t,animate:n}=Jc(e,(0,E.useContext)(qc));return(0,E.useMemo)(()=>({initial:t,animate:n}),[Xc(t),Xc(n)])}function Xc(e){return Array.isArray(e)?e.join(` `):e}var Zc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qc(e,t,n){for(let r in t)!H(t[r])&&!Mo(r,n)&&(e[r]=t[r])}function $c({transformTemplate:e},t){return(0,E.useMemo)(()=>{let n=Zc();return Eo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function el(e,t){let n=e.style||{},r={};return Qc(r,n,e),Object.assign(r,$c(e,t)),r}function tl(e,t){let n={},r=el(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var nl=()=>({...Zc(),attrs:{}});function rl(e,t,n,r){let i=(0,E.useMemo)(()=>{let n=nl();return Bo(n,t,Ho(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Qc(t,e.style,e),i.style={...t,...i.style}}return i}var il=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function al(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(il.indexOf(e)>-1||/[A-Z]/u.test(e))}function ol(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??al(e)?rl:tl)(t,r,i,e),c=Kc(t,typeof e==`string`,a),l=e===E.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,E.useMemo)(()=>H(u)?u.get():u,[u]);return(0,E.createElement)(e,{...l,children:d})}function sl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cl(n,r,i,e),renderState:t()}}function cl(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ks(a[e]);let{initial:o,animate:s}=e,c=Ua(e),l=Wa(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!za(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,E.useContext)(qc),i=(0,E.useContext)(ge),a=()=>sl(e,t,r,i);return n?a():me(a)},ul=ll({scrapeMotionValuesFromProps:No,createRenderState:Zc}),dl=ll({scrapeMotionValuesFromProps:Wo,createRenderState:nl}),fl=Symbol.for(`motionComponentSymbol`);function pl(e,t,n){let r=(0,E.useRef)(n);(0,E.useInsertionEffect)(()=>{r.current=n});let i=(0,E.useRef)(null);return(0,E.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var ml=(0,E.createContext)({});function hl(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function gl(e,t,n,r,i,a){let{visualElement:o}=(0,E.useContext)(qc),s=(0,E.useContext)(Nc),c=(0,E.useContext)(ge),l=(0,E.useContext)(jc),u=l.reducedMotion,d=l.skipAnimations,f=(0,E.useRef)(null),p=(0,E.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,E.useContext)(ml);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&_l(f.current,n,i,h);let g=(0,E.useRef)(!1);(0,E.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Si],v=(0,E.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return he(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,E.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function _l(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:vl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&hl(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function vl(e){if(e)return e.options.allowProjection===!1?vl(e.parent):e.projection}function yl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Rc(r);let a=n?n===`svg`:al(e),o=a?dl:ul;function s(n,s){let c,l={...(0,E.useContext)(jc),...n,layoutId:bl(n)},{isStatic:u}=l,d=Yc(n),f=o(n,u);if(!u&&typeof window<`u`){xl(l,r);let t=Sl(l);c=t.MeasureLayout,d.visualElement=gl(e,f,l,i,t.ProjectionNode,a)}return(0,T.jsxs)(qc.Provider,{value:d,children:[c&&d.visualElement?(0,T.jsx)(c,{visualElement:d.visualElement,...l}):null,ol(e,n,pl(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,E.forwardRef)(s);return c[fl]=e,c}function bl({layoutId:e}){let t=(0,E.useContext)(pe).id;return t&&e!==void 0?t+`-`+e:e}function xl(e,t){(0,E.useContext)(Nc).strict}function Sl(e){let{drag:t,layout:n}=Lc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Cl(e,t){if(typeof Proxy>`u`)return yl;let n=new Map,r=(n,r)=>yl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,yl(a,void 0,e,t)),n.get(a))})}var wl=(e,t)=>t.isSVG??al(e)?new Go(t):new Fo(t,{allowProjection:e!==E.Fragment}),Tl=class extends G{constructor(e){super(e),e.animationState||=Qo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();za(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},El=0,Dl={animation:{Feature:Tl},exit:{Feature:class extends G{constructor(){super(...arguments),this.id=El++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=ci(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Ol(e){return{point:{x:e.pageX,y:e.pageY}}}var kl=e=>t=>aa(t)&&e(t,Ol(t));function Al(e,t,n,r){return Hs(e,t,kl(n),r)}var jl=({current:e})=>e?e.ownerDocument.defaultView:null,Ml=(e,t)=>Math.abs(e-t);function Nl(e,t){let n=Ml(e.x,t.x),r=Ml(e.y,t.y);return Math.sqrt(n**2+r**2)}var Pl=new Set([`auto`,`scroll`]),Fl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Il(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Rl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Nl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=N;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Il(t,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Rl(e.type===`pointercancel`?this.lastMoveEventInfo:Il(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!aa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Il(Ol(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=N;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Rl(s,this.history)),this.removeListeners=Te(Al(this.contextWindow,`pointermove`,this.handlePointerMove),Al(this.contextWindow,`pointerup`,this.handlePointerUp),Al(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Pl.has(e.overflowX)||Pl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),M.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tt(this.updatePoint)}};function Il(e,t){return t?{point:t(e.point)}:e}function Ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rl({point:e},t){return{point:e,delta:Ll(e,Bl(t)),offset:Ll(e,zl(t)),velocity:Vl(t,.1)}}function zl(e){return e[0]}function Bl(e){return e[e.length-1]}function Vl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Bl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Hl(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function Ul(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Wl(e,{top:t,left:n,bottom:r,right:i}){return{x:Ul(e.x,n,i),y:Ul(e.y,t,r)}}function Gl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ee(t.min,t.max-r,e.min):r>i&&(n=Ee(e.min,e.max-i,t.min)),D(0,1,n)}function Jl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Yl=.35;function Xl(e=Yl){return e===!1?e=0:e===!0&&(e=Yl),{x:Zl(e,`left`,`right`),y:Zl(e,`top`,`bottom`)}}function Zl(e,t,n){return{min:Ql(e,t),max:Ql(e,n)}}function Ql(e,t){return typeof e==`number`?e:e[t]||0}var $l=new WeakMap,eu=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=W(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Ol(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ea(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&M.update(()=>i(e,t),!1,!0),bi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=iu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&M.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Fl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:jl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&M.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ru(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Hl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&hl(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Wl(n.layoutBox,e):this.constraints=!1,this.elastic=Xl(t),r!==this.constraints&&!hl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Jl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!hl(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=So(n,r.root,this.visualElement.getTransformPagePoint()),a=Kl(r.layout.layoutBox,i);if(t){let e=t(ro(a));this.hasMutatedConstraints=!!e,e&&(a=no(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!ru(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return bi(this.visualElement,e),n.start(ai(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!ru(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!hl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ql({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!ru(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$l.set(this.visualElement,this);let e=this.visualElement.current,t=Al(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&la(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();hl(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=nu(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(r);let o=Hs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Yl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function tu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nu(e,t,n){let r=ja(e,tu(n)),i=ja(t,tu(n));return()=>{r(),i()}}function ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var au=class extends G{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new eu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ou=e=>(t,n)=>{e&&M.update(()=>e(t,n),!1,!0)},su=class extends G{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new Fl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ou(e),onStart:ou(t),onMove:ou(n),onEnd:(e,t)=>{delete this.session,r&&M.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Al(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},cu=!1,lu=class extends E.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),cu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Js.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),cu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||M.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Zi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;cu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function uu(e){let[t,n]=Mc(),r=(0,E.useContext)(pe);return(0,T.jsx)(lu,{...e,layoutGroup:r,switchLayoutGroup:(0,E.useContext)(ml),isPresent:t,safeToRemove:n})}var du={pan:{Feature:su},drag:{Feature:au,ProjectionNode:Ac,MeasureLayout:uu}};function fu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&M.postRender(()=>i(t,Ol(t)))}var pu=class extends G{mount(){let{current:e}=this.node;e&&(this.unmount=ra(e,(e,t)=>(fu(this.node,t,`Start`),e=>fu(this.node,e,`End`))))}unmount(){}},mu=class extends G{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Te(Hs(this.node.current,`focus`,()=>this.onFocus()),Hs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function hu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&M.postRender(()=>i(t,Ol(t)))}var gu=class extends G{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ga(e,(e,t)=>(hu(this.node,t,`Start`),(e,{success:t})=>hu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},_u=new WeakMap,vu=new WeakMap,yu=e=>{let t=_u.get(e.target);t&&t(e)},bu=e=>{e.forEach(yu)};function xu({root:e,...t}){let n=e||document;vu.has(n)||vu.set(n,{});let r=vu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bu,{root:e,...t})),r[i]}function Su(e,t,n){let r=xu(t);return _u.set(e,n),r.observe(e),()=>{_u.delete(e),r.unobserve(e)}}var Cu={some:0,all:1},wu=class extends G{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Cu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Su(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Tu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Tu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Eu={inView:{Feature:wu},tap:{Feature:gu},focus:{Feature:mu},hover:{Feature:pu}},Du={layout:{ProjectionNode:Ac,MeasureLayout:uu}},Ou=Cl({...Dl,...Eu,...du,...Du},wl),X=n();function ku(e){let t=(0,X.c)(6),{children:n,as:r,className:i}=e,a=r===void 0?`div`:r,o;t[0]===i?o=t[1]:(o=p(`container mx-auto px-4 md:px-6 lg:px-8`,i),t[0]=i,t[1]=o);let s;return t[2]!==a||t[3]!==n||t[4]!==o?(s=(0,T.jsx)(a,{className:o,children:n}),t[2]=a,t[3]=n,t[4]=o,t[5]=s):s=t[5],s}ku.displayName=`MainWrapper`;var Au=[{href:`#`,label:`Features`},{href:`#`,label:`Blog`},{href:`#`,label:`About`},{href:`#`,label:`Contact`},{href:`#`,label:`Licence`},{href:`#`,label:`Privacy`}],ju=[{href:`#`,label:`X`,icon:(0,T.jsx)(Fu,{})},{href:`#`,label:`Github`,icon:(0,T.jsx)(g,{})}];function Mu(){let e=(0,X.c)(8),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(`div`,{className:`relative`,children:(0,T.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,T.jsx)(ce,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=w(),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,T.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,T.jsx)(t,{prefetch:!0,href:r,children:(0,T.jsxs)(`span`,{className:`flex items-center gap-2 text-lg`,children:[(0,T.jsx)(`span`,{className:`flex size-8 items-center justify-center rounded-md bg-foreground text-background`,children:`ui`}),(0,T.jsx)(`span`,{children:`designbycode`})]})})}),e[2]=i):i=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[i,(0,T.jsx)(`div`,{className:`flex items-center`,children:ju.map(Pu)})]}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsx)(ku,{children:(0,T.jsxs)(`div`,{className:`flex flex-col gap-6 py-6`,children:[a,(0,T.jsx)(`nav`,{children:(0,T.jsx)(`ul`,{className:`flex flex-wrap gap-4 text-sm font-medium text-muted-foreground md:gap-6`,children:Au.map(Nu)})})]})}),e[4]=o):o=e[4];let s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,T.jsx)(`div`,{className:`relative`,children:(0,T.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,T.jsx)(ce,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[5]=s):s=e[5];let c;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,T.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` ui.designbycode`]}),e[6]=c):c=e[6];let l;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,T.jsxs)(`footer`,{className:`mt-6`,children:[n,o,s,(0,T.jsx)(ku,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-6 text-sm text-muted-foreground`,children:[c,(0,T.jsxs)(`p`,{className:`inline-flex items-center gap-1`,children:[(0,T.jsx)(`span`,{children:`Built by`}),(0,T.jsx)(`a`,{"aria-label":`x/twitter`,className:`inline-flex items-center gap-1 text-foreground/80 hover:text-foreground hover:underline`,href:`https://designbycode.co.za`,rel:`noreferrer`,target:`_blank`,children:`designbycode`})]})]})})]}),e[7]=l):l=e[7],l}function Nu(e){return(0,T.jsx)(`li`,{children:(0,T.jsx)(`a`,{className:`hover:text-foreground`,href:e.href,children:e.label})},e.label)}function Pu(e){let{href:t,label:n,icon:r}=e;return(0,T.jsx)(d,{asChild:!0,size:`icon`,variant:`ghost`,children:(0,T.jsx)(`a`,{"aria-label":n,href:t,children:r})},n)}function Fu(e){let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(`path`,{d:`m18.9,1.153h3.682l-8.042,9.189,9.46,12.506h-7.405l-5.804-7.583-6.634,7.583H.469l8.6-9.831L0,1.153h7.593l5.241,6.931,6.065-6.931Zm-1.293,19.494h2.039L6.482,3.239h-2.19l13.314,17.408Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,T.jsx)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:n}),t[1]=e,t[2]=r),r}Mu.displayName=`MainFooter`;var Iu=c(a(),1);function Lu(e){let t=(0,X.c)(11),{resolvedAppearance:n}=u(),r;t[0]!==e.cssVars?.dark||t[1]!==e.cssVars?.light||t[2]!==e.vars_dark||t[3]!==e.vars_light||t[4]!==n?(r=n===`dark`?e.cssVars?.dark??e.vars_dark??{}:e.cssVars?.light??e.vars_light??{},t[0]=e.cssVars?.dark,t[1]=e.cssVars?.light,t[2]=e.vars_dark,t[3]=e.vars_light,t[4]=n,t[5]=r):r=t[5];let i=r,a;t[6]===i?a=t[7]:(a=re(i),t[6]=i,t[7]=a);let o;return t[8]!==a||t[9]!==i?(o={vars:i,cssVars:a},t[8]=a,t[9]=i,t[10]=o):o=t[10],o}function Ru(e){let t=(0,X.c)(21),{theme:n,onSelect:r,selected:i,compact:a,className:o}=e,s=i===void 0?!1:i,c=a===void 0?!1:a,{cssVars:l}=Lu(n),u;t[0]!==r||t[1]!==n?(u=()=>r?.(n),t[0]=r,t[1]=n,t[2]=u):u=t[2];let d=c?`gap-2 px-4 py-2`:`gap-4 p-4`,f=s&&`border-primary ring-1 ring-primary`,m;t[3]!==o||t[4]!==d||t[5]!==f?(m=p(`flex w-full items-center justify-between overflow-clip rounded-md border border-border bg-background text-left transition-colors hover:bg-accent`,d,f,o),t[3]=o,t[4]=d,t[5]=f,t[6]=m):m=t[6];let g;t[7]===s?g=t[8]:(g=s&&(0,T.jsx)(Ou.div,{animate:{x:-5},transition:{type:`spring`,stiffness:100},initial:{x:-50},children:(0,T.jsx)(h,{className:`size-4 rounded-full bg-primary p-1 text-primary-foreground`})}),t[7]=s,t[8]=g);let _=n?.title||`Theme`,v=c?void 0:n?.name,y;t[9]!==_||t[10]!==v?(y=(0,T.jsx)(ae,{as:`h4`,variant:`small`,title:_,description:v}),t[9]=_,t[10]=v,t[11]=y):y=t[11];let b;t[12]!==y||t[13]!==g?(b=(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center space-x-1`,children:[g,y]}),t[12]=y,t[13]=g,t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 rounded-md border border-border p-1.5`,children:[(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-primary`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-secondary`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-accent`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-muted`})]}),t[15]=x):x=t[15];let S;return t[16]!==l||t[17]!==b||t[18]!==u||t[19]!==m?(S=(0,T.jsxs)(`button`,{type:`button`,onClick:u,style:l,className:m,children:[b,x]}),t[16]=l,t[17]=b,t[18]=u,t[19]=m,t[20]=S):S=t[20],S}Ru.displayName=`ThemeList`;function zu(e,t){let n=(0,X.c)(4),[r,i]=(0,E.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=setTimeout(()=>i(e),t);return()=>clearTimeout(n)},o=[e,t],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,E.useEffect)(a,o),r}function Bu(){let{themeName:e}=x(),[t,n]=(0,E.useState)([]),[r,i]=(0,E.useState)(1),[a,o]=(0,E.useState)(!0),[s,c]=(0,E.useState)(!1),[l,u]=(0,E.useState)(``),p=zu(l,300),[m,g]=(0,E.useState)(``),_=(0,E.useRef)(null),v=(0,E.useCallback)(async(e,t,r)=>{c(!0);let a=new URLSearchParams;a.set(`page`,String(e)),t&&a.set(`search`,t);try{let t=await(await fetch(`/api/themes?${a}`)).json();n(e=>r?[...e,...t.data]:t.data),o(t.current_page{requestAnimationFrame(()=>{v(1,``,!1)})},[v]),(0,E.useEffect)(()=>{p!==m&&((0,Iu.flushSync)(()=>{g(p),n([])}),requestAnimationFrame(()=>{v(1,p,!1)}))},[p,m,v]),(0,E.useEffect)(()=>{let e=_.current;if(!e)return;let t=new IntersectionObserver(e=>{e[0].isIntersecting&&a&&!s&&v(r+1,m,!0)},{rootMargin:`400px`});return t.observe(e),()=>t.disconnect()},[a,s,r,m,v]),(0,T.jsxs)(ne,{children:[(0,T.jsx)(ee,{asChild:!0,children:(0,T.jsx)(d,{variant:`ghost`,size:`icon`,children:(0,T.jsx)(ue,{className:`size-4`})})}),(0,T.jsxs)(te,{className:`flex flex-col gap-0 pl-5`,children:[(0,T.jsx)(ce,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),(0,T.jsxs)(oe,{className:`px-4 pt-4 pb-2`,children:[(0,T.jsx)(se,{children:`Theme Color`}),(0,T.jsx)(C,{children:`Choose a color theme for the interface`})]}),(0,T.jsxs)(`div`,{className:`relative border-b border-border px-4 pb-3`,children:[(0,T.jsx)(fe,{className:`absolute top-0 left-7 size-4 translate-y-2.5 text-muted-foreground`}),(0,T.jsx)(S,{value:l,onChange:e=>u(e.target.value),placeholder:`Search themes...`,className:`pr-8 pl-9`}),l&&(0,T.jsx)(`button`,{onClick:()=>u(``),className:`absolute top-0 right-7 translate-y-2.5 text-muted-foreground hover:text-foreground`,children:(0,T.jsx)(f,{className:`size-4`})})]}),(0,T.jsx)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3`,children:(0,T.jsxs)(`div`,{className:`space-y-2`,children:[(0,T.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center justify-between gap-2 rounded-md border p-2 text-left transition-colors hover:bg-accent ${e?`border-border bg-background`:`border-primary ring-1 ring-primary`}`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,T.jsx)(`div`,{className:`flex size-8 items-center justify-center rounded-md border border-border bg-background`,children:(0,T.jsx)(de,{className:`size-4 text-muted-foreground`})}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Default theme`}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Reset to default colors`})]})]}),!e&&(0,T.jsx)(`div`,{className:`flex size-4 items-center justify-center rounded-full bg-primary text-primary-foreground`,children:(0,T.jsx)(h,{className:`size-3`})})]}),t.map(t=>(0,T.jsx)(Ru,{theme:t,className:`mb-2`,compact:!0,selected:t.name===e,onSelect:y},t.name)),s&&(0,T.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:3}).map((e,t)=>(0,T.jsx)(`div`,{className:`h-14 animate-pulse rounded-md bg-muted`},t))}),a&&!s&&(0,T.jsx)(`div`,{ref:_,className:`h-4`}),!a&&t.length>0&&(0,T.jsx)(`p`,{className:`py-4 text-center text-xs text-muted-foreground`,children:`All themes loaded`}),!s&&t.length===0&&(0,T.jsx)(`p`,{className:`py-8 text-center text-sm text-muted-foreground`,children:`No themes found`})]})})]})]})}Bu.displayName=`ThemeSwitcher`;var Vu=[{value:`light`,icon:v,label:`Light`},{value:`dark`,icon:_,label:`Dark`}];function Hu(e){let t=(0,X.c)(23),n,r;t[0]===e?(n=t[1],r=t[2]):({className:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?``:r,{appearance:a,updateAppearance:o}=u(),s,c,l;t[3]===a?(s=t[4],c=t[5],l=t[6]):(s=Vu.find(e=>e.value===a)??Vu[0],l=Vu,c=Vu.indexOf(s),t[3]=a,t[4]=s,t[5]=c,t[6]=l);let f=l[(c+1)%Vu.length],m;t[7]!==f.value||t[8]!==o?(m=()=>o(f.value),t[7]=f.value,t[8]=o,t[9]=m):m=t[9];let h=`Switch to ${f.label} mode`,g;t[10]===i?g=t[11]:(g=p(``,i),t[10]=i,t[11]=g);let _;t[12]===s.icon?_=t[13]:(_=(0,T.jsx)(s.icon,{className:`h-4 w-4`}),t[12]=s.icon,t[13]=_);let v;t[14]===s.label?v=t[15]:(v=(0,T.jsx)(`span`,{"aria-label":s.label,className:`sr-only`,children:s.label}),t[14]=s.label,t[15]=v);let y;return t[16]!==n||t[17]!==m||t[18]!==h||t[19]!==g||t[20]!==_||t[21]!==v?(y=(0,T.jsxs)(d,{onClick:m,"aria-label":h,size:`icon`,...n,className:g,children:[_,v]}),t[16]=n,t[17]=m,t[18]=h,t[19]=g,t[20]=_,t[21]=v,t[22]=y):y=t[22],y}Hu.displayName=`AppearanceToggle`;function Uu(e){let t=(0,X.c)(12),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{enabled:r,offset:i,tolerance:a,scroller:o}=n,s=r===void 0?!0:r,c=i===void 0?0:i,l=a===void 0?0:a,u=o===void 0?null:o,d=(0,E.useRef)(null),[f,p]=(0,E.useState)(Wu),m;t[2]===l?m=t[3]:(m=()=>typeof l==`number`?{up:l,down:l}:l,t[2]=l,t[3]=m);let h=m,g,_;t[4]!==s||t[5]!==h||t[6]!==c||t[7]!==u?(g=()=>{if(!s)return;let e=u??window,t=()=>e instanceof Element?e.scrollTop:window.scrollY??window.pageYOffset,n=()=>e instanceof Element?e.scrollHeight:document.documentElement.scrollHeight,r=()=>e instanceof Element?e.clientHeight:window.innerHeight,i=t(),a=!1,o=()=>{let e=t(),o=n(),s=r(),l=h(),u=e<=c,d=e+s>=o-1,f=e-i,m=f>0,g=f<0;p(e=>{let t=e.pinned;return u?t=!0:m&&Math.abs(f)>=l.down?t=!1:g&&Math.abs(f)>=l.up&&(t=!0),{pinned:t,unpinned:!t,top:u,notTop:!u,bottom:d,notBottom:!d}}),i=e,a=!1},l=()=>{a||=(requestAnimationFrame(o),!0)};return e.addEventListener(`scroll`,l,{passive:!0}),o(),()=>{e.removeEventListener(`scroll`,l)}},_=[s,c,h,u],t[4]=s,t[5]=h,t[6]=c,t[7]=u,t[8]=g,t[9]=_):(g=t[8],_=t[9]),(0,E.useEffect)(g,_);let v;return t[10]===f?v=t[11]:(v={ref:d,...f},t[10]=f,t[11]=v),v}function Wu(){return{pinned:!0,unpinned:!1,top:!0,notTop:!1,bottom:!1,notBottom:!0}}var Z=e=>({url:Z.url(e),method:`get`});Z.definition={methods:[`get`,`head`],url:`/animate-css`},Z.url=e=>Z.definition.url+i(e),Z.get=e=>({url:Z.url(e),method:`get`}),Z.head=e=>({url:Z.url(e),method:`head`});var Gu=e=>({action:Z.url(e),method:`get`});Gu.get=e=>({action:Z.url(e),method:`get`}),Gu.head=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Z.form=Gu,Object.assign(Z,Z);var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/fonts`},Q.url=e=>Q.definition.url+i(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var Ku=e=>({action:Q.url(e),method:`get`});Ku.get=e=>({action:Q.url(e),method:`get`}),Ku.head=e=>({action:Q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Q.form=Ku,Object.assign(Q,Q);var $=e=>({url:$.url(e),method:`get`});$.definition={methods:[`get`,`head`],url:`/themes`},$.url=e=>$.definition.url+i(e),$.get=e=>({url:$.url(e),method:`get`}),$.head=e=>({url:$.url(e),method:`head`});var qu=e=>({action:$.url(e),method:`get`});qu.get=e=>({action:$.url(e),method:`get`}),qu.head=e=>({action:$.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),$.form=qu,Object.assign($,$);function Ju(){let e=(0,X.c)(24),n=!ie(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={down:5,up:5},e[0]=r):r=e[0];let i;e[1]===n?i=e[2]:(i={enabled:n,offset:16,tolerance:r},e[1]=n,e[2]=i);let{ref:a,pinned:o}=Uu(i),s=o?`translate-y-0`:`-translate-y-full`,c;e[3]===s?c=e[4]:(c=p(`fixed inset-x-0 top-0 isolate z-50 flex min-h-16 items-center border-b! border-solid! border-border/50! bg-background/50 text-foreground backdrop-blur transition-transform duration-700`,s),e[3]=s,e[4]=c);let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,T.jsxs)(t,{prefetch:`hover`,className:`text-semibold flex items-center space-x-1 text-lg`,href:w(),children:[(0,T.jsx)(`span`,{className:`grid size-7 place-items-center rounded-sm bg-foreground text-background`,children:`ui`}),(0,T.jsx)(`span`,{children:`designbycode`})]}),e[5]=l):l=e[5];let u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Home`}),e[6]=u):u=e[6];let f;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:$(),children:`Themes`}),e[7]=f):f=e[7];let m;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Z(),children:`Animate CSS`}),e[8]=m):m=e[8];let h;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Q(),children:`Fonts`}),e[9]=h):h=e[9];let g;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Components`}),e[10]=g):g=e[10];let _;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,T.jsxs)(`div`,{className:`hidden space-x-4 text-sm md:flex`,children:[u,f,m,h,g,(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Blocks`})]}),e[11]=_):_=e[11];let v;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,T.jsx)(ee,{asChild:!0,children:(0,T.jsx)(d,{variant:`ghost`,size:`icon`,"aria-label":`Open navigation menu`,children:(0,T.jsx)(le,{className:`size-5`})})}),e[12]=v):v=e[12];let y,b;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,T.jsx)(ce,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),b=(0,T.jsx)(se,{className:`sr-only`,children:`Navigation menu`}),e[13]=y,e[14]=b):(y=e[13],b=e[14]);let x;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Home`}),e[15]=x):x=e[15];let S;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:$(),children:`Themes`}),e[16]=S):S=e[16];let C;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Z(),children:`Animate CSS`}),e[17]=C):C=e[17];let re;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Q(),children:`Fonts`}),e[18]=re):re=e[18];let ae;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Components`}),e[19]=ae):ae=e[19];let oe;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,T.jsxs)(ku,{className:`flex justify-between`,children:[l,_,(0,T.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,T.jsx)(`div`,{className:`md:hidden`,children:(0,T.jsxs)(ne,{children:[v,(0,T.jsxs)(te,{side:`right`,children:[y,b,(0,T.jsxs)(`div`,{className:`mt-8 flex flex-col space-y-1 px-4`,children:[x,S,C,re,ae,(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Blocks`})]})]})]})}),(0,T.jsx)(Hu,{}),(0,T.jsx)(Bu,{})]})]}),e[20]=oe):oe=e[20];let ue;return e[21]!==a||e[22]!==c?(ue=(0,T.jsx)(`div`,{ref:a,suppressHydrationWarning:!0,className:c,children:oe}),e[21]=a,e[22]=c,e[23]=ue):ue=e[23],ue}Ju.displayName=`MainNavigation`;var Yu=(0,E.createContext)({position:{x:-9999,y:-9999},radius:100}),Xu=()=>{let e=(0,X.c)(2),t=(0,E.useContext)(Yu),n;return e[0]===t?n=e[1]:(n=t??{position:{x:-9999,y:-9999},radius:100},e[0]=t,e[1]=n),n};function Zu(e){let t=(0,X.c)(12),{children:n,radius:r,className:i}=e,a=r===void 0?100:r,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={x:-9999,y:-9999},t[0]=o):o=t[0];let[s,c]=(0,E.useState)(o),l=(0,E.useRef)(0),u,d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{let e=e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>c({x:e.clientX,y:e.clientY}))};return window.addEventListener(`mousemove`,e,{passive:!0}),()=>{window.removeEventListener(`mousemove`,e),cancelAnimationFrame(l.current)}},d=[],t[1]=u,t[2]=d):(u=t[1],d=t[2]),(0,E.useEffect)(u,d);let f;t[3]!==s||t[4]!==a?(f={position:s,radius:a},t[3]=s,t[4]=a,t[5]=f):f=t[5];let p;t[6]!==n||t[7]!==i?(p=(0,T.jsx)(`div`,{className:i,children:n}),t[6]=n,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==f||t[10]!==p?(m=(0,T.jsx)(Yu.Provider,{value:f,children:p}),t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function Qu(e){let t=(0,X.c)(8),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsx)(ce,{className:`fixed inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),i=(0,T.jsx)(ce,{className:`fixed inset-y-0 right-0 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),a=(0,T.jsx)(Ju,{}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=(0,T.jsx)(`div`,{className:`flex-1`,children:n}),t[3]=n,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,T.jsx)(Mu,{}),t[5]=s):s=t[5];let c;return t[6]===o?c=t[7]:(c=(0,T.jsx)(Zu,{className:`relative`,children:(0,T.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[r,i,a,o,s]})}),t[6]=o,t[7]=c),c}Qu.displayName=`MainLayout`;export{ku as a,he as c,Lu as i,pe as l,Xu as n,Ou as o,zu as r,M as s,Qu as t,fe as u}; \ No newline at end of file diff --git a/public/build/assets/main-layout-Bjl0T2Wa.js b/public/build/assets/main-layout-Bjl0T2Wa.js deleted file mode 100644 index 563569f..0000000 --- a/public/build/assets/main-layout-Bjl0T2Wa.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e,c as t,i as n,m as r,n as i,p as a,r as o,v as s,x as c,y as l}from"./wayfinder-DGNmxDkm.js";import{n as u}from"./use-appearance-QmpypXC6.js";import{t as d}from"./button-B6E1T0qj.js";import{p as f}from"./dist-Cz7M9pMz.js";import{n as p,t as m}from"./createLucideIcon-wUA1TGAT.js";import{t as h}from"./check-JLGZ6ERA.js";import{t as g}from"./github-DdPrsZVB.js";import{n as _,t as v}from"./sun-BUK2gUl5.js";import{C as y,S as b,T as x,d as S,f as C,g as ee,h as te,m as ne,o as w,p as re,r as ie,u as ae,w as oe,x as se}from"./app-NKzAktB4.js";import{t as ce}from"./placeholder-pattern-nTsSuoW-.js";var le=m(`Menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),ue=m(`Palette`,[[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`,key:`12rzf8`}]]),de=m(`RotateCcw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),fe=m(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),T=o(),E=c(r(),1),pe=(0,E.createContext)({});function me(e){let t=(0,E.useRef)(null);return t.current===null&&(t.current=e()),t.current}var he=typeof window<`u`?E.useLayoutEffect:E.useEffect,ge=(0,E.createContext)(null);function _e(e,t){e.indexOf(t)===-1&&e.push(t)}function ve(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var D=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function be(e){return typeof e==`object`&&!!e}var xe=e=>/^0[^.\s]+$/u.test(e);function Se(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,Ce=(e,t)=>n=>t(e(n)),we=(...e)=>e.reduce(Ce),Te=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Ee=class{constructor(){this.subscriptions=[]}add(e){return _e(this.subscriptions,e),()=>ve(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,j=e=>e/1e3;function De(e,t){return t?1e3/t*e:0}var Oe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ke=1e-7,Ae=12;function je(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Oe(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ke&&++sje(t,0,1,e,n);return e=>e===0||e===1?e:Oe(i(e),t,r)}var Ne=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pe=e=>t=>1-e(1-t),Fe=Me(.33,1.53,.69,.99),Ie=Pe(Fe),Le=Ne(Ie),Re=e=>e>=1?1:(e*=2)<1?.5*Ie(e):.5*(2-2**(-10*(e-1))),ze=e=>1-Math.sin(Math.acos(e)),Be=Pe(ze),Ve=Ne(ze),He=Me(.42,0,1,1),Ue=Me(0,0,.58,1),We=Me(.42,0,.58,1),Ge=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ke=e=>Array.isArray(e)&&typeof e[0]==`number`,qe={linear:k,easeIn:He,easeInOut:We,easeOut:Ue,circIn:ze,circInOut:Ve,circOut:Be,backIn:Ie,backInOut:Le,backOut:Fe,anticipate:Re},Je=e=>typeof e==`string`,Ye=e=>{if(Ke(e)){e.length;let[t,n,r,i]=e;return Me(t,n,r,i)}else if(Je(e))return qe[e],`${e}`,qe[e];return e},Xe=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],M={value:null,addProjectionMetrics:null};function Ze(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&M.value&&M.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Qe=40;function $e(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Xe.reduce((e,n)=>(e[n]=Ze(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=O.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Qe),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Xe.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(nt===void 0&&F.set(P.isProcessing||O.useManualTiming?P.timestamp:performance.now()),nt),set:e=>{nt=e,queueMicrotask(rt)}},it={layout:0,mainThread:0,waapi:0},at=e=>t=>typeof t==`string`&&t.startsWith(e),ot=at(`--`),st=at(`var(--`),ct=e=>st(e)?lt.test(e.split(`/*`)[0].trim()):!1,lt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ut(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var dt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ft={...dt,transform:e=>D(0,1,e)},pt={...dt,default:1},mt=e=>Math.round(e*1e5)/1e5,ht=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gt(e){return e==null}var _t=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vt=(e,t)=>n=>!!(typeof n==`string`&&_t.test(n)&&n.startsWith(e)||t&&!gt(n)&&Object.prototype.hasOwnProperty.call(n,t)),yt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ht);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},bt=e=>D(0,255,e),xt={...dt,transform:e=>Math.round(bt(e))},St={test:vt(`rgb`,`red`),parse:yt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xt.transform(e)+`, `+xt.transform(t)+`, `+xt.transform(n)+`, `+mt(ft.transform(r))+`)`};function Ct(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var wt={test:vt(`#`),parse:Ct,transform:St.transform},Tt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Et=Tt(`deg`),I=Tt(`%`),L=Tt(`px`),Dt=Tt(`vh`),Ot=Tt(`vw`),kt={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},At={test:vt(`hsl`,`hue`),parse:yt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(mt(t))+`, `+I.transform(mt(n))+`, `+mt(ft.transform(r))+`)`},R={test:e=>St.test(e)||wt.test(e)||At.test(e),parse:e=>St.test(e)?St.parse(e):At.test(e)?At.parse(e):wt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?St.transform(e):At.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mt(e){return isNaN(e)&&typeof e==`string`&&(e.match(ht)?.length||0)+(e.match(jt)?.length||0)>0}var Nt=`number`,Pt=`color`,Ft=`var`,It=`var(`,Lt="${}",Rt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Rt,e=>(R.test(e)?(r.color.push(a),i.push(Pt),n.push(R.parse(e))):e.startsWith(It)?(r.var.push(a),i.push(Ft),n.push(e)):(r.number.push(a),i.push(Nt),n.push(parseFloat(e))),++a,Lt)).split(Lt),indexes:r,types:i}}function Bt(e){return zt(e).values}function Vt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,Wt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ut(e);function Gt(e){let t=zt(e);return Vt(t)(t.values.map((e,n)=>Wt(e,t.split[n])))}var z={test:Mt,parse:Bt,createTransformer:Ht,getAnimatableNone:Gt};function Kt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Kt(s,r,e+1/3),a=Kt(s,r,e),o=Kt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Jt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Yt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xt=[wt,St,At],Zt=e=>Xt.find(t=>t.test(e));function Qt(e){let t=Zt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===At&&(n=qt(n)),n}var $t=(e,t)=>{let n=Qt(e),r=Qt(t);if(!n||!r)return Jt(e,t);let i={...n};return e=>(i.red=Yt(n.red,r.red,e),i.green=Yt(n.green,r.green,e),i.blue=Yt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),St.transform(i))},en=new Set([`none`,`hidden`]);function tn(e,t){return en.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nn(e,t){return n=>B(e,t,n)}function rn(e){return typeof e==`number`?nn:typeof e==`string`?ct(e)?Jt:R.test(e)?$t:cn:Array.isArray(e)?an:typeof e==`object`?R.test(e)?$t:on:Jt}function an(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rn(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function sn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=z.createTransformer(t),r=zt(e),i=zt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?en.has(e)&&!i.values.length||en.has(t)&&!r.values.length?tn(e,t):we(an(sn(r,i),i.values),n):(`${e}${t}`,Jt(e,t))};function ln(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):rn(e)(e,t)}var un=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>N.update(t,e),stop:()=>et(t),now:()=>P.isProcessing?P.timestamp:F.now()}},dn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function mn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(pn(r),fn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:j(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function hn(e,t){return e*Math.sqrt(1-t*t)}var gn=12;function _n(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=hn(t,o),c=Math.exp(-i);return vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=hn(t**2,o);return(-i(t)+vn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-vn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=_n(i,a,s);if(e=A(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var bn=[`duration`,`bounce`],xn=[`stiffness`,`damping`,`mass`];function Sn(e,t){return t.some(t=>e[t]!==void 0)}function Cn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Sn(e,xn)&&Sn(e,bn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*D(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=yn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function wn(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Cn({...n,velocity:-j(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=j(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=hn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>A(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=A(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=A(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(pn(te),fn),t=dn(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}wn.applyToOptions=e=>{let t=mn(e,100,wn);return e.ease=t.ease,e.duration=A(t.duration),e.type=`keyframes`,e};var Tn=5;function En(e,t,n){let r=Math.max(t-Tn,0);return De(n-e(r),t-r)}function Dn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=wn({keyframes:[f.value,m(f.value)],velocity:En(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function On(e,t,n){let r=[],i=n||O.mix||ln,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=On(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(D(e[0],e[a-1],t)):l}function An(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Te(0,t,r);e.push(B(n,1,i))}}function jn(e){let t=[0];return An(t,e.length-1),t}function Mn(e,t){return e.map(e=>e*t)}function Nn(e,t){return e.map(()=>t||We).splice(0,e.length-1)}function Pn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ge(r)?r.map(Ye):Ye(r),a={done:!1,value:t[0]},o=kn(Mn(n&&n.length===t.length?n:jn(t),e),t,{ease:Array.isArray(i)?i:Nn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Fn=e=>e!==null;function In(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Fn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ln={decay:Dn,inertia:Dn,tween:Pn,keyframes:Pn,spring:wn};function Rn(e){typeof e.type==`string`&&(e.type=Ln[e.type])}var zn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Bn=e=>e/100,Vn=class extends zn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==F.now()&&this.tick(F.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},it.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Rn(e);let{type:t=Pn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Pn;s!==Pn&&typeof o[0]!=`number`&&(this.mixKeyframes=we(Bn,ln(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=pn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=D(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Dn&&(b.value=In(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return j(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(this.currentTime)}set time(e){e=A(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return En(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(F.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=j(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=un,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(F.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,it.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Hn(e){for(let t=1;te*180/Math.PI,Wn=e=>Kn(Un(Math.atan2(e[1],e[0]))),Gn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wn,rotateZ:Wn,skewX:e=>Un(Math.atan(e[1])),skewY:e=>Un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kn=e=>(e%=360,e<0&&(e+=360),e),qn=Wn,Jn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Yn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jn,scaleY:Yn,scale:e=>(Jn(e)+Yn(e))/2,rotateX:e=>Kn(Un(Math.atan2(e[6],e[5]))),rotateY:e=>Kn(Un(Math.atan2(-e[2],e[0]))),rotateZ:qn,rotate:qn,skewX:e=>Un(Math.atan(e[4])),skewY:e=>Un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return+!!e.includes(`scale`)}function Qn(e,t){if(!e||e===`none`)return Zn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Xn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Gn,i=t}if(!i)return Zn(t);let a=r[t],o=i[1].split(`,`).map(er);return typeof a==`function`?a(o):o[a]}var $n=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qn(n,t)};function er(e){return parseFloat(e.trim())}var tr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],nr=new Set(tr),rr=e=>e===dt||e===L,ir=new Set([`x`,`y`,`z`]),ar=tr.filter(e=>!ir.has(e));function or(e){let t=[];return ar.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qn(t,`x`),y:(e,{transform:t})=>Qn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var sr=new Set,cr=!1,lr=!1,ur=!1;function dr(){if(lr){let e=Array.from(sr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=or(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}lr=!1,cr=!1,sr.forEach(e=>e.complete(ur)),sr.clear()}function fr(){sr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(lr=!0)})}function pr(){ur=!0,fr(),dr(),ur=!1}var mr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(sr.add(this),cr||(cr=!0,N.read(fr),N.resolveKeyframes(dr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),sr.delete(this)}cancel(){this.state===`scheduled`&&(sr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},hr=e=>e.startsWith(`--`);function gr(e,t,n){hr(t)?e.style.setProperty(t,n):e.style[t]=n}var _r={};function vr(e,t){let n=Se(e);return()=>_r[t]??n()}var yr=vr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),br=vr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),xr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:xr([0,.65,.55,1]),circOut:xr([.55,0,1,.45]),backIn:xr([.31,.01,.66,-.59]),backOut:xr([.33,1.53,.69,.99])};function Cr(e,t){if(e)return typeof e==`function`?br()?dn(e,t):`ease-out`:Ke(e)?xr(e):Array.isArray(e)?e.map(e=>Cr(e,t)||Sr.easeOut):Sr[e]}function wr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Cr(s,i);Array.isArray(d)&&(u.easing=d),M.value&&it.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return M.value&&p.finished.finally(()=>{it.waapi--}),p}function Tr(e){return typeof e==`function`&&`applyToOptions`in e}function Er({type:e,...t}){return Tr(e)&&br()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Dr=class extends zn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Er(e);this.animation=wr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=In(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),gr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return j(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=A(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&yr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),k):r(this)}},Or={anticipate:Re,backInOut:Le,circInOut:Ve};function kr(e){return e in Or}function Ar(e){typeof e.ease==`string`&&kr(e.ease)&&(e.ease=Or[e.ease])}var jr=10,Mr=class extends Dr{constructor(e){Ar(e),Rn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Vn({...a,autoplay:!1}),s=Math.max(jr,F.now()-this.startTime),c=D(0,jr,s-jr),l=o.sample(s).value,{name:u}=this.options;i&&u&&gr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Nr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function Pr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function Hr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Vr()&&n&&(Lr.has(n)||Br.has(n)&&zr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ur=40,Wr=class extends zn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=F.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||mr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=F.now();let u=!0;Fr(e,i,a,o)||(u=!1,(O.instantAnimations||!s)&&l?.(In(e,n,t)),e[0]=e[e.length-1],Ir(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ur?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Hr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Mr({...d,element:p})}catch{m=new Vn(d)}else m=new Vn(d);m.finished.then(()=>{this.notifyFinished()}).catch(k),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Gr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Kr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qr(e){let t=Kr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Jr(e,t,n=1){`${e}`;let[r,i]=qr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ye(e)?parseFloat(e):e}return ct(i)?Jr(i,t,n+1):i}var Yr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zr={type:`keyframes`,duration:.8},Qr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$r=(e,{keyframes:t})=>t.length>2?Zr:nr.has(e)?e.startsWith(`scale`)?Xr(t[1]):Yr:Qr;function ei(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ti(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ei(n,e)}var ni=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ri(e){for(let t in e)if(!ni.has(t))return!0;return!1}var ii=(e,t,n,r={},i,a)=>o=>{let s=ti(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=A(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ri(s)||Object.assign(u,$r(e,u)),u.duration&&=A(u.duration),u.repeatDelay&&=A(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ir(u),u.delay===0&&(d=!0)),(O.instantAnimations||O.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Ir(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=In(u.keyframes,s);if(e!==void 0){N.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Vn(u):new Wr(u)};function ai(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function oi(e,t,n,r){if(typeof t==`function`){let[i,a]=ai(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ai(r);t=t(n===void 0?e.custom:n,i,a)}return t}function si(e,t,n){let r=e.getProps();return oi(r,t,n===void 0?r.custom:n,e)}var ci=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...tr]),li=30,ui=e=>!isNaN(parseFloat(e)),di={current:void 0},fi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=F.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ui(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ee);let n=this.events[e].add(t);return e===`change`?()=>{n(),N.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return di.current&&di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>li)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,li);return De(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pi(e,t){return new fi(e,t)}var mi=e=>Array.isArray(e);function hi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pi(n))}function gi(e){return mi(e)?e[e.length-1]||0:e}function _i(e,t){let{transitionEnd:n={},transition:r={},...i}=si(e,t)||{};i={...i,...n};for(let t in i)hi(e,t,gi(i[t]))}var U=e=>!!(e&&e.getVelocity);function vi(e){return!!(U(e)&&e.add)}function yi(e,t){let n=e.getValue(`willChange`);if(vi(n))return n.add(t);if(!n&&O.WillChange){let n=new O.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function bi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var xi=`data-`+bi(`framerAppearId`);function Si(e){return e.props[xi]}function Ci({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ei(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Ci(d,t))continue;let o={delay:n,...ti(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){N.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Si(e);if(n){let e=window.MotionHandoffAnimation(n,t,N);e!==null&&(o.startTime=e,f=!0)}}yi(e,t);let p=l??e.shouldReduceMotion;r.start(ii(t,r,i,p&&ci.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>N.update(()=>{o&&_i(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Ti(e,t,n={}){let r=si(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(wi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ei(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Ei(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Gr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Di(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ti(e,t,n);else{let i=typeof t==`function`?si(e,t,n.custom):t;r=Promise.all(wi(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Oi={test:e=>e===`auto`,parse:e=>e},ki=e=>t=>t.test(e),Ai=[dt,L,I,Et,Ot,Dt,Oi],ji=e=>Ai.find(ki(e));function Mi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||xe(e)}var Ni=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Pi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ht)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ni.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Fi=/\b([a-z-]*)\(.*?\)/gu,Ii={...z,getAnimatableNone:e=>{let t=e.match(Fi);return t?t.map(Pi).join(` `):e}},Li={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ri={...dt,transform:Math.round},zi={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:Et,rotateX:Et,rotateY:Et,rotateZ:Et,scale:pt,scaleX:pt,scaleY:pt,scaleZ:pt,skew:Et,skewX:Et,skewY:Et,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:ft,originX:kt,originY:kt,originZ:L,zIndex:Ri,fillOpacity:ft,strokeOpacity:ft,numOctaves:Ri},Bi={...zi,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Ii,WebkitFilter:Ii,mask:Li,WebkitMask:Li},Vi=e=>Bi[e],Hi=new Set([Ii,Li]);function Ui(e,t){let n=Vi(e);return Hi.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Wi=new Set([`auto`,`none`,`0`]);function Gi(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function qi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Ji=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Yi(e){return be(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Xi,cancel:Zi}=$e(queueMicrotask,!1),W={x:!1,y:!1};function Qi(){return W.x||W.y}function $i(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function ea(e,t){let n=qi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ta(e){return!(e.pointerType===`touch`||Qi())}function na(e,t,n={}){let[r,i,a]=ea(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ta(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ra=(e,t)=>t?e===t?!0:ra(e,t.parentElement):!1,ia=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,aa=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function oa(e){return aa.has(e.tagName)||e.isContentEditable===!0}var sa=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ca(e){return sa.has(e.tagName)||e.isContentEditable===!0}var la=new WeakSet;function ua(e){return t=>{t.key===`Enter`&&e(t)}}function da(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fa=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ua(()=>{if(la.has(n))return;da(n,`down`);let e=ua(()=>{da(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>da(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function pa(e){return ia(e)&&!Qi()}var ma=new WeakSet;function ha(e,t,n={}){let[r,i,a]=ea(e,n),o=e=>{let r=e.currentTarget;if(!pa(e)||ma.has(e))return;la.add(r),n.stopPropagation&&ma.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),la.has(r)&&la.delete(r),pa(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ra(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Yi(e)&&(e.addEventListener(`focus`,e=>fa(e,i)),!oa(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ga(e){return be(e)&&`ownerSVGElement`in e}var _a=new WeakMap,va,ya=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ga(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ba=ya(`inline`,`width`,`offsetWidth`),xa=ya(`block`,`height`,`offsetHeight`);function Sa({target:e,borderBoxSize:t}){_a.get(e)?.forEach(n=>{n(e,{get width(){return ba(e,t)},get height(){return xa(e,t)}})})}function Ca(e){e.forEach(Sa)}function wa(){typeof ResizeObserver>`u`||(va=new ResizeObserver(Ca))}function Ta(e,t){va||wa();let n=qi(e);return n.forEach(e=>{let n=_a.get(e);n||(n=new Set,_a.set(e,n)),n.add(t),va?.observe(e)}),()=>{n.forEach(e=>{let n=_a.get(e);n?.delete(t),n?.size||va?.unobserve(e)})}}var Ea=new Set,Da;function Oa(){Da=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ea.forEach(t=>t(e))},window.addEventListener(`resize`,Da)}function ka(e){return Ea.add(e),Da||Oa(),()=>{Ea.delete(e),!Ea.size&&typeof Da==`function`&&(window.removeEventListener(`resize`,Da),Da=void 0)}}function Aa(e,t){return typeof e==`function`?ka(e):Ta(e,t)}function ja(e){return ga(e)&&e.tagName===`svg`}var Ma=[...Ai,R,z],Na=e=>Ma.find(ki(e)),Pa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fa=()=>({x:Pa(),y:Pa()}),Ia=()=>({min:0,max:0}),G=()=>({x:Ia(),y:Ia()}),La=new WeakMap;function Ra(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function za(e){return typeof e==`string`||Array.isArray(e)}var Ba=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Va=[`initial`,...Ba];function Ha(e){return Ra(e.animate)||Va.some(t=>za(e[t]))}function Ua(e){return!!(Ha(e)||e.variants)}function Wa(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,pi(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pi(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ga={current:null},Ka={current:!1},qa=typeof window<`u`;function Ja(){if(Ka.current=!0,qa)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ga.current=e.matches;e.addEventListener(`change`,t),t()}else Ga.current=!1}var Ya=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Xa={};function Za(e){Xa=e}function Qa(){return Xa}var $a=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=mr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=F.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ka.current||Ja(),this.shouldReduceMotion=Ga.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),et(this.notifyUpdate),et(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Lr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Dr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:A(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=nr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&N.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Xa){let t=Xa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pi(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ye(n)||xe(n))?n=parseFloat(n):!Na(n)&&z.test(t)&&(n=Ui(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=oi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ee),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Xi.render(this.render)}},eo=class extends $a{constructor(){super(...arguments),this.KeyframeResolver=Ki}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},to=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function no({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ro({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function io(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ao(e){return e===void 0||e===1}function oo({scale:e,scaleX:t,scaleY:n}){return!ao(e)||!ao(t)||!ao(n)}function so(e){return oo(e)||co(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function co(e){return lo(e.x)||lo(e.y)}function lo(e){return e&&e!==`0%`}function uo(e,t,n){return n+t*(e-n)}function fo(e,t,n,r,i){return i!==void 0&&(e=uo(e,i,r)),uo(e,n,r)+t}function po(e,t=0,n=1,r,i){e.min=fo(e.min,t,n,r,i),e.max=fo(e.max,t,n,r,i)}function mo(e,{x:t,y:n}){po(e.x,t.translate,t.scale,t.originPoint),po(e.y,n.translate,n.scale,n.originPoint)}var ho=.999999999999,go=1.0000000000001;function _o(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sho&&(t.x=1),t.yho&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function vo(e,t,n,r,i=.5){po(e,t,n,B(e.min,e.max,i),r)}function yo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function bo(e,t,n){let r=n??e;vo(e.x,yo(t.x,r.x),t.scaleX,t.scale,t.originX),vo(e.y,yo(t.y,r.y),t.scaleY,t.scale,t.originY)}function xo(e,t){return no(io(e.getBoundingClientRect(),t))}function So(e,t,n){let r=xo(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var Co={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},wo=tr.length;function To(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${Oo(e,t.target.x)}% ${Oo(e,t.target.y)}%`}},Ao={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},jo={borderRadius:{...ko,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ko,borderTopRightRadius:ko,borderBottomLeftRadius:ko,borderBottomRightRadius:ko,boxShadow:Ao};function Mo(e,{layout:t,layoutId:n}){return nr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!jo[e]||e===`opacity`)}function No(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||Mo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Po(e){return window.getComputedStyle(e)}var Fo=class extends eo{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Do}readValueFromInstance(e,t){if(nr.has(t))return this.projection?.isProjecting?Zn(t):$n(e,t);{let n=Po(e),r=(ot(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return xo(e,t)}build(e,t,n){Eo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return No(e,t,n)}},Io={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Lo={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ro(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Io:Lo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var zo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Bo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Eo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of zo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ro(d,i,a,o,!1)}var Vo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ho=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Uo(e,t,n,r){Do(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Vo.has(n)?n:bi(n),t.attrs[n])}function Wo(e,t,n){let r=No(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=tr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Go=class extends eo{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(nr.has(t)){let e=Vi(t);return e&&e.default||0}return t=Vo.has(t)?t:bi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Wo(e,t,n)}build(e,t,n){Bo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Uo(e,t,n,r)}mount(e){this.isSVGTag=Ho(e.tagName),super.mount(e)}},Ko=Va.length;function qo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&qo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>Di(e,t,n)))}function Qo(e){let t=Zo(e),n=ts(),r=!0,i=!1,a=t=>(n,r)=>{let i=si(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=qo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},ne=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=mi(t)&&mi(n)?!Jo(t,n):t!==n,r?t==null?u.add(e):ne(e):t!==void 0&&u.has(e)?ne(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let w=v&&y;b&&(!w||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!w&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=si(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Gr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=si(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ts(),i=!0}}}function $o(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Jo(t,e):!1}function es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ts(){return{animate:es(!0),whileInView:es(),whileHover:es(),whileTap:es(),whileDrag:es(),whileFocus:es(),exit:es()}}function ns(e,t){e.min=t.min,e.max=t.max}function q(e,t){ns(e.x,t.x),ns(e.y,t.y)}function rs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var is=1e-4,as=1-is,os=1+is,ss=.01,cs=0-ss,ls=0+ss;function J(e){return e.max-e.min}function us(e,t,n){return Math.abs(e-t)<=n}function ds(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=as&&e.scale<=os||isNaN(e.scale))&&(e.scale=1),(e.translate>=cs&&e.translate<=ls||isNaN(e.translate))&&(e.translate=0)}function fs(e,t,n,r){ds(e.x,t.x,n.x,r?r.originX:void 0),ds(e.y,t.y,n.y,r?r.originY:void 0)}function ps(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function ms(e,t,n,r){ps(e.x,t.x,n.x,r?.x),ps(e.y,t.y,n.y,r?.y)}function hs(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function gs(e,t,n,r){hs(e.x,t.x,n.x,r?.x),hs(e.y,t.y,n.y,r?.y)}function _s(e,t,n,r,i){return e-=t,e=uo(e,1/n,r),i!==void 0&&(e=uo(e,1/i,r)),e}function vs(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=_s(e.min,t,n,s,i),e.max=_s(e.max,t,n,s,i)}function ys(e,t,[n,r,i],a,o){vs(e,t[n],t[r],t[i],t.scale,a,o)}var bs=[`x`,`scaleX`,`originX`],xs=[`y`,`scaleY`,`originY`];function Ss(e,t,n,r){ys(e.x,t,bs,n?n.x:void 0,r?r.x:void 0),ys(e.y,t,xs,n?n.y:void 0,r?r.y:void 0)}function Cs(e){return e.translate===0&&e.scale===1}function ws(e){return Cs(e.x)&&Cs(e.y)}function Ts(e,t){return e.min===t.min&&e.max===t.max}function Es(e,t){return Ts(e.x,t.x)&&Ts(e.y,t.y)}function Ds(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Os(e,t){return Ds(e.x,t.x)&&Ds(e.y,t.y)}function ks(e){return J(e.x)/J(e.y)}function As(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function js(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ms=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Ns=Ms.length,Ps=e=>typeof e==`string`?parseFloat(e):e,Fs=e=>typeof e==`number`||L.test(e);function Is(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,Rs(r)),e.opacityExit=B(t.opacity??1,0,zs(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(Te(e,t,r))}function Vs(e,t,n){let r=U(e)?e:pi(e);return r.start(ii(``,r,t,n)),r.animation}function Hs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Us=(e,t)=>e.depth-t.depth,Ws=class{constructor(){this.children=[],this.isDirty=!1}add(e){_e(this.children,e),this.isDirty=!0}remove(e){ve(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Us),this.isDirty=!1,this.children.forEach(e)}};function Gs(e,t){let n=F.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(et(r),e(a-t))};return N.setup(r,!0),()=>et(r)}function Ks(e){return U(e)?e.get():e}var qs=class{constructor(){this.members=[]}add(e){_e(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ve(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ve(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Js={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ys={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Xs=[``,`X`,`Y`,`Z`],Zs=1e3,Qs=0;function $s(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ec(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Si(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,N,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ec(r)}function tc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Qs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,M.value&&(Ys.nodes=Ys.calculatedTargetDeltas=Ys.calculatedProjections=0),this.nodes.forEach(ic),this.nodes.forEach(pc),this.nodes.forEach(mc),this.nodes.forEach(ac),M.addProjectionMetrics&&M.addProjectionMetrics(Ys)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;N.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Gs(i,250),Js.hasAnimatedSinceResize&&(Js.hasAnimatedSinceResize=!1,this.nodes.forEach(fc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||xc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Os(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ti(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||fc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),et(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ec(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3;_c(a.x,e.x,n),_c(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gs(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Es(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=G(),q(d,this.relativeTarget)),s&&(this.animationValues=i,Is(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(et(this.pendingAnimation),void 0),this.pendingAnimation=N.update(()=>{Js.hasAnimatedSinceResize=!0,it.layout++,this.motionValue||=pi(0),this.motionValue.jump(0,!1),this.currentAnimation=Vs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{it.layout--},onComplete:()=>{it.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Ec(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),bo(t,i),fs(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&$s(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(sc),this.root.sharedNodes.clear()}}}function nc(e){e.updateLayout()}function rc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ns(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ec(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Fa();fs(o,n,t.layoutBox);let s=Fa();a?fs(s,e.applyTransform(r,!0),t.measuredBox):fs(s,n,t.layoutBox);let c=!ws(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();gs(s,t.layoutBox,i.layoutBox,o);let c=G();gs(c,n,a.layoutBox,o),Os(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ic(e){M.value&&Ys.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ac(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oc(e){e.clearSnapshot()}function sc(e){e.clearMeasurements()}function cc(e){e.isLayoutDirty=!0,e.updateLayout()}function lc(e){e.isLayoutDirty=!1}function uc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function fc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pc(e){e.resolveTargetDelta()}function mc(e){e.calcProjection()}function hc(e){e.resetSkewAndRotation()}function gc(e){e.removeLeadSnapshot()}function _c(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vc(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function yc(e,t,n,r){vc(e.x,t.x,n.x,r),vc(e.y,t.y,n.y,r)}function bc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var xc={duration:.45,ease:[.4,0,.1,1]},Sc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cc=Sc(`applewebkit/`)&&!Sc(`chrome/`)?Math.round:k;function wc(e){e.min=Cc(e.min),e.max=Cc(e.max)}function Tc(e){wc(e.x),wc(e.y)}function Ec(e,t,n){return e===`position`||e===`preserve-aspect`&&!us(ks(t),ks(n),.2)}function Dc(e){return e!==e.root&&e.scroll?.wasRoot}var Oc=tc({attachResizeListener:(e,t)=>Hs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),kc={current:void 0},Ac=tc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!kc.current){let e=new Oc({});e.mount(window),e.setOptions({layoutScroll:!0}),kc.current=e}return kc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),jc=(0,E.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Mc(e=!0){let t=(0,E.useContext)(ge);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,E.useId)();(0,E.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,E.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Nc=(0,E.createContext)({strict:!1}),Pc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Fc=!1;function Ic(){if(Fc)return;let e={};for(let t in Pc)e[t]={isEnabled:e=>Pc[t].some(t=>!!e[t])};Za(e),Fc=!0}function Lc(){return Ic(),Qa()}function Rc(e){let t=Lc();for(let n in e)t[n]={...t[n],...e[n]};Za(t)}var zc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Bc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||zc.has(e)}var Vc=l({default:()=>Hc}),Hc,Uc=s((()=>{throw Hc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Wc=e=>!Bc(e);function Gc(e){typeof e==`function`&&(Wc=t=>t.startsWith(`on`)?!Bc(t):e(t))}try{Gc((Uc(),e(Vc)).default)}catch{}function Kc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||U(e[i])||(Wc(i)||n===!0&&Bc(i)||!t&&!Bc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var qc=(0,E.createContext)({});function Jc(e,t){if(Ha(e)){let{initial:t,animate:n}=e;return{initial:t===!1||za(t)?t:void 0,animate:za(n)?n:void 0}}return e.inherit===!1?{}:t}function Yc(e){let{initial:t,animate:n}=Jc(e,(0,E.useContext)(qc));return(0,E.useMemo)(()=>({initial:t,animate:n}),[Xc(t),Xc(n)])}function Xc(e){return Array.isArray(e)?e.join(` `):e}var Zc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qc(e,t,n){for(let r in t)!U(t[r])&&!Mo(r,n)&&(e[r]=t[r])}function $c({transformTemplate:e},t){return(0,E.useMemo)(()=>{let n=Zc();return Eo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function el(e,t){let n=e.style||{},r={};return Qc(r,n,e),Object.assign(r,$c(e,t)),r}function tl(e,t){let n={},r=el(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var nl=()=>({...Zc(),attrs:{}});function rl(e,t,n,r){let i=(0,E.useMemo)(()=>{let n=nl();return Bo(n,t,Ho(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Qc(t,e.style,e),i.style={...t,...i.style}}return i}var il=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function al(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(il.indexOf(e)>-1||/[A-Z]/u.test(e))}function ol(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??al(e)?rl:tl)(t,r,i,e),c=Kc(t,typeof e==`string`,a),l=e===E.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,E.useMemo)(()=>U(u)?u.get():u,[u]);return(0,E.createElement)(e,{...l,children:d})}function sl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cl(n,r,i,e),renderState:t()}}function cl(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Ks(a[e]);let{initial:o,animate:s}=e,c=Ha(e),l=Ua(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ra(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,E.useContext)(qc),i=(0,E.useContext)(ge),a=()=>sl(e,t,r,i);return n?a():me(a)},ul=ll({scrapeMotionValuesFromProps:No,createRenderState:Zc}),dl=ll({scrapeMotionValuesFromProps:Wo,createRenderState:nl}),fl=Symbol.for(`motionComponentSymbol`);function pl(e,t,n){let r=(0,E.useRef)(n);(0,E.useInsertionEffect)(()=>{r.current=n});let i=(0,E.useRef)(null);return(0,E.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var ml=(0,E.createContext)({});function hl(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function gl(e,t,n,r,i,a){let{visualElement:o}=(0,E.useContext)(qc),s=(0,E.useContext)(Nc),c=(0,E.useContext)(ge),l=(0,E.useContext)(jc),u=l.reducedMotion,d=l.skipAnimations,f=(0,E.useRef)(null),p=(0,E.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,E.useContext)(ml);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&_l(f.current,n,i,h);let g=(0,E.useRef)(!1);(0,E.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[xi],v=(0,E.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return he(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,E.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function _l(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:vl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&hl(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function vl(e){if(e)return e.options.allowProjection===!1?vl(e.parent):e.projection}function yl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Rc(r);let a=n?n===`svg`:al(e),o=a?dl:ul;function s(n,s){let c,l={...(0,E.useContext)(jc),...n,layoutId:bl(n)},{isStatic:u}=l,d=Yc(n),f=o(n,u);if(!u&&typeof window<`u`){xl(l,r);let t=Sl(l);c=t.MeasureLayout,d.visualElement=gl(e,f,l,i,t.ProjectionNode,a)}return(0,T.jsxs)(qc.Provider,{value:d,children:[c&&d.visualElement?(0,T.jsx)(c,{visualElement:d.visualElement,...l}):null,ol(e,n,pl(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,E.forwardRef)(s);return c[fl]=e,c}function bl({layoutId:e}){let t=(0,E.useContext)(pe).id;return t&&e!==void 0?t+`-`+e:e}function xl(e,t){(0,E.useContext)(Nc).strict}function Sl(e){let{drag:t,layout:n}=Lc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Cl(e,t){if(typeof Proxy>`u`)return yl;let n=new Map,r=(n,r)=>yl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,yl(a,void 0,e,t)),n.get(a))})}var wl=(e,t)=>t.isSVG??al(e)?new Go(t):new Fo(t,{allowProjection:e!==E.Fragment}),Tl=class extends to{constructor(e){super(e),e.animationState||=Qo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ra(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},El=0,Dl={animation:{Feature:Tl},exit:{Feature:class extends to{constructor(){super(...arguments),this.id=El++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=si(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Ol(e){return{point:{x:e.pageX,y:e.pageY}}}var kl=e=>t=>ia(t)&&e(t,Ol(t));function Al(e,t,n,r){return Hs(e,t,kl(n),r)}var jl=({current:e})=>e?e.ownerDocument.defaultView:null,Ml=(e,t)=>Math.abs(e-t);function Nl(e,t){let n=Ml(e.x,t.x),r=Ml(e.y,t.y);return Math.sqrt(n**2+r**2)}var Pl=new Set([`auto`,`scroll`]),Fl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Il(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Rl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Nl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=P;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Il(t,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Rl(e.type===`pointercancel`?this.lastMoveEventInfo:Il(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ia(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Il(Ol(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=P;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Rl(s,this.history)),this.removeListeners=we(Al(this.contextWindow,`pointermove`,this.handlePointerMove),Al(this.contextWindow,`pointerup`,this.handlePointerUp),Al(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Pl.has(e.overflowX)||Pl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),N.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),et(this.updatePoint)}};function Il(e,t){return t?{point:t(e.point)}:e}function Ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rl({point:e},t){return{point:e,delta:Ll(e,Bl(t)),offset:Ll(e,zl(t)),velocity:Vl(t,.1)}}function zl(e){return e[0]}function Bl(e){return e[e.length-1]}function Vl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Bl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>A(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>A(t)*2&&(r=e[1]);let a=j(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Hl(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function Ul(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Wl(e,{top:t,left:n,bottom:r,right:i}){return{x:Ul(e.x,n,i),y:Ul(e.y,t,r)}}function Gl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Te(t.min,t.max-r,e.min):r>i&&(n=Te(e.min,e.max-i,t.min)),D(0,1,n)}function Jl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Yl=.35;function Xl(e=Yl){return e===!1?e=0:e===!0&&(e=Yl),{x:Zl(e,`left`,`right`),y:Zl(e,`top`,`bottom`)}}function Zl(e,t,n){return{min:Ql(e,t),max:Ql(e,n)}}function Ql(e,t){return typeof e==`number`?e:e[t]||0}var $l=new WeakMap,eu=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Ol(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$i(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&N.update(()=>i(e,t),!1,!0),yi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=iu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&N.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Fl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:jl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&N.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ru(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Hl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&hl(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Wl(n.layoutBox,e):this.constraints=!1,this.elastic=Xl(t),r!==this.constraints&&!hl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Jl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!hl(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=So(n,r.root,this.visualElement.getTransformPagePoint()),a=Kl(r.layout.layoutBox,i);if(t){let e=t(ro(a));this.hasMutatedConstraints=!!e,e&&(a=no(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!ru(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return yi(this.visualElement,e),n.start(ii(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!ru(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!hl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ql({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!ru(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$l.set(this.visualElement,this);let e=this.visualElement.current,t=Al(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ca(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();hl(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=nu(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),N.read(r);let o=Hs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Yl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function tu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nu(e,t,n){let r=Aa(e,tu(n)),i=Aa(t,tu(n));return()=>{r(),i()}}function ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var au=class extends to{constructor(e){super(e),this.removeGroupControls=k,this.removeListeners=k,this.controls=new eu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ou=e=>(t,n)=>{e&&N.update(()=>e(t,n),!1,!0)},su=class extends to{constructor(){super(...arguments),this.removePointerDownListener=k}onPointerDown(e){this.session=new Fl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ou(e),onStart:ou(t),onMove:ou(n),onEnd:(e,t)=>{delete this.session,r&&N.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Al(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},cu=!1,lu=class extends E.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),cu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Js.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),cu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||N.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Xi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;cu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function uu(e){let[t,n]=Mc(),r=(0,E.useContext)(pe);return(0,T.jsx)(lu,{...e,layoutGroup:r,switchLayoutGroup:(0,E.useContext)(ml),isPresent:t,safeToRemove:n})}var du={pan:{Feature:su},drag:{Feature:au,ProjectionNode:Ac,MeasureLayout:uu}};function fu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&N.postRender(()=>i(t,Ol(t)))}var pu=class extends to{mount(){let{current:e}=this.node;e&&(this.unmount=na(e,(e,t)=>(fu(this.node,t,`Start`),e=>fu(this.node,e,`End`))))}unmount(){}},mu=class extends to{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=we(Hs(this.node.current,`focus`,()=>this.onFocus()),Hs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function hu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&N.postRender(()=>i(t,Ol(t)))}var gu=class extends to{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ha(e,(e,t)=>(hu(this.node,t,`Start`),(e,{success:t})=>hu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},_u=new WeakMap,vu=new WeakMap,yu=e=>{let t=_u.get(e.target);t&&t(e)},bu=e=>{e.forEach(yu)};function xu({root:e,...t}){let n=e||document;vu.has(n)||vu.set(n,{});let r=vu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bu,{root:e,...t})),r[i]}function Su(e,t,n){let r=xu(t);return _u.set(e,n),r.observe(e),()=>{_u.delete(e),r.unobserve(e)}}var Cu={some:0,all:1},wu=class extends to{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Cu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Su(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Tu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Tu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Eu={inView:{Feature:wu},tap:{Feature:gu},focus:{Feature:mu},hover:{Feature:pu}},Du={layout:{ProjectionNode:Ac,MeasureLayout:uu}},Ou=Cl({...Dl,...Eu,...du,...Du},wl),X=n();function ku(e){let t=(0,X.c)(6),{children:n,as:r,className:i}=e,a=r===void 0?`div`:r,o;t[0]===i?o=t[1]:(o=p(`container mx-auto px-4 md:px-6 lg:px-8`,i),t[0]=i,t[1]=o);let s;return t[2]!==a||t[3]!==n||t[4]!==o?(s=(0,T.jsx)(a,{className:o,children:n}),t[2]=a,t[3]=n,t[4]=o,t[5]=s):s=t[5],s}ku.displayName=`MainWrapper`;var Au=[{href:`#`,label:`Features`},{href:`#`,label:`Blog`},{href:`#`,label:`About`},{href:`#`,label:`Contact`},{href:`#`,label:`Licence`},{href:`#`,label:`Privacy`}],ju=[{href:`#`,label:`X`,icon:(0,T.jsx)(Fu,{})},{href:`#`,label:`Github`,icon:(0,T.jsx)(g,{})}];function Mu(){let e=(0,X.c)(8),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(`div`,{className:`relative`,children:(0,T.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,T.jsx)(ce,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=w(),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,T.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,T.jsx)(t,{prefetch:!0,href:r,children:(0,T.jsxs)(`span`,{className:`flex items-center gap-2 text-lg`,children:[(0,T.jsx)(`span`,{className:`flex size-8 items-center justify-center rounded-md bg-foreground text-background`,children:`ui`}),(0,T.jsx)(`span`,{children:`designbycode`})]})})}),e[2]=i):i=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[i,(0,T.jsx)(`div`,{className:`flex items-center`,children:ju.map(Pu)})]}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsx)(ku,{children:(0,T.jsxs)(`div`,{className:`flex flex-col gap-6 py-6`,children:[a,(0,T.jsx)(`nav`,{children:(0,T.jsx)(`ul`,{className:`flex flex-wrap gap-4 text-sm font-medium text-muted-foreground md:gap-6`,children:Au.map(Nu)})})]})}),e[4]=o):o=e[4];let s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,T.jsx)(`div`,{className:`relative`,children:(0,T.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,T.jsx)(ce,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[5]=s):s=e[5];let c;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,T.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` ui.designbycode`]}),e[6]=c):c=e[6];let l;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,T.jsxs)(`footer`,{className:`mt-6`,children:[n,o,s,(0,T.jsx)(ku,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-6 text-sm text-muted-foreground`,children:[c,(0,T.jsxs)(`p`,{className:`inline-flex items-center gap-1`,children:[(0,T.jsx)(`span`,{children:`Built by`}),(0,T.jsx)(`a`,{"aria-label":`x/twitter`,className:`inline-flex items-center gap-1 text-foreground/80 hover:text-foreground hover:underline`,href:`https://designbycode.co.za`,rel:`noreferrer`,target:`_blank`,children:`designbycode`})]})]})})]}),e[7]=l):l=e[7],l}function Nu(e){return(0,T.jsx)(`li`,{children:(0,T.jsx)(`a`,{className:`hover:text-foreground`,href:e.href,children:e.label})},e.label)}function Pu(e){let{href:t,label:n,icon:r}=e;return(0,T.jsx)(d,{asChild:!0,size:`icon`,variant:`ghost`,children:(0,T.jsx)(`a`,{"aria-label":n,href:t,children:r})},n)}function Fu(e){let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(`path`,{d:`m18.9,1.153h3.682l-8.042,9.189,9.46,12.506h-7.405l-5.804-7.583-6.634,7.583H.469l8.6-9.831L0,1.153h7.593l5.241,6.931,6.065-6.931Zm-1.293,19.494h2.039L6.482,3.239h-2.19l13.314,17.408Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,T.jsx)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:n}),t[1]=e,t[2]=r),r}Mu.displayName=`MainFooter`;var Iu=c(a(),1);function Lu(e){let t=(0,X.c)(11),{resolvedAppearance:n}=u(),r;t[0]!==e.cssVars?.dark||t[1]!==e.cssVars?.light||t[2]!==e.vars_dark||t[3]!==e.vars_light||t[4]!==n?(r=n===`dark`?e.cssVars?.dark??e.vars_dark??{}:e.cssVars?.light??e.vars_light??{},t[0]=e.cssVars?.dark,t[1]=e.cssVars?.light,t[2]=e.vars_dark,t[3]=e.vars_light,t[4]=n,t[5]=r):r=t[5];let i=r,a;t[6]===i?a=t[7]:(a=x(i),t[6]=i,t[7]=a);let o;return t[8]!==a||t[9]!==i?(o={vars:i,cssVars:a},t[8]=a,t[9]=i,t[10]=o):o=t[10],o}function Ru(e){let t=(0,X.c)(21),{theme:n,onSelect:r,selected:i,compact:a,className:o}=e,s=i===void 0?!1:i,c=a===void 0?!1:a,{cssVars:l}=Lu(n),u;t[0]!==r||t[1]!==n?(u=()=>r?.(n),t[0]=r,t[1]=n,t[2]=u):u=t[2];let d=c?`gap-2 px-4 py-2`:`gap-4 p-4`,f=s&&`border-primary ring-1 ring-primary`,m;t[3]!==o||t[4]!==d||t[5]!==f?(m=p(`flex w-full items-center justify-between overflow-clip rounded-md border border-border bg-background text-left transition-colors hover:bg-accent`,d,f,o),t[3]=o,t[4]=d,t[5]=f,t[6]=m):m=t[6];let g;t[7]===s?g=t[8]:(g=s&&(0,T.jsx)(Ou.div,{animate:{x:-5},transition:{type:`spring`,stiffness:100},initial:{x:-50},children:(0,T.jsx)(h,{className:`size-4 rounded-full bg-primary p-1 text-primary-foreground`})}),t[7]=s,t[8]=g);let _=n?.title||`Theme`,v=c?void 0:n?.name,y;t[9]!==_||t[10]!==v?(y=(0,T.jsx)(ie,{as:`h4`,variant:`small`,title:_,description:v}),t[9]=_,t[10]=v,t[11]=y):y=t[11];let b;t[12]!==y||t[13]!==g?(b=(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center space-x-1`,children:[g,y]}),t[12]=y,t[13]=g,t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 rounded-md border border-border p-1.5`,children:[(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-primary`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-secondary`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-accent`}),(0,T.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-muted`})]}),t[15]=x):x=t[15];let S;return t[16]!==l||t[17]!==b||t[18]!==u||t[19]!==m?(S=(0,T.jsxs)(`button`,{type:`button`,onClick:u,style:l,className:m,children:[b,x]}),t[16]=l,t[17]=b,t[18]=u,t[19]=m,t[20]=S):S=t[20],S}Ru.displayName=`ThemeList`;function zu(e,t){let n=(0,X.c)(4),[r,i]=(0,E.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=setTimeout(()=>i(e),t);return()=>clearTimeout(n)},o=[e,t],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,E.useEffect)(a,o),r}function Bu(){let{themeName:e}=oe(),[t,n]=(0,E.useState)([]),[r,i]=(0,E.useState)(1),[a,o]=(0,E.useState)(!0),[s,c]=(0,E.useState)(!1),[l,u]=(0,E.useState)(``),p=zu(l,300),[m,g]=(0,E.useState)(``),_=(0,E.useRef)(null),v=(0,E.useCallback)(async(e,t,r)=>{c(!0);let a=new URLSearchParams;a.set(`page`,String(e)),t&&a.set(`search`,t);try{let t=await(await fetch(`/api/themes?${a}`)).json();n(e=>r?[...e,...t.data]:t.data),o(t.current_page{requestAnimationFrame(()=>{v(1,``,!1)})},[v]),(0,E.useEffect)(()=>{p!==m&&((0,Iu.flushSync)(()=>{g(p),n([])}),requestAnimationFrame(()=>{v(1,p,!1)}))},[p,m,v]),(0,E.useEffect)(()=>{let e=_.current;if(!e)return;let t=new IntersectionObserver(e=>{e[0].isIntersecting&&a&&!s&&v(r+1,m,!0)},{rootMargin:`400px`});return t.observe(e),()=>t.disconnect()},[a,s,r,m,v]),(0,T.jsxs)(S,{children:[(0,T.jsx)(ee,{asChild:!0,children:(0,T.jsx)(d,{variant:`ghost`,size:`icon`,children:(0,T.jsx)(ue,{className:`size-4`})})}),(0,T.jsxs)(C,{className:`flex flex-col gap-0 pl-5`,children:[(0,T.jsx)(ce,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),(0,T.jsxs)(ne,{className:`px-4 pt-4 pb-2`,children:[(0,T.jsx)(te,{children:`Theme Color`}),(0,T.jsx)(re,{children:`Choose a color theme for the interface`})]}),(0,T.jsxs)(`div`,{className:`relative border-b border-border px-4 pb-3`,children:[(0,T.jsx)(fe,{className:`absolute top-0 left-7 size-4 translate-y-2.5 text-muted-foreground`}),(0,T.jsx)(se,{value:l,onChange:e=>u(e.target.value),placeholder:`Search themes...`,className:`pr-8 pl-9`}),l&&(0,T.jsx)(`button`,{onClick:()=>u(``),className:`absolute top-0 right-7 translate-y-2.5 text-muted-foreground hover:text-foreground`,children:(0,T.jsx)(f,{className:`size-4`})})]}),(0,T.jsx)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3`,children:(0,T.jsxs)(`div`,{className:`space-y-2`,children:[(0,T.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center justify-between gap-2 rounded-md border p-2 text-left transition-colors hover:bg-accent ${e?`border-border bg-background`:`border-primary ring-1 ring-primary`}`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,T.jsx)(`div`,{className:`flex size-8 items-center justify-center rounded-md border border-border bg-background`,children:(0,T.jsx)(de,{className:`size-4 text-muted-foreground`})}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Default theme`}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Reset to default colors`})]})]}),!e&&(0,T.jsx)(`div`,{className:`flex size-4 items-center justify-center rounded-full bg-primary text-primary-foreground`,children:(0,T.jsx)(h,{className:`size-3`})})]}),t.map(t=>(0,T.jsx)(Ru,{theme:t,className:`mb-2`,compact:!0,selected:t.name===e,onSelect:y},t.name)),s&&(0,T.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:3}).map((e,t)=>(0,T.jsx)(`div`,{className:`h-14 animate-pulse rounded-md bg-muted`},t))}),a&&!s&&(0,T.jsx)(`div`,{ref:_,className:`h-4`}),!a&&t.length>0&&(0,T.jsx)(`p`,{className:`py-4 text-center text-xs text-muted-foreground`,children:`All themes loaded`}),!s&&t.length===0&&(0,T.jsx)(`p`,{className:`py-8 text-center text-sm text-muted-foreground`,children:`No themes found`})]})})]})]})}Bu.displayName=`ThemeSwitcher`;var Vu=[{value:`light`,icon:v,label:`Light`},{value:`dark`,icon:_,label:`Dark`}];function Hu(e){let t=(0,X.c)(23),n,r;t[0]===e?(n=t[1],r=t[2]):({className:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?``:r,{appearance:a,updateAppearance:o}=u(),s,c,l;t[3]===a?(s=t[4],c=t[5],l=t[6]):(s=Vu.find(e=>e.value===a)??Vu[0],l=Vu,c=Vu.indexOf(s),t[3]=a,t[4]=s,t[5]=c,t[6]=l);let f=l[(c+1)%Vu.length],m;t[7]!==f.value||t[8]!==o?(m=()=>o(f.value),t[7]=f.value,t[8]=o,t[9]=m):m=t[9];let h=`Switch to ${f.label} mode`,g;t[10]===i?g=t[11]:(g=p(``,i),t[10]=i,t[11]=g);let _;t[12]===s.icon?_=t[13]:(_=(0,T.jsx)(s.icon,{className:`h-4 w-4`}),t[12]=s.icon,t[13]=_);let v;t[14]===s.label?v=t[15]:(v=(0,T.jsx)(`span`,{"aria-label":s.label,className:`sr-only`,children:s.label}),t[14]=s.label,t[15]=v);let y;return t[16]!==n||t[17]!==m||t[18]!==h||t[19]!==g||t[20]!==_||t[21]!==v?(y=(0,T.jsxs)(d,{onClick:m,"aria-label":h,size:`icon`,...n,className:g,children:[_,v]}),t[16]=n,t[17]=m,t[18]=h,t[19]=g,t[20]=_,t[21]=v,t[22]=y):y=t[22],y}Hu.displayName=`AppearanceToggle`;function Uu(e){let t=(0,X.c)(12),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{enabled:r,offset:i,tolerance:a,scroller:o}=n,s=r===void 0?!0:r,c=i===void 0?0:i,l=a===void 0?0:a,u=o===void 0?null:o,d=(0,E.useRef)(null),[f,p]=(0,E.useState)(Wu),m;t[2]===l?m=t[3]:(m=()=>typeof l==`number`?{up:l,down:l}:l,t[2]=l,t[3]=m);let h=m,g,_;t[4]!==s||t[5]!==h||t[6]!==c||t[7]!==u?(g=()=>{if(!s)return;let e=u??window,t=()=>e instanceof Element?e.scrollTop:window.scrollY??window.pageYOffset,n=()=>e instanceof Element?e.scrollHeight:document.documentElement.scrollHeight,r=()=>e instanceof Element?e.clientHeight:window.innerHeight,i=t(),a=!1,o=()=>{let e=t(),o=n(),s=r(),l=h(),u=e<=c,d=e+s>=o-1,f=e-i,m=f>0,g=f<0;p(e=>{let t=e.pinned;return u?t=!0:m&&Math.abs(f)>=l.down?t=!1:g&&Math.abs(f)>=l.up&&(t=!0),{pinned:t,unpinned:!t,top:u,notTop:!u,bottom:d,notBottom:!d}}),i=e,a=!1},l=()=>{a||=(requestAnimationFrame(o),!0)};return e.addEventListener(`scroll`,l,{passive:!0}),o(),()=>{e.removeEventListener(`scroll`,l)}},_=[s,c,h,u],t[4]=s,t[5]=h,t[6]=c,t[7]=u,t[8]=g,t[9]=_):(g=t[8],_=t[9]),(0,E.useEffect)(g,_);let v;return t[10]===f?v=t[11]:(v={ref:d,...f},t[10]=f,t[11]=v),v}function Wu(){return{pinned:!0,unpinned:!1,top:!0,notTop:!1,bottom:!1,notBottom:!0}}var Z=e=>({url:Z.url(e),method:`get`});Z.definition={methods:[`get`,`head`],url:`/animate-css`},Z.url=e=>Z.definition.url+i(e),Z.get=e=>({url:Z.url(e),method:`get`}),Z.head=e=>({url:Z.url(e),method:`head`});var Gu=e=>({action:Z.url(e),method:`get`});Gu.get=e=>({action:Z.url(e),method:`get`}),Gu.head=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Z.form=Gu,Object.assign(Z,Z);var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/fonts`},Q.url=e=>Q.definition.url+i(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var Ku=e=>({action:Q.url(e),method:`get`});Ku.get=e=>({action:Q.url(e),method:`get`}),Ku.head=e=>({action:Q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Q.form=Ku,Object.assign(Q,Q);var $=e=>({url:$.url(e),method:`get`});$.definition={methods:[`get`,`head`],url:`/themes`},$.url=e=>$.definition.url+i(e),$.get=e=>({url:$.url(e),method:`get`}),$.head=e=>({url:$.url(e),method:`head`});var qu=e=>({action:$.url(e),method:`get`});qu.get=e=>({action:$.url(e),method:`get`}),qu.head=e=>({action:$.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),$.form=qu,Object.assign($,$);function Ju(){let e=(0,X.c)(24),n=!ae(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={down:5,up:5},e[0]=r):r=e[0];let i;e[1]===n?i=e[2]:(i={enabled:n,offset:16,tolerance:r},e[1]=n,e[2]=i);let{ref:a,pinned:o}=Uu(i),s=o?`translate-y-0`:`-translate-y-full`,c;e[3]===s?c=e[4]:(c=p(`fixed inset-x-0 top-0 isolate z-50 flex min-h-16 items-center border-b! border-solid! border-border/50! bg-background/50 text-foreground backdrop-blur transition-transform duration-700`,s),e[3]=s,e[4]=c);let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,T.jsxs)(t,{prefetch:`hover`,className:`text-semibold flex items-center space-x-1 text-lg`,href:w(),children:[(0,T.jsx)(`span`,{className:`grid size-7 place-items-center rounded-sm bg-foreground text-background`,children:`ui`}),(0,T.jsx)(`span`,{children:`designbycode`})]}),e[5]=l):l=e[5];let u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Home`}),e[6]=u):u=e[6];let f;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:$(),children:`Themes`}),e[7]=f):f=e[7];let m;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Z(),children:`Animate CSS`}),e[8]=m):m=e[8];let h;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Q(),children:`Fonts`}),e[9]=h):h=e[9];let g;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Components`}),e[10]=g):g=e[10];let _;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,T.jsxs)(`div`,{className:`hidden space-x-4 text-sm md:flex`,children:[u,f,m,h,g,(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Blocks`})]}),e[11]=_):_=e[11];let v;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,T.jsx)(ee,{asChild:!0,children:(0,T.jsx)(d,{variant:`ghost`,size:`icon`,"aria-label":`Open navigation menu`,children:(0,T.jsx)(le,{className:`size-5`})})}),e[12]=v):v=e[12];let y,b;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,T.jsx)(ce,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),b=(0,T.jsx)(te,{className:`sr-only`,children:`Navigation menu`}),e[13]=y,e[14]=b):(y=e[13],b=e[14]);let x;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Home`}),e[15]=x):x=e[15];let ne;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:$(),children:`Themes`}),e[16]=ne):ne=e[16];let re;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Z(),children:`Animate CSS`}),e[17]=re):re=e[17];let ie;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:Q(),children:`Fonts`}),e[18]=ie):ie=e[18];let oe;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Components`}),e[19]=oe):oe=e[19];let se;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,T.jsxs)(ku,{className:`flex justify-between`,children:[l,_,(0,T.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,T.jsx)(`div`,{className:`md:hidden`,children:(0,T.jsxs)(S,{children:[v,(0,T.jsxs)(C,{side:`right`,children:[y,b,(0,T.jsxs)(`div`,{className:`mt-8 flex flex-col space-y-1 px-4`,children:[x,ne,re,ie,oe,(0,T.jsx)(t,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:w(),children:`Blocks`})]})]})]})}),(0,T.jsx)(Hu,{}),(0,T.jsx)(Bu,{})]})]}),e[20]=se):se=e[20];let ue;return e[21]!==a||e[22]!==c?(ue=(0,T.jsx)(`div`,{ref:a,suppressHydrationWarning:!0,className:c,children:se}),e[21]=a,e[22]=c,e[23]=ue):ue=e[23],ue}Ju.displayName=`MainNavigation`;var Yu=(0,E.createContext)({position:{x:-9999,y:-9999},radius:100}),Xu=()=>{let e=(0,X.c)(2),t=(0,E.useContext)(Yu),n;return e[0]===t?n=e[1]:(n=t??{position:{x:-9999,y:-9999},radius:100},e[0]=t,e[1]=n),n};function Zu(e){let t=(0,X.c)(12),{children:n,radius:r,className:i}=e,a=r===void 0?100:r,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={x:-9999,y:-9999},t[0]=o):o=t[0];let[s,c]=(0,E.useState)(o),l=(0,E.useRef)(0),u,d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{let e=e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>c({x:e.clientX,y:e.clientY}))};return window.addEventListener(`mousemove`,e,{passive:!0}),()=>{window.removeEventListener(`mousemove`,e),cancelAnimationFrame(l.current)}},d=[],t[1]=u,t[2]=d):(u=t[1],d=t[2]),(0,E.useEffect)(u,d);let f;t[3]!==s||t[4]!==a?(f={position:s,radius:a},t[3]=s,t[4]=a,t[5]=f):f=t[5];let p;t[6]!==n||t[7]!==i?(p=(0,T.jsx)(`div`,{className:i,children:n}),t[6]=n,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==f||t[10]!==p?(m=(0,T.jsx)(Yu.Provider,{value:f,children:p}),t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function Qu(e){let t=(0,X.c)(8),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsx)(ce,{className:`fixed inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),i=(0,T.jsx)(ce,{className:`fixed inset-y-0 right-0 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),a=(0,T.jsx)(Ju,{}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=(0,T.jsx)(`div`,{className:`flex-1`,children:n}),t[3]=n,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,T.jsx)(Mu,{}),t[5]=s):s=t[5];let c;return t[6]===o?c=t[7]:(c=(0,T.jsx)(Zu,{className:`relative`,children:(0,T.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[r,i,a,o,s]})}),t[6]=o,t[7]=c),c}Qu.displayName=`MainLayout`;export{ku as a,he as c,Lu as i,pe as l,Xu as n,Ou as o,zu as r,N as s,Qu as t,fe as u}; \ No newline at end of file diff --git a/public/build/assets/password-DgvYQGdP.js b/public/build/assets/password-4MQY-sCe.js similarity index 97% rename from public/build/assets/password-DgvYQGdP.js rename to public/build/assets/password-4MQY-sCe.js index 8ff6fef..7b26f28 100644 --- a/public/build/assets/password-DgvYQGdP.js +++ b/public/build/assets/password-4MQY-sCe.js @@ -1 +1 @@ -import{n as e,t}from"./wayfinder-DGNmxDkm.js";import{t as n}from"./confirm-gXMuOnz9.js";var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/forgot-password`},r.url=t=>r.definition.url+e(t),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({action:r.url(e),method:`get`});i.get=e=>({action:r.url(e),method:`get`}),i.head=e=>({action:r.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),r.form=i;var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/reset-password/{token}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={token:n}),Array.isArray(n)&&(n={token:n[0]}),n=t(n);let i={token:n.token};return a.definition.url.replace(`{token}`,i.token.toString()).replace(/\/+$/,``)+e(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({action:a.url(e,t),method:`get`});o.get=(e,t)=>({action:a.url(e,t),method:`get`}),o.head=(e,t)=>({action:a.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/forgot-password`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c;var l=e=>({url:l.url(e),method:`post`});l.definition={methods:[`post`],url:`/reset-password`},l.url=t=>l.definition.url+e(t),l.post=e=>({url:l.url(e),method:`post`});var u=e=>({action:l.url(e),method:`post`});u.post=e=>({action:l.url(e),method:`post`}),l.form=u;var d=e=>({url:d.url(e),method:`get`});d.definition={methods:[`get`,`head`],url:`/user/confirm-password`},d.url=t=>d.definition.url+e(t),d.get=e=>({url:d.url(e),method:`get`}),d.head=e=>({url:d.url(e),method:`head`});var f=e=>({action:d.url(e),method:`get`});f.get=e=>({action:d.url(e),method:`get`}),f.head=e=>({action:d.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),d.form=f;var p=e=>({url:p.url(e),method:`get`});p.definition={methods:[`get`,`head`],url:`/user/confirmed-password-status`},p.url=t=>p.definition.url+e(t),p.get=e=>({url:p.url(e),method:`get`}),p.head=e=>({url:p.url(e),method:`head`});var m=e=>({action:p.url(e),method:`get`});m.get=e=>({action:p.url(e),method:`get`}),m.head=e=>({action:p.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),p.form=m,Object.assign(r,r),Object.assign(a,a),Object.assign(s,s),Object.assign(l,l),Object.assign(d,n),Object.assign(p,p);export{r as n,l as r,s as t}; \ No newline at end of file +import{n as e,t}from"./wayfinder-DGNmxDkm.js";import{t as n}from"./confirm-B_yzhW7J.js";var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/forgot-password`},r.url=t=>r.definition.url+e(t),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({action:r.url(e),method:`get`});i.get=e=>({action:r.url(e),method:`get`}),i.head=e=>({action:r.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),r.form=i;var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/reset-password/{token}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={token:n}),Array.isArray(n)&&(n={token:n[0]}),n=t(n);let i={token:n.token};return a.definition.url.replace(`{token}`,i.token.toString()).replace(/\/+$/,``)+e(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({action:a.url(e,t),method:`get`});o.get=(e,t)=>({action:a.url(e,t),method:`get`}),o.head=(e,t)=>({action:a.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/forgot-password`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c;var l=e=>({url:l.url(e),method:`post`});l.definition={methods:[`post`],url:`/reset-password`},l.url=t=>l.definition.url+e(t),l.post=e=>({url:l.url(e),method:`post`});var u=e=>({action:l.url(e),method:`post`});u.post=e=>({action:l.url(e),method:`post`}),l.form=u;var d=e=>({url:d.url(e),method:`get`});d.definition={methods:[`get`,`head`],url:`/user/confirm-password`},d.url=t=>d.definition.url+e(t),d.get=e=>({url:d.url(e),method:`get`}),d.head=e=>({url:d.url(e),method:`head`});var f=e=>({action:d.url(e),method:`get`});f.get=e=>({action:d.url(e),method:`get`}),f.head=e=>({action:d.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),d.form=f;var p=e=>({url:p.url(e),method:`get`});p.definition={methods:[`get`,`head`],url:`/user/confirmed-password-status`},p.url=t=>p.definition.url+e(t),p.get=e=>({url:p.url(e),method:`get`}),p.head=e=>({url:p.url(e),method:`head`});var m=e=>({action:p.url(e),method:`get`});m.get=e=>({action:p.url(e),method:`get`}),m.head=e=>({action:p.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),p.form=m,Object.assign(r,r),Object.assign(a,a),Object.assign(s,s),Object.assign(l,l),Object.assign(d,n),Object.assign(p,p);export{r as n,l as r,s as t}; \ No newline at end of file diff --git a/public/build/assets/password-input-HSktczCa.js b/public/build/assets/password-input-uWAWfR_8.js similarity index 93% rename from public/build/assets/password-input-HSktczCa.js rename to public/build/assets/password-input-uWAWfR_8.js index de3f226..c5010a5 100644 --- a/public/build/assets/password-input-HSktczCa.js +++ b/public/build/assets/password-input-uWAWfR_8.js @@ -1 +1 @@ -import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i,t as a}from"./createLucideIcon-wUA1TGAT.js";import{x as o}from"./app-NKzAktB4.js";var s=a(`EyeOff`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),c=a(`Eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),l=e(),u=r(t(),1),d=n();function f(e){let t=(0,l.c)(20),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,ref:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let[f,m]=(0,u.useState)(!1),h=f?`text`:`password`,g;t[4]===n?g=t[5]:(g=i(`pr-10`,n),t[4]=n,t[5]=g);let _;t[6]!==r||t[7]!==a||t[8]!==h||t[9]!==g?(_=(0,d.jsx)(o,{type:h,className:g,ref:a,...r}),t[6]=r,t[7]=a,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>m(p),t[11]=v):v=t[11];let y=f?`Hide password`:`Show password`,b;t[12]===f?b=t[13]:(b=f?(0,d.jsx)(s,{className:`size-4`}):(0,d.jsx)(c,{className:`size-4`}),t[12]=f,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,d.jsx)(`button`,{type:`button`,onClick:v,className:`absolute inset-y-0 right-0 flex items-center rounded-r-md px-3 text-muted-foreground hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:outline-none`,"aria-label":y,tabIndex:-1,children:b}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;return t[17]!==_||t[18]!==x?(S=(0,d.jsxs)(`div`,{className:`relative`,children:[_,x]}),t[17]=_,t[18]=x,t[19]=S):S=t[19],S}function p(e){return!e}export{c as n,s as r,f as t}; \ No newline at end of file +import{i as e,m as t,r as n,x as r}from"./wayfinder-DGNmxDkm.js";import{n as i,t as a}from"./createLucideIcon-BN-jDSEO.js";import{T as o}from"./app-0l60ScAC.js";var s=a(`EyeOff`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),c=a(`Eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),l=e(),u=r(t(),1),d=n();function f(e){let t=(0,l.c)(20),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,ref:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let[f,m]=(0,u.useState)(!1),h=f?`text`:`password`,g;t[4]===n?g=t[5]:(g=i(`pr-10`,n),t[4]=n,t[5]=g);let _;t[6]!==r||t[7]!==a||t[8]!==h||t[9]!==g?(_=(0,d.jsx)(o,{type:h,className:g,ref:a,...r}),t[6]=r,t[7]=a,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>m(p),t[11]=v):v=t[11];let y=f?`Hide password`:`Show password`,b;t[12]===f?b=t[13]:(b=f?(0,d.jsx)(s,{className:`size-4`}):(0,d.jsx)(c,{className:`size-4`}),t[12]=f,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,d.jsx)(`button`,{type:`button`,onClick:v,className:`absolute inset-y-0 right-0 flex items-center rounded-r-md px-3 text-muted-foreground hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:outline-none`,"aria-label":y,tabIndex:-1,children:b}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;return t[17]!==_||t[18]!==x?(S=(0,d.jsxs)(`div`,{className:`relative`,children:[_,x]}),t[17]=_,t[18]=x,t[19]=S):S=t[19],S}function p(e){return!e}export{c as n,s as r,f as t}; \ No newline at end of file diff --git a/public/build/assets/placeholder-pattern-nTsSuoW-.js b/public/build/assets/placeholder-pattern-B0M5WUpE.js similarity index 100% rename from public/build/assets/placeholder-pattern-nTsSuoW-.js rename to public/build/assets/placeholder-pattern-B0M5WUpE.js diff --git a/public/build/assets/profile-z87RwChz.js b/public/build/assets/profile-BEn4K4cJ.js similarity index 82% rename from public/build/assets/profile-z87RwChz.js rename to public/build/assets/profile-BEn4K4cJ.js index 36f34dc..44596ed 100644 --- a/public/build/assets/profile-z87RwChz.js +++ b/public/build/assets/profile-BEn4K4cJ.js @@ -1 +1 @@ -import{a as e,c as t,f as n,i as r,m as i,n as a,o,r as s,x as c}from"./wayfinder-DGNmxDkm.js";import{t as l}from"./button-B6E1T0qj.js";import{t as u}from"./password-input-HSktczCa.js";import{i as d,r as f,x as p}from"./app-NKzAktB4.js";import{a as m,c as h,i as g,n as _,r as v,s as y,t as b}from"./dialog-DDCot1iY.js";import{t as x}from"./input-error-CXzYDMKp.js";import{t as S}from"./label-DR9FZUM0.js";import{t as C}from"./verification-0-44BVPj.js";var w=r(),T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/settings/profile`},T.url=e=>T.definition.url+a(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({action:T.url(e),method:`get`});E.get=e=>({action:T.url(e),method:`get`}),E.head=e=>({action:T.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),T.form=E;var D=e=>({url:D.url(e),method:`patch`});D.definition={methods:[`patch`],url:`/settings/profile`},D.url=e=>D.definition.url+a(e),D.patch=e=>({url:D.url(e),method:`patch`});var O=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});O.patch=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),D.form=O;var k=e=>({url:k.url(e),method:`delete`});k.definition={methods:[`delete`],url:`/settings/profile`},k.url=e=>k.definition.url+a(e),k.delete=e=>({url:k.url(e),method:`delete`});var A=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});A.delete=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),k.form=A;var j={edit:T,update:D,destroy:k},M=c(i(),1),N=s();function P(){let t=(0,w.c)(9),n=(0,M.useRef)(null),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,N.jsx)(f,{variant:`small`,title:`Delete account`,description:`Delete your account and all of its resources`}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,N.jsxs)(`div`,{className:`relative space-y-0.5 text-red-600 dark:text-red-100`,children:[(0,N.jsx)(`p`,{className:`font-medium`,children:`Warning`}),(0,N.jsx)(`p`,{className:`text-sm`,children:`Please proceed with caution, this cannot be undone.`})]}),t[1]=i):i=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,N.jsx)(h,{asChild:!0,children:(0,N.jsx)(l,{variant:`destructive`,"data-test":`delete-user-button`,children:`Delete account`})}),t[2]=a):a=t[2];let o,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,N.jsx)(y,{children:`Are you sure you want to delete your account?`}),s=(0,N.jsx)(g,{children:`Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.`}),t[3]=o,t[4]=s):(o=t[3],s=t[4]);let c,d,p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=j.destroy.form(),d={preserveScroll:!0},p=()=>n.current?.focus(),t[5]=c,t[6]=d,t[7]=p):(c=t[5],d=t[6],p=t[7]);let C;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[r,(0,N.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10`,children:[i,(0,N.jsxs)(b,{children:[a,(0,N.jsxs)(v,{children:[o,s,(0,N.jsx)(e,{...c,options:d,onError:p,resetOnSuccess:!0,className:`space-y-6`,children:e=>{let{resetAndClearErrors:t,processing:r,errors:i}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`password`,className:`sr-only`,children:`Password`}),(0,N.jsx)(u,{id:`password`,name:`password`,ref:n,placeholder:`Password`,autoComplete:`current-password`}),(0,N.jsx)(x,{message:i.password})]}),(0,N.jsxs)(m,{className:`gap-2`,children:[(0,N.jsx)(_,{asChild:!0,children:(0,N.jsx)(l,{variant:`secondary`,onClick:()=>t(),children:`Cancel`})}),(0,N.jsx)(l,{variant:`destructive`,disabled:r,asChild:!0,children:(0,N.jsx)(`button`,{type:`submit`,"data-test":`confirm-delete-user-button`,children:`Delete account`})})]})]})}})]})]})]})]}),t[8]=C):C=t[8],C}function F(r){let i=(0,w.c)(14),{mustVerifyEmail:a,status:s}=r,{auth:c}=n().props,u,d;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,N.jsx)(o,{title:`Profile settings`}),d=(0,N.jsx)(`h1`,{className:`sr-only`,children:`Profile settings`}),i[0]=u,i[1]=d):(u=i[0],d=i[1]);let m;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(f,{variant:`small`,title:`Profile information`,description:`Update your name and email address`}),i[2]=m):m=i[2];let h,g;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=j.update.form(),g={preserveScroll:!0},i[3]=h,i[4]=g):(h=i[3],g=i[4]);let _;i[5]!==c.user.email||i[6]!==c.user.email_verified_at||i[7]!==c.user.name||i[8]!==a||i[9]!==s?(_=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[m,(0,N.jsx)(e,{...h,options:g,className:`space-y-6`,children:e=>{let{processing:n,errors:r}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`name`,children:`Name`}),(0,N.jsx)(p,{id:`name`,className:`mt-1 block w-full`,defaultValue:c.user.name,name:`name`,required:!0,autoComplete:`name`,placeholder:`Full name`}),(0,N.jsx)(x,{className:`mt-2`,message:r.name})]}),(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`email`,children:`Email address`}),(0,N.jsx)(p,{id:`email`,type:`email`,className:`mt-1 block w-full`,defaultValue:c.user.email,name:`email`,required:!0,autoComplete:`username`,placeholder:`Email address`}),(0,N.jsx)(x,{className:`mt-2`,message:r.email})]}),a&&c.user.email_verified_at===null&&(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:[`Your email address is unverified.`,` `,(0,N.jsx)(t,{href:C(),as:`button`,className:`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,children:`Click here to resend the verification email.`})]}),s===`verification-link-sent`&&(0,N.jsx)(`div`,{className:`mt-2 text-sm font-medium text-green-600`,children:`A new verification link has been sent to your email address.`})]}),(0,N.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,N.jsx)(l,{disabled:n,"data-test":`update-profile-button`,children:`Save`})})]})}})]}),i[5]=c.user.email,i[6]=c.user.email_verified_at,i[7]=c.user.name,i[8]=a,i[9]=s,i[10]=_):_=i[10];let v;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(P,{}),i[11]=v):v=i[11];let y;return i[12]===_?y=i[13]:(y=(0,N.jsxs)(N.Fragment,{children:[u,d,_,v]}),i[12]=_,i[13]=y),y}F.layout={breadcrumbs:[{title:`Profile settings`,href:d()}]};export{F as default}; \ No newline at end of file +import{a as e,c as t,f as n,i as r,m as i,n as a,o,r as s,x as c}from"./wayfinder-DGNmxDkm.js";import{t as l}from"./button-CJIRvoa4.js";import{t as u}from"./password-input-uWAWfR_8.js";import{T as d,i as f,r as p}from"./app-0l60ScAC.js";import{a as m,c as h,i as g,n as _,r as v,s as y,t as b}from"./dialog-D0ulBexn.js";import{t as x}from"./input-error-B7LHFA6O.js";import{t as S}from"./label-shgfY21t.js";import{t as C}from"./verification-DWj8pCN5.js";var w=r(),T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/settings/profile`},T.url=e=>T.definition.url+a(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({action:T.url(e),method:`get`});E.get=e=>({action:T.url(e),method:`get`}),E.head=e=>({action:T.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),T.form=E;var D=e=>({url:D.url(e),method:`patch`});D.definition={methods:[`patch`],url:`/settings/profile`},D.url=e=>D.definition.url+a(e),D.patch=e=>({url:D.url(e),method:`patch`});var O=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});O.patch=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),D.form=O;var k=e=>({url:k.url(e),method:`delete`});k.definition={methods:[`delete`],url:`/settings/profile`},k.url=e=>k.definition.url+a(e),k.delete=e=>({url:k.url(e),method:`delete`});var A=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});A.delete=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),k.form=A;var j={edit:T,update:D,destroy:k},M=c(i(),1),N=s();function P(){let t=(0,w.c)(9),n=(0,M.useRef)(null),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,N.jsx)(p,{variant:`small`,title:`Delete account`,description:`Delete your account and all of its resources`}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,N.jsxs)(`div`,{className:`relative space-y-0.5 text-red-600 dark:text-red-100`,children:[(0,N.jsx)(`p`,{className:`font-medium`,children:`Warning`}),(0,N.jsx)(`p`,{className:`text-sm`,children:`Please proceed with caution, this cannot be undone.`})]}),t[1]=i):i=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,N.jsx)(h,{asChild:!0,children:(0,N.jsx)(l,{variant:`destructive`,"data-test":`delete-user-button`,children:`Delete account`})}),t[2]=a):a=t[2];let o,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,N.jsx)(y,{children:`Are you sure you want to delete your account?`}),s=(0,N.jsx)(g,{children:`Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.`}),t[3]=o,t[4]=s):(o=t[3],s=t[4]);let c,d,f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=j.destroy.form(),d={preserveScroll:!0},f=()=>n.current?.focus(),t[5]=c,t[6]=d,t[7]=f):(c=t[5],d=t[6],f=t[7]);let C;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[r,(0,N.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10`,children:[i,(0,N.jsxs)(b,{children:[a,(0,N.jsxs)(v,{children:[o,s,(0,N.jsx)(e,{...c,options:d,onError:f,resetOnSuccess:!0,className:`space-y-6`,children:e=>{let{resetAndClearErrors:t,processing:r,errors:i}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`password`,className:`sr-only`,children:`Password`}),(0,N.jsx)(u,{id:`password`,name:`password`,ref:n,placeholder:`Password`,autoComplete:`current-password`}),(0,N.jsx)(x,{message:i.password})]}),(0,N.jsxs)(m,{className:`gap-2`,children:[(0,N.jsx)(_,{asChild:!0,children:(0,N.jsx)(l,{variant:`secondary`,onClick:()=>t(),children:`Cancel`})}),(0,N.jsx)(l,{variant:`destructive`,disabled:r,asChild:!0,children:(0,N.jsx)(`button`,{type:`submit`,"data-test":`confirm-delete-user-button`,children:`Delete account`})})]})]})}})]})]})]})]}),t[8]=C):C=t[8],C}function F(r){let i=(0,w.c)(14),{mustVerifyEmail:a,status:s}=r,{auth:c}=n().props,u,f;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,N.jsx)(o,{title:`Profile settings`}),f=(0,N.jsx)(`h1`,{className:`sr-only`,children:`Profile settings`}),i[0]=u,i[1]=f):(u=i[0],f=i[1]);let m;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(p,{variant:`small`,title:`Profile information`,description:`Update your name and email address`}),i[2]=m):m=i[2];let h,g;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=j.update.form(),g={preserveScroll:!0},i[3]=h,i[4]=g):(h=i[3],g=i[4]);let _;i[5]!==c.user.email||i[6]!==c.user.email_verified_at||i[7]!==c.user.name||i[8]!==a||i[9]!==s?(_=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[m,(0,N.jsx)(e,{...h,options:g,className:`space-y-6`,children:e=>{let{processing:n,errors:r}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`name`,children:`Name`}),(0,N.jsx)(d,{id:`name`,className:`mt-1 block w-full`,defaultValue:c.user.name,name:`name`,required:!0,autoComplete:`name`,placeholder:`Full name`}),(0,N.jsx)(x,{className:`mt-2`,message:r.name})]}),(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`email`,children:`Email address`}),(0,N.jsx)(d,{id:`email`,type:`email`,className:`mt-1 block w-full`,defaultValue:c.user.email,name:`email`,required:!0,autoComplete:`username`,placeholder:`Email address`}),(0,N.jsx)(x,{className:`mt-2`,message:r.email})]}),a&&c.user.email_verified_at===null&&(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:[`Your email address is unverified.`,` `,(0,N.jsx)(t,{href:C(),as:`button`,className:`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,children:`Click here to resend the verification email.`})]}),s===`verification-link-sent`&&(0,N.jsx)(`div`,{className:`mt-2 text-sm font-medium text-green-600`,children:`A new verification link has been sent to your email address.`})]}),(0,N.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,N.jsx)(l,{disabled:n,"data-test":`update-profile-button`,children:`Save`})})]})}})]}),i[5]=c.user.email,i[6]=c.user.email_verified_at,i[7]=c.user.name,i[8]=a,i[9]=s,i[10]=_):_=i[10];let v;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(P,{}),i[11]=v):v=i[11];let y;return i[12]===_?y=i[13]:(y=(0,N.jsxs)(N.Fragment,{children:[u,f,_,v]}),i[12]=_,i[13]=y),y}F.layout={breadcrumbs:[{title:`Profile settings`,href:f()}]};export{F as default}; \ No newline at end of file diff --git a/public/build/assets/register-2UCvBdJw.js b/public/build/assets/register-3WIwjGeo.js similarity index 75% rename from public/build/assets/register-2UCvBdJw.js rename to public/build/assets/register-3WIwjGeo.js index 8ee3509..d9f7c60 100644 --- a/public/build/assets/register-2UCvBdJw.js +++ b/public/build/assets/register-3WIwjGeo.js @@ -1 +1 @@ -import{a as e,i as t,n,o as r,r as i}from"./wayfinder-DGNmxDkm.js";import{t as a}from"./button-B6E1T0qj.js";import{n as o,r as s,t as c}from"./socialite-CXgr0CAW.js";import{t as l}from"./password-input-HSktczCa.js";import{t as u}from"./github-DdPrsZVB.js";import{b as d,s as f,x as p}from"./app-NKzAktB4.js";import{t as m}from"./input-error-CXzYDMKp.js";import{t as h}from"./label-DR9FZUM0.js";import{t as g}from"./spinner-DVMDXl0V.js";import{t as _}from"./text-link-B-rnxz_C.js";var v=t(),y=e=>({url:y.url(e),method:`post`});y.definition={methods:[`post`],url:`/register`},y.url=e=>y.definition.url+n(e),y.post=e=>({url:y.url(e),method:`post`});var b=e=>({action:y.url(e),method:`post`});b.post=e=>({action:y.url(e),method:`post`}),y.form=b,Object.assign(y,y);var x=i();function S(){let t=(0,v.c)(6),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,x.jsx)(r,{title:`Register`}),t[0]=n):n=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,x.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:c.url(`github`),children:[(0,x.jsx)(o,{iconNode:u,className:`mr-2 h-4 w-4`}),`Github`]})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,x.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[i,(0,x.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:c.url(`google`),children:[(0,x.jsx)(o,{iconNode:s,className:`mr-2 h-4 w-4`}),`Google`]})})]}),t[2]=l):l=t[2];let f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,x.jsx)(d,{})}),t[3]=f):f=t[3];let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,x.jsxs)(`div`,{className:`relative`,children:[f,(0,x.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,x.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),t[4]=p):p=t[4];let m;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsxs)(x.Fragment,{children:[n,(0,x.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[l,p,(0,x.jsx)(e,{...y.form(),resetOnSuccess:[`password`,`password_confirmation`],disableWhileProcessing:!0,className:`flex flex-col gap-6`,children:C})]})]}),t[5]=m):m=t[5],m}function C(e){let{processing:t,errors:n}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`grid gap-6`,children:[(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`name`,children:`Name`}),(0,x.jsx)(p,{id:`name`,type:`text`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`name`,name:`name`,placeholder:`Full name`}),(0,x.jsx)(m,{message:n.name,className:`mt-2`})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`email`,children:`Email address`}),(0,x.jsx)(p,{id:`email`,type:`email`,required:!0,tabIndex:2,autoComplete:`email`,name:`email`,placeholder:`email@example.com`}),(0,x.jsx)(m,{message:n.email})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password`,children:`Password`}),(0,x.jsx)(l,{id:`password`,required:!0,tabIndex:3,autoComplete:`new-password`,name:`password`,placeholder:`Password`}),(0,x.jsx)(m,{message:n.password})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,x.jsx)(l,{id:`password_confirmation`,required:!0,tabIndex:4,autoComplete:`new-password`,name:`password_confirmation`,placeholder:`Confirm password`}),(0,x.jsx)(m,{message:n.password_confirmation})]}),(0,x.jsxs)(a,{type:`submit`,className:`mt-2 w-full`,tabIndex:5,"data-test":`register-user-button`,children:[t&&(0,x.jsx)(g,{}),`Create account`]})]}),(0,x.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Already have an account?`,` `,(0,x.jsx)(_,{href:f(),tabIndex:6,children:`Log in`})]})]})}S.layout={title:`Create an account`,description:`Enter your details below to create your account`};export{S as default}; \ No newline at end of file +import{a as e,i as t,n,o as r,r as i}from"./wayfinder-DGNmxDkm.js";import{t as a}from"./button-CJIRvoa4.js";import{n as o,r as s,t as c}from"./socialite-BKXn5KQb.js";import{t as l}from"./password-input-uWAWfR_8.js";import{t as u}from"./github-D7dT9N2Y.js";import{T as d,s as f,w as p}from"./app-0l60ScAC.js";import{t as m}from"./input-error-B7LHFA6O.js";import{t as h}from"./label-shgfY21t.js";import{t as g}from"./spinner-CO4WEyCd.js";import{t as _}from"./text-link-UmmgvXHR.js";var v=t(),y=e=>({url:y.url(e),method:`post`});y.definition={methods:[`post`],url:`/register`},y.url=e=>y.definition.url+n(e),y.post=e=>({url:y.url(e),method:`post`});var b=e=>({action:y.url(e),method:`post`});b.post=e=>({action:y.url(e),method:`post`}),y.form=b,Object.assign(y,y);var x=i();function S(){let t=(0,v.c)(6),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,x.jsx)(r,{title:`Register`}),t[0]=n):n=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,x.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:c.url(`github`),children:[(0,x.jsx)(o,{iconNode:u,className:`mr-2 h-4 w-4`}),`Github`]})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,x.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[i,(0,x.jsx)(a,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:c.url(`google`),children:[(0,x.jsx)(o,{iconNode:s,className:`mr-2 h-4 w-4`}),`Google`]})})]}),t[2]=l):l=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,x.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,x.jsx)(p,{})}),t[3]=d):d=t[3];let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsxs)(`div`,{className:`relative`,children:[d,(0,x.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,x.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),t[4]=f):f=t[4];let m;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsxs)(x.Fragment,{children:[n,(0,x.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[l,f,(0,x.jsx)(e,{...y.form(),resetOnSuccess:[`password`,`password_confirmation`],disableWhileProcessing:!0,className:`flex flex-col gap-6`,children:C})]})]}),t[5]=m):m=t[5],m}function C(e){let{processing:t,errors:n}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`grid gap-6`,children:[(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`name`,children:`Name`}),(0,x.jsx)(d,{id:`name`,type:`text`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`name`,name:`name`,placeholder:`Full name`}),(0,x.jsx)(m,{message:n.name,className:`mt-2`})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`email`,children:`Email address`}),(0,x.jsx)(d,{id:`email`,type:`email`,required:!0,tabIndex:2,autoComplete:`email`,name:`email`,placeholder:`email@example.com`}),(0,x.jsx)(m,{message:n.email})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password`,children:`Password`}),(0,x.jsx)(l,{id:`password`,required:!0,tabIndex:3,autoComplete:`new-password`,name:`password`,placeholder:`Password`}),(0,x.jsx)(m,{message:n.password})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,x.jsx)(l,{id:`password_confirmation`,required:!0,tabIndex:4,autoComplete:`new-password`,name:`password_confirmation`,placeholder:`Confirm password`}),(0,x.jsx)(m,{message:n.password_confirmation})]}),(0,x.jsxs)(a,{type:`submit`,className:`mt-2 w-full`,tabIndex:5,"data-test":`register-user-button`,children:[t&&(0,x.jsx)(g,{}),`Create account`]})]}),(0,x.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Already have an account?`,` `,(0,x.jsx)(_,{href:f(),tabIndex:6,children:`Log in`})]})]})}S.layout={title:`Create an account`,description:`Enter your details below to create your account`};export{S as default}; \ No newline at end of file diff --git a/public/build/assets/registry-installer-iv12Azo6.js b/public/build/assets/registry-installer-BbAk2A5r.js similarity index 99% rename from public/build/assets/registry-installer-iv12Azo6.js rename to public/build/assets/registry-installer-BbAk2A5r.js index 600ce78..d8c5544 100644 --- a/public/build/assets/registry-installer-iv12Azo6.js +++ b/public/build/assets/registry-installer-BbAk2A5r.js @@ -1,2 +1,2 @@ -import{_ as e,f as t,i as n,m as r,r as i,x as a}from"./wayfinder-DGNmxDkm.js";import{t as o}from"./button-B6E1T0qj.js";import{n as s,t as c}from"./createLucideIcon-wUA1TGAT.js";import{t as l}from"./check-JLGZ6ERA.js";import{t as u}from"./copy-DipuxFuX.js";import{c as d,l as f,o as p,s as m}from"./main-layout-Bjl0T2Wa.js";import{N as h}from"./app-NKzAktB4.js";var g=c(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),_=e(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+``};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(kd.reach&&(d.reach=P);var F=S.prev;M&&(F=l(t,F,M),C+=M.length),u(t,F,T);var I=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,F,I),N&&l(t,S,N),T>1){var L={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(` +import{_ as e,f as t,i as n,m as r,r as i,x as a}from"./wayfinder-DGNmxDkm.js";import{t as o}from"./button-CJIRvoa4.js";import{n as s,t as c}from"./createLucideIcon-BN-jDSEO.js";import{t as l}from"./check-CWekFaHD.js";import{t as u}from"./copy-DVuxs_qN.js";import{c as d,l as f,o as p,s as m}from"./main-layout-BDfUDiNw.js";import{A as h}from"./app-0l60ScAC.js";var g=c(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),_=e(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+``};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(kd.reach&&(d.reach=P);var F=S.prev;M&&(F=l(t,F,M),C+=M.length),u(t,F,T);var I=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,F,I),N&&l(t,S,N),T>1){var L={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(` `),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})),v=a(r(),1),y=n(),b=i(),x=a(_(),1);Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o=a.length);c++){var l=s[c];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=n.tokenStack[u],f=typeof l==`string`?l:l.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),`language-`+r,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,o([h])),v.push(g),_&&v.push.apply(v,o([_])),typeof l==`string`?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}o(n.tokens)}}})})(Prism),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(Prism);var S={js:`javascript`,ts:`typescript`,css:`css`,php:`php`,markup:`markup`,sh:`bash`,shell:`bash`,html:`markup`};function C(e,t){let n=(0,y.c)(9),r=t===void 0?`bash`:t,i;n[0]===r?i=n[1]:(i=S[r.toLowerCase()]||r.toLowerCase(),n[0]=r,n[1]=i);let a=i,o=x.default.languages[a],s;n[2]!==e||n[3]!==o||n[4]!==a?(s=o?x.default.highlight(e,o,a):e,n[2]=e,n[3]=o,n[4]=a,n[5]=s):s=n[5];let c=s,l;return n[6]!==c||n[7]!==a?(l={normalizedLanguage:a,highlightedCode:c},n[6]=c,n[7]=a,n[8]=l):l=n[8],l}function w(){return{copy:(0,v.useCallback)(async e=>{try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0;let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.top=`-9999px`,t.style.left=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}},[])}}var T=e=>!e.isLayoutDirty&&e.willUpdate(!1);function E(){let e=new Set,t=new WeakMap,n=()=>e.forEach(T);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var D=(0,v.createContext)(null);function O(){let e=(0,v.useRef)(!1);return d(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function k(){let e=O(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,v.useCallback)(()=>m.postRender(r),[r]),t]}var A=e=>e===!0,j=e=>A(e===!0)||e===`id`,M=({children:e,id:t,inherit:n=!0})=>{let r=(0,v.useContext)(f),i=(0,v.useContext)(D),[a,o]=k(),s=(0,v.useRef)(null),c=r.id||i;s.current===null&&(j(n)&&c&&(t=t?c+`-`+t:c),s.current={id:t,group:A(n)&&r.group||E()});let l=(0,v.useMemo)(()=>({...s.current,forceRender:a}),[o]);return(0,b.jsx)(f.Provider,{value:l,children:e})};function N(e){let t=(0,y.c)(60),n,r,i,a,o,c,l,u,d,f,m,h,g;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],m=t[11],h=t[12],g=t[13]):({tabs:m,value:g,defaultValue:a,onChange:l,className:r,tabsClassName:h,tabClassName:f,activeTabClassName:n,inactiveTabClassName:o,indicatorClassName:c,contentClassName:i,showContent:d,...u}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=m,t[12]=h,t[13]=g);let _=d===void 0?!1:d,x=(0,v.useId)(),S;t[14]===m?S=t[15]:(S=e=>{if(!e)return 0;let t=m.findIndex(t=>t.id===e);return t>=0?t:0},t[14]=m,t[15]=S);let C=S,w;t[16]!==a||t[17]!==C?(w=()=>C(a),t[16]=a,t[17]=C,t[18]=w):w=t[18];let[T,E]=(0,v.useState)(w),D=g!==void 0,O=D?C(g):T,k=m[O]??m[0],A;t[19]!==D||t[20]!==l||t[21]!==m?(A=e=>{D||E(e),l?.(m[e].id)},t[19]=D,t[20]=l,t[21]=m,t[22]=A):A=t[22];let j=A,N;t[23]===r?N=t[24]:(N=s(`w-full`,r),t[23]=r,t[24]=N);let P;t[25]===h?P=t[26]:(P=s(`flex items-center gap-1 rounded-md border border-border bg-background p-1`,h),t[25]=h,t[26]=P);let F;if(t[27]!==n||t[28]!==O||t[29]!==j||t[30]!==x||t[31]!==o||t[32]!==c||t[33]!==f||t[34]!==m){let e;t[36]!==n||t[37]!==O||t[38]!==j||t[39]!==x||t[40]!==o||t[41]!==c||t[42]!==f?(e=(e,t)=>(0,b.jsxs)(`button`,{role:`tab`,"aria-selected":O===t,"aria-controls":`${x}-panel-${e.id}`,id:`${x}-tab-${e.id}`,onClick:()=>j(t),className:s(`relative rounded-sm px-4 py-2 text-xs font-medium transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-none`,f,O===t?s(`text-foreground`,n):s(`text-muted-foreground hover:text-foreground`,o)),children:[O===t&&(0,b.jsx)(p.div,{layoutId:`indicator`,className:s(`absolute inset-0 rounded-sm bg-muted`,c),transition:{type:`spring`,stiffness:500,damping:30}}),(0,b.jsx)(`span`,{className:`relative z-10`,children:e.label})]},e.id),t[36]=n,t[37]=O,t[38]=j,t[39]=x,t[40]=o,t[41]=c,t[42]=f,t[43]=e):e=t[43],F=m.map(e),t[27]=n,t[28]=O,t[29]=j,t[30]=x,t[31]=o,t[32]=c,t[33]=f,t[34]=m,t[35]=F}else F=t[35];let I;t[44]!==P||t[45]!==F?(I=(0,b.jsx)(`div`,{role:`tablist`,className:P,children:F}),t[44]=P,t[45]=F,t[46]=I):I=t[46];let L;t[47]!==x||t[48]!==I?(L=(0,b.jsx)(M,{id:x,children:I}),t[47]=x,t[48]=I,t[49]=L):L=t[49];let R;t[50]!==k||t[51]!==i||t[52]!==x||t[53]!==_?(R=_&&k?.content&&(0,b.jsx)(`div`,{role:`tabpanel`,id:`${x}-panel-${k.id}`,"aria-labelledby":`${x}-tab-${k.id}`,className:s(`mt-4`,i),children:(0,b.jsx)(p.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:k.content},k.id)}),t[50]=k,t[51]=i,t[52]=x,t[53]=_,t[54]=R):R=t[54];let z;return t[55]!==u||t[56]!==R||t[57]!==N||t[58]!==L?(z=(0,b.jsxs)(`div`,{className:N,...u,children:[L,R]}),t[55]=u,t[56]=R,t[57]=N,t[58]=L,t[59]=z):z=t[59],z}var P=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},F=(e=>e?P(e):P),I=e=>e;function L(e,t=I){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),v.useCallback(()=>t(e.getInitialState()),[e,t]));return v.useDebugValue(n),n}var R=e=>{let t=F(e),n=e=>L(t,e);return Object.assign(n,t),n},z=(e=>e?R(e):R);function B(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var V=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return V(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return V(t)(e)}}}},H=z()(((e,t)=>(n,r,i)=>{let a={storage:B(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return V(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e=>({selectedManager:`npm`,selectedRegistry:`glow-conic`,setSelectedManager:t=>e({selectedManager:t}),setSelectedRegistry:t=>e({selectedRegistry:t})}),{name:`package-manager-storage`})),U=[`npm`,`pnpm`,`yarn`,`bun`];function W(e){let t=(0,y.c)(44),{codes:n,className:r}=e,{selectedManager:i,setSelectedManager:a}=H(),c;t[0]===n?c=t[1]:(c=e=>n[e],t[0]=n,t[1]=c);let d=U.filter(c),f=n[i]??``,{highlightedCode:p}=C(f,`bash`),{copy:m}=w(),[_,x]=(0,v.useState)(!1),S,T;t[2]===_?(S=t[3],T=t[4]):(S=()=>{if(_){let e=setTimeout(()=>{x(!1)},2e3);return()=>clearTimeout(e)}},T=[_],t[2]=_,t[3]=S,t[4]=T),(0,v.useEffect)(S,T);let E;t[5]!==f||t[6]!==m||t[7]!==i?(E=async()=>{await m(f),h.success(`${i} command copied to clipboard!`),x(!0)},t[5]=f,t[6]=m,t[7]=i,t[8]=E):E=t[8];let D=E,O;t[9]===r?O=t[10]:(O=s(`group/package-manager relative min-w-0 rounded-md border`,r),t[9]=r,t[10]=O);let k;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,b.jsx)(g,{className:`size-5 text-muted-foreground`}),t[11]=k):k=t[11];let A=N,j;t[12]===a?j=t[13]:(j=e=>a(e),t[12]=a,t[13]=j);let M=d.map(G),P;t[14]!==A||t[15]!==i||t[16]!==M||t[17]!==j?(P=(0,b.jsx)(A,{value:i,onChange:j,tabs:M,tabsClassName:`p-1 bg-primary/10`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `}),t[14]=A,t[15]=i,t[16]=M,t[17]=j,t[18]=P):P=t[18];let F;t[19]!==P||t[20]!==k?(F=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k,P]}),t[19]=P,t[20]=k,t[21]=F):F=t[21];let I=_?`opacity-100`:`pointer-events-none opacity-0`,L;t[22]===I?L=t[23]:(L=s(`text-xs text-green-500 transition-opacity duration-200`,I),t[22]=I,t[23]=L);let R;t[24]===L?R=t[25]:(R=(0,b.jsx)(`span`,{className:L,children:`Copied`}),t[24]=L,t[25]=R);let z;t[26]===_?z=t[27]:(z=_?(0,b.jsx)(l,{className:`size-4`}):(0,b.jsx)(u,{className:`size-4`}),t[26]=_,t[27]=z);let B;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,b.jsx)(`span`,{className:`sr-only`,children:`Copy`}),t[28]=B):B=t[28];let V;t[29]!==D||t[30]!==z?(V=(0,b.jsxs)(o,{variant:`ghost`,size:`icon`,onClick:D,className:`transition-opacity hover:opacity-100`,children:[z,B]}),t[29]=D,t[30]=z,t[31]=V):V=t[31];let W;t[32]!==R||t[33]!==V?(W=(0,b.jsxs)(`div`,{className:`flex items-center gap-1`,children:[R,V]}),t[32]=R,t[33]=V,t[34]=W):W=t[34];let K;t[35]!==F||t[36]!==W?(K=(0,b.jsxs)(`div`,{className:`flex items-center justify-between border-b bg-muted/50 px-3 py-2`,children:[F,W]}),t[35]=F,t[36]=W,t[37]=K):K=t[37];let q;t[38]===p?q=t[39]:(q=(0,b.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,b.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,b.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,b.jsx)(`span`,{dangerouslySetInnerHTML:{__html:p}})})})}),t[38]=p,t[39]=q);let J;return t[40]!==K||t[41]!==q||t[42]!==O?(J=(0,b.jsxs)(`div`,{className:O,children:[K,q]}),t[40]=K,t[41]=q,t[42]=O,t[43]=J):J=t[43],J}function G(e){return{id:e,label:e}}function K(e){let n=(0,y.c)(10),{code:r,className:i}=e,{url:a}=t().props,o;n[0]===i?o=n[1]:(o=s(`my-4`,i),n[0]=i,n[1]=o);let c=`bunx --bun shadcn@latest add ${a}/r/${r}.json`,l=`npx shadcn@latest add ${a}/r/${r}.json`,u=`pnpm dlx shadcn@latest add ${a}/r/${r}.json`,d=`yarn dlx shadcn@latest add ${a}/r/${r}.json`,f;n[2]!==c||n[3]!==l||n[4]!==u||n[5]!==d?(f={bun:c,npm:l,pnpm:u,yarn:d},n[2]=c,n[3]=l,n[4]=u,n[5]=d,n[6]=f):f=n[6];let p;return n[7]!==o||n[8]!==f?(p=(0,b.jsx)(W,{className:o,codes:f}),n[7]=o,n[8]=f,n[9]=p):p=n[9],p}K.displayName=`RegistryInstaller`;export{C as a,w as i,H as n,g as o,N as r,K as t}; \ No newline at end of file diff --git a/public/build/assets/reset-password-BLtlCvFc.js b/public/build/assets/reset-password-DA1t4sje.js similarity index 85% rename from public/build/assets/reset-password-BLtlCvFc.js rename to public/build/assets/reset-password-DA1t4sje.js index 3bef1c0..a884b9e 100644 --- a/public/build/assets/reset-password-BLtlCvFc.js +++ b/public/build/assets/reset-password-DA1t4sje.js @@ -1 +1 @@ -import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-B6E1T0qj.js";import{t as a}from"./password-input-HSktczCa.js";import{x as o}from"./app-NKzAktB4.js";import{t as s}from"./input-error-CXzYDMKp.js";import{t as c}from"./label-DR9FZUM0.js";import{t as l}from"./spinner-DVMDXl0V.js";import{r as u}from"./password-DgvYQGdP.js";var d=t(),f=r();function p(t){let r=(0,d.c)(11),{token:p,email:m}=t,h;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,f.jsx)(n,{title:`Reset password`}),r[0]=h):h=r[0];let g;r[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=u.form(),r[1]=g):g=r[1];let _;r[2]!==m||r[3]!==p?(_=e=>({...e,token:p,email:m}),r[2]=m,r[3]=p,r[4]=_):_=r[4];let v;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`password`,`password_confirmation`],r[5]=v):v=r[5];let y;r[6]===m?y=r[7]:(y=e=>{let{processing:t,errors:n}=e;return(0,f.jsxs)(`div`,{className:`grid gap-6`,children:[(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`email`,children:`Email`}),(0,f.jsx)(o,{id:`email`,type:`email`,name:`email`,autoComplete:`email`,value:m,className:`mt-1 block w-full`,readOnly:!0}),(0,f.jsx)(s,{message:n.email,className:`mt-2`})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,f.jsx)(a,{id:`password`,name:`password`,autoComplete:`new-password`,className:`mt-1 block w-full`,autoFocus:!0,placeholder:`Password`}),(0,f.jsx)(s,{message:n.password})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,f.jsx)(a,{id:`password_confirmation`,name:`password_confirmation`,autoComplete:`new-password`,className:`mt-1 block w-full`,placeholder:`Confirm password`}),(0,f.jsx)(s,{message:n.password_confirmation,className:`mt-2`})]}),(0,f.jsxs)(i,{type:`submit`,className:`mt-4 w-full`,disabled:t,"data-test":`reset-password-button`,children:[t&&(0,f.jsx)(l,{}),`Reset password`]})]})},r[6]=m,r[7]=y);let b;return r[8]!==_||r[9]!==y?(b=(0,f.jsxs)(f.Fragment,{children:[h,(0,f.jsx)(e,{...g,transform:_,resetOnSuccess:v,children:y})]}),r[8]=_,r[9]=y,r[10]=b):b=r[10],b}p.layout={title:`Reset password`,description:`Please enter your new password below`};export{p as default}; \ No newline at end of file +import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-CJIRvoa4.js";import{t as a}from"./password-input-uWAWfR_8.js";import{T as o}from"./app-0l60ScAC.js";import{t as s}from"./input-error-B7LHFA6O.js";import{t as c}from"./label-shgfY21t.js";import{t as l}from"./spinner-CO4WEyCd.js";import{r as u}from"./password-4MQY-sCe.js";var d=t(),f=r();function p(t){let r=(0,d.c)(11),{token:p,email:m}=t,h;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,f.jsx)(n,{title:`Reset password`}),r[0]=h):h=r[0];let g;r[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=u.form(),r[1]=g):g=r[1];let _;r[2]!==m||r[3]!==p?(_=e=>({...e,token:p,email:m}),r[2]=m,r[3]=p,r[4]=_):_=r[4];let v;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`password`,`password_confirmation`],r[5]=v):v=r[5];let y;r[6]===m?y=r[7]:(y=e=>{let{processing:t,errors:n}=e;return(0,f.jsxs)(`div`,{className:`grid gap-6`,children:[(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`email`,children:`Email`}),(0,f.jsx)(o,{id:`email`,type:`email`,name:`email`,autoComplete:`email`,value:m,className:`mt-1 block w-full`,readOnly:!0}),(0,f.jsx)(s,{message:n.email,className:`mt-2`})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,f.jsx)(a,{id:`password`,name:`password`,autoComplete:`new-password`,className:`mt-1 block w-full`,autoFocus:!0,placeholder:`Password`}),(0,f.jsx)(s,{message:n.password})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,f.jsx)(a,{id:`password_confirmation`,name:`password_confirmation`,autoComplete:`new-password`,className:`mt-1 block w-full`,placeholder:`Confirm password`}),(0,f.jsx)(s,{message:n.password_confirmation,className:`mt-2`})]}),(0,f.jsxs)(i,{type:`submit`,className:`mt-4 w-full`,disabled:t,"data-test":`reset-password-button`,children:[t&&(0,f.jsx)(l,{}),`Reset password`]})]})},r[6]=m,r[7]=y);let b;return r[8]!==_||r[9]!==y?(b=(0,f.jsxs)(f.Fragment,{children:[h,(0,f.jsx)(e,{...g,transform:_,resetOnSuccess:v,children:y})]}),r[8]=_,r[9]=y,r[10]=b):b=r[10],b}p.layout={title:`Reset password`,description:`Please enter your new password below`};export{p as default}; \ No newline at end of file diff --git a/public/build/assets/security-CPBDq09s.js b/public/build/assets/security-CPBDq09s.js deleted file mode 100644 index d3e9bf0..0000000 --- a/public/build/assets/security-CPBDq09s.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,m as n,n as r,o as i,r as a,x as o}from"./wayfinder-DGNmxDkm.js";import{n as s}from"./use-appearance-QmpypXC6.js";import{n as c,t as l}from"./button-B6E1T0qj.js";import{n as u,t as d}from"./createLucideIcon-wUA1TGAT.js";import{t as f}from"./check-JLGZ6ERA.js";import{t as p}from"./copy-DipuxFuX.js";import{n as m,r as h,t as g}from"./password-input-HSktczCa.js";import{a as _,c as v,i as y,l as b,n as x,r as S,s as C,t as w,u as T}from"./use-two-factor-auth-BbF_ctUq.js";import{r as E,t as D}from"./app-NKzAktB4.js";import{a as O,i as k,n as A,r as j,t as M}from"./card-DGuRpKkV.js";import{i as N,o as P,r as F,s as I,t as L}from"./dialog-DDCot1iY.js";import{t as R}from"./input-error-CXzYDMKp.js";import{t as z}from"./label-DR9FZUM0.js";import{t as B}from"./spinner-DVMDXl0V.js";var V=d(`CircleAlert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),H=d(`LockKeyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),U=d(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),W=d(`ScanLine`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),ee=d(`ShieldCheck`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),G=o(n(),1),K=t(),q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/settings/security`},q.url=e=>q.definition.url+r(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({action:q.url(e),method:`get`});J.get=e=>({action:q.url(e),method:`get`}),J.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=J;var Y=e=>({url:Y.url(e),method:`put`});Y.definition={methods:[`put`],url:`/settings/password`},Y.url=e=>Y.definition.url+r(e),Y.put=e=>({url:Y.url(e),method:`put`});var X=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`});X.put=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Y.form=X;var te={edit:q,update:Y},Z=a(),ne=c(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80`}},defaultVariants:{variant:`default`}});function re(e){let t=(0,K.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]!==n||t[5]!==i?(a=u(ne({variant:i}),n),t[4]=n,t[5]=i,t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==a?(o=(0,Z.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function ie(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=u(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ae(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=u(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Q(e){let t=(0,K.c)(8),{errors:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(V,{}),t[0]=i):i=t[0];let a=r||`Something went wrong.`,o;t[1]===a?o=t[2]:(o=(0,Z.jsx)(ie,{children:a}),t[1]=a,t[2]=o);let s;t[3]===n?s=t[4]:(s=(0,Z.jsx)(ae,{children:(0,Z.jsx)(`ul`,{className:`list-inside list-disc text-sm`,children:Array.from(new Set(n)).map(oe)})}),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(re,{variant:`destructive`,children:[i,o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function oe(e,t){return(0,Z.jsx)(`li`,{children:e},t)}function se(t){let n=(0,K.c)(32),{recoveryCodesList:r,fetchRecoveryCodes:i,errors:a}=t,[o,s]=(0,G.useState)(!1),c=(0,G.useRef)(null),u=r.length>0&&o,d;n[0]!==o||n[1]!==i||n[2]!==r.length?(d=async()=>{!o&&!r.length&&await i(),s(!o),o||setTimeout(()=>{c.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})})},n[0]=o,n[1]=i,n[2]=r.length,n[3]=d):d=n[3];let f=d,p,g;n[4]!==i||n[5]!==r.length?(p=()=>{r.length||i()},g=[r.length,i],n[4]=i,n[5]=r.length,n[6]=p,n[7]=g):(p=n[6],g=n[7]),(0,G.useEffect)(p,g);let v=o?h:m,y;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsxs)(k,{children:[(0,Z.jsxs)(O,{className:`flex gap-3`,children:[(0,Z.jsx)(H,{className:`size-4`,"aria-hidden":`true`}),`2FA recovery codes`]}),(0,Z.jsx)(j,{children:`Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.`})]}),n[8]=y):y=n[8];let b;n[9]===v?b=n[10]:(b=(0,Z.jsx)(v,{className:`size-4`,"aria-hidden":`true`}),n[9]=v,n[10]=b);let x=o?`Hide`:`View`,S;n[11]!==o||n[12]!==b||n[13]!==x||n[14]!==f?(S=(0,Z.jsxs)(l,{onClick:f,className:`w-fit`,"aria-expanded":o,"aria-controls":`recovery-codes-section`,children:[b,x,` recovery codes`]}),n[11]=o,n[12]=b,n[13]=x,n[14]=f,n[15]=S):S=n[15];let C;n[16]!==u||n[17]!==i?(C=u&&(0,Z.jsx)(e,{..._.form(),options:{preserveScroll:!0},onSuccess:i,children:ue}),n[16]=u,n[17]=i,n[18]=C):C=n[18];let w;n[19]!==S||n[20]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3 select-none sm:flex-row sm:items-center sm:justify-between`,children:[S,C]}),n[19]=S,n[20]=C,n[21]=w):w=n[21];let T=`relative overflow-hidden transition-all duration-300 ${o?`h-auto opacity-100`:`h-0 opacity-0`}`,E=!o,D;n[22]!==a||n[23]!==r?(D=(0,Z.jsx)(`div`,{className:`mt-3 space-y-3`,children:a?.length?(0,Z.jsx)(Q,{errors:a}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:c,className:`grid gap-1 rounded-lg bg-muted p-4 font-mono text-sm`,role:`list`,"aria-label":`Recovery codes`,children:r.length?r.map(le):(0,Z.jsx)(`div`,{className:`space-y-2`,"aria-label":`Loading recovery codes`,children:Array.from({length:8},ce)})}),(0,Z.jsx)(`div`,{className:`text-xs text-muted-foreground select-none`,children:(0,Z.jsxs)(`p`,{id:`regenerate-warning`,children:[`Each recovery code can be used once to access your account and will be removed after use. If you need more, click`,` `,(0,Z.jsx)(`span`,{className:`font-bold`,children:`Regenerate codes`}),` `,`above.`]})})]})}),n[22]=a,n[23]=r,n[24]=D):D=n[24];let N;n[25]!==T||n[26]!==E||n[27]!==D?(N=(0,Z.jsx)(`div`,{id:`recovery-codes-section`,className:T,"aria-hidden":E,children:D}),n[25]=T,n[26]=E,n[27]=D,n[28]=N):N=n[28];let P;return n[29]!==N||n[30]!==w?(P=(0,Z.jsxs)(M,{children:[y,(0,Z.jsxs)(A,{children:[w,N]})]}),n[29]=N,n[30]=w,n[31]=P):P=n[31],P}function ce(e,t){return(0,Z.jsx)(`div`,{className:`h-4 animate-pulse rounded bg-muted-foreground/20`,"aria-hidden":`true`},t)}function le(e,t){return(0,Z.jsx)(`div`,{role:`listitem`,className:`select-text`,children:e},t)}function ue(e){let{processing:t}=e;return(0,Z.jsxs)(l,{variant:`secondary`,type:`submit`,disabled:t,"aria-describedby":`regenerate-warning`,children:[(0,Z.jsx)(U,{}),` Regenerate codes`]})}function de(){let e=(0,K.c)(3),[t,n]=(0,G.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn(`Copy failed`,e),n(null),!1}},e[0]=r):r=e[0];let i=r,a;return e[1]===t?a=e[2]:(a=[t,i],e[1]=t,e[2]=a),a}function fe(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-cols-5 opacity-50`,children:Array.from({length:5},me)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{className:`mb-3 rounded-full border border-border bg-card p-0.5 shadow-sm`,children:(0,Z.jsxs)(`div`,{className:`relative overflow-hidden rounded-full border border-border bg-muted p-2.5`,children:[t,(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-rows-5 opacity-50`,children:Array.from({length:5},pe)}),(0,Z.jsx)(W,{className:`relative z-20 size-6 text-foreground`})]})}),e[1]=n):n=e[1],n}function pe(e,t){return(0,Z.jsx)(`div`,{className:`border-b border-border last:border-b-0`},`row-${t+1}`)}function me(e,t){return(0,Z.jsx)(`div`,{className:`border-r border-border last:border-r-0`},`col-${t+1}`)}function he(e){let t=(0,K.c)(9),{qrCodeSvg:n,manualSetupKey:r,buttonText:i,onNextStep:a,errors:o}=e,{resolvedAppearance:c}=s(),[u,d]=de(),m=u===r?f:p,h;return t[0]!==m||t[1]!==i||t[2]!==d||t[3]!==o||t[4]!==r||t[5]!==a||t[6]!==n||t[7]!==c?(h=(0,Z.jsx)(Z.Fragment,{children:o?.length?(0,Z.jsx)(Q,{errors:o}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`mx-auto flex max-w-md overflow-hidden`,children:(0,Z.jsx)(`div`,{className:`mx-auto aspect-square w-64 rounded-lg border border-border`,children:(0,Z.jsx)(`div`,{className:`z-10 flex h-full w-full items-center justify-center p-5`,children:n?(0,Z.jsx)(`div`,{className:`aspect-square w-full rounded-lg bg-white p-2 [&_svg]:size-full`,dangerouslySetInnerHTML:{__html:n},style:{filter:c===`dark`?`invert(1) brightness(1.5)`:void 0}}):(0,Z.jsx)(B,{})})})}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-5`,children:(0,Z.jsx)(l,{className:`w-full`,onClick:a,children:i})}),(0,Z.jsxs)(`div`,{className:`relative flex w-full items-center justify-center`,children:[(0,Z.jsx)(`div`,{className:`absolute inset-0 top-1/2 h-px w-full bg-border`}),(0,Z.jsx)(`span`,{className:`relative bg-card px-2 py-1`,children:`or, enter the code manually`})]}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-2`,children:(0,Z.jsx)(`div`,{className:`flex w-full items-stretch overflow-hidden rounded-xl border border-border`,children:r?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`input`,{type:`text`,readOnly:!0,value:r,className:`h-full w-full bg-background p-3 text-foreground outline-none`}),(0,Z.jsx)(`button`,{onClick:()=>d(r),className:`border-l border-border px-3 hover:bg-muted`,children:(0,Z.jsx)(m,{className:`w-4`})})]}):(0,Z.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-muted p-3`,children:(0,Z.jsx)(B,{})})})})]})}),t[0]=m,t[1]=i,t[2]=d,t[3]=o,t[4]=r,t[5]=a,t[6]=n,t[7]=c,t[8]=h):h=t[8],h}function ge(t){let n=(0,K.c)(11),{onClose:r,onBack:i}=t,[a,o]=(0,G.useState)(``),s=(0,G.useRef)(null),c,u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{setTimeout(()=>{s.current?.querySelector(`input`)?.focus()},0)},u=[],n[0]=c,n[1]=u):(c=n[0],u=n[1]),(0,G.useEffect)(c,u);let d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=x.form(),n[2]=d):d=n[2];let f;n[3]===r?f=n[4]:(f=()=>r(),n[3]=r,n[4]=f);let p;n[5]!==a||n[6]!==i?(p=e=>{let{processing:t,errors:n}=e;return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(`div`,{ref:s,className:`relative w-full space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`flex w-full flex-col items-center space-y-3 py-2`,children:[(0,Z.jsx)(C,{id:`otp`,name:`code`,maxLength:6,onChange:o,disabled:t,pattern:T,autoFocus:!0,children:(0,Z.jsx)(v,{children:Array.from({length:6},_e)})}),(0,Z.jsx)(R,{message:n?.confirmTwoFactorAuthentication?.code})]}),(0,Z.jsxs)(`div`,{className:`flex w-full space-x-5`,children:[(0,Z.jsx)(l,{type:`button`,variant:`outline`,className:`flex-1`,onClick:i,disabled:t,children:`Back`}),(0,Z.jsx)(l,{type:`submit`,className:`flex-1`,disabled:t||a.length<6,children:`Confirm`})]})]})})},n[5]=a,n[6]=i,n[7]=p):p=n[7];let m;return n[8]!==f||n[9]!==p?(m=(0,Z.jsx)(e,{...d,onSuccess:f,resetOnError:!0,resetOnSuccess:!0,children:p}),n[8]=f,n[9]=p,n[10]=m):m=n[10],m}function _e(e,t){return(0,Z.jsx)(b,{index:t},t)}function ve(e){let t=(0,K.c)(43),{isOpen:n,onClose:r,requiresConfirmation:i,twoFactorEnabled:a,qrCodeSvg:o,manualSetupKey:s,clearSetupData:c,fetchSetupData:l,errors:u}=e,[d,f]=(0,G.useState)(!1),p;bb0:{if(a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Two-factor authentication enabled`,description:`Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.`,buttonText:`Close`},t[0]=e):e=t[0],p=e;break bb0}if(d){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Verify authentication code`,description:`Enter the 6-digit code from your authenticator app`,buttonText:`Continue`},t[1]=e):e=t[1],p=e;break bb0}let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Enable two-factor authentication`,description:`To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app`,buttonText:`Continue`},t[2]=e):e=t[2],p=e}let m=p,h;t[3]===c?h=t[4]:(h=()=>{f(!1),c()},t[3]=c,t[4]=h);let g=h,_;t[5]!==r||t[6]!==g?(_=()=>{g(),r()},t[5]=r,t[6]=g,t[7]=_):_=t[7];let v=_,y;t[8]!==v||t[9]!==i?(y=()=>{if(i){f(!0);return}v()},t[8]=v,t[9]=i,t[10]=y):y=t[10];let b=y,x=(0,G.useRef)(l),S,C;t[11]===l?(S=t[12],C=t[13]):(S=()=>{x.current=l},C=[l],t[11]=l,t[12]=S,t[13]=C),(0,G.useEffect)(S,C);let w,T;t[14]!==n||t[15]!==o?(w=()=>{n&&!o&&x.current()},T=[n,o],t[14]=n,t[15]=o,t[16]=w,t[17]=T):(w=t[16],T=t[17]),(0,G.useEffect)(w,T);let E;t[18]===v?E=t[19]:(E=e=>!e&&v(),t[18]=v,t[19]=E);let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Z.jsx)(fe,{}),t[20]=D):D=t[20];let O;t[21]===m.title?O=t[22]:(O=(0,Z.jsx)(I,{children:m.title}),t[21]=m.title,t[22]=O);let k;t[23]===m.description?k=t[24]:(k=(0,Z.jsx)(N,{className:`text-center`,children:m.description}),t[23]=m.description,t[24]=k);let A;t[25]!==O||t[26]!==k?(A=(0,Z.jsxs)(P,{className:`flex items-center justify-center`,children:[D,O,k]}),t[25]=O,t[26]=k,t[27]=A):A=t[27];let j;t[28]!==u||t[29]!==v||t[30]!==b||t[31]!==s||t[32]!==m.buttonText||t[33]!==o||t[34]!==d?(j=(0,Z.jsx)(`div`,{className:`flex flex-col items-center space-y-5`,children:d?(0,Z.jsx)(ge,{onClose:v,onBack:()=>f(!1)}):(0,Z.jsx)(he,{qrCodeSvg:o,manualSetupKey:s,buttonText:m.buttonText,onNextStep:b,errors:u})}),t[28]=u,t[29]=v,t[30]=b,t[31]=s,t[32]=m.buttonText,t[33]=o,t[34]=d,t[35]=j):j=t[35];let M;t[36]!==A||t[37]!==j?(M=(0,Z.jsxs)(F,{className:`sm:max-w-md`,children:[A,j]}),t[36]=A,t[37]=j,t[38]=M):M=t[38];let R;return t[39]!==n||t[40]!==M||t[41]!==E?(R=(0,Z.jsx)(L,{open:n,onOpenChange:E,children:M}),t[39]=n,t[40]=M,t[41]=E,t[42]=R):R=t[42],R}function $(t){let n=(0,K.c)(27),{canManageTwoFactor:r,requiresConfirmation:a,twoFactorEnabled:o}=t,s=r===void 0?!1:r,c=a===void 0?!1:a,u=o===void 0?!1:o,d=(0,G.useRef)(null),f=(0,G.useRef)(null),{qrCodeSvg:p,hasSetupData:m,manualSetupKey:h,clearSetupData:_,clearTwoFactorAuthData:v,fetchSetupData:b,recoveryCodesList:x,fetchRecoveryCodes:C,errors:T}=w(),[D,O]=(0,G.useState)(!1),k=(0,G.useRef)(u),A,j;n[0]!==v||n[1]!==u?(A=()=>{k.current&&!u&&v(),k.current=u},j=[u,v],n[0]=v,n[1]=u,n[2]=A,n[3]=j):(A=n[2],j=n[3]),(0,G.useEffect)(A,j);let M,N;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(i,{title:`Security settings`}),N=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Security settings`}),n[4]=M,n[5]=N):(M=n[4],N=n[5]);let P;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Z.jsx)(E,{variant:`small`,title:`Update password`,description:`Ensure your account is using a long, random password to stay secure`}),n[6]=P):P=n[6];let F,I,L;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=te.update.form(),F={preserveScroll:!0},I=[`password`,`password_confirmation`,`current_password`],n[7]=F,n[8]=I,n[9]=L):(F=n[7],I=n[8],L=n[9]);let B;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{e.password&&d.current?.focus(),e.current_password&&f.current?.focus()},n[10]=B):B=n[10];let V;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[P,(0,Z.jsx)(e,{...L,options:F,resetOnError:I,resetOnSuccess:!0,onError:B,className:`space-y-6`,children:e=>{let{errors:t,processing:n}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(z,{htmlFor:`current_password`,children:`Current password`}),(0,Z.jsx)(g,{id:`current_password`,ref:f,name:`current_password`,className:`mt-1 block w-full`,autoComplete:`current-password`,placeholder:`Current password`}),(0,Z.jsx)(R,{message:t.current_password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(z,{htmlFor:`password`,children:`New password`}),(0,Z.jsx)(g,{id:`password`,ref:d,name:`password`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`New password`}),(0,Z.jsx)(R,{message:t.password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(z,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,Z.jsx)(g,{id:`password_confirmation`,name:`password_confirmation`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`Confirm password`}),(0,Z.jsx)(R,{message:t.password_confirmation})]}),(0,Z.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,Z.jsx)(l,{disabled:n,"data-test":`update-password-button`,children:`Save password`})})]})}})]}),n[11]=V):V=n[11];let H;n[12]!==s||n[13]!==_||n[14]!==T||n[15]!==C||n[16]!==b||n[17]!==m||n[18]!==h||n[19]!==p||n[20]!==x||n[21]!==c||n[22]!==D||n[23]!==u?(H=s&&(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[(0,Z.jsx)(E,{variant:`small`,title:`Two-factor authentication`,description:`Manage your two-factor authentication settings`}),u?(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{className:`relative inline`,children:(0,Z.jsx)(e,{...S.form(),children:be})}),(0,Z.jsx)(se,{recoveryCodesList:x,fetchRecoveryCodes:C,errors:T})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{children:m?(0,Z.jsxs)(l,{onClick:()=>O(!0),children:[(0,Z.jsx)(ee,{}),`Continue setup`]}):(0,Z.jsx)(e,{...y.form(),onSuccess:()=>O(!0),children:ye})})]}),(0,Z.jsx)(ve,{isOpen:D,onClose:()=>O(!1),requiresConfirmation:c,twoFactorEnabled:u,qrCodeSvg:p,manualSetupKey:h,clearSetupData:_,fetchSetupData:b,errors:T})]}),n[12]=s,n[13]=_,n[14]=T,n[15]=C,n[16]=b,n[17]=m,n[18]=h,n[19]=p,n[20]=x,n[21]=c,n[22]=D,n[23]=u,n[24]=H):H=n[24];let U;return n[25]===H?U=n[26]:(U=(0,Z.jsxs)(Z.Fragment,{children:[M,N,V,H]}),n[25]=H,n[26]=U),U}function ye(e){let{processing:t}=e;return(0,Z.jsx)(l,{type:`submit`,disabled:t,children:`Enable 2FA`})}function be(e){let{processing:t}=e;return(0,Z.jsx)(l,{variant:`destructive`,type:`submit`,disabled:t,children:`Disable 2FA`})}$.layout={breadcrumbs:[{title:`Security settings`,href:D()}]};export{$ as default}; \ No newline at end of file diff --git a/public/build/assets/security-DmqLPAqs.js b/public/build/assets/security-DmqLPAqs.js new file mode 100644 index 0000000..06547f9 --- /dev/null +++ b/public/build/assets/security-DmqLPAqs.js @@ -0,0 +1 @@ +import{a as e,i as t,m as n,n as r,o as i,r as a,x as o}from"./wayfinder-DGNmxDkm.js";import{n as s}from"./use-appearance-QmpypXC6.js";import{t as c}from"./button-CJIRvoa4.js";import{t as l}from"./createLucideIcon-BN-jDSEO.js";import{t as u}from"./check-CWekFaHD.js";import{t as d}from"./copy-DVuxs_qN.js";import{n as f,r as p,t as m}from"./password-input-uWAWfR_8.js";import{a as h,c as g,i as _,l as v,n as y,r as b,s as x,t as S,u as C}from"./use-two-factor-auth-BvOwR0Xx.js";import{r as w,t as T}from"./app-0l60ScAC.js";import{a as E,n as D,o as O,r as k,t as A}from"./card-D_BkPXgE.js";import{i as j,o as M,r as N,s as P,t as F}from"./dialog-D0ulBexn.js";import{t as I}from"./input-error-B7LHFA6O.js";import{t as L}from"./label-shgfY21t.js";import{t as R}from"./spinner-CO4WEyCd.js";import{n as z,r as B,t as V}from"./alert-D8f1uXWR.js";var H=l(`CircleAlert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),U=l(`LockKeyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),ee=l(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),W=l(`ScanLine`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),te=l(`ShieldCheck`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),G=o(n(),1),K=t(),q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/settings/security`},q.url=e=>q.definition.url+r(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({action:q.url(e),method:`get`});J.get=e=>({action:q.url(e),method:`get`}),J.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=J;var Y=e=>({url:Y.url(e),method:`put`});Y.definition={methods:[`put`],url:`/settings/password`},Y.url=e=>Y.definition.url+r(e),Y.put=e=>({url:Y.url(e),method:`put`});var X=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`});X.put=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Y.form=X;var ne={edit:q,update:Y},Z=a();function Q(e){let t=(0,K.c)(8),{errors:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(H,{}),t[0]=i):i=t[0];let a=r||`Something went wrong.`,o;t[1]===a?o=t[2]:(o=(0,Z.jsx)(B,{children:a}),t[1]=a,t[2]=o);let s;t[3]===n?s=t[4]:(s=(0,Z.jsx)(z,{children:(0,Z.jsx)(`ul`,{className:`list-inside list-disc text-sm`,children:Array.from(new Set(n)).map(re)})}),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(V,{variant:`destructive`,children:[i,o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function re(e,t){return(0,Z.jsx)(`li`,{children:e},t)}function ie(t){let n=(0,K.c)(32),{recoveryCodesList:r,fetchRecoveryCodes:i,errors:a}=t,[o,s]=(0,G.useState)(!1),l=(0,G.useRef)(null),u=r.length>0&&o,d;n[0]!==o||n[1]!==i||n[2]!==r.length?(d=async()=>{!o&&!r.length&&await i(),s(!o),o||setTimeout(()=>{l.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})})},n[0]=o,n[1]=i,n[2]=r.length,n[3]=d):d=n[3];let m=d,g,_;n[4]!==i||n[5]!==r.length?(g=()=>{r.length||i()},_=[r.length,i],n[4]=i,n[5]=r.length,n[6]=g,n[7]=_):(g=n[6],_=n[7]),(0,G.useEffect)(g,_);let v=o?p:f,y;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsxs)(E,{children:[(0,Z.jsxs)(O,{className:`flex gap-3`,children:[(0,Z.jsx)(U,{className:`size-4`,"aria-hidden":`true`}),`2FA recovery codes`]}),(0,Z.jsx)(k,{children:`Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.`})]}),n[8]=y):y=n[8];let b;n[9]===v?b=n[10]:(b=(0,Z.jsx)(v,{className:`size-4`,"aria-hidden":`true`}),n[9]=v,n[10]=b);let x=o?`Hide`:`View`,S;n[11]!==o||n[12]!==b||n[13]!==x||n[14]!==m?(S=(0,Z.jsxs)(c,{onClick:m,className:`w-fit`,"aria-expanded":o,"aria-controls":`recovery-codes-section`,children:[b,x,` recovery codes`]}),n[11]=o,n[12]=b,n[13]=x,n[14]=m,n[15]=S):S=n[15];let C;n[16]!==u||n[17]!==i?(C=u&&(0,Z.jsx)(e,{...h.form(),options:{preserveScroll:!0},onSuccess:i,children:se}),n[16]=u,n[17]=i,n[18]=C):C=n[18];let w;n[19]!==S||n[20]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3 select-none sm:flex-row sm:items-center sm:justify-between`,children:[S,C]}),n[19]=S,n[20]=C,n[21]=w):w=n[21];let T=`relative overflow-hidden transition-all duration-300 ${o?`h-auto opacity-100`:`h-0 opacity-0`}`,j=!o,M;n[22]!==a||n[23]!==r?(M=(0,Z.jsx)(`div`,{className:`mt-3 space-y-3`,children:a?.length?(0,Z.jsx)(Q,{errors:a}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:l,className:`grid gap-1 rounded-lg bg-muted p-4 font-mono text-sm`,role:`list`,"aria-label":`Recovery codes`,children:r.length?r.map(oe):(0,Z.jsx)(`div`,{className:`space-y-2`,"aria-label":`Loading recovery codes`,children:Array.from({length:8},ae)})}),(0,Z.jsx)(`div`,{className:`text-xs text-muted-foreground select-none`,children:(0,Z.jsxs)(`p`,{id:`regenerate-warning`,children:[`Each recovery code can be used once to access your account and will be removed after use. If you need more, click`,` `,(0,Z.jsx)(`span`,{className:`font-bold`,children:`Regenerate codes`}),` `,`above.`]})})]})}),n[22]=a,n[23]=r,n[24]=M):M=n[24];let N;n[25]!==T||n[26]!==j||n[27]!==M?(N=(0,Z.jsx)(`div`,{id:`recovery-codes-section`,className:T,"aria-hidden":j,children:M}),n[25]=T,n[26]=j,n[27]=M,n[28]=N):N=n[28];let P;return n[29]!==N||n[30]!==w?(P=(0,Z.jsxs)(A,{children:[y,(0,Z.jsxs)(D,{children:[w,N]})]}),n[29]=N,n[30]=w,n[31]=P):P=n[31],P}function ae(e,t){return(0,Z.jsx)(`div`,{className:`h-4 animate-pulse rounded bg-muted-foreground/20`,"aria-hidden":`true`},t)}function oe(e,t){return(0,Z.jsx)(`div`,{role:`listitem`,className:`select-text`,children:e},t)}function se(e){let{processing:t}=e;return(0,Z.jsxs)(c,{variant:`secondary`,type:`submit`,disabled:t,"aria-describedby":`regenerate-warning`,children:[(0,Z.jsx)(ee,{}),` Regenerate codes`]})}function ce(){let e=(0,K.c)(3),[t,n]=(0,G.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn(`Copy failed`,e),n(null),!1}},e[0]=r):r=e[0];let i=r,a;return e[1]===t?a=e[2]:(a=[t,i],e[1]=t,e[2]=a),a}function le(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-cols-5 opacity-50`,children:Array.from({length:5},de)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{className:`mb-3 rounded-full border border-border bg-card p-0.5 shadow-sm`,children:(0,Z.jsxs)(`div`,{className:`relative overflow-hidden rounded-full border border-border bg-muted p-2.5`,children:[t,(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-rows-5 opacity-50`,children:Array.from({length:5},ue)}),(0,Z.jsx)(W,{className:`relative z-20 size-6 text-foreground`})]})}),e[1]=n):n=e[1],n}function ue(e,t){return(0,Z.jsx)(`div`,{className:`border-b border-border last:border-b-0`},`row-${t+1}`)}function de(e,t){return(0,Z.jsx)(`div`,{className:`border-r border-border last:border-r-0`},`col-${t+1}`)}function fe(e){let t=(0,K.c)(9),{qrCodeSvg:n,manualSetupKey:r,buttonText:i,onNextStep:a,errors:o}=e,{resolvedAppearance:l}=s(),[f,p]=ce(),m=f===r?u:d,h;return t[0]!==m||t[1]!==i||t[2]!==p||t[3]!==o||t[4]!==r||t[5]!==a||t[6]!==n||t[7]!==l?(h=(0,Z.jsx)(Z.Fragment,{children:o?.length?(0,Z.jsx)(Q,{errors:o}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`mx-auto flex max-w-md overflow-hidden`,children:(0,Z.jsx)(`div`,{className:`mx-auto aspect-square w-64 rounded-lg border border-border`,children:(0,Z.jsx)(`div`,{className:`z-10 flex h-full w-full items-center justify-center p-5`,children:n?(0,Z.jsx)(`div`,{className:`aspect-square w-full rounded-lg bg-white p-2 [&_svg]:size-full`,dangerouslySetInnerHTML:{__html:n},style:{filter:l===`dark`?`invert(1) brightness(1.5)`:void 0}}):(0,Z.jsx)(R,{})})})}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-5`,children:(0,Z.jsx)(c,{className:`w-full`,onClick:a,children:i})}),(0,Z.jsxs)(`div`,{className:`relative flex w-full items-center justify-center`,children:[(0,Z.jsx)(`div`,{className:`absolute inset-0 top-1/2 h-px w-full bg-border`}),(0,Z.jsx)(`span`,{className:`relative bg-card px-2 py-1`,children:`or, enter the code manually`})]}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-2`,children:(0,Z.jsx)(`div`,{className:`flex w-full items-stretch overflow-hidden rounded-xl border border-border`,children:r?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`input`,{type:`text`,readOnly:!0,value:r,className:`h-full w-full bg-background p-3 text-foreground outline-none`}),(0,Z.jsx)(`button`,{onClick:()=>p(r),className:`border-l border-border px-3 hover:bg-muted`,children:(0,Z.jsx)(m,{className:`w-4`})})]}):(0,Z.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-muted p-3`,children:(0,Z.jsx)(R,{})})})})]})}),t[0]=m,t[1]=i,t[2]=p,t[3]=o,t[4]=r,t[5]=a,t[6]=n,t[7]=l,t[8]=h):h=t[8],h}function pe(t){let n=(0,K.c)(11),{onClose:r,onBack:i}=t,[a,o]=(0,G.useState)(``),s=(0,G.useRef)(null),l,u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{setTimeout(()=>{s.current?.querySelector(`input`)?.focus()},0)},u=[],n[0]=l,n[1]=u):(l=n[0],u=n[1]),(0,G.useEffect)(l,u);let d;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=y.form(),n[2]=d):d=n[2];let f;n[3]===r?f=n[4]:(f=()=>r(),n[3]=r,n[4]=f);let p;n[5]!==a||n[6]!==i?(p=e=>{let{processing:t,errors:n}=e;return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(`div`,{ref:s,className:`relative w-full space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`flex w-full flex-col items-center space-y-3 py-2`,children:[(0,Z.jsx)(x,{id:`otp`,name:`code`,maxLength:6,onChange:o,disabled:t,pattern:C,autoFocus:!0,children:(0,Z.jsx)(g,{children:Array.from({length:6},me)})}),(0,Z.jsx)(I,{message:n?.confirmTwoFactorAuthentication?.code})]}),(0,Z.jsxs)(`div`,{className:`flex w-full space-x-5`,children:[(0,Z.jsx)(c,{type:`button`,variant:`outline`,className:`flex-1`,onClick:i,disabled:t,children:`Back`}),(0,Z.jsx)(c,{type:`submit`,className:`flex-1`,disabled:t||a.length<6,children:`Confirm`})]})]})})},n[5]=a,n[6]=i,n[7]=p):p=n[7];let m;return n[8]!==f||n[9]!==p?(m=(0,Z.jsx)(e,{...d,onSuccess:f,resetOnError:!0,resetOnSuccess:!0,children:p}),n[8]=f,n[9]=p,n[10]=m):m=n[10],m}function me(e,t){return(0,Z.jsx)(v,{index:t},t)}function he(e){let t=(0,K.c)(43),{isOpen:n,onClose:r,requiresConfirmation:i,twoFactorEnabled:a,qrCodeSvg:o,manualSetupKey:s,clearSetupData:c,fetchSetupData:l,errors:u}=e,[d,f]=(0,G.useState)(!1),p;bb0:{if(a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Two-factor authentication enabled`,description:`Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.`,buttonText:`Close`},t[0]=e):e=t[0],p=e;break bb0}if(d){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Verify authentication code`,description:`Enter the 6-digit code from your authenticator app`,buttonText:`Continue`},t[1]=e):e=t[1],p=e;break bb0}let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Enable two-factor authentication`,description:`To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app`,buttonText:`Continue`},t[2]=e):e=t[2],p=e}let m=p,h;t[3]===c?h=t[4]:(h=()=>{f(!1),c()},t[3]=c,t[4]=h);let g=h,_;t[5]!==r||t[6]!==g?(_=()=>{g(),r()},t[5]=r,t[6]=g,t[7]=_):_=t[7];let v=_,y;t[8]!==v||t[9]!==i?(y=()=>{if(i){f(!0);return}v()},t[8]=v,t[9]=i,t[10]=y):y=t[10];let b=y,x=(0,G.useRef)(l),S,C;t[11]===l?(S=t[12],C=t[13]):(S=()=>{x.current=l},C=[l],t[11]=l,t[12]=S,t[13]=C),(0,G.useEffect)(S,C);let w,T;t[14]!==n||t[15]!==o?(w=()=>{n&&!o&&x.current()},T=[n,o],t[14]=n,t[15]=o,t[16]=w,t[17]=T):(w=t[16],T=t[17]),(0,G.useEffect)(w,T);let E;t[18]===v?E=t[19]:(E=e=>!e&&v(),t[18]=v,t[19]=E);let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Z.jsx)(le,{}),t[20]=D):D=t[20];let O;t[21]===m.title?O=t[22]:(O=(0,Z.jsx)(P,{children:m.title}),t[21]=m.title,t[22]=O);let k;t[23]===m.description?k=t[24]:(k=(0,Z.jsx)(j,{className:`text-center`,children:m.description}),t[23]=m.description,t[24]=k);let A;t[25]!==O||t[26]!==k?(A=(0,Z.jsxs)(M,{className:`flex items-center justify-center`,children:[D,O,k]}),t[25]=O,t[26]=k,t[27]=A):A=t[27];let I;t[28]!==u||t[29]!==v||t[30]!==b||t[31]!==s||t[32]!==m.buttonText||t[33]!==o||t[34]!==d?(I=(0,Z.jsx)(`div`,{className:`flex flex-col items-center space-y-5`,children:d?(0,Z.jsx)(pe,{onClose:v,onBack:()=>f(!1)}):(0,Z.jsx)(fe,{qrCodeSvg:o,manualSetupKey:s,buttonText:m.buttonText,onNextStep:b,errors:u})}),t[28]=u,t[29]=v,t[30]=b,t[31]=s,t[32]=m.buttonText,t[33]=o,t[34]=d,t[35]=I):I=t[35];let L;t[36]!==A||t[37]!==I?(L=(0,Z.jsxs)(N,{className:`sm:max-w-md`,children:[A,I]}),t[36]=A,t[37]=I,t[38]=L):L=t[38];let R;return t[39]!==n||t[40]!==L||t[41]!==E?(R=(0,Z.jsx)(F,{open:n,onOpenChange:E,children:L}),t[39]=n,t[40]=L,t[41]=E,t[42]=R):R=t[42],R}function $(t){let n=(0,K.c)(27),{canManageTwoFactor:r,requiresConfirmation:a,twoFactorEnabled:o}=t,s=r===void 0?!1:r,l=a===void 0?!1:a,u=o===void 0?!1:o,d=(0,G.useRef)(null),f=(0,G.useRef)(null),{qrCodeSvg:p,hasSetupData:h,manualSetupKey:g,clearSetupData:v,clearTwoFactorAuthData:y,fetchSetupData:x,recoveryCodesList:C,fetchRecoveryCodes:T,errors:E}=S(),[D,O]=(0,G.useState)(!1),k=(0,G.useRef)(u),A,j;n[0]!==y||n[1]!==u?(A=()=>{k.current&&!u&&y(),k.current=u},j=[u,y],n[0]=y,n[1]=u,n[2]=A,n[3]=j):(A=n[2],j=n[3]),(0,G.useEffect)(A,j);let M,N;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(i,{title:`Security settings`}),N=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Security settings`}),n[4]=M,n[5]=N):(M=n[4],N=n[5]);let P;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Z.jsx)(w,{variant:`small`,title:`Update password`,description:`Ensure your account is using a long, random password to stay secure`}),n[6]=P):P=n[6];let F,R,z;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(z=ne.update.form(),F={preserveScroll:!0},R=[`password`,`password_confirmation`,`current_password`],n[7]=F,n[8]=R,n[9]=z):(F=n[7],R=n[8],z=n[9]);let B;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{e.password&&d.current?.focus(),e.current_password&&f.current?.focus()},n[10]=B):B=n[10];let V;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[P,(0,Z.jsx)(e,{...z,options:F,resetOnError:R,resetOnSuccess:!0,onError:B,className:`space-y-6`,children:e=>{let{errors:t,processing:n}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`current_password`,children:`Current password`}),(0,Z.jsx)(m,{id:`current_password`,ref:f,name:`current_password`,className:`mt-1 block w-full`,autoComplete:`current-password`,placeholder:`Current password`}),(0,Z.jsx)(I,{message:t.current_password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password`,children:`New password`}),(0,Z.jsx)(m,{id:`password`,ref:d,name:`password`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`New password`}),(0,Z.jsx)(I,{message:t.password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,Z.jsx)(m,{id:`password_confirmation`,name:`password_confirmation`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`Confirm password`}),(0,Z.jsx)(I,{message:t.password_confirmation})]}),(0,Z.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,Z.jsx)(c,{disabled:n,"data-test":`update-password-button`,children:`Save password`})})]})}})]}),n[11]=V):V=n[11];let H;n[12]!==s||n[13]!==v||n[14]!==E||n[15]!==T||n[16]!==x||n[17]!==h||n[18]!==g||n[19]!==p||n[20]!==C||n[21]!==l||n[22]!==D||n[23]!==u?(H=s&&(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[(0,Z.jsx)(w,{variant:`small`,title:`Two-factor authentication`,description:`Manage your two-factor authentication settings`}),u?(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{className:`relative inline`,children:(0,Z.jsx)(e,{...b.form(),children:_e})}),(0,Z.jsx)(ie,{recoveryCodesList:C,fetchRecoveryCodes:T,errors:E})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{children:h?(0,Z.jsxs)(c,{onClick:()=>O(!0),children:[(0,Z.jsx)(te,{}),`Continue setup`]}):(0,Z.jsx)(e,{..._.form(),onSuccess:()=>O(!0),children:ge})})]}),(0,Z.jsx)(he,{isOpen:D,onClose:()=>O(!1),requiresConfirmation:l,twoFactorEnabled:u,qrCodeSvg:p,manualSetupKey:g,clearSetupData:v,fetchSetupData:x,errors:E})]}),n[12]=s,n[13]=v,n[14]=E,n[15]=T,n[16]=x,n[17]=h,n[18]=g,n[19]=p,n[20]=C,n[21]=l,n[22]=D,n[23]=u,n[24]=H):H=n[24];let U;return n[25]===H?U=n[26]:(U=(0,Z.jsxs)(Z.Fragment,{children:[M,N,V,H]}),n[25]=H,n[26]=U),U}function ge(e){let{processing:t}=e;return(0,Z.jsx)(c,{type:`submit`,disabled:t,children:`Enable 2FA`})}function _e(e){let{processing:t}=e;return(0,Z.jsx)(c,{variant:`destructive`,type:`submit`,disabled:t,children:`Disable 2FA`})}$.layout={breadcrumbs:[{title:`Security settings`,href:T()}]};export{$ as default}; \ No newline at end of file diff --git a/public/build/assets/shim-B1jYWA9-.js b/public/build/assets/shim-B1jYWA9-.js new file mode 100644 index 0000000..0315733 --- /dev/null +++ b/public/build/assets/shim-B1jYWA9-.js @@ -0,0 +1 @@ +import{_ as e,m as t}from"./wayfinder-DGNmxDkm.js";var n=e((e=>{var n=t();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),r=e(((e,t)=>{t.exports=n()}));export{r as t}; \ No newline at end of file diff --git a/public/build/assets/socialite-CXgr0CAW.js b/public/build/assets/socialite-BKXn5KQb.js similarity index 96% rename from public/build/assets/socialite-CXgr0CAW.js rename to public/build/assets/socialite-BKXn5KQb.js index 9685ad3..884b54b 100644 --- a/public/build/assets/socialite-CXgr0CAW.js +++ b/public/build/assets/socialite-BKXn5KQb.js @@ -1 +1 @@ -import{i as e,n as t,r as n,t as r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./createLucideIcon-wUA1TGAT.js";var a=i(`Chrome`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`line`,{x1:`21.17`,x2:`12`,y1:`8`,y2:`8`,key:`a0cw5f`}],[`line`,{x1:`3.95`,x2:`8.54`,y1:`6.06`,y2:`14`,key:`1kftof`}],[`line`,{x1:`10.88`,x2:`15.46`,y1:`21.94`,y2:`14`,key:`1ymyh8`}]]),o=e(),s=n();function c(e){let t=(0,o.c)(3),{iconNode:n,className:r}=e;if(!n)return null;let i;return t[0]!==n||t[1]!==r?(i=(0,s.jsx)(n,{className:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var l=(e,t)=>({url:l.url(e,t),method:`get`});l.definition={methods:[`get`,`head`],url:`/auth/{provider}/redirect`},l.url=(e,n)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=r(e);let i={provider:e.provider};return l.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+t(n)},l.get=(e,t)=>({url:l.url(e,t),method:`get`}),l.head=(e,t)=>({url:l.url(e,t),method:`head`});var u=(e,t)=>({action:l.url(e,t),method:`get`});u.get=(e,t)=>({action:l.url(e,t),method:`get`}),u.head=(e,t)=>({action:l.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),l.form=u;var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/auth/{provider}/callback`},d.url=(e,n)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=r(e);let i={provider:e.provider};return d.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+t(n)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({action:d.url(e,t),method:`get`});f.get=(e,t)=>({action:d.url(e,t),method:`get`}),f.head=(e,t)=>({action:d.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),d.form=f,Object.assign(l,l),Object.assign(d,d);export{c as n,a as r,l as t}; \ No newline at end of file +import{i as e,n as t,r as n,t as r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./createLucideIcon-BN-jDSEO.js";var a=i(`Chrome`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`line`,{x1:`21.17`,x2:`12`,y1:`8`,y2:`8`,key:`a0cw5f`}],[`line`,{x1:`3.95`,x2:`8.54`,y1:`6.06`,y2:`14`,key:`1kftof`}],[`line`,{x1:`10.88`,x2:`15.46`,y1:`21.94`,y2:`14`,key:`1ymyh8`}]]),o=e(),s=n();function c(e){let t=(0,o.c)(3),{iconNode:n,className:r}=e;if(!n)return null;let i;return t[0]!==n||t[1]!==r?(i=(0,s.jsx)(n,{className:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var l=(e,t)=>({url:l.url(e,t),method:`get`});l.definition={methods:[`get`,`head`],url:`/auth/{provider}/redirect`},l.url=(e,n)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=r(e);let i={provider:e.provider};return l.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+t(n)},l.get=(e,t)=>({url:l.url(e,t),method:`get`}),l.head=(e,t)=>({url:l.url(e,t),method:`head`});var u=(e,t)=>({action:l.url(e,t),method:`get`});u.get=(e,t)=>({action:l.url(e,t),method:`get`}),u.head=(e,t)=>({action:l.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),l.form=u;var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/auth/{provider}/callback`},d.url=(e,n)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=r(e);let i={provider:e.provider};return d.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+t(n)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({action:d.url(e,t),method:`get`});f.get=(e,t)=>({action:d.url(e,t),method:`get`}),f.head=(e,t)=>({action:d.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),d.form=f,Object.assign(l,l),Object.assign(d,d);export{c as n,a as r,l as t}; \ No newline at end of file diff --git a/public/build/assets/spinner-DVMDXl0V.js b/public/build/assets/spinner-CO4WEyCd.js similarity index 73% rename from public/build/assets/spinner-DVMDXl0V.js rename to public/build/assets/spinner-CO4WEyCd.js index 5aac6ed..a3e323a 100644 --- a/public/build/assets/spinner-DVMDXl0V.js +++ b/public/build/assets/spinner-CO4WEyCd.js @@ -1 +1 @@ -import{i as e,r as t}from"./wayfinder-DGNmxDkm.js";import{n}from"./createLucideIcon-wUA1TGAT.js";import{t as r}from"./loader-circle-BczqqvyR.js";var i=e(),a=t();function o(e){let t=(0,i.c)(8),o,s;t[0]===e?(o=t[1],s=t[2]):({className:o,...s}=e,t[0]=e,t[1]=o,t[2]=s);let c;t[3]===o?c=t[4]:(c=n(`size-4 animate-spin`,o),t[3]=o,t[4]=c);let l;return t[5]!==s||t[6]!==c?(l=(0,a.jsx)(r,{role:`status`,"aria-label":`Loading`,className:c,...s}),t[5]=s,t[6]=c,t[7]=l):l=t[7],l}export{o as t}; \ No newline at end of file +import{i as e,r as t}from"./wayfinder-DGNmxDkm.js";import{n}from"./createLucideIcon-BN-jDSEO.js";import{t as r}from"./loader-circle-kx-CiozJ.js";var i=e(),a=t();function o(e){let t=(0,i.c)(8),o,s;t[0]===e?(o=t[1],s=t[2]):({className:o,...s}=e,t[0]=e,t[1]=o,t[2]=s);let c;t[3]===o?c=t[4]:(c=n(`size-4 animate-spin`,o),t[3]=o,t[4]=c);let l;return t[5]!==s||t[6]!==c?(l=(0,a.jsx)(r,{role:`status`,"aria-label":`Loading`,className:c,...s}),t[5]=s,t[6]=c,t[7]=l):l=t[7],l}export{o as t}; \ No newline at end of file diff --git a/public/build/assets/sun-BUK2gUl5.js b/public/build/assets/sun-DKOQEsNV.js similarity index 88% rename from public/build/assets/sun-BUK2gUl5.js rename to public/build/assets/sun-DKOQEsNV.js index 84db7d4..01324e8 100644 --- a/public/build/assets/sun-BUK2gUl5.js +++ b/public/build/assets/sun-DKOQEsNV.js @@ -1 +1 @@ -import{t as e}from"./createLucideIcon-wUA1TGAT.js";var t=e(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),n=e(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]);export{t as n,n as t}; \ No newline at end of file +import{t as e}from"./createLucideIcon-BN-jDSEO.js";var t=e(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),n=e(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]);export{t as n,n as t}; \ No newline at end of file diff --git a/public/build/assets/text-link-B-rnxz_C.js b/public/build/assets/text-link-UmmgvXHR.js similarity index 89% rename from public/build/assets/text-link-B-rnxz_C.js rename to public/build/assets/text-link-UmmgvXHR.js index 9655658..1bb6350 100644 --- a/public/build/assets/text-link-B-rnxz_C.js +++ b/public/build/assets/text-link-UmmgvXHR.js @@ -1 +1 @@ -import{c as e,i as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./createLucideIcon-wUA1TGAT.js";var i=t(),a=n();function o(t){let n=(0,i.c)(10),o,s,c;n[0]===t?(o=n[1],s=n[2],c=n[3]):({className:c,children:o,...s}=t,n[0]=t,n[1]=o,n[2]=s,n[3]=c);let l=c===void 0?``:c,u;n[4]===l?u=n[5]:(u=r(`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,l),n[4]=l,n[5]=u);let d;return n[6]!==o||n[7]!==s||n[8]!==u?(d=(0,a.jsx)(e,{className:u,...s,children:o}),n[6]=o,n[7]=s,n[8]=u,n[9]=d):d=n[9],d}export{o as t}; \ No newline at end of file +import{c as e,i as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./createLucideIcon-BN-jDSEO.js";var i=t(),a=n();function o(t){let n=(0,i.c)(10),o,s,c;n[0]===t?(o=n[1],s=n[2],c=n[3]):({className:c,children:o,...s}=t,n[0]=t,n[1]=o,n[2]=s,n[3]=c);let l=c===void 0?``:c,u;n[4]===l?u=n[5]:(u=r(`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,l),n[4]=l,n[5]=u);let d;return n[6]!==o||n[7]!==s||n[8]!==u?(d=(0,a.jsx)(e,{className:u,...s,children:o}),n[6]=o,n[7]=s,n[8]=u,n[9]=d):d=n[9],d}export{o as t}; \ No newline at end of file diff --git a/public/build/assets/textarea-CdB2elwd.js b/public/build/assets/textarea-CdB2elwd.js new file mode 100644 index 0000000..da7263c --- /dev/null +++ b/public/build/assets/textarea-CdB2elwd.js @@ -0,0 +1 @@ +import{i as e,m as t,r as n}from"./wayfinder-DGNmxDkm.js";import{n as r}from"./createLucideIcon-BN-jDSEO.js";var i=e();t();var a=n();function o(e){let t=(0,i.c)(8),n,o;t[0]===e?(n=t[1],o=t[2]):({className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o);let s;t[3]===n?s=t[4]:(s=r(`flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,n),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`textarea`,{"data-slot":`textarea`,className:s,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{o as t}; \ No newline at end of file diff --git a/public/build/assets/themes-DsbD3i65.js b/public/build/assets/themes-DsbD3i65.js new file mode 100644 index 0000000..1bca0cd --- /dev/null +++ b/public/build/assets/themes-DsbD3i65.js @@ -0,0 +1 @@ +import{h as e,i as t,m as n,r,s as i,x as a}from"./wayfinder-DGNmxDkm.js";import{t as o}from"./button-CJIRvoa4.js";import{p as s}from"./dist-Cw-hV1_S.js";import{t as c}from"./createLucideIcon-BN-jDSEO.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./glow-radial-C29beylo.js";import{a as h,i as g,r as _,t as v,u as y}from"./main-layout-BDfUDiNw.js";import{T as b,r as x}from"./app-0l60ScAC.js";import{a as S,n as C,o as w,r as T,t as E}from"./card-D_BkPXgE.js";var D=c(`Plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),O=c(`SearchX`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),k=t(),A=r(),j=[{key:`Primary`,bgClass:`bg-primary`,flex:3},{key:`Secondary`,bgClass:`bg-secondary`,flex:2},{key:`Accent`,bgClass:`bg-accent`,flex:2},{key:`Muted`,bgClass:`bg-muted`,flex:1}],M=[{label:`BG`,bgClass:`bg-background`},{label:`Card`,bgClass:`bg-card`},{label:`Border`,bgClass:`bg-border`},{label:`Ring`,bgClass:`bg-ring`}];function N(e){let t=(0,k.c)(22),n,r;t[0]===e?(n=t[1],r=t[2]):({theme:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let{cssVars:i}=g(r),a=n.className??``,o;t[3]===a?o=t[4]:(o=[`group relative isolate rounded-2xl border border-border/40 pt-0`,`bg-card shadow-sm transition-transform`,`hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/10`,a],t[3]=a,t[4]=o);let s=o.join(` `),c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,A.jsx)(`div`,{className:`flex h-full w-full`,children:j.map(I)}),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,A.jsxs)(`div`,{className:`relative h-36 w-full overflow-hidden rounded-t-[inherit]`,children:[c,(0,A.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 flex h-8 bg-background/60 backdrop-blur-sm`,children:j.map(F)})]}),t[6]=l):l=t[6];let u;t[7]===r.title?u=t[8]:(u=(0,A.jsx)(w,{className:`text-base font-bold tracking-tight text-foreground`,children:r.title}),t[7]=r.title,t[8]=u);let d;t[9]===r.description?d=t[10]:(d=(0,A.jsx)(T,{className:`mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:r.description}),t[9]=r.description,t[10]=d);let f;t[11]!==u||t[12]!==d?(f=(0,A.jsxs)(S,{className:`px-5 pt-4 pb-2`,children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13];let p,h;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,A.jsx)(C,{className:`px-5 pt-1 pb-5`,children:(0,A.jsx)(`div`,{className:`flex gap-2`,children:M.map(P)})}),p=(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 rounded-2xl opacity-0 ring-1 ring-primary/30 transition-opacity duration-500 ring-inset group-hover:opacity-100`}),t[14]=p,t[15]=h):(p=t[14],h=t[15]);let _;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,A.jsx)(m,{borderWidth:3,size:150,colors:[`var(--primary)`,`var(--secondary)`],className:`absolute -inset-0.5 z-10`}),t[16]=_):_=t[16];let v;return t[17]!==i||t[18]!==n||t[19]!==s||t[20]!==f?(v=(0,A.jsxs)(E,{style:i,...n,className:s,children:[l,f,h,p,_]}),t[17]=i,t[18]=n,t[19]=s,t[20]=f,t[21]=v):v=t[21],v}function P(e){let{label:t,bgClass:n}=e;return(0,A.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-1.5`,children:[(0,A.jsx)(`div`,{className:`${n} h-1.5 w-full rounded-full border border-border/60`}),(0,A.jsx)(`span`,{className:`text-[9px] font-medium tracking-wider text-muted-foreground/60 uppercase`,children:t})]},t)}function F(e){let{key:t,flex:n}=e;return(0,A.jsx)(`div`,{style:{flex:n},className:`flex items-center justify-center`,children:(0,A.jsx)(`span`,{className:`text-[10px] font-semibold tracking-widest text-foreground/50 uppercase`,children:t})},t)}function I(e){let{key:t,bgClass:n,flex:r}=e;return(0,A.jsx)(`div`,{style:{flex:r},className:`${n} h-full transition-all duration-500 group-hover:opacity-90`},t)}N.displayName=`ThemeCard2`;var L=a(n(),1),R=`__all__`;function z(t){let n=(0,k.c)(25),{filters:r,availableCategories:i}=t,[a,o]=(0,L.useState)(r?.search??``),[c,m]=(0,L.useState)(r?.category??``),h=_(a,300),g=(0,L.useRef)(!1),v,x;n[0]!==h||n[1]!==c?(v=()=>{if(!g.current){g.current=!0;return}let t={};h&&(t.search=h),c&&(t.category=c),e.get(`/themes`,t,{preserveState:!0,preserveScroll:!0})},x=[h,c],n[0]=h,n[1]=c,n[2]=v,n[3]=x):(v=n[2],x=n[3]),(0,L.useEffect)(v,x);let S;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,A.jsx)(y,{className:`absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`}),n[4]=S):S=n[4];let C;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>o(e.target.value),n[5]=C):C=n[5];let w,T;n[6]===a?(w=n[7],T=n[8]):(w=(0,A.jsx)(b,{value:a,onChange:C,placeholder:`Search themes...`,className:`pl-9 pr-8`}),T=a&&(0,A.jsx)(`button`,{onClick:()=>o(``),className:`absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground`,children:(0,A.jsx)(s,{className:`size-4`})}),n[6]=a,n[7]=w,n[8]=T);let E;n[9]!==w||n[10]!==T?(E=(0,A.jsxs)(`div`,{className:`relative flex-1`,children:[S,w,T]}),n[9]=w,n[10]=T,n[11]=E):E=n[11];let D=c||R,O;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>m(e===R?``:e),n[12]=O):O=n[12];let j;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,A.jsx)(l,{className:`w-[180px]`,children:(0,A.jsx)(f,{placeholder:`All categories`})}),n[13]=j):j=n[13];let M;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,A.jsx)(u,{value:R,children:`All categories`}),n[14]=M):M=n[14];let N;n[15]===i?N=n[16]:(N=i.map(B),n[15]=i,n[16]=N);let P;n[17]===N?P=n[18]:(P=(0,A.jsxs)(p,{children:[M,N]}),n[17]=N,n[18]=P);let F;n[19]!==P||n[20]!==D?(F=(0,A.jsxs)(d,{value:D,onValueChange:O,children:[j,P]}),n[19]=P,n[20]=D,n[21]=F):F=n[21];let I;return n[22]!==F||n[23]!==E?(I=(0,A.jsxs)(`div`,{className:`mb-4 flex items-center gap-4`,children:[E,F]}),n[22]=F,n[23]=E,n[24]=I):I=n[24],I}function B(e){return(0,A.jsx)(u,{value:e,children:e},e)}function V(e){let t=(0,k.c)(21),{themes:n,filters:r,availableCategories:a,totalThemesCount:s}=e,c=`Choose from ${s} themes to customize your site's look and feel. Preview, install, and manage them all in one place.`,l;t[0]===c?l=t[1]:(l=(0,A.jsx)(x,{title:`Themes`,description:c}),t[0]=c,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,A.jsx)(`div`,{className:`shrink-0`,children:(0,A.jsxs)(o,{variant:`outline`,className:`transition-colors duration-300`,children:[(0,A.jsx)(D,{className:`h-4`}),(0,A.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:`Create new theme`})]})}),t[2]=u):u=t[2];let d;t[3]===l?d=t[4]:(d=(0,A.jsxs)(`div`,{className:`flex items-start justify-between md:items-center`,children:[l,u]}),t[3]=l,t[4]=d);let f;t[5]!==a||t[6]!==r?(f=(0,A.jsx)(z,{filters:r,availableCategories:a}),t[5]=a,t[6]=r,t[7]=f):f=t[7];let p;t[8]===n.data?p=t[9]:(p=n.data.map(H),t[8]=n.data,t[9]=p);let m;t[10]===p?m=t[11]:(m=(0,A.jsx)(i,{data:`themes`,children:(0,A.jsx)(`div`,{className:`mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4`,children:p})}),t[10]=p,t[11]=m);let g;t[12]!==r?.category||t[13]!==r?.search||t[14]!==n.data.length?(g=n.data.length===0&&(r?.search||r?.category)&&(0,A.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-16 text-center`,children:[(0,A.jsx)(O,{className:`mb-4 size-12 text-muted-foreground`}),(0,A.jsx)(`h3`,{className:`text-lg font-semibold`,children:`Theme not found`}),(0,A.jsx)(`p`,{className:`text-muted-foreground`,children:`No themes match your search. Try adjusting your filters.`})]}),t[12]=r?.category,t[13]=r?.search,t[14]=n.data.length,t[15]=g):g=t[15];let _;return t[16]!==d||t[17]!==f||t[18]!==m||t[19]!==g?(_=(0,A.jsxs)(h,{className:`pt-4`,children:[d,f,m,g]}),t[16]=d,t[17]=f,t[18]=m,t[19]=g,t[20]=_):_=t[20],_}function H(e,t){return(0,A.jsx)(N,{theme:e},t)}V.layout=v,V.displayName=`ThemesIndex`;export{V as default}; \ No newline at end of file diff --git a/public/build/assets/themes-pgJyxVED.js b/public/build/assets/themes-pgJyxVED.js deleted file mode 100644 index 6d394fe..0000000 --- a/public/build/assets/themes-pgJyxVED.js +++ /dev/null @@ -1 +0,0 @@ -import{h as e,i as t,m as n,p as r,r as i,s as a,x as o}from"./wayfinder-DGNmxDkm.js";import{i as s,r as c,t as l}from"./dist-uBvN1Epe.js";import{a as u,o as d,t as f}from"./button-B6E1T0qj.js";import{_ as p,d as m,f as h,g,h as _,l as v,m as y,p as b,u as x}from"./dist-Cz7M9pMz.js";import{n as S,t as C}from"./createLucideIcon-wUA1TGAT.js";import{t as w}from"./check-JLGZ6ERA.js";import{t as T}from"./chevron-down-xYnWKEDk.js";import{a as E,i as D,r as O,t as k,u as A}from"./main-layout-Bjl0T2Wa.js";import{t as j}from"./dist-DlwT0Sy6.js";import{A as ee,D as M,E as te,O as N,j as P,k as ne,r as F,v as I,x as L,y as R}from"./app-NKzAktB4.js";import{a as z,i as re,n as ie,r as ae,t as oe}from"./card-DGuRpKkV.js";import{t as se}from"./glow-radial-BlYCryQ3.js";var ce=C(`ChevronUp`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),le=C(`Plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),ue=C(`SearchX`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),B=o(n(),1),de=o(r(),1),V=t(),H=i();function fe(e,[t,n]){return Math.min(n,Math.max(t,e))}function pe(e,t=[]){let n=[];function r(t,r){let i=B.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=B.useMemo(()=>o,Object.values(o));return(0,H.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=B.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>B.createContext(e));return function(n){let r=n?.[e]||t;return B.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,me(i,...t)]}function me(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function he(e){let t=ge(e),n=B.forwardRef((e,n)=>{let{children:r,...i}=e,a=B.Children.toArray(r),o=a.find(ve);if(o){let e=o.props.children,r=a.map(t=>t===o?B.Children.count(e)>1?B.Children.only(null):B.isValidElement(e)?e.props.children:null:t);return(0,H.jsx)(t,{...i,ref:n,children:B.isValidElement(e)?B.cloneElement(e,void 0,r):null})}return(0,H.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ge(e){let t=B.forwardRef((e,t)=>{let{children:n,...r}=e;if(B.isValidElement(n)){let e=be(n),i=ye(r,n.props);return n.type!==B.Fragment&&(i.ref=t?u(t,e):e),B.cloneElement(n,i)}return B.Children.count(n)>1?B.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _e=Symbol(`radix.slottable`);function ve(e){return B.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===_e}function ye(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function be(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var U=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=he(`Primitive.${t}`),r=B.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,H.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xe=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Se=[` `,`Enter`],W=`Select`,[Ce,G,we]=R(W),[K,Te]=pe(W,[we,P]),q=P(),[Ee,J]=K(W),[De,Oe]=K(W),ke=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:p,required:m,form:h}=e,g=q(t),[v,y]=B.useState(null),[b,x]=B.useState(null),[S,C]=B.useState(!1),w=I(u),[T,E]=l({prop:r,defaultProp:i??!1,onChange:a,caller:W}),[D,O]=l({prop:o,defaultProp:s,onChange:c,caller:W}),k=B.useRef(null),A=v?h||!!v.closest(`form`):!0,[j,M]=B.useState(new Set),te=Array.from(j).map(e=>e.props.value).join(`;`);return(0,H.jsx)(ee,{...g,children:(0,H.jsxs)(Ee,{required:m,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:_(),value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:p,children:[(0,H.jsx)(Ce.Provider,{scope:t,children:(0,H.jsx)(De,{scope:e.__scopeSelect,onNativeOptionAdd:B.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:B.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,H.jsxs)(yt,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:D,onChange:e=>O(e.target.value),disabled:p,form:h,children:[D===void 0?(0,H.jsx)(`option`,{value:``}):null,Array.from(j)]},te):null]})})};ke.displayName=W;var Ae=`SelectTrigger`,je=B.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=q(n),o=J(Ae,n),c=o.disabled||r,l=d(t,o.onTriggerChange),u=G(n),f=B.useRef(`touch`),[p,m,h]=xt(e=>{let t=u().filter(e=>!e.disabled),n=St(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),g=e=>{c||(o.onOpenChange(!0),h()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,H.jsx)(M,{asChild:!0,...a,children:(0,H.jsx)(U.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":bt(o.value)?``:void 0,...i,ref:l,onClick:s(i.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&g(e)}),onPointerDown:s(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:s(i.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&xe.includes(e.key)&&(g(),e.preventDefault())})})})});je.displayName=Ae;var Me=`SelectValue`,Ne=B.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,l=J(Me,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,p=d(t,l.onValueNodeChange);return c(()=>{u(f)},[u,f]),(0,H.jsx)(U.span,{...s,ref:p,style:{pointerEvents:`none`},children:bt(l.value)?(0,H.jsx)(H.Fragment,{children:o}):a})});Ne.displayName=Me;var Pe=`SelectIcon`,Fe=B.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,H.jsx)(U.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});Fe.displayName=Pe;var Ie=`SelectPortal`,Le=e=>(0,H.jsx)(y,{asChild:!0,...e});Le.displayName=Ie;var Y=`SelectContent`,Re=B.forwardRef((e,t)=>{let n=J(Y,e.__scopeSelect),[r,i]=B.useState();if(c(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?de.createPortal((0,H.jsx)(ze,{scope:e.__scopeSelect,children:(0,H.jsx)(Ce.Slot,{scope:e.__scopeSelect,children:(0,H.jsx)(`div`,{children:e.children})})}),t):null}return(0,H.jsx)(He,{...e,ref:t})});Re.displayName=Y;var X=10,[ze,Z]=K(Y),Be=`SelectContentImpl`,Ve=he(`SelectContent.RemoveScroll`),He=B.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...w}=e,T=J(Y,n),[E,D]=B.useState(null),[O,k]=B.useState(null),A=d(t,e=>D(e)),[j,ee]=B.useState(null),[M,te]=B.useState(null),N=G(n),[P,ne]=B.useState(!1),F=B.useRef(!1);B.useEffect(()=>{if(E)return v(E)},[E]),m();let I=B.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[N,O]),L=B.useCallback(()=>I([j,E]),[I,j,E]);B.useEffect(()=>{P&&L()},[P,L]);let{onOpenChange:R,triggerPointerDownPosRef:z}=T;B.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||R(!1),document.removeEventListener(`pointermove`,t),z.current=null};return z.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,R,z]),B.useEffect(()=>{let e=()=>R(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[R]);let[re,ie]=xt(e=>{let t=N().filter(e=>!e.disabled),n=St(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ae=B.useCallback((e,t,n)=>{let r=!F.current&&!n;(T.value!==void 0&&T.value===t||r)&&(ee(e),r&&(F.current=!0))},[T.value]),oe=B.useCallback(()=>E?.focus(),[E]),se=B.useCallback((e,t,n)=>{let r=!F.current&&!n;(T.value!==void 0&&T.value===t||r)&&te(e)},[T.value]),ce=r===`popper`?Ke:We,le=ce===Ke?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:_,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,H.jsx)(ze,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:ae,selectedItem:j,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:L,selectedItemText:M,position:r,isPositioned:P,searchRef:re,children:(0,H.jsx)(x,{as:Ve,allowPinchZoom:!0,children:(0,H.jsx)(h,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:s(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,H.jsx)(g,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,H.jsx)(ce,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...le,onPlaced:()=>ne(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:s(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})});He.displayName=Be;var Ue=`SelectItemAlignedPosition`,We=B.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=J(Y,n),o=Z(Y,n),[s,l]=B.useState(null),[u,f]=B.useState(null),p=d(t,e=>f(e)),m=G(n),h=B.useRef(!1),g=B.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=o,x=B.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-X,d=fe(a,[X,Math.max(X,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-X,d=fe(a,[X,Math.max(X,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=m(),c=window.innerHeight-X*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+p+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=c-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=f+p+k,j=x-A;if(A<=E){let e=o.length>0&&v===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);s.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}s.style.margin=`${X}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,s,u,_,v,y,a.dir,r]);c(()=>x(),[x]);let[S,C]=B.useState();return c(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]),(0,H.jsx)(qe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:B.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]),children:(0,H.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,H.jsx)(U.div,{...i,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});We.displayName=Ue;var Ge=`SelectPopperPosition`,Ke=B.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=q(n);return(0,H.jsx)(ne,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ke.displayName=Ge;var[qe,Je]=K(Y,{}),Ye=`SelectViewport`,Xe=B.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=Z(Ye,n),o=Je(Ye,n),c=d(t,a.onViewportChange),l=B.useRef(0);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,H.jsx)(Ce.Slot,{scope:n,children:(0,H.jsx)(U.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:s(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})});Xe.displayName=Ye;var Ze=`SelectGroup`,[Qe,$e]=K(Ze),et=B.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=_();return(0,H.jsx)(Qe,{scope:n,id:i,children:(0,H.jsx)(U.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});et.displayName=Ze;var tt=`SelectLabel`,nt=B.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=$e(tt,n);return(0,H.jsx)(U.div,{id:i.id,...r,ref:t})});nt.displayName=tt;var Q=`SelectItem`,[rt,it]=K(Q),at=B.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,c=J(Q,n),l=Z(Q,n),u=c.value===r,[f,p]=B.useState(a??``),[m,h]=B.useState(!1),g=d(t,e=>l.itemRefCallback?.(e,r,i)),v=_(),y=B.useRef(`touch`),b=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,H.jsx)(rt,{scope:n,value:r,disabled:i,textId:v,isSelected:u,onItemTextChange:B.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,H.jsx)(Ce.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,H.jsx)(U.div,{role:`option`,"aria-labelledby":v,"data-highlighted":m?``:void 0,"aria-selected":u&&m,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:g,onFocus:s(o.onFocus,()=>h(!0)),onBlur:s(o.onBlur,()=>h(!1)),onClick:s(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:s(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:s(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:s(o.onPointerMove,e=>{y.current=e.pointerType,i?l.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:s(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:s(o.onKeyDown,e=>{l.searchRef?.current!==``&&e.key===` `||(Se.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});at.displayName=Q;var $=`SelectItemText`,ot=B.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=J($,n),s=Z($,n),l=it($,n),u=Oe($,n),[f,p]=B.useState(null),m=d(t,e=>p(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),h=f?.textContent,g=B.useMemo(()=>(0,H.jsx)(`option`,{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return c(()=>(_(g),()=>v(g)),[_,v,g]),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(U.span,{id:l.textId,...a,ref:m}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?de.createPortal(a.children,o.valueNode):null]})});ot.displayName=$;var st=`SelectItemIndicator`,ct=B.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return it(st,n).isSelected?(0,H.jsx)(U.span,{"aria-hidden":!0,...r,ref:t}):null});ct.displayName=st;var lt=`SelectScrollUpButton`,ut=B.forwardRef((e,t)=>{let n=Z(lt,e.__scopeSelect),r=Je(lt,e.__scopeSelect),[i,a]=B.useState(!1),o=d(t,r.onScrollButtonChange);return c(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,H.jsx)(pt,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});ut.displayName=lt;var dt=`SelectScrollDownButton`,ft=B.forwardRef((e,t)=>{let n=Z(dt,e.__scopeSelect),r=Je(dt,e.__scopeSelect),[i,a]=B.useState(!1),o=d(t,r.onScrollButtonChange);return c(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,H.jsx)(pt,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});ft.displayName=dt;var pt=B.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Z(`SelectScrollButton`,n),o=B.useRef(null),l=G(n),u=B.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return B.useEffect(()=>()=>u(),[u]),c(()=>{l().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[l]),(0,H.jsx)(U.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:s(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:s(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:s(i.onPointerLeave,()=>{u()})})}),mt=`SelectSeparator`,ht=B.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,H.jsx)(U.div,{"aria-hidden":!0,...r,ref:t})});ht.displayName=mt;var gt=`SelectArrow`,_t=B.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=q(n),a=J(gt,n),o=Z(gt,n);return a.open&&o.position===`popper`?(0,H.jsx)(N,{...i,...r,ref:t}):null});_t.displayName=gt;var vt=`SelectBubbleInput`,yt=B.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=B.useRef(null),a=d(r,i),o=j(t);return B.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,H.jsx)(U.select,{...n,style:{...te,...n.style},ref:a,defaultValue:t})});yt.displayName=vt;function bt(e){return e===``||e===void 0}function xt(e){let t=p(e),n=B.useRef(``),r=B.useRef(0),i=B.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=B.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return B.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function St(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ct(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Ct(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wt=ke,Tt=je,Et=Ne,Dt=Fe,Ot=Le,kt=Re,At=Xe,jt=at,Mt=ot,Nt=ct,Pt=ut,Ft=ft,It=[{key:`Primary`,bgClass:`bg-primary`,flex:3},{key:`Secondary`,bgClass:`bg-secondary`,flex:2},{key:`Accent`,bgClass:`bg-accent`,flex:2},{key:`Muted`,bgClass:`bg-muted`,flex:1}],Lt=[{label:`BG`,bgClass:`bg-background`},{label:`Card`,bgClass:`bg-card`},{label:`Border`,bgClass:`bg-border`},{label:`Ring`,bgClass:`bg-ring`}];function Rt(e){let t=(0,V.c)(22),n,r;t[0]===e?(n=t[1],r=t[2]):({theme:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let{cssVars:i}=D(r),a=n.className??``,o;t[3]===a?o=t[4]:(o=[`group relative isolate rounded-2xl border border-border/40 pt-0`,`bg-card shadow-sm transition-transform`,`hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/10`,a],t[3]=a,t[4]=o);let s=o.join(` `),c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(`div`,{className:`flex h-full w-full`,children:It.map(Vt)}),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsxs)(`div`,{className:`relative h-36 w-full overflow-hidden rounded-t-[inherit]`,children:[c,(0,H.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 flex h-8 bg-background/60 backdrop-blur-sm`,children:It.map(Bt)})]}),t[6]=l):l=t[6];let u;t[7]===r.title?u=t[8]:(u=(0,H.jsx)(z,{className:`text-base font-bold tracking-tight text-foreground`,children:r.title}),t[7]=r.title,t[8]=u);let d;t[9]===r.description?d=t[10]:(d=(0,H.jsx)(ae,{className:`mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:r.description}),t[9]=r.description,t[10]=d);let f;t[11]!==u||t[12]!==d?(f=(0,H.jsxs)(re,{className:`px-5 pt-4 pb-2`,children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13];let p,m;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,H.jsx)(ie,{className:`px-5 pt-1 pb-5`,children:(0,H.jsx)(`div`,{className:`flex gap-2`,children:Lt.map(zt)})}),p=(0,H.jsx)(`div`,{className:`pointer-events-none absolute inset-0 rounded-2xl opacity-0 ring-1 ring-primary/30 transition-opacity duration-500 ring-inset group-hover:opacity-100`}),t[14]=p,t[15]=m):(p=t[14],m=t[15]);let h;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,H.jsx)(se,{borderWidth:3,size:150,colors:[`var(--primary)`,`var(--secondary)`],className:`absolute -inset-0.5 z-10`}),t[16]=h):h=t[16];let g;return t[17]!==i||t[18]!==n||t[19]!==s||t[20]!==f?(g=(0,H.jsxs)(oe,{style:i,...n,className:s,children:[l,f,m,p,h]}),t[17]=i,t[18]=n,t[19]=s,t[20]=f,t[21]=g):g=t[21],g}function zt(e){let{label:t,bgClass:n}=e;return(0,H.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-1.5`,children:[(0,H.jsx)(`div`,{className:`${n} h-1.5 w-full rounded-full border border-border/60`}),(0,H.jsx)(`span`,{className:`text-[9px] font-medium tracking-wider text-muted-foreground/60 uppercase`,children:t})]},t)}function Bt(e){let{key:t,flex:n}=e;return(0,H.jsx)(`div`,{style:{flex:n},className:`flex items-center justify-center`,children:(0,H.jsx)(`span`,{className:`text-[10px] font-semibold tracking-widest text-foreground/50 uppercase`,children:t})},t)}function Vt(e){let{key:t,bgClass:n,flex:r}=e;return(0,H.jsx)(`div`,{style:{flex:r},className:`${n} h-full transition-all duration-500 group-hover:opacity-90`},t)}Rt.displayName=`ThemeCard2`;function Ht(e){let t=(0,V.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(wt,{"data-slot":`select`,...n}),t[2]=n,t[3]=r),r}function Ut(e){let t=(0,V.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,H.jsx)(Et,{"data-slot":`select-value`,...n}),t[2]=n,t[3]=r),r}function Wt(e){let t=(0,V.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,size:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===r?s=t[6]:(s=S(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(Dt,{asChild:!0,children:(0,H.jsx)(T,{className:`size-4 opacity-50`})}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,H.jsxs)(Tt,{"data-slot":`select-trigger`,"data-size":o,className:s,...i,children:[n,c]}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Gt(e){let t=(0,V.c)(26),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,children:n,position:a,side:o,sideOffset:s,align:c,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`popper`:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f=c===void 0?`center`:c,p=l===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,m;t[8]!==r||t[9]!==p?(m=S(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,p,r),t[8]=r,t[9]=p,t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,H.jsx)(qt,{}),t[11]=h):h=t[11];let g=l===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`,_;t[12]===g?_=t[13]:(_=S(`p-1`,g),t[12]=g,t[13]=_);let v;t[14]!==n||t[15]!==_?(v=(0,H.jsx)(At,{className:_,children:n}),t[14]=n,t[15]=_,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,H.jsx)(Jt,{}),t[17]=y):y=t[17];let b;return t[18]!==f||t[19]!==l||t[20]!==i||t[21]!==u||t[22]!==d||t[23]!==v||t[24]!==m?(b=(0,H.jsx)(Ot,{children:(0,H.jsxs)(kt,{"data-slot":`select-content`,className:m,position:l,side:u,sideOffset:d,avoidCollisions:!1,align:f,...i,children:[h,v,y]})}),t[18]=f,t[19]=l,t[20]=i,t[21]=u,t[22]=d,t[23]=v,t[24]=m,t[25]=b):b=t[25],b}function Kt(e){let t=(0,V.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=S(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,H.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,H.jsx)(Nt,{children:(0,H.jsx)(w,{className:`size-4`})})}),t[6]=o):o=t[6];let s;t[7]===n?s=t[8]:(s=(0,H.jsx)(Mt,{children:n}),t[7]=n,t[8]=s);let c;return t[9]!==i||t[10]!==a||t[11]!==s?(c=(0,H.jsxs)(jt,{"data-slot":`select-item`,className:a,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function qt(e){let t=(0,V.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=S(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(ce,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,H.jsx)(Pt,{"data-slot":`select-scroll-up-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Jt(e){let t=(0,V.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=S(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(T,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,H.jsx)(Ft,{"data-slot":`select-scroll-down-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}var Yt=`__all__`;function Xt(t){let n=(0,V.c)(25),{filters:r,availableCategories:i}=t,[a,o]=(0,B.useState)(r?.search??``),[s,c]=(0,B.useState)(r?.category??``),l=O(a,300),u=(0,B.useRef)(!1),d,f;n[0]!==l||n[1]!==s?(d=()=>{if(!u.current){u.current=!0;return}let t={};l&&(t.search=l),s&&(t.category=s),e.get(`/themes`,t,{preserveState:!0,preserveScroll:!0})},f=[l,s],n[0]=l,n[1]=s,n[2]=d,n[3]=f):(d=n[2],f=n[3]),(0,B.useEffect)(d,f);let p;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,H.jsx)(A,{className:`absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`}),n[4]=p):p=n[4];let m;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>o(e.target.value),n[5]=m):m=n[5];let h,g;n[6]===a?(h=n[7],g=n[8]):(h=(0,H.jsx)(L,{value:a,onChange:m,placeholder:`Search themes...`,className:`pl-9 pr-8`}),g=a&&(0,H.jsx)(`button`,{onClick:()=>o(``),className:`absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground`,children:(0,H.jsx)(b,{className:`size-4`})}),n[6]=a,n[7]=h,n[8]=g);let _;n[9]!==h||n[10]!==g?(_=(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[p,h,g]}),n[9]=h,n[10]=g,n[11]=_):_=n[11];let v=s||Yt,y;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>c(e===Yt?``:e),n[12]=y):y=n[12];let x;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,H.jsx)(Wt,{className:`w-[180px]`,children:(0,H.jsx)(Ut,{placeholder:`All categories`})}),n[13]=x):x=n[13];let S;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,H.jsx)(Kt,{value:Yt,children:`All categories`}),n[14]=S):S=n[14];let C;n[15]===i?C=n[16]:(C=i.map(Zt),n[15]=i,n[16]=C);let w;n[17]===C?w=n[18]:(w=(0,H.jsxs)(Gt,{children:[S,C]}),n[17]=C,n[18]=w);let T;n[19]!==w||n[20]!==v?(T=(0,H.jsxs)(Ht,{value:v,onValueChange:y,children:[x,w]}),n[19]=w,n[20]=v,n[21]=T):T=n[21];let E;return n[22]!==T||n[23]!==_?(E=(0,H.jsxs)(`div`,{className:`mb-4 flex items-center gap-4`,children:[_,T]}),n[22]=T,n[23]=_,n[24]=E):E=n[24],E}function Zt(e){return(0,H.jsx)(Kt,{value:e,children:e},e)}function Qt(e){let t=(0,V.c)(21),{themes:n,filters:r,availableCategories:i,totalThemesCount:o}=e,s=`Choose from ${o} themes to customize your site's look and feel. Preview, install, and manage them all in one place.`,c;t[0]===s?c=t[1]:(c=(0,H.jsx)(F,{title:`Themes`,description:s}),t[0]=s,t[1]=c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(`div`,{className:`shrink-0`,children:(0,H.jsxs)(f,{variant:`outline`,className:`transition-colors duration-300`,children:[(0,H.jsx)(le,{className:`h-4`}),(0,H.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:`Create new theme`})]})}),t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=(0,H.jsxs)(`div`,{className:`flex items-start justify-between md:items-center`,children:[c,l]}),t[3]=c,t[4]=u);let d;t[5]!==i||t[6]!==r?(d=(0,H.jsx)(Xt,{filters:r,availableCategories:i}),t[5]=i,t[6]=r,t[7]=d):d=t[7];let p;t[8]===n.data?p=t[9]:(p=n.data.map($t),t[8]=n.data,t[9]=p);let m;t[10]===p?m=t[11]:(m=(0,H.jsx)(a,{data:`themes`,children:(0,H.jsx)(`div`,{className:`mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4`,children:p})}),t[10]=p,t[11]=m);let h;t[12]!==r?.category||t[13]!==r?.search||t[14]!==n.data.length?(h=n.data.length===0&&(r?.search||r?.category)&&(0,H.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-16 text-center`,children:[(0,H.jsx)(ue,{className:`mb-4 size-12 text-muted-foreground`}),(0,H.jsx)(`h3`,{className:`text-lg font-semibold`,children:`Theme not found`}),(0,H.jsx)(`p`,{className:`text-muted-foreground`,children:`No themes match your search. Try adjusting your filters.`})]}),t[12]=r?.category,t[13]=r?.search,t[14]=n.data.length,t[15]=h):h=t[15];let g;return t[16]!==u||t[17]!==d||t[18]!==m||t[19]!==h?(g=(0,H.jsxs)(E,{className:`pt-4`,children:[u,d,m,h]}),t[16]=u,t[17]=d,t[18]=m,t[19]=h,t[20]=g):g=t[20],g}function $t(e,t){return(0,H.jsx)(Rt,{theme:e},t)}Qt.layout=k,Qt.displayName=`ThemesIndex`;export{Qt as default}; \ No newline at end of file diff --git a/public/build/assets/two-factor-challenge-Bot9NjM4.js b/public/build/assets/two-factor-challenge-G3MKbV9v.js similarity index 90% rename from public/build/assets/two-factor-challenge-Bot9NjM4.js rename to public/build/assets/two-factor-challenge-G3MKbV9v.js index 9f58f74..76a4ece 100644 --- a/public/build/assets/two-factor-challenge-Bot9NjM4.js +++ b/public/build/assets/two-factor-challenge-G3MKbV9v.js @@ -1 +1 @@ -import{a as e,i as t,m as n,o as r,r as i,u as a,x as o}from"./wayfinder-DGNmxDkm.js";import{t as s}from"./button-B6E1T0qj.js";import{c,l,o as u,s as d,u as f}from"./use-two-factor-auth-BbF_ctUq.js";import{x as p}from"./app-NKzAktB4.js";import{t as m}from"./input-error-CXzYDMKp.js";var h=t(),g=o(n(),1),_=i();function v(){let t=(0,h.c)(14),[n,i]=(0,g.useState)(!1),[o,l]=(0,g.useState)(``),v;bb0:{if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Recovery code`,description:`Please confirm access to your account by entering one of your emergency recovery codes.`,toggleText:`login using an authentication code`},t[0]=e):e=t[0],v=e;break bb0}let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Authentication code`,description:`Enter the authentication code provided by your authenticator application.`,toggleText:`login using a recovery code`},t[1]=e):e=t[1],v=e}let b=v;a({title:b.title,description:b.description});let x;t[2]===n?x=t[3]:(x=e=>{i(!n),e(),l(``)},t[2]=n,t[3]=x);let S=x,C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,_.jsx)(r,{title:`Two-factor authentication`}),t[4]=C):C=t[4];let w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=u.form(),t[5]=w):w=t[5];let T=!n,E;t[6]!==b.toggleText||t[7]!==o||t[8]!==n||t[9]!==S?(E=e=>{let{errors:t,processing:r,clearErrors:i}=e;return(0,_.jsxs)(_.Fragment,{children:[n?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(p,{name:`recovery_code`,type:`text`,placeholder:`Enter recovery code`,autoFocus:n,required:!0}),(0,_.jsx)(m,{message:t.recovery_code})]}):(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-3 text-center`,children:[(0,_.jsx)(`div`,{className:`flex w-full items-center justify-center`,children:(0,_.jsx)(d,{name:`code`,maxLength:6,value:o,onChange:e=>l(e),disabled:r,pattern:f,autoFocus:!0,children:(0,_.jsx)(c,{children:Array.from({length:6},y)})})}),(0,_.jsx)(m,{message:t.code})]}),(0,_.jsx)(s,{type:`submit`,className:`w-full`,disabled:r,children:`Continue`}),(0,_.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{children:`or you can `}),(0,_.jsx)(`button`,{type:`button`,className:`cursor-pointer text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,onClick:()=>S(i),children:b.toggleText})]})]})},t[6]=b.toggleText,t[7]=o,t[8]=n,t[9]=S,t[10]=E):E=t[10];let D;return t[11]!==T||t[12]!==E?(D=(0,_.jsxs)(_.Fragment,{children:[C,(0,_.jsx)(`div`,{className:`space-y-6`,children:(0,_.jsx)(e,{...w,className:`space-y-4`,resetOnError:!0,resetOnSuccess:T,children:E})})]}),t[11]=T,t[12]=E,t[13]=D):D=t[13],D}function y(e,t){return(0,_.jsx)(l,{index:t},t)}export{v as default}; \ No newline at end of file +import{a as e,i as t,m as n,o as r,r as i,u as a,x as o}from"./wayfinder-DGNmxDkm.js";import{t as s}from"./button-CJIRvoa4.js";import{c,l,o as u,s as d,u as f}from"./use-two-factor-auth-BvOwR0Xx.js";import{T as p}from"./app-0l60ScAC.js";import{t as m}from"./input-error-B7LHFA6O.js";var h=t(),g=o(n(),1),_=i();function v(){let t=(0,h.c)(14),[n,i]=(0,g.useState)(!1),[o,l]=(0,g.useState)(``),v;bb0:{if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Recovery code`,description:`Please confirm access to your account by entering one of your emergency recovery codes.`,toggleText:`login using an authentication code`},t[0]=e):e=t[0],v=e;break bb0}let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Authentication code`,description:`Enter the authentication code provided by your authenticator application.`,toggleText:`login using a recovery code`},t[1]=e):e=t[1],v=e}let b=v;a({title:b.title,description:b.description});let x;t[2]===n?x=t[3]:(x=e=>{i(!n),e(),l(``)},t[2]=n,t[3]=x);let S=x,C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,_.jsx)(r,{title:`Two-factor authentication`}),t[4]=C):C=t[4];let w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=u.form(),t[5]=w):w=t[5];let T=!n,E;t[6]!==b.toggleText||t[7]!==o||t[8]!==n||t[9]!==S?(E=e=>{let{errors:t,processing:r,clearErrors:i}=e;return(0,_.jsxs)(_.Fragment,{children:[n?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(p,{name:`recovery_code`,type:`text`,placeholder:`Enter recovery code`,autoFocus:n,required:!0}),(0,_.jsx)(m,{message:t.recovery_code})]}):(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-3 text-center`,children:[(0,_.jsx)(`div`,{className:`flex w-full items-center justify-center`,children:(0,_.jsx)(d,{name:`code`,maxLength:6,value:o,onChange:e=>l(e),disabled:r,pattern:f,autoFocus:!0,children:(0,_.jsx)(c,{children:Array.from({length:6},y)})})}),(0,_.jsx)(m,{message:t.code})]}),(0,_.jsx)(s,{type:`submit`,className:`w-full`,disabled:r,children:`Continue`}),(0,_.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{children:`or you can `}),(0,_.jsx)(`button`,{type:`button`,className:`cursor-pointer text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,onClick:()=>S(i),children:b.toggleText})]})]})},t[6]=b.toggleText,t[7]=o,t[8]=n,t[9]=S,t[10]=E):E=t[10];let D;return t[11]!==T||t[12]!==E?(D=(0,_.jsxs)(_.Fragment,{children:[C,(0,_.jsx)(`div`,{className:`space-y-6`,children:(0,_.jsx)(e,{...w,className:`space-y-4`,resetOnError:!0,resetOnSuccess:T,children:E})})]}),t[11]=T,t[12]=E,t[13]=D):D=t[13],D}function y(e,t){return(0,_.jsx)(l,{index:t},t)}export{v as default}; \ No newline at end of file diff --git a/public/build/assets/use-two-factor-auth-BbF_ctUq.js b/public/build/assets/use-two-factor-auth-BvOwR0Xx.js similarity index 99% rename from public/build/assets/use-two-factor-auth-BbF_ctUq.js rename to public/build/assets/use-two-factor-auth-BvOwR0Xx.js index e0a548f..a80eeb1 100644 --- a/public/build/assets/use-two-factor-auth-BbF_ctUq.js +++ b/public/build/assets/use-two-factor-auth-BvOwR0Xx.js @@ -1,4 +1,4 @@ -import{d as e,i as t,m as n,n as r,r as i,x as a}from"./wayfinder-DGNmxDkm.js";import{n as o,t as s}from"./createLucideIcon-wUA1TGAT.js";var c=s(`Minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),l=t(),u=a(n(),1),d=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})h.call(t,n)&&_(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&_(e,n,t[n]);return e},ee=(e,t)=>f(e,p(t)),y=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m)for(var r of m(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n};function b(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function x(e){let t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current}var S=18,C=40,w=`${C}px`,T=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function E({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=u.useState(!1),[o,s]=u.useState(!1),[c,l]=u.useState(!1),d=u.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),f=u.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-S,f=u;document.querySelectorAll(T).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return u.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=C)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),u.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:w}}var D=u.createContext({}),O=u.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:d,pushPasswordManagerStrategy:f=`increase-width`,pasteTransformer:p,containerClassName:m,noScriptCSSFallback:h=te,render:g,children:_}=n,S=y(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),C;let[w,T]=u.useState(typeof S.defaultValue==`string`?S.defaultValue:``),O=r??w,A=x(O),j=u.useCallback(e=>{i?.(e),T(e)},[i]),M=u.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),N=u.useRef(null),P=u.useRef(null),F=u.useRef({value:O,onChange:j,isIOS:typeof window<`u`&&((C=window==null?void 0:window.CSS)?.supports)?.call(C,`-webkit-touch-callout`,`none`)}),I=u.useRef({prev:[N.current?.selectionStart,N.current?.selectionEnd,N.current?.selectionDirection]});u.useImperativeHandle(t,()=>N.current,[]),u.useEffect(()=>{let e=N.current,t=P.current;if(!e||!t)return;F.current.value!==e.value&&F.current.onChange(e.value),I.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){H(null),W(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=I.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[L,R]=u.useState(!1),[z,B]=u.useState(!1),[V,H]=u.useState(null),[U,W]=u.useState(null);u.useEffect(()=>{b(()=>{var e;(e=N.current)==null||e.dispatchEvent(new Event(`input`));let t=N.current?.selectionStart,n=N.current?.selectionEnd,r=N.current?.selectionDirection;t!==null&&n!==null&&(H(t),W(n),I.current.prev=[t,n,r])})},[O,z]),u.useEffect(()=>{A!==void 0&&O!==A&&A.length{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}typeof A==`string`&&t.length{var e;if(N.current){let t=Math.min(N.current.value.length,a-1),n=N.current.value.length;(e=N.current)==null||e.setSelectionRange(t,n),H(t),W(n)}B(!0)},[a]),J=u.useCallback(e=>{let t=N.current;if(!p&&(!F.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=p?p(n):n;e.preventDefault();let i=N.current?.selectionStart,o=N.current?.selectionEnd,s=(i===o?O.slice(0,i)+r+O.slice(i):O.slice(0,i)+r+O.slice(o)).slice(0,a);if(s.length>0&&M&&!M.test(s))return;t.value=s,j(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),H(c),W(l)},[a,j,M,O]),Y=u.useMemo(()=>({position:`relative`,cursor:S.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[S.disabled]),X=u.useMemo(()=>({position:`absolute`,inset:0,width:G.willPushPWMBadge?`calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:G.willPushPWMBadge?`inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[G.PWM_BADGE_SPACE_WIDTH,G.willPushPWMBadge,o]),Z=u.useMemo(()=>u.createElement(`input`,ee(v({autoComplete:S.autoComplete||`one-time-code`},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":O.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":U,inputMode:l,pattern:M?.source,"aria-placeholder":c,style:X,maxLength:a,value:O,ref:N,onPaste:e=>{var t;J(e),(t=S.onPaste)==null||t.call(S,e)},onChange:K,onMouseOver:e=>{var t;R(!0),(t=S.onMouseOver)==null||t.call(S,e)},onMouseLeave:e=>{var t;R(!1),(t=S.onMouseLeave)==null||t.call(S,e)},onFocus:e=>{var t;q(),(t=S.onFocus)==null||t.call(S,e)},onBlur:e=>{var t;B(!1),(t=S.onBlur)==null||t.call(S,e)}})),[K,q,J,l,X,a,U,V,S,M?.source,O]),Q=u.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=z&&V!==null&&U!==null&&(V===U&&t===V||t>=V&&tg?g(Q):u.createElement(D.Provider,{value:Q},_),[_,Q,g]);return u.createElement(u.Fragment,null,h!==null&&u.createElement(`noscript`,null,u.createElement(`style`,null,h)),u.createElement(`div`,{ref:P,"data-input-otp-container":!0,style:Y,className:m},$,u.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},Z)))});O.displayName=`Input`;function k(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var te=` +import{d as e,i as t,m as n,n as r,r as i,x as a}from"./wayfinder-DGNmxDkm.js";import{n as o,t as s}from"./createLucideIcon-BN-jDSEO.js";var c=s(`Minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),l=t(),u=a(n(),1),d=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})h.call(t,n)&&_(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&_(e,n,t[n]);return e},ee=(e,t)=>f(e,p(t)),y=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m)for(var r of m(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n};function b(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function x(e){let t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current}var S=18,C=40,w=`${C}px`,T=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function E({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=u.useState(!1),[o,s]=u.useState(!1),[c,l]=u.useState(!1),d=u.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),f=u.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-S,f=u;document.querySelectorAll(T).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return u.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=C)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),u.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:w}}var D=u.createContext({}),O=u.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:d,pushPasswordManagerStrategy:f=`increase-width`,pasteTransformer:p,containerClassName:m,noScriptCSSFallback:h=te,render:g,children:_}=n,S=y(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),C;let[w,T]=u.useState(typeof S.defaultValue==`string`?S.defaultValue:``),O=r??w,A=x(O),j=u.useCallback(e=>{i?.(e),T(e)},[i]),M=u.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),N=u.useRef(null),P=u.useRef(null),F=u.useRef({value:O,onChange:j,isIOS:typeof window<`u`&&((C=window==null?void 0:window.CSS)?.supports)?.call(C,`-webkit-touch-callout`,`none`)}),I=u.useRef({prev:[N.current?.selectionStart,N.current?.selectionEnd,N.current?.selectionDirection]});u.useImperativeHandle(t,()=>N.current,[]),u.useEffect(()=>{let e=N.current,t=P.current;if(!e||!t)return;F.current.value!==e.value&&F.current.onChange(e.value),I.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){H(null),W(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=I.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[L,R]=u.useState(!1),[z,B]=u.useState(!1),[V,H]=u.useState(null),[U,W]=u.useState(null);u.useEffect(()=>{b(()=>{var e;(e=N.current)==null||e.dispatchEvent(new Event(`input`));let t=N.current?.selectionStart,n=N.current?.selectionEnd,r=N.current?.selectionDirection;t!==null&&n!==null&&(H(t),W(n),I.current.prev=[t,n,r])})},[O,z]),u.useEffect(()=>{A!==void 0&&O!==A&&A.length{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}typeof A==`string`&&t.length{var e;if(N.current){let t=Math.min(N.current.value.length,a-1),n=N.current.value.length;(e=N.current)==null||e.setSelectionRange(t,n),H(t),W(n)}B(!0)},[a]),J=u.useCallback(e=>{let t=N.current;if(!p&&(!F.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=p?p(n):n;e.preventDefault();let i=N.current?.selectionStart,o=N.current?.selectionEnd,s=(i===o?O.slice(0,i)+r+O.slice(i):O.slice(0,i)+r+O.slice(o)).slice(0,a);if(s.length>0&&M&&!M.test(s))return;t.value=s,j(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),H(c),W(l)},[a,j,M,O]),Y=u.useMemo(()=>({position:`relative`,cursor:S.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[S.disabled]),X=u.useMemo(()=>({position:`absolute`,inset:0,width:G.willPushPWMBadge?`calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:G.willPushPWMBadge?`inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[G.PWM_BADGE_SPACE_WIDTH,G.willPushPWMBadge,o]),Z=u.useMemo(()=>u.createElement(`input`,ee(v({autoComplete:S.autoComplete||`one-time-code`},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":O.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":U,inputMode:l,pattern:M?.source,"aria-placeholder":c,style:X,maxLength:a,value:O,ref:N,onPaste:e=>{var t;J(e),(t=S.onPaste)==null||t.call(S,e)},onChange:K,onMouseOver:e=>{var t;R(!0),(t=S.onMouseOver)==null||t.call(S,e)},onMouseLeave:e=>{var t;R(!1),(t=S.onMouseLeave)==null||t.call(S,e)},onFocus:e=>{var t;q(),(t=S.onFocus)==null||t.call(S,e)},onBlur:e=>{var t;B(!1),(t=S.onBlur)==null||t.call(S,e)}})),[K,q,J,l,X,a,U,V,S,M?.source,O]),Q=u.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=z&&V!==null&&U!==null&&(V===U&&t===V||t>=V&&tg?g(Q):u.createElement(D.Provider,{value:Q},_),[_,Q,g]);return u.createElement(u.Fragment,null,h!==null&&u.createElement(`noscript`,null,u.createElement(`style`,null,h)),u.createElement(`div`,{ref:P,"data-input-otp-container":!0,style:Y,className:m},$,u.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},Z)))});O.displayName=`Input`;function k(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var te=` [data-input-otp] { --nojs-bg: white !important; --nojs-fg: black !important; diff --git a/public/build/assets/verification-0-44BVPj.js b/public/build/assets/verification-DWj8pCN5.js similarity index 100% rename from public/build/assets/verification-0-44BVPj.js rename to public/build/assets/verification-DWj8pCN5.js diff --git a/public/build/assets/verify-email-BJE_1kxG.js b/public/build/assets/verify-email-DF33-d5n.js similarity index 80% rename from public/build/assets/verify-email-BJE_1kxG.js rename to public/build/assets/verify-email-DF33-d5n.js index 4d958ce..42afe64 100644 --- a/public/build/assets/verify-email-BJE_1kxG.js +++ b/public/build/assets/verify-email-DF33-d5n.js @@ -1 +1 @@ -import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-B6E1T0qj.js";import{c as a}from"./app-NKzAktB4.js";import{t as o}from"./spinner-DVMDXl0V.js";import{t as s}from"./text-link-B-rnxz_C.js";import{t as c}from"./verification-0-44BVPj.js";var l=t(),u=r();function d(t){let r=(0,l.c)(6),{status:i}=t,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(n,{title:`Email verification`}),r[0]=a):a=r[0];let o;r[1]===i?o=r[2]:(o=i===`verification-link-sent`&&(0,u.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:`A new verification link has been sent to the email address you provided during registration.`}),r[1]=i,r[2]=o);let s;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,u.jsx)(e,{...c.form(),className:`space-y-6 text-center`,children:f}),r[3]=s):s=r[3];let d;return r[4]===o?d=r[5]:(d=(0,u.jsxs)(u.Fragment,{children:[a,o,s]}),r[4]=o,r[5]=d),d}function f(e){let{processing:t}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(i,{disabled:t,variant:`secondary`,children:[t&&(0,u.jsx)(o,{}),`Resend verification email`]}),(0,u.jsx)(s,{href:a(),className:`mx-auto block text-sm`,children:`Log out`})]})}d.layout={title:`Verify email`,description:`Please verify your email address by clicking on the link we just emailed to you.`};export{d as default}; \ No newline at end of file +import{a as e,i as t,o as n,r}from"./wayfinder-DGNmxDkm.js";import{t as i}from"./button-CJIRvoa4.js";import{c as a}from"./app-0l60ScAC.js";import{t as o}from"./spinner-CO4WEyCd.js";import{t as s}from"./text-link-UmmgvXHR.js";import{t as c}from"./verification-DWj8pCN5.js";var l=t(),u=r();function d(t){let r=(0,l.c)(6),{status:i}=t,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(n,{title:`Email verification`}),r[0]=a):a=r[0];let o;r[1]===i?o=r[2]:(o=i===`verification-link-sent`&&(0,u.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:`A new verification link has been sent to the email address you provided during registration.`}),r[1]=i,r[2]=o);let s;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,u.jsx)(e,{...c.form(),className:`space-y-6 text-center`,children:f}),r[3]=s):s=r[3];let d;return r[4]===o?d=r[5]:(d=(0,u.jsxs)(u.Fragment,{children:[a,o,s]}),r[4]=o,r[5]=d),d}function f(e){let{processing:t}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(i,{disabled:t,variant:`secondary`,children:[t&&(0,u.jsx)(o,{}),`Resend verification email`]}),(0,u.jsx)(s,{href:a(),className:`mx-auto block text-sm`,children:`Log out`})]})}d.layout={title:`Verify email`,description:`Please verify your email address by clicking on the link we just emailed to you.`};export{d as default}; \ No newline at end of file diff --git a/public/build/assets/welcome-DahtqzTP.js b/public/build/assets/welcome-BbYySG9A.js similarity index 99% rename from public/build/assets/welcome-DahtqzTP.js rename to public/build/assets/welcome-BbYySG9A.js index 4985fdb..78a8a4c 100644 --- a/public/build/assets/welcome-DahtqzTP.js +++ b/public/build/assets/welcome-BbYySG9A.js @@ -1 +1 @@ -import{c as e,f as t,i as n,o as r,r as i}from"./wayfinder-DGNmxDkm.js";import{a,l as o,s}from"./app-NKzAktB4.js";var c=n(),l=i();function u(n){let i=(0,c.c)(22),{canRegister:u}=n,d=u===void 0?!0:u,{auth:f}=t().props,p;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,l.jsx)(r,{title:`Welcome`}),i[0]=p):p=i[0];let m;i[1]!==f.user||i[2]!==d?(m=(0,l.jsx)(`header`,{className:`mb-6 w-full max-w-[335px] text-sm not-has-[nav]:hidden lg:max-w-4xl`,children:(0,l.jsx)(`nav`,{className:`flex items-center justify-end gap-4`,children:f.user?(0,l.jsx)(e,{href:a(),className:`inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]`,children:`Dashboard`}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e,{href:s(),className:`inline-block rounded-sm border border-transparent px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#19140035] dark:text-[#EDEDEC] dark:hover:border-[#3E3E3A]`,children:`Log in`}),d&&(0,l.jsx)(e,{href:o(),className:`inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]`,children:`Register`})]})})}),i[1]=f.user,i[2]=d,i[3]=m):m=i[3];let h;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,l.jsx)(`h1`,{className:`mb-1 font-medium`,children:`Let's get started`}),i[4]=h):h=i[4];let g;i[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,l.jsxs)(`p`,{className:`mb-2 text-[#706f6c] dark:text-[#A1A09A]`,children:[`Laravel has an incredibly rich ecosystem.`,(0,l.jsx)(`br`,{}),`We suggest starting with the following.`]}),i[5]=g):g=i[5];let _;i[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,l.jsx)(`span`,{className:`relative bg-white py-1 dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`flex h-3.5 w-3.5 items-center justify-center rounded-full border border-[#e3e3e0] bg-[#FDFDFC] shadow-[0px_0px_1px_0px_rgba(0,0,0,0.03),0px_1px_2px_0px_rgba(0,0,0,0.06)] dark:border-[#3E3E3A] dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-[#dbdbd7] dark:bg-[#3E3E3A]`})})}),i[6]=_):_=i[6];let v;i[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`span`,{children:`Documentation`}),i[7]=v):v=i[7];let y;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsxs)(`li`,{className:`relative flex items-center gap-4 py-2 before:absolute before:top-1/2 before:bottom-0 before:left-[0.4rem] before:border-l before:border-[#e3e3e0] dark:before:border-[#3E3E3A]`,children:[_,(0,l.jsxs)(`span`,{children:[`Read the`,(0,l.jsxs)(`a`,{href:`https://laravel.com/docs`,target:`_blank`,className:`ml-1 inline-flex items-center space-x-1 font-medium text-[#f53003] underline underline-offset-4 dark:text-[#FF4433]`,children:[v,(0,l.jsx)(`svg`,{width:10,height:11,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`h-2.5 w-2.5`,children:(0,l.jsx)(`path`,{d:`M7.70833 6.95834V2.79167H3.54167M2.5 8L7.5 3.00001`,stroke:`currentColor`,strokeLinecap:`square`})})]})]})]}),i[8]=y):y=i[8];let b;i[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,l.jsx)(`span`,{className:`relative bg-white py-1 dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`flex h-3.5 w-3.5 items-center justify-center rounded-full border border-[#e3e3e0] bg-[#FDFDFC] shadow-[0px_0px_1px_0px_rgba(0,0,0,0.03),0px_1px_2px_0px_rgba(0,0,0,0.06)] dark:border-[#3E3E3A] dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-[#dbdbd7] dark:bg-[#3E3E3A]`})})}),i[9]=b):b=i[9];let x;i[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,l.jsx)(`span`,{children:`Laracasts`}),i[10]=x):x=i[10];let S;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,l.jsxs)(`ul`,{className:`mb-4 flex flex-col lg:mb-6`,children:[y,(0,l.jsxs)(`li`,{className:`relative flex items-center gap-4 py-2 before:absolute before:top-0 before:bottom-1/2 before:left-[0.4rem] before:border-l before:border-[#e3e3e0] dark:before:border-[#3E3E3A]`,children:[b,(0,l.jsxs)(`span`,{children:[`Watch video tutorials at`,(0,l.jsxs)(`a`,{href:`https://laracasts.com`,target:`_blank`,className:`ml-1 inline-flex items-center space-x-1 font-medium text-[#f53003] underline underline-offset-4 dark:text-[#FF4433]`,children:[x,(0,l.jsx)(`svg`,{width:10,height:11,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`h-2.5 w-2.5`,children:(0,l.jsx)(`path`,{d:`M7.70833 6.95834V2.79167H3.54167M2.5 8L7.5 3.00001`,stroke:`currentColor`,strokeLinecap:`square`})})]})]})]})]}),i[11]=S):S=i[11];let C;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,l.jsxs)(`div`,{className:`flex-1 rounded-br-lg rounded-bl-lg bg-white p-6 pb-12 text-[13px] leading-[20px] shadow-[inset_0px_0px_0px_1px_rgba(26,26,0,0.16)] lg:rounded-tl-lg lg:rounded-br-none lg:p-20 dark:bg-[#161615] dark:text-[#EDEDEC] dark:shadow-[inset_0px_0px_0px_1px_#fffaed2d]`,children:[h,g,S,(0,l.jsx)(`ul`,{className:`flex gap-3 text-sm leading-normal`,children:(0,l.jsx)(`li`,{children:(0,l.jsx)(`a`,{href:`https://cloud.laravel.com`,target:`_blank`,className:`inline-block rounded-sm border border-black bg-[#1b1b18] px-5 py-1.5 text-sm leading-normal text-white hover:border-black hover:bg-black dark:border-[#eeeeec] dark:bg-[#eeeeec] dark:text-[#1C1C1A] dark:hover:border-white dark:hover:bg-white`,children:`Deploy now`})})})]}),i[12]=C):C=i[12];let w;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,l.jsxs)(`svg`,{className:`w-full max-w-none translate-y-0 text-[#F53003] opacity-100 transition-all duration-750 dark:text-[#F61500] starting:opacity-0 motion-safe:starting:translate-y-6`,viewBox:`0 0 438 104`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`path`,{d:`M17.2036 -3H0V102.197H49.5189V86.7187H17.2036V-3Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M110.256 41.6337C108.061 38.1275 104.945 35.3731 100.905 33.3681C96.8667 31.3647 92.8016 30.3618 88.7131 30.3618C83.4247 30.3618 78.5885 31.3389 74.201 33.2923C69.8111 35.2456 66.0474 37.928 62.9059 41.3333C59.7643 44.7401 57.3198 48.6726 55.5754 53.1293C53.8287 57.589 52.9572 62.274 52.9572 67.1813C52.9572 72.1925 53.8287 76.8995 55.5754 81.3069C57.3191 85.7173 59.7636 89.6241 62.9059 93.0293C66.0474 96.4361 69.8119 99.1155 74.201 101.069C78.5885 103.022 83.4247 103.999 88.7131 103.999C92.8016 103.999 96.8667 102.997 100.905 100.994C104.945 98.9911 108.061 96.2359 110.256 92.7282V102.195H126.563V32.1642H110.256V41.6337ZM108.76 75.7472C107.762 78.4531 106.366 80.8078 104.572 82.8112C102.776 84.8161 100.606 86.4183 98.0637 87.6206C95.5202 88.823 92.7004 89.4238 89.6103 89.4238C86.5178 89.4238 83.7252 88.823 81.2324 87.6206C78.7388 86.4183 76.5949 84.8161 74.7998 82.8112C73.004 80.8078 71.6319 78.4531 70.6856 75.7472C69.7356 73.0421 69.2644 70.1868 69.2644 67.1821C69.2644 64.1758 69.7356 61.3205 70.6856 58.6154C71.6319 55.9102 73.004 53.5571 74.7998 51.5522C76.5949 49.5495 78.738 47.9451 81.2324 46.7427C83.7252 45.5404 86.5178 44.9396 89.6103 44.9396C92.7012 44.9396 95.5202 45.5404 98.0637 46.7427C100.606 47.9451 102.776 49.5487 104.572 51.5522C106.367 53.5571 107.762 55.9102 108.76 58.6154C109.756 61.3205 110.256 64.1758 110.256 67.1821C110.256 70.1868 109.756 73.0421 108.76 75.7472Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M242.805 41.6337C240.611 38.1275 237.494 35.3731 233.455 33.3681C229.416 31.3647 225.351 30.3618 221.262 30.3618C215.974 30.3618 211.138 31.3389 206.75 33.2923C202.36 35.2456 198.597 37.928 195.455 41.3333C192.314 44.7401 189.869 48.6726 188.125 53.1293C186.378 57.589 185.507 62.274 185.507 67.1813C185.507 72.1925 186.378 76.8995 188.125 81.3069C189.868 85.7173 192.313 89.6241 195.455 93.0293C198.597 96.4361 202.361 99.1155 206.75 101.069C211.138 103.022 215.974 103.999 221.262 103.999C225.351 103.999 229.416 102.997 233.455 100.994C237.494 98.9911 240.611 96.2359 242.805 92.7282V102.195H259.112V32.1642H242.805V41.6337ZM241.31 75.7472C240.312 78.4531 238.916 80.8078 237.122 82.8112C235.326 84.8161 233.156 86.4183 230.614 87.6206C228.07 88.823 225.251 89.4238 222.16 89.4238C219.068 89.4238 216.275 88.823 213.782 87.6206C211.289 86.4183 209.145 84.8161 207.35 82.8112C205.554 80.8078 204.182 78.4531 203.236 75.7472C202.286 73.0421 201.814 70.1868 201.814 67.1821C201.814 64.1758 202.286 61.3205 203.236 58.6154C204.182 55.9102 205.554 53.5571 207.35 51.5522C209.145 49.5495 211.288 47.9451 213.782 46.7427C216.275 45.5404 219.068 44.9396 222.16 44.9396C225.251 44.9396 228.07 45.5404 230.614 46.7427C233.156 47.9451 235.326 49.5487 237.122 51.5522C238.917 53.5571 240.312 55.9102 241.31 58.6154C242.306 61.3205 242.806 64.1758 242.806 67.1821C242.805 70.1868 242.305 73.0421 241.31 75.7472Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M438 -3H421.694V102.197H438V-3Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M139.43 102.197H155.735V48.2834H183.712V32.1665H139.43V102.197Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M324.49 32.1665L303.995 85.794L283.498 32.1665H266.983L293.748 102.197H314.242L341.006 32.1665H324.49Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M376.571 30.3656C356.603 30.3656 340.797 46.8497 340.797 67.1828C340.797 89.6597 356.094 104 378.661 104C391.29 104 399.354 99.1488 409.206 88.5848L398.189 80.0226C398.183 80.031 389.874 90.9895 377.468 90.9895C363.048 90.9895 356.977 79.3111 356.977 73.269H411.075C413.917 50.1328 398.775 30.3656 376.571 30.3656ZM357.02 61.0967C357.145 59.7487 359.023 43.3761 376.442 43.3761C393.861 43.3761 395.978 59.7464 396.099 61.0967H357.02Z`,fill:`currentColor`})]}),i[13]=w):w=i[13];let T;i[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,l.jsxs)(`g`,{className:`text-[#1B1B18] opacity-100 mix-blend-darken transition-all delay-300 duration-750 dark:text-black dark:mix-blend-normal starting:opacity-0`,children:[(0,l.jsxs)(`mask`,{id:`path-1-mask`,maskUnits:`userSpaceOnUse`,x:`-0.328613`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`-0.328613`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-1-mask)`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-1-mask)`})]}),i[14]=T):T=i[14];let E;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 transition-all delay-400 duration-750 dark:text-[#4B0600] starting:opacity-0 motion-safe:starting:-translate-x-[26px]`,children:[(0,l.jsxs)(`mask`,{id:`path-2-mask`,maskUnits:`userSpaceOnUse`,x:`25.3357`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`25.3357`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-2-mask)`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-2-mask)`})]}),i[15]=E):E=i[15];let D;i[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,l.jsxs)(`g`,{className:`text-[#F8B803] opacity-100 mix-blend-color transition-all delay-400 duration-750 dark:text-[#391800] dark:mix-blend-hard-light starting:opacity-0 motion-safe:starting:-translate-x-[51px]`,children:[(0,l.jsxs)(`mask`,{id:`path-3-mask`,maskUnits:`userSpaceOnUse`,x:`51`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`51`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-3-mask)`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-3-mask)`})]}),i[16]=D):D=i[16];let O;i[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 mix-blend-multiply transition-all delay-400 duration-750 dark:text-[#733000] dark:mix-blend-normal starting:opacity-0 motion-safe:starting:-translate-x-[78px]`,children:[(0,l.jsxs)(`mask`,{id:`path-4-mask`,maskUnits:`userSpaceOnUse`,x:`76.6643`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`76.6643`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-4-mask)`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-4-mask)`})]}),i[17]=O):O=i[17];let k,A;i[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,l.jsx)(`div`,{className:`flex w-full items-center justify-center opacity-100 transition-opacity duration-750 lg:grow starting:opacity-0`,children:(0,l.jsxs)(`main`,{className:`flex w-full max-w-[335px] flex-col-reverse lg:max-w-4xl lg:flex-row`,children:[C,(0,l.jsxs)(`div`,{className:`relative -mb-px aspect-[335/364] w-full shrink-0 overflow-hidden rounded-t-lg bg-[#fff2f2] lg:mb-0 lg:-ml-px lg:aspect-auto lg:w-[438px] lg:rounded-t-none lg:rounded-r-lg dark:bg-[#1D0002]`,children:[w,(0,l.jsxs)(`svg`,{className:`relative -mt-[6.6rem] -ml-8 w-[438px] max-w-none [--stroke-color:#1B1B18] lg:ml-0 dark:[--stroke-color:#FF750F]`,viewBox:`0 0 440 392`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[T,E,D,O,(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 mix-blend-hard-light transition-all delay-400 duration-750 dark:text-[#4B0600] starting:opacity-0 motion-safe:starting:-translate-x-[102px]`,children:[(0,l.jsxs)(`mask`,{id:`path-5-mask`,maskUnits:`userSpaceOnUse`,x:`102.329`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`102.329`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-5-mask)`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-5-mask)`})]})]}),(0,l.jsx)(`div`,{className:`absolute inset-0 rounded-t-lg shadow-[inset_0px_0px_0px_1px_rgba(26,26,0,0.16)] lg:rounded-t-none lg:rounded-r-lg dark:shadow-[inset_0px_0px_0px_1px_#fffaed2d]`})]})]})}),A=(0,l.jsx)(`div`,{className:`hidden h-14.5 lg:block`}),i[18]=k,i[19]=A):(k=i[18],A=i[19]);let j;return i[20]===m?j=i[21]:(j=(0,l.jsxs)(l.Fragment,{children:[p,(0,l.jsxs)(`div`,{className:`flex min-h-screen flex-col items-center bg-[#FDFDFC] p-6 text-[#1b1b18] lg:justify-center lg:p-8 dark:bg-[#0a0a0a]`,children:[m,k,A]})]}),i[20]=m,i[21]=j),j}export{u as default}; \ No newline at end of file +import{c as e,f as t,i as n,o as r,r as i}from"./wayfinder-DGNmxDkm.js";import{a,l as o,s}from"./app-0l60ScAC.js";var c=n(),l=i();function u(n){let i=(0,c.c)(22),{canRegister:u}=n,d=u===void 0?!0:u,{auth:f}=t().props,p;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,l.jsx)(r,{title:`Welcome`}),i[0]=p):p=i[0];let m;i[1]!==f.user||i[2]!==d?(m=(0,l.jsx)(`header`,{className:`mb-6 w-full max-w-[335px] text-sm not-has-[nav]:hidden lg:max-w-4xl`,children:(0,l.jsx)(`nav`,{className:`flex items-center justify-end gap-4`,children:f.user?(0,l.jsx)(e,{href:a(),className:`inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]`,children:`Dashboard`}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e,{href:s(),className:`inline-block rounded-sm border border-transparent px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#19140035] dark:text-[#EDEDEC] dark:hover:border-[#3E3E3A]`,children:`Log in`}),d&&(0,l.jsx)(e,{href:o(),className:`inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]`,children:`Register`})]})})}),i[1]=f.user,i[2]=d,i[3]=m):m=i[3];let h;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,l.jsx)(`h1`,{className:`mb-1 font-medium`,children:`Let's get started`}),i[4]=h):h=i[4];let g;i[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,l.jsxs)(`p`,{className:`mb-2 text-[#706f6c] dark:text-[#A1A09A]`,children:[`Laravel has an incredibly rich ecosystem.`,(0,l.jsx)(`br`,{}),`We suggest starting with the following.`]}),i[5]=g):g=i[5];let _;i[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,l.jsx)(`span`,{className:`relative bg-white py-1 dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`flex h-3.5 w-3.5 items-center justify-center rounded-full border border-[#e3e3e0] bg-[#FDFDFC] shadow-[0px_0px_1px_0px_rgba(0,0,0,0.03),0px_1px_2px_0px_rgba(0,0,0,0.06)] dark:border-[#3E3E3A] dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-[#dbdbd7] dark:bg-[#3E3E3A]`})})}),i[6]=_):_=i[6];let v;i[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`span`,{children:`Documentation`}),i[7]=v):v=i[7];let y;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsxs)(`li`,{className:`relative flex items-center gap-4 py-2 before:absolute before:top-1/2 before:bottom-0 before:left-[0.4rem] before:border-l before:border-[#e3e3e0] dark:before:border-[#3E3E3A]`,children:[_,(0,l.jsxs)(`span`,{children:[`Read the`,(0,l.jsxs)(`a`,{href:`https://laravel.com/docs`,target:`_blank`,className:`ml-1 inline-flex items-center space-x-1 font-medium text-[#f53003] underline underline-offset-4 dark:text-[#FF4433]`,children:[v,(0,l.jsx)(`svg`,{width:10,height:11,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`h-2.5 w-2.5`,children:(0,l.jsx)(`path`,{d:`M7.70833 6.95834V2.79167H3.54167M2.5 8L7.5 3.00001`,stroke:`currentColor`,strokeLinecap:`square`})})]})]})]}),i[8]=y):y=i[8];let b;i[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,l.jsx)(`span`,{className:`relative bg-white py-1 dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`flex h-3.5 w-3.5 items-center justify-center rounded-full border border-[#e3e3e0] bg-[#FDFDFC] shadow-[0px_0px_1px_0px_rgba(0,0,0,0.03),0px_1px_2px_0px_rgba(0,0,0,0.06)] dark:border-[#3E3E3A] dark:bg-[#161615]`,children:(0,l.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-[#dbdbd7] dark:bg-[#3E3E3A]`})})}),i[9]=b):b=i[9];let x;i[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,l.jsx)(`span`,{children:`Laracasts`}),i[10]=x):x=i[10];let S;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,l.jsxs)(`ul`,{className:`mb-4 flex flex-col lg:mb-6`,children:[y,(0,l.jsxs)(`li`,{className:`relative flex items-center gap-4 py-2 before:absolute before:top-0 before:bottom-1/2 before:left-[0.4rem] before:border-l before:border-[#e3e3e0] dark:before:border-[#3E3E3A]`,children:[b,(0,l.jsxs)(`span`,{children:[`Watch video tutorials at`,(0,l.jsxs)(`a`,{href:`https://laracasts.com`,target:`_blank`,className:`ml-1 inline-flex items-center space-x-1 font-medium text-[#f53003] underline underline-offset-4 dark:text-[#FF4433]`,children:[x,(0,l.jsx)(`svg`,{width:10,height:11,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`h-2.5 w-2.5`,children:(0,l.jsx)(`path`,{d:`M7.70833 6.95834V2.79167H3.54167M2.5 8L7.5 3.00001`,stroke:`currentColor`,strokeLinecap:`square`})})]})]})]})]}),i[11]=S):S=i[11];let C;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,l.jsxs)(`div`,{className:`flex-1 rounded-br-lg rounded-bl-lg bg-white p-6 pb-12 text-[13px] leading-[20px] shadow-[inset_0px_0px_0px_1px_rgba(26,26,0,0.16)] lg:rounded-tl-lg lg:rounded-br-none lg:p-20 dark:bg-[#161615] dark:text-[#EDEDEC] dark:shadow-[inset_0px_0px_0px_1px_#fffaed2d]`,children:[h,g,S,(0,l.jsx)(`ul`,{className:`flex gap-3 text-sm leading-normal`,children:(0,l.jsx)(`li`,{children:(0,l.jsx)(`a`,{href:`https://cloud.laravel.com`,target:`_blank`,className:`inline-block rounded-sm border border-black bg-[#1b1b18] px-5 py-1.5 text-sm leading-normal text-white hover:border-black hover:bg-black dark:border-[#eeeeec] dark:bg-[#eeeeec] dark:text-[#1C1C1A] dark:hover:border-white dark:hover:bg-white`,children:`Deploy now`})})})]}),i[12]=C):C=i[12];let w;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,l.jsxs)(`svg`,{className:`w-full max-w-none translate-y-0 text-[#F53003] opacity-100 transition-all duration-750 dark:text-[#F61500] starting:opacity-0 motion-safe:starting:translate-y-6`,viewBox:`0 0 438 104`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`path`,{d:`M17.2036 -3H0V102.197H49.5189V86.7187H17.2036V-3Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M110.256 41.6337C108.061 38.1275 104.945 35.3731 100.905 33.3681C96.8667 31.3647 92.8016 30.3618 88.7131 30.3618C83.4247 30.3618 78.5885 31.3389 74.201 33.2923C69.8111 35.2456 66.0474 37.928 62.9059 41.3333C59.7643 44.7401 57.3198 48.6726 55.5754 53.1293C53.8287 57.589 52.9572 62.274 52.9572 67.1813C52.9572 72.1925 53.8287 76.8995 55.5754 81.3069C57.3191 85.7173 59.7636 89.6241 62.9059 93.0293C66.0474 96.4361 69.8119 99.1155 74.201 101.069C78.5885 103.022 83.4247 103.999 88.7131 103.999C92.8016 103.999 96.8667 102.997 100.905 100.994C104.945 98.9911 108.061 96.2359 110.256 92.7282V102.195H126.563V32.1642H110.256V41.6337ZM108.76 75.7472C107.762 78.4531 106.366 80.8078 104.572 82.8112C102.776 84.8161 100.606 86.4183 98.0637 87.6206C95.5202 88.823 92.7004 89.4238 89.6103 89.4238C86.5178 89.4238 83.7252 88.823 81.2324 87.6206C78.7388 86.4183 76.5949 84.8161 74.7998 82.8112C73.004 80.8078 71.6319 78.4531 70.6856 75.7472C69.7356 73.0421 69.2644 70.1868 69.2644 67.1821C69.2644 64.1758 69.7356 61.3205 70.6856 58.6154C71.6319 55.9102 73.004 53.5571 74.7998 51.5522C76.5949 49.5495 78.738 47.9451 81.2324 46.7427C83.7252 45.5404 86.5178 44.9396 89.6103 44.9396C92.7012 44.9396 95.5202 45.5404 98.0637 46.7427C100.606 47.9451 102.776 49.5487 104.572 51.5522C106.367 53.5571 107.762 55.9102 108.76 58.6154C109.756 61.3205 110.256 64.1758 110.256 67.1821C110.256 70.1868 109.756 73.0421 108.76 75.7472Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M242.805 41.6337C240.611 38.1275 237.494 35.3731 233.455 33.3681C229.416 31.3647 225.351 30.3618 221.262 30.3618C215.974 30.3618 211.138 31.3389 206.75 33.2923C202.36 35.2456 198.597 37.928 195.455 41.3333C192.314 44.7401 189.869 48.6726 188.125 53.1293C186.378 57.589 185.507 62.274 185.507 67.1813C185.507 72.1925 186.378 76.8995 188.125 81.3069C189.868 85.7173 192.313 89.6241 195.455 93.0293C198.597 96.4361 202.361 99.1155 206.75 101.069C211.138 103.022 215.974 103.999 221.262 103.999C225.351 103.999 229.416 102.997 233.455 100.994C237.494 98.9911 240.611 96.2359 242.805 92.7282V102.195H259.112V32.1642H242.805V41.6337ZM241.31 75.7472C240.312 78.4531 238.916 80.8078 237.122 82.8112C235.326 84.8161 233.156 86.4183 230.614 87.6206C228.07 88.823 225.251 89.4238 222.16 89.4238C219.068 89.4238 216.275 88.823 213.782 87.6206C211.289 86.4183 209.145 84.8161 207.35 82.8112C205.554 80.8078 204.182 78.4531 203.236 75.7472C202.286 73.0421 201.814 70.1868 201.814 67.1821C201.814 64.1758 202.286 61.3205 203.236 58.6154C204.182 55.9102 205.554 53.5571 207.35 51.5522C209.145 49.5495 211.288 47.9451 213.782 46.7427C216.275 45.5404 219.068 44.9396 222.16 44.9396C225.251 44.9396 228.07 45.5404 230.614 46.7427C233.156 47.9451 235.326 49.5487 237.122 51.5522C238.917 53.5571 240.312 55.9102 241.31 58.6154C242.306 61.3205 242.806 64.1758 242.806 67.1821C242.805 70.1868 242.305 73.0421 241.31 75.7472Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M438 -3H421.694V102.197H438V-3Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M139.43 102.197H155.735V48.2834H183.712V32.1665H139.43V102.197Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M324.49 32.1665L303.995 85.794L283.498 32.1665H266.983L293.748 102.197H314.242L341.006 32.1665H324.49Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M376.571 30.3656C356.603 30.3656 340.797 46.8497 340.797 67.1828C340.797 89.6597 356.094 104 378.661 104C391.29 104 399.354 99.1488 409.206 88.5848L398.189 80.0226C398.183 80.031 389.874 90.9895 377.468 90.9895C363.048 90.9895 356.977 79.3111 356.977 73.269H411.075C413.917 50.1328 398.775 30.3656 376.571 30.3656ZM357.02 61.0967C357.145 59.7487 359.023 43.3761 376.442 43.3761C393.861 43.3761 395.978 59.7464 396.099 61.0967H357.02Z`,fill:`currentColor`})]}),i[13]=w):w=i[13];let T;i[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,l.jsxs)(`g`,{className:`text-[#1B1B18] opacity-100 mix-blend-darken transition-all delay-300 duration-750 dark:text-black dark:mix-blend-normal starting:opacity-0`,children:[(0,l.jsxs)(`mask`,{id:`path-1-mask`,maskUnits:`userSpaceOnUse`,x:`-0.328613`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`-0.328613`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M234.936 400.8C204.136 400.8 178.936 392.4 159.336 375.6C140.136 358.8 130.536 337 130.536 310.2H200.736C200.736 318.2 203.736 324.8 209.736 330C215.736 335.2 223.736 337.8 233.736 337.8C243.336 337.8 251.136 335 257.136 329.4C263.536 323.8 266.736 316.6 266.736 307.8C266.736 299.8 263.936 293.2 258.336 288C252.736 282.8 245.536 280.2 236.736 280.2H199.536V218.4H236.736C243.536 218.4 249.336 216 254.136 211.2C258.936 206.4 261.336 200.4 261.336 193.2C261.336 184.8 258.736 178.2 253.536 173.4C248.336 168.6 241.736 166.2 233.736 166.2C226.536 166.2 220.336 168.4 215.136 172.8C210.336 177.2 207.936 182.8 207.936 189.6H141.336C141.336 164.8 150.136 144.6 167.736 129C185.336 113 207.936 105 235.536 105C263.136 105 285.536 112.2 302.736 126.6C320.336 141 329.136 160 329.136 183.6C329.136 200.8 324.536 214.8 315.336 225.6C306.136 236 294.336 243.2 279.936 247.2C297.136 252 310.736 260.2 320.736 271.8C331.136 283.4 336.336 298 336.336 315.6C336.336 340.4 326.936 360.8 308.136 376.8C289.336 392.8 264.936 400.8 234.936 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-1-mask)`}),(0,l.jsx)(`path`,{d:`M26.8714 167.6H1.67139V105.2H94.6714V400.2H26.8714V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-1-mask)`})]}),i[14]=T):T=i[14];let E;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 transition-all delay-400 duration-750 dark:text-[#4B0600] starting:opacity-0 motion-safe:starting:-translate-x-[26px]`,children:[(0,l.jsxs)(`mask`,{id:`path-2-mask`,maskUnits:`userSpaceOnUse`,x:`25.3357`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`25.3357`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M260.6 400.8C229.8 400.8 204.6 392.4 185 375.6C165.8 358.8 156.2 337 156.2 310.2H226.4C226.4 318.2 229.4 324.8 235.4 330C241.4 335.2 249.4 337.8 259.4 337.8C269 337.8 276.8 335 282.8 329.4C289.2 323.8 292.4 316.6 292.4 307.8C292.4 299.8 289.6 293.2 284 288C278.4 282.8 271.2 280.2 262.4 280.2H225.2V218.4H262.4C269.2 218.4 275 216 279.8 211.2C284.6 206.4 287 200.4 287 193.2C287 184.8 284.4 178.2 279.2 173.4C274 168.6 267.4 166.2 259.4 166.2C252.2 166.2 246 168.4 240.8 172.8C236 177.2 233.6 182.8 233.6 189.6H167C167 164.8 175.8 144.6 193.4 129C211 113 233.6 105 261.2 105C288.8 105 311.2 112.2 328.4 126.6C346 141 354.8 160 354.8 183.6C354.8 200.8 350.2 214.8 341 225.6C331.8 236 320 243.2 305.6 247.2C322.8 252 336.4 260.2 346.4 271.8C356.8 283.4 362 298 362 315.6C362 340.4 352.6 360.8 333.8 376.8C315 392.8 290.6 400.8 260.6 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-2-mask)`}),(0,l.jsx)(`path`,{d:`M52.5357 167.6H27.3357V105.2H120.336V400.2H52.5357V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-2-mask)`})]}),i[15]=E):E=i[15];let D;i[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,l.jsxs)(`g`,{className:`text-[#F8B803] opacity-100 mix-blend-color transition-all delay-400 duration-750 dark:text-[#391800] dark:mix-blend-hard-light starting:opacity-0 motion-safe:starting:-translate-x-[51px]`,children:[(0,l.jsxs)(`mask`,{id:`path-3-mask`,maskUnits:`userSpaceOnUse`,x:`51`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`51`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M286.264 400.8C255.464 400.8 230.264 392.4 210.664 375.6C191.464 358.8 181.864 337 181.864 310.2H252.064C252.064 318.2 255.064 324.8 261.064 330C267.064 335.2 275.064 337.8 285.064 337.8C294.664 337.8 302.464 335 308.464 329.4C314.864 323.8 318.064 316.6 318.064 307.8C318.064 299.8 315.264 293.2 309.664 288C304.064 282.8 296.864 280.2 288.064 280.2H250.864V218.4H288.064C294.864 218.4 300.664 216 305.464 211.2C310.264 206.4 312.664 200.4 312.664 193.2C312.664 184.8 310.064 178.2 304.864 173.4C299.664 168.6 293.064 166.2 285.064 166.2C277.864 166.2 271.664 168.4 266.464 172.8C261.664 177.2 259.264 182.8 259.264 189.6H192.664C192.664 164.8 201.464 144.6 219.064 129C236.664 113 259.264 105 286.864 105C314.464 105 336.864 112.2 354.064 126.6C371.664 141 380.464 160 380.464 183.6C380.464 200.8 375.864 214.8 366.664 225.6C357.464 236 345.664 243.2 331.264 247.2C348.464 252 362.064 260.2 372.064 271.8C382.464 283.4 387.664 298 387.664 315.6C387.664 340.4 378.264 360.8 359.464 376.8C340.664 392.8 316.264 400.8 286.264 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-3-mask)`}),(0,l.jsx)(`path`,{d:`M78.2 167.6H53V105.2H146V400.2H78.2V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-3-mask)`})]}),i[16]=D):D=i[16];let O;i[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 mix-blend-multiply transition-all delay-400 duration-750 dark:text-[#733000] dark:mix-blend-normal starting:opacity-0 motion-safe:starting:-translate-x-[78px]`,children:[(0,l.jsxs)(`mask`,{id:`path-4-mask`,maskUnits:`userSpaceOnUse`,x:`76.6643`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`76.6643`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M311.929 400.8C281.129 400.8 255.929 392.4 236.329 375.6C217.129 358.8 207.529 337 207.529 310.2H277.729C277.729 318.2 280.729 324.8 286.729 330C292.729 335.2 300.729 337.8 310.729 337.8C320.329 337.8 328.129 335 334.129 329.4C340.529 323.8 343.729 316.6 343.729 307.8C343.729 299.8 340.929 293.2 335.329 288C329.729 282.8 322.529 280.2 313.729 280.2H276.529V218.4H313.729C320.529 218.4 326.329 216 331.129 211.2C335.929 206.4 338.329 200.4 338.329 193.2C338.329 184.8 335.729 178.2 330.529 173.4C325.329 168.6 318.729 166.2 310.729 166.2C303.529 166.2 297.329 168.4 292.129 172.8C287.329 177.2 284.929 182.8 284.929 189.6H218.329C218.329 164.8 227.129 144.6 244.729 129C262.329 113 284.929 105 312.529 105C340.129 105 362.529 112.2 379.729 126.6C397.329 141 406.129 160 406.129 183.6C406.129 200.8 401.529 214.8 392.329 225.6C383.129 236 371.329 243.2 356.929 247.2C374.129 252 387.729 260.2 397.729 271.8C408.129 283.4 413.329 298 413.329 315.6C413.329 340.4 403.929 360.8 385.129 376.8C366.329 392.8 341.929 400.8 311.929 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-4-mask)`}),(0,l.jsx)(`path`,{d:`M103.864 167.6H78.6643V105.2H171.664V400.2H103.864V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-4-mask)`})]}),i[17]=O):O=i[17];let k,A;i[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,l.jsx)(`div`,{className:`flex w-full items-center justify-center opacity-100 transition-opacity duration-750 lg:grow starting:opacity-0`,children:(0,l.jsxs)(`main`,{className:`flex w-full max-w-[335px] flex-col-reverse lg:max-w-4xl lg:flex-row`,children:[C,(0,l.jsxs)(`div`,{className:`relative -mb-px aspect-[335/364] w-full shrink-0 overflow-hidden rounded-t-lg bg-[#fff2f2] lg:mb-0 lg:-ml-px lg:aspect-auto lg:w-[438px] lg:rounded-t-none lg:rounded-r-lg dark:bg-[#1D0002]`,children:[w,(0,l.jsxs)(`svg`,{className:`relative -mt-[6.6rem] -ml-8 w-[438px] max-w-none [--stroke-color:#1B1B18] lg:ml-0 dark:[--stroke-color:#FF750F]`,viewBox:`0 0 440 392`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[T,E,D,O,(0,l.jsxs)(`g`,{className:`text-[#F3BEC7] opacity-100 mix-blend-hard-light transition-all delay-400 duration-750 dark:text-[#4B0600] starting:opacity-0 motion-safe:starting:-translate-x-[102px]`,children:[(0,l.jsxs)(`mask`,{id:`path-5-mask`,maskUnits:`userSpaceOnUse`,x:`102.329`,y:`103`,width:`338`,height:`299`,fill:`black`,children:[(0,l.jsx)(`rect`,{fill:`white`,x:`102.329`,y:`103`,width:`338`,height:`299`}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`})]}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`,fill:`currentColor`}),(0,l.jsx)(`path`,{d:`M337.593 400.8C306.793 400.8 281.593 392.4 261.993 375.6C242.793 358.8 233.193 337 233.193 310.2H303.393C303.393 318.2 306.393 324.8 312.393 330C318.393 335.2 326.393 337.8 336.393 337.8C345.993 337.8 353.793 335 359.793 329.4C366.193 323.8 369.393 316.6 369.393 307.8C369.393 299.8 366.593 293.2 360.993 288C355.393 282.8 348.193 280.2 339.393 280.2H302.193V218.4H339.393C346.193 218.4 351.993 216 356.793 211.2C361.593 206.4 363.993 200.4 363.993 193.2C363.993 184.8 361.393 178.2 356.193 173.4C350.993 168.6 344.393 166.2 336.393 166.2C329.193 166.2 322.993 168.4 317.793 172.8C312.993 177.2 310.593 182.8 310.593 189.6H243.993C243.993 164.8 252.793 144.6 270.393 129C287.993 113 310.593 105 338.193 105C365.793 105 388.193 112.2 405.393 126.6C422.993 141 431.793 160 431.793 183.6C431.793 200.8 427.193 214.8 417.993 225.6C408.793 236 396.993 243.2 382.593 247.2C399.793 252 413.393 260.2 423.393 271.8C433.793 283.4 438.993 298 438.993 315.6C438.993 340.4 429.593 360.8 410.793 376.8C391.993 392.8 367.593 400.8 337.593 400.8Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-5-mask)`}),(0,l.jsx)(`path`,{d:`M129.529 167.6H104.329V105.2H197.329V400.2H129.529V167.6Z`,stroke:`var(--stroke-color)`,strokeWidth:`2.4`,mask:`url(#path-5-mask)`})]})]}),(0,l.jsx)(`div`,{className:`absolute inset-0 rounded-t-lg shadow-[inset_0px_0px_0px_1px_rgba(26,26,0,0.16)] lg:rounded-t-none lg:rounded-r-lg dark:shadow-[inset_0px_0px_0px_1px_#fffaed2d]`})]})]})}),A=(0,l.jsx)(`div`,{className:`hidden h-14.5 lg:block`}),i[18]=k,i[19]=A):(k=i[18],A=i[19]);let j;return i[20]===m?j=i[21]:(j=(0,l.jsxs)(l.Fragment,{children:[p,(0,l.jsxs)(`div`,{className:`flex min-h-screen flex-col items-center bg-[#FDFDFC] p-6 text-[#1b1b18] lg:justify-center lg:p-8 dark:bg-[#0a0a0a]`,children:[m,k,A]})]}),i[20]=m,i[21]=j),j}export{u as default}; \ No newline at end of file diff --git a/public/build/manifest.json b/public/build/manifest.json index fd00a38..6a19de0 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,95 +1,146 @@ { - "_button-B6E1T0qj.js": { - "file": "assets/button-B6E1T0qj.js", + "_alert-D8f1uXWR.js": { + "file": "assets/alert-D8f1uXWR.js", + "name": "alert", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_button-CJIRvoa4.js", + "_createLucideIcon-BN-jDSEO.js" + ] + }, + "_badge-BqJn0VCH.js": { + "file": "assets/badge-BqJn0VCH.js", + "name": "badge", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_button-CJIRvoa4.js", + "_createLucideIcon-BN-jDSEO.js" + ] + }, + "_button-CJIRvoa4.js": { + "file": "assets/button-CJIRvoa4.js", "name": "button", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_card-DGuRpKkV.js": { - "file": "assets/card-DGuRpKkV.js", + "_card-D_BkPXgE.js": { + "file": "assets/card-D_BkPXgE.js", "name": "card", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_check-JLGZ6ERA.js": { - "file": "assets/check-JLGZ6ERA.js", + "_check-CWekFaHD.js": { + "file": "assets/check-CWekFaHD.js", "name": "check", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_chevron-down-xYnWKEDk.js": { - "file": "assets/chevron-down-xYnWKEDk.js", + "_checkbox-DlkBWsch.js": { + "file": "assets/checkbox-DlkBWsch.js", + "name": "checkbox", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_dist-CE9c1Q26.js", + "_button-CJIRvoa4.js", + "_dist-CNJ93GkG.js", + "_dist-B2I70joJ.js", + "_createLucideIcon-BN-jDSEO.js", + "_check-CWekFaHD.js" + ] + }, + "_chevron-down-BXFNulw6.js": { + "file": "assets/chevron-down-BXFNulw6.js", "name": "chevron-down", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_confirm-gXMuOnz9.js": { - "file": "assets/confirm-gXMuOnz9.js", + "_confirm-B_yzhW7J.js": { + "file": "assets/confirm-B_yzhW7J.js", "name": "confirm", "imports": [ "_wayfinder-DGNmxDkm.js" ] }, - "_copy-DipuxFuX.js": { - "file": "assets/copy-DipuxFuX.js", + "_copy-DVuxs_qN.js": { + "file": "assets/copy-DVuxs_qN.js", "name": "copy", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_createLucideIcon-wUA1TGAT.js": { - "file": "assets/createLucideIcon-wUA1TGAT.js", + "_createLucideIcon-BN-jDSEO.js": { + "file": "assets/createLucideIcon-BN-jDSEO.js", "name": "createLucideIcon", "imports": [ "_wayfinder-DGNmxDkm.js" ] }, - "_dialog-DDCot1iY.js": { - "file": "assets/dialog-DDCot1iY.js", + "_dialog-D0ulBexn.js": { + "file": "assets/dialog-D0ulBexn.js", "name": "dialog", "imports": [ "_wayfinder-DGNmxDkm.js", - "_dist-Cz7M9pMz.js", - "_createLucideIcon-wUA1TGAT.js" + "_dist-Cw-hV1_S.js", + "_createLucideIcon-BN-jDSEO.js" ] }, - "_dist-2FHDdoqV.js": { - "file": "assets/dist-2FHDdoqV.js", + "_dist-B2I70joJ.js": { + "file": "assets/dist-B2I70joJ.js", "name": "dist", "imports": [ "_wayfinder-DGNmxDkm.js", - "_button-B6E1T0qj.js" + "_dist-CE9c1Q26.js" ] }, - "_dist-Cz7M9pMz.js": { - "file": "assets/dist-Cz7M9pMz.js", + "_dist-BXzvTKID.js": { + "file": "assets/dist-BXzvTKID.js", "name": "dist", "imports": [ "_wayfinder-DGNmxDkm.js", - "_dist-uBvN1Epe.js", - "_button-B6E1T0qj.js", - "_createLucideIcon-wUA1TGAT.js" + "_floating-ui.react-dom-DuoUqJja.js", + "_dist-CE9c1Q26.js", + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_dist-B2I70joJ.js" ] }, - "_dist-DlwT0Sy6.js": { - "file": "assets/dist-DlwT0Sy6.js", + "_dist-CE9c1Q26.js": { + "file": "assets/dist-CE9c1Q26.js", + "name": "dist", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_button-CJIRvoa4.js" + ] + }, + "_dist-CNJ93GkG.js": { + "file": "assets/dist-CNJ93GkG.js", "name": "dist", "imports": [ "_wayfinder-DGNmxDkm.js" ] }, - "_dist-uBvN1Epe.js": { - "file": "assets/dist-uBvN1Epe.js", + "_dist-Cw-hV1_S.js": { + "file": "assets/dist-Cw-hV1_S.js", + "name": "dist", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_dist-CE9c1Q26.js", + "_button-CJIRvoa4.js", + "_createLucideIcon-BN-jDSEO.js" + ] + }, + "_dist-Hfu0N5sY.js": { + "file": "assets/dist-Hfu0N5sY.js", "name": "dist", "imports": [ "_wayfinder-DGNmxDkm.js", - "_button-B6E1T0qj.js" + "_button-CJIRvoa4.js" ] }, "_floating-ui.react-dom-DuoUqJja.js": { @@ -103,28 +154,35 @@ "file": "assets/fonts-DkuEHybc.css", "src": "_fonts-DkuEHybc.css" }, - "_github-DdPrsZVB.js": { - "file": "assets/github-DdPrsZVB.js", + "_github-D7dT9N2Y.js": { + "file": "assets/github-D7dT9N2Y.js", "name": "github", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_glow-radial-BlYCryQ3.js": { - "file": "assets/glow-radial-BlYCryQ3.js", + "_glow-radial-C29beylo.js": { + "file": "assets/glow-radial-C29beylo.js", "name": "glow-radial", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js" + "_dist-CE9c1Q26.js", + "_dist-BXzvTKID.js", + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_dist-CNJ93GkG.js", + "_createLucideIcon-BN-jDSEO.js", + "_main-layout-BDfUDiNw.js", + "_check-CWekFaHD.js", + "_chevron-down-BXFNulw6.js" ] }, - "_input-error-CXzYDMKp.js": { - "file": "assets/input-error-CXzYDMKp.js", + "_input-error-B7LHFA6O.js": { + "file": "assets/input-error-B7LHFA6O.js", "name": "input-error", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, "_instrument-sans-400-normal-D1W7dsQl.woff": { @@ -175,105 +233,120 @@ "file": "assets/instrument-sans-600-normal-DMks36a2.woff", "src": "_instrument-sans-600-normal-DMks36a2.woff" }, - "_label-DR9FZUM0.js": { - "file": "assets/label-DR9FZUM0.js", + "_label-shgfY21t.js": { + "file": "assets/label-shgfY21t.js", "name": "label", "imports": [ "_wayfinder-DGNmxDkm.js", - "_dist-2FHDdoqV.js", - "_createLucideIcon-wUA1TGAT.js" + "_dist-Hfu0N5sY.js", + "_createLucideIcon-BN-jDSEO.js" ] }, - "_loader-circle-BczqqvyR.js": { - "file": "assets/loader-circle-BczqqvyR.js", + "_loader-circle-kx-CiozJ.js": { + "file": "assets/loader-circle-kx-CiozJ.js", "name": "loader-circle", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_main-layout-Bjl0T2Wa.js": { - "file": "assets/main-layout-Bjl0T2Wa.js", + "_main-layout-BDfUDiNw.js": { + "file": "assets/main-layout-BDfUDiNw.js", "name": "main-layout", "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_dist-Cz7M9pMz.js", - "_createLucideIcon-wUA1TGAT.js", - "_check-JLGZ6ERA.js", - "_github-DdPrsZVB.js", - "_sun-BUK2gUl5.js", - "_placeholder-pattern-nTsSuoW-.js", + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_createLucideIcon-BN-jDSEO.js", + "_check-CWekFaHD.js", + "_github-D7dT9N2Y.js", + "_sun-DKOQEsNV.js", + "_placeholder-pattern-B0M5WUpE.js", "_use-appearance-QmpypXC6.js" ] }, - "_password-DgvYQGdP.js": { - "file": "assets/password-DgvYQGdP.js", + "_password-4MQY-sCe.js": { + "file": "assets/password-4MQY-sCe.js", "name": "password", "imports": [ "_wayfinder-DGNmxDkm.js", - "_confirm-gXMuOnz9.js" + "_confirm-B_yzhW7J.js" ] }, - "_password-input-HSktczCa.js": { - "file": "assets/password-input-HSktczCa.js", + "_password-input-uWAWfR_8.js": { + "file": "assets/password-input-uWAWfR_8.js", "name": "password-input", "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_placeholder-pattern-nTsSuoW-.js": { - "file": "assets/placeholder-pattern-nTsSuoW-.js", + "_placeholder-pattern-B0M5WUpE.js": { + "file": "assets/placeholder-pattern-B0M5WUpE.js", "name": "placeholder-pattern", "imports": [ "_wayfinder-DGNmxDkm.js" ] }, - "_registry-installer-iv12Azo6.js": { - "file": "assets/registry-installer-iv12Azo6.js", + "_registry-installer-BbAk2A5r.js": { + "file": "assets/registry-installer-BbAk2A5r.js", "name": "registry-installer", "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js", - "_check-JLGZ6ERA.js", - "_copy-DipuxFuX.js" + "_button-CJIRvoa4.js", + "_createLucideIcon-BN-jDSEO.js", + "_main-layout-BDfUDiNw.js", + "_check-CWekFaHD.js", + "_copy-DVuxs_qN.js" + ] + }, + "_shim-B1jYWA9-.js": { + "file": "assets/shim-B1jYWA9-.js", + "name": "shim", + "imports": [ + "_wayfinder-DGNmxDkm.js" ] }, - "_socialite-CXgr0CAW.js": { - "file": "assets/socialite-CXgr0CAW.js", + "_socialite-BKXn5KQb.js": { + "file": "assets/socialite-BKXn5KQb.js", "name": "socialite", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_spinner-DVMDXl0V.js": { - "file": "assets/spinner-DVMDXl0V.js", + "_spinner-CO4WEyCd.js": { + "file": "assets/spinner-CO4WEyCd.js", "name": "spinner", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js", - "_loader-circle-BczqqvyR.js" + "_createLucideIcon-BN-jDSEO.js", + "_loader-circle-kx-CiozJ.js" ] }, - "_sun-BUK2gUl5.js": { - "file": "assets/sun-BUK2gUl5.js", + "_sun-DKOQEsNV.js": { + "file": "assets/sun-DKOQEsNV.js", "name": "sun", "imports": [ - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_text-link-B-rnxz_C.js": { - "file": "assets/text-link-B-rnxz_C.js", + "_text-link-UmmgvXHR.js": { + "file": "assets/text-link-UmmgvXHR.js", "name": "text-link", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" + ] + }, + "_textarea-CdB2elwd.js": { + "file": "assets/textarea-CdB2elwd.js", + "name": "textarea", + "imports": [ + "_wayfinder-DGNmxDkm.js", + "_createLucideIcon-BN-jDSEO.js" ] }, "_use-appearance-QmpypXC6.js": { @@ -283,16 +356,16 @@ "_wayfinder-DGNmxDkm.js" ] }, - "_use-two-factor-auth-BbF_ctUq.js": { - "file": "assets/use-two-factor-auth-BbF_ctUq.js", + "_use-two-factor-auth-BvOwR0Xx.js": { + "file": "assets/use-two-factor-auth-BvOwR0Xx.js", "name": "use-two-factor-auth", "imports": [ "_wayfinder-DGNmxDkm.js", - "_createLucideIcon-wUA1TGAT.js" + "_createLucideIcon-BN-jDSEO.js" ] }, - "_verification-0-44BVPj.js": { - "file": "assets/verification-0-44BVPj.js", + "_verification-DWj8pCN5.js": { + "file": "assets/verification-DWj8pCN5.js", "name": "verification", "imports": [ "_wayfinder-DGNmxDkm.js" @@ -1131,7 +1204,7 @@ "src": "node_modules/@fontsource/varela-round/files/varela-round-vietnamese-400-normal.woff2" }, "resources/css/app.css": { - "file": "assets/app-B4i8odKZ.css", + "file": "assets/app-BXAwObjV.css", "name": "app", "names": [ "app.css" @@ -1349,18 +1422,19 @@ ] }, "resources/js/app.tsx": { - "file": "assets/app-NKzAktB4.js", + "file": "assets/app-0l60ScAC.js", "name": "app", "src": "resources/js/app.tsx", "isEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", - "_floating-ui.react-dom-DuoUqJja.js", - "_dist-uBvN1Epe.js", - "_button-B6E1T0qj.js", - "_dist-Cz7M9pMz.js", - "_dist-2FHDdoqV.js", - "_createLucideIcon-wUA1TGAT.js", + "_dist-CE9c1Q26.js", + "_dist-BXzvTKID.js", + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_dist-Hfu0N5sY.js", + "_createLucideIcon-BN-jDSEO.js", + "_shim-B1jYWA9-.js", "_use-appearance-QmpypXC6.js" ], "dynamicImports": [ @@ -1383,7 +1457,7 @@ ] }, "resources/js/pages/animate-css/index.tsx": { - "file": "assets/animate-css-B9qFUvc-.js", + "file": "assets/animate-css-DjHmIVWH.js", "name": "animate-css", "src": "resources/js/pages/animate-css/index.tsx", "isDynamicEntry": true, @@ -1391,246 +1465,252 @@ "_wayfinder-DGNmxDkm.js", "_floating-ui.react-dom-DuoUqJja.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_dist-Cz7M9pMz.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js", - "_registry-installer-iv12Azo6.js", - "_check-JLGZ6ERA.js", - "_chevron-down-xYnWKEDk.js", - "_copy-DipuxFuX.js", - "_card-DGuRpKkV.js", - "_dialog-DDCot1iY.js" + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_createLucideIcon-BN-jDSEO.js", + "_main-layout-BDfUDiNw.js", + "_registry-installer-BbAk2A5r.js", + "_check-CWekFaHD.js", + "_chevron-down-BXFNulw6.js", + "_copy-DVuxs_qN.js", + "_shim-B1jYWA9-.js", + "_card-D_BkPXgE.js", + "_dialog-D0ulBexn.js", + "_textarea-CdB2elwd.js" ] }, "resources/js/pages/auth/confirm-password.tsx": { - "file": "assets/confirm-password-BMSJcuzI.js", + "file": "assets/confirm-password-DXqCvmLh.js", "name": "confirm-password", "src": "resources/js/pages/auth/confirm-password.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_password-input-HSktczCa.js", - "_input-error-CXzYDMKp.js", - "_spinner-DVMDXl0V.js", - "_confirm-gXMuOnz9.js" + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_password-input-uWAWfR_8.js", + "_input-error-B7LHFA6O.js", + "_spinner-CO4WEyCd.js", + "_confirm-B_yzhW7J.js" ] }, "resources/js/pages/auth/forgot-password.tsx": { - "file": "assets/forgot-password-J1Dj5dCk.js", + "file": "assets/forgot-password-BQY-LsgH.js", "name": "forgot-password", "src": "resources/js/pages/auth/forgot-password.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_loader-circle-BczqqvyR.js", - "_input-error-CXzYDMKp.js", - "_text-link-B-rnxz_C.js", - "_password-DgvYQGdP.js" + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_loader-circle-kx-CiozJ.js", + "_input-error-B7LHFA6O.js", + "_text-link-UmmgvXHR.js", + "_password-4MQY-sCe.js" ] }, "resources/js/pages/auth/login.tsx": { - "file": "assets/login-CzdxtsZ7.js", + "file": "assets/login-DDiqb3zu.js", "name": "login", "src": "resources/js/pages/auth/login.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", - "_dist-uBvN1Epe.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_dist-DlwT0Sy6.js", - "_createLucideIcon-wUA1TGAT.js", - "_check-JLGZ6ERA.js", - "_socialite-CXgr0CAW.js", - "_password-input-HSktczCa.js", - "_github-DdPrsZVB.js", - "_input-error-CXzYDMKp.js", - "_text-link-B-rnxz_C.js", - "_spinner-DVMDXl0V.js", - "_password-DgvYQGdP.js" + "_checkbox-DlkBWsch.js", + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_socialite-BKXn5KQb.js", + "_password-input-uWAWfR_8.js", + "_github-D7dT9N2Y.js", + "_input-error-B7LHFA6O.js", + "_text-link-UmmgvXHR.js", + "_spinner-CO4WEyCd.js", + "_password-4MQY-sCe.js" ] }, "resources/js/pages/auth/register.tsx": { - "file": "assets/register-2UCvBdJw.js", + "file": "assets/register-3WIwjGeo.js", "name": "register", "src": "resources/js/pages/auth/register.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_socialite-CXgr0CAW.js", - "_password-input-HSktczCa.js", - "_github-DdPrsZVB.js", - "_input-error-CXzYDMKp.js", - "_text-link-B-rnxz_C.js", - "_spinner-DVMDXl0V.js" + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_socialite-BKXn5KQb.js", + "_password-input-uWAWfR_8.js", + "_github-D7dT9N2Y.js", + "_input-error-B7LHFA6O.js", + "_text-link-UmmgvXHR.js", + "_spinner-CO4WEyCd.js" ] }, "resources/js/pages/auth/reset-password.tsx": { - "file": "assets/reset-password-BLtlCvFc.js", + "file": "assets/reset-password-DA1t4sje.js", "name": "reset-password", "src": "resources/js/pages/auth/reset-password.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_password-input-HSktczCa.js", - "_input-error-CXzYDMKp.js", - "_spinner-DVMDXl0V.js", - "_password-DgvYQGdP.js" + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_password-input-uWAWfR_8.js", + "_input-error-B7LHFA6O.js", + "_spinner-CO4WEyCd.js", + "_password-4MQY-sCe.js" ] }, "resources/js/pages/auth/two-factor-challenge.tsx": { - "file": "assets/two-factor-challenge-Bot9NjM4.js", + "file": "assets/two-factor-challenge-G3MKbV9v.js", "name": "two-factor-challenge", "src": "resources/js/pages/auth/two-factor-challenge.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_use-two-factor-auth-BbF_ctUq.js", - "_input-error-CXzYDMKp.js" + "_button-CJIRvoa4.js", + "_use-two-factor-auth-BvOwR0Xx.js", + "_input-error-B7LHFA6O.js" ] }, "resources/js/pages/auth/verify-email.tsx": { - "file": "assets/verify-email-BJE_1kxG.js", + "file": "assets/verify-email-DF33-d5n.js", "name": "verify-email", "src": "resources/js/pages/auth/verify-email.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_text-link-B-rnxz_C.js", - "_spinner-DVMDXl0V.js", - "_verification-0-44BVPj.js" + "_button-CJIRvoa4.js", + "_text-link-UmmgvXHR.js", + "_spinner-CO4WEyCd.js", + "_verification-DWj8pCN5.js" ] }, "resources/js/pages/dashboard.tsx": { - "file": "assets/dashboard-8kvCxfBE.js", + "file": "assets/dashboard-BT6uuLKU.js", "name": "dashboard", "src": "resources/js/pages/dashboard.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_placeholder-pattern-nTsSuoW-.js" + "_placeholder-pattern-B0M5WUpE.js" ] }, "resources/js/pages/fonts/index.tsx": { - "file": "assets/fonts-PRPJga5a.js", + "file": "assets/fonts-CMXsOM2l.js", "name": "fonts", "src": "resources/js/pages/fonts/index.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js", - "_registry-installer-iv12Azo6.js", - "_card-DGuRpKkV.js" + "_main-layout-BDfUDiNw.js", + "_registry-installer-BbAk2A5r.js", + "_badge-BqJn0VCH.js", + "_card-D_BkPXgE.js" ] }, "resources/js/pages/home.tsx": { - "file": "assets/home-CDqIBBMJ.js", + "file": "assets/home-B2lItTUn.js", "name": "home", "src": "resources/js/pages/home.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", - "_button-B6E1T0qj.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js", - "_registry-installer-iv12Azo6.js", - "_glow-radial-BlYCryQ3.js" + "_glow-radial-C29beylo.js", + "_dist-CE9c1Q26.js", + "_dist-BXzvTKID.js", + "resources/js/app.tsx", + "_checkbox-DlkBWsch.js", + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_dist-CNJ93GkG.js", + "_dist-B2I70joJ.js", + "_createLucideIcon-BN-jDSEO.js", + "_main-layout-BDfUDiNw.js", + "_registry-installer-BbAk2A5r.js", + "_alert-D8f1uXWR.js", + "_badge-BqJn0VCH.js", + "_card-D_BkPXgE.js", + "_textarea-CdB2elwd.js" ] }, "resources/js/pages/settings/appearance.tsx": { - "file": "assets/appearance-dLeB5aE7.js", + "file": "assets/appearance-iJRh14ZS.js", "name": "appearance", "src": "resources/js/pages/settings/appearance.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_createLucideIcon-wUA1TGAT.js", - "_sun-BUK2gUl5.js", + "_createLucideIcon-BN-jDSEO.js", + "_sun-DKOQEsNV.js", "_use-appearance-QmpypXC6.js" ] }, "resources/js/pages/settings/profile.tsx": { - "file": "assets/profile-z87RwChz.js", + "file": "assets/profile-BEn4K4cJ.js", "name": "profile", "src": "resources/js/pages/settings/profile.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_password-input-HSktczCa.js", - "_input-error-CXzYDMKp.js", - "_dialog-DDCot1iY.js", - "_verification-0-44BVPj.js" + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_password-input-uWAWfR_8.js", + "_input-error-B7LHFA6O.js", + "_dialog-D0ulBexn.js", + "_verification-DWj8pCN5.js" ] }, "resources/js/pages/settings/security.tsx": { - "file": "assets/security-CPBDq09s.js", + "file": "assets/security-DmqLPAqs.js", "name": "security", "src": "resources/js/pages/settings/security.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_label-DR9FZUM0.js", - "_createLucideIcon-wUA1TGAT.js", - "_use-two-factor-auth-BbF_ctUq.js", - "_check-JLGZ6ERA.js", - "_copy-DipuxFuX.js", - "_password-input-HSktczCa.js", - "_input-error-CXzYDMKp.js", - "_card-DGuRpKkV.js", - "_dialog-DDCot1iY.js", - "_spinner-DVMDXl0V.js", + "_button-CJIRvoa4.js", + "_label-shgfY21t.js", + "_createLucideIcon-BN-jDSEO.js", + "_use-two-factor-auth-BvOwR0Xx.js", + "_check-CWekFaHD.js", + "_copy-DVuxs_qN.js", + "_password-input-uWAWfR_8.js", + "_input-error-B7LHFA6O.js", + "_alert-D8f1uXWR.js", + "_card-D_BkPXgE.js", + "_dialog-D0ulBexn.js", + "_spinner-CO4WEyCd.js", "_use-appearance-QmpypXC6.js" ] }, "resources/js/pages/themes/index.tsx": { - "file": "assets/themes-pgJyxVED.js", + "file": "assets/themes-DsbD3i65.js", "name": "themes", "src": "resources/js/pages/themes/index.tsx", "isDynamicEntry": true, "imports": [ "_wayfinder-DGNmxDkm.js", - "_dist-uBvN1Epe.js", + "_glow-radial-C29beylo.js", "resources/js/app.tsx", - "_button-B6E1T0qj.js", - "_dist-Cz7M9pMz.js", - "_dist-DlwT0Sy6.js", - "_createLucideIcon-wUA1TGAT.js", - "_main-layout-Bjl0T2Wa.js", - "_check-JLGZ6ERA.js", - "_chevron-down-xYnWKEDk.js", - "_card-DGuRpKkV.js", - "_glow-radial-BlYCryQ3.js" + "_button-CJIRvoa4.js", + "_dist-Cw-hV1_S.js", + "_createLucideIcon-BN-jDSEO.js", + "_main-layout-BDfUDiNw.js", + "_card-D_BkPXgE.js" ] }, "resources/js/pages/welcome.tsx": { - "file": "assets/welcome-DahtqzTP.js", + "file": "assets/welcome-BbYySG9A.js", "name": "welcome", "src": "resources/js/pages/welcome.tsx", "isDynamicEntry": true, diff --git a/resources/js/components/preview/cards-preview.tsx b/resources/js/components/preview/cards-preview.tsx new file mode 100644 index 0000000..304c42b --- /dev/null +++ b/resources/js/components/preview/cards-preview.tsx @@ -0,0 +1,249 @@ +import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; +import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; +import { Badge } from '@/components/ui/badge'; +import { Button } from '@/components/ui/button'; +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from '@/components/ui/card'; +import { Checkbox } from '@/components/ui/checkbox'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; +import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from '@/components/ui/select'; +import { Separator } from '@/components/ui/separator'; +import { Skeleton } from '@/components/ui/skeleton'; +import { Textarea } from '@/components/ui/textarea'; +import { Terminal } from 'lucide-react'; + +export default function CardsPreview() { + return ( +
+
+

Component Preview

+

+ Check how your theme looks with different components and typography. +

+
+ + + + {/* Typography Section */} +
+

Typography

+
+

+ Heading 1: The Joke Tax Levied by the Hubble Telescope +

+

+ Heading 2: The People of the Kingdom +

+

+ Heading 3: The King's Plan +

+

+ The king thought long and hard, and finally came up with a brilliant plan: he + would tax the jokes. +

+
+ "After all," he said, "everyone enjoys a good joke, so why not turn that + enjoyment into revenue?" +
+

+ A modal dialog that interrupts the user with important content and expects a + response. +

+
Are you absolutely sure?
+

Email Address

+

Enter your email address.

+
+
+ + {/* Buttons & Badges */} +
+

Buttons & Badges

+
+
+
+ + + + + + +
+
+ + + +
+
+ +
+ Default + Secondary + Outline + Destructive +
+
+
+ + {/* Form Elements */} +
+

Form Elements

+
+
+
+ + +
+
+ +