diff --git a/control-plane/api/cmd/api/main.go b/control-plane/api/cmd/api/main.go index b9b4577..266a019 100644 --- a/control-plane/api/cmd/api/main.go +++ b/control-plane/api/cmd/api/main.go @@ -10,6 +10,7 @@ import ( "github.com/google/uuid" "github.com/redis/go-redis/v9" + "github.com/omnex/control-plane/api/internal/alerts" "github.com/omnex/control-plane/api/internal/auth" "github.com/omnex/control-plane/api/internal/config" "github.com/omnex/control-plane/api/internal/db" @@ -67,6 +68,10 @@ func main() { var demoPool demos.Pool var codeStore sub.Store var profileStore profile.Store + // Résout les destinataires d'alerte pods depuis les réglages de chaque + // admin (table users) — nil si pas de base (mode mémoire, dev), auquel + // cas le monitoring reste désactivé (rien à interroger). + var alertRecipients func(ctx context.Context) ([]alerts.Notifier, error) if cfg.DatabaseURL != "" { gdb, err := db.Open(cfg.DatabaseURL) if err != nil { @@ -85,6 +90,7 @@ func main() { demoStore = demos.NewGormStore(gdb) demoPool = demos.NewGormPool(gdb) profileStore = profile.NewGormStore(gdb) + alertRecipients = alerts.GormRecipients(gdb) log.Printf("persistance: PostgreSQL (GORM)") } else { userStore = seedMemUsers() @@ -141,6 +147,30 @@ func main() { TTL: demos.TTL, }) + // Alerting : surveille les pods des démos actives, notifie Discord et/ou + // Telegram de chaque admin ayant configuré son propre canal (voir profil + // admin, /profile/alerts). Désactivé en mode mémoire (pas de réglages + // persistés à interroger). + if alertRecipients != nil { + watcher := alerts.NewWatcher(k8sClient, alertRecipients, func() ([]string, error) { + all, err := demoSvc.List() + if err != nil { + return nil, err + } + ns := make([]string, 0, len(all)) + for _, d := range all { + if d.Status.Active() { + ns = append(ns, d.Namespace) + } + } + return ns, nil + }) + go watcher.Run(context.Background()) + log.Printf("alerts: monitoring des pods actif (réglages par admin, voir /profile/alerts)") + } else { + log.Printf("alerts: monitoring désactivé (nécessite OMNEX_DATABASE_URL — réglages persistés par admin)") + } + deps := router.Deps{ Cfg: cfg, Issuer: iss, diff --git a/control-plane/api/internal/alerts/notifier.go b/control-plane/api/internal/alerts/notifier.go new file mode 100644 index 0000000..0e3fb20 --- /dev/null +++ b/control-plane/api/internal/alerts/notifier.go @@ -0,0 +1,90 @@ +// Package alerts : surveillance des pods des démos + notification (Discord, +// Telegram) quand une plateforme tombe en erreur ou se rétablit. +package alerts + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "net/http" + "time" +) + +// Notifier envoie un message d'alerte vers un canal externe. +type Notifier interface { + Notify(ctx context.Context, message string) error +} + +// MultiNotifier diffuse vers plusieurs canaux ; une erreur sur l'un +// n'empêche pas la notification des autres. +type MultiNotifier []Notifier + +func (m MultiNotifier) Notify(ctx context.Context, message string) error { + var errs []error + for _, n := range m { + if err := n.Notify(ctx, message); err != nil { + errs = append(errs, err) + } + } + return errors.Join(errs...) +} + +var httpClient = &http.Client{Timeout: 10 * time.Second} + +// DiscordNotifier envoie le message sur un webhook Discord. +type DiscordNotifier struct { + WebhookURL string +} + +func (d *DiscordNotifier) Notify(ctx context.Context, message string) error { + body, err := json.Marshal(map[string]string{"content": message}) + if err != nil { + return err + } + req, err := http.NewRequestWithContext(ctx, http.MethodPost, d.WebhookURL, bytes.NewReader(body)) + if err != nil { + return err + } + req.Header.Set("Content-Type", "application/json") + + resp, err := httpClient.Do(req) + if err != nil { + return fmt.Errorf("discord: %w", err) + } + defer resp.Body.Close() + if resp.StatusCode >= 300 { + return fmt.Errorf("discord: statut %d", resp.StatusCode) + } + return nil +} + +// TelegramNotifier envoie le message via un bot Telegram (sendMessage). +type TelegramNotifier struct { + BotToken string + ChatID string +} + +func (t *TelegramNotifier) Notify(ctx context.Context, message string) error { + endpoint := fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", t.BotToken) + body, err := json.Marshal(map[string]string{"chat_id": t.ChatID, "text": message}) + if err != nil { + return err + } + req, err := http.NewRequestWithContext(ctx, http.MethodPost, endpoint, bytes.NewReader(body)) + if err != nil { + return err + } + req.Header.Set("Content-Type", "application/json") + + resp, err := httpClient.Do(req) + if err != nil { + return fmt.Errorf("telegram: %w", err) + } + defer resp.Body.Close() + if resp.StatusCode >= 300 { + return fmt.Errorf("telegram: statut %d", resp.StatusCode) + } + return nil +} diff --git a/control-plane/api/internal/alerts/recipients.go b/control-plane/api/internal/alerts/recipients.go new file mode 100644 index 0000000..00c719c --- /dev/null +++ b/control-plane/api/internal/alerts/recipients.go @@ -0,0 +1,38 @@ +package alerts + +import ( + "context" + + "gorm.io/gorm" + + "github.com/omnex/control-plane/api/internal/auth" +) + +// GormRecipients construit, à partir de la table des utilisateurs, la liste +// des notifiers actifs : chaque admin ayant renseigné un webhook Discord +// et/ou un bot Telegram (dans son profil) reçoit les alertes. Interrogée à +// chaque notification nécessaire — un admin qui change ses réglages est pris +// en compte sans redémarrage de l'API. +func GormRecipients(gdb *gorm.DB) func(ctx context.Context) ([]Notifier, error) { + return func(ctx context.Context) ([]Notifier, error) { + var admins []auth.User + if err := gdb.WithContext(ctx).Where("role = ?", auth.RoleAdmin).Find(&admins).Error; err != nil { + return nil, err + } + + var notifiers []Notifier + for _, a := range admins { + if a.AlertDiscordWebhookURL != nil && *a.AlertDiscordWebhookURL != "" { + notifiers = append(notifiers, &DiscordNotifier{WebhookURL: *a.AlertDiscordWebhookURL}) + } + if a.AlertTelegramBotToken != nil && *a.AlertTelegramBotToken != "" && + a.AlertTelegramChatID != nil && *a.AlertTelegramChatID != "" { + notifiers = append(notifiers, &TelegramNotifier{ + BotToken: *a.AlertTelegramBotToken, + ChatID: *a.AlertTelegramChatID, + }) + } + } + return notifiers, nil + } +} diff --git a/control-plane/api/internal/alerts/watcher.go b/control-plane/api/internal/alerts/watcher.go new file mode 100644 index 0000000..42b7a97 --- /dev/null +++ b/control-plane/api/internal/alerts/watcher.go @@ -0,0 +1,169 @@ +package alerts + +import ( + "context" + "fmt" + "log" + "time" + + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/client-go/kubernetes" +) + +const pollInterval = 30 * time.Second + +// Raisons de conteneur considérées comme des pannes (hors CrashLoopBackOff +// initial normal au tout premier démarrage d'un pod fraîchement créé — non +// distingué ici, le bruit au provisioning est acceptable). +var badWaitingReasons = map[string]bool{ + "CrashLoopBackOff": true, + "ImagePullBackOff": true, + "ErrImagePull": true, + "CreateContainerConfigError": true, + "CreateContainerError": true, + "InvalidImageName": true, + "RunContainerError": true, +} + +type podKey struct{ namespace, pod string } + +// Watcher scrute périodiquement les pods des namespaces actifs et notifie +// tout changement d'état (sain -> panne, panne -> rétabli). Les destinataires +// (recipients) sont résolus à chaque tick où une notification est nécessaire +// — chaque admin configure son propre webhook Discord / bot Telegram dans +// son profil (voir internal/profile), rien n'est figé au démarrage. +type Watcher struct { + k8sClient *kubernetes.Clientset + recipients func(ctx context.Context) ([]Notifier, error) + namespaces func() ([]string, error) + state map[podKey]string // dernière raison de panne connue ("" = sain) +} + +func NewWatcher(k8sClient *kubernetes.Clientset, recipients func(ctx context.Context) ([]Notifier, error), namespaces func() ([]string, error)) *Watcher { + return &Watcher{ + k8sClient: k8sClient, + recipients: recipients, + namespaces: namespaces, + state: make(map[podKey]string), + } +} + +// Run boucle jusqu'à annulation du contexte. À lancer dans une goroutine. +func (w *Watcher) Run(ctx context.Context) { + ticker := time.NewTicker(pollInterval) + defer ticker.Stop() + for { + w.tick(ctx) + select { + case <-ctx.Done(): + return + case <-ticker.C: + } + } +} + +func (w *Watcher) tick(ctx context.Context) { + nsList, err := w.namespaces() + if err != nil { + log.Printf("alerts: liste des démos actives indisponible: %v", err) + return + } + + // Les destinataires ne sont chargés (requête DB) que si une notification + // s'avère nécessaire ce tick-ci, et une seule fois par tick. + var notifier Notifier + notifierLoaded := false + loadNotifier := func() Notifier { + if notifierLoaded { + return notifier + } + notifierLoaded = true + list, err := w.recipients(ctx) + if err != nil { + log.Printf("alerts: chargement des destinataires échoué: %v", err) + return nil + } + if len(list) == 0 { + return nil + } + notifier = MultiNotifier(list) + return notifier + } + + seen := make(map[podKey]bool, len(w.state)) + for _, ns := range nsList { + pods, err := w.k8sClient.CoreV1().Pods(ns).List(ctx, metav1.ListOptions{}) + if err != nil { + log.Printf("alerts: liste des pods de %s indisponible: %v", ns, err) + continue + } + for _, pod := range pods.Items { + key := podKey{namespace: ns, pod: pod.Name} + seen[key] = true + + reason := problemReason(pod) + prev, known := w.state[key] + if reason != prev { + if known { + w.notify(ctx, loadNotifier(), key, prev, reason) + } else if reason != "" { + // Premier passage sur ce pod : on ne notifie que s'il est + // déjà en panne (sinon rien d'anormal à signaler). + w.notify(ctx, loadNotifier(), key, "", reason) + } + w.state[key] = reason + } + } + } + + // Pods disparus (démo supprimée, rollout) : on oublie leur état pour ne + // pas polluer la mémoire indéfiniment. + for key := range w.state { + if !seen[key] { + delete(w.state, key) + } + } +} + +func (w *Watcher) notify(ctx context.Context, notifier Notifier, key podKey, prev, reason string) { + if notifier == nil { + return + } + var msg string + switch { + case prev == "" && reason != "": + msg = fmt.Sprintf("🔴 [%s] pod %s en erreur : %s", key.namespace, key.pod, reason) + case prev != "" && reason == "": + msg = fmt.Sprintf("🟢 [%s] pod %s rétabli", key.namespace, key.pod) + default: + msg = fmt.Sprintf("🔴 [%s] pod %s toujours en erreur : %s", key.namespace, key.pod, reason) + } + if err := notifier.Notify(ctx, msg); err != nil { + log.Printf("alerts: notification échouée: %v", err) + } +} + +// problemReason retourne une raison de panne non vide si le pod est dans un +// état anormal (phase Failed, ou conteneur en CrashLoopBackOff/ImagePullBackOff/ +// OOMKilled...), "" si tout va bien. +func problemReason(pod corev1.Pod) string { + if pod.DeletionTimestamp != nil { + return "" // suppression en cours, pas une panne + } + if pod.Status.Phase == corev1.PodFailed { + if pod.Status.Reason != "" { + return pod.Status.Reason + } + return "Failed" + } + for _, cs := range pod.Status.ContainerStatuses { + if waiting := cs.State.Waiting; waiting != nil && badWaitingReasons[waiting.Reason] { + return waiting.Reason + } + if term := cs.State.Terminated; term != nil && term.Reason == "OOMKilled" { + return "OOMKilled" + } + } + return "" +} diff --git a/control-plane/api/internal/auth/handler.go b/control-plane/api/internal/auth/handler.go index 027616c..8008eca 100644 --- a/control-plane/api/internal/auth/handler.go +++ b/control-plane/api/internal/auth/handler.go @@ -30,10 +30,16 @@ func NewHandler(users UserStore, sessions session.Manager, iss *Issuer, secure b type loginRequest struct { Username string Password string + // Role : page de connexion utilisée ("admin" ou "client"). La page + // admin et la page client sont désormais séparées côté front — un + // compte client ne peut pas se connecter depuis la page admin et + // inversement, même avec des identifiants valides. + Role Role `json:"role" binding:"required,oneof=admin client"` } // Login authentifie, ouvre une session Redis et pose le cookie httpOnly. -// Réponse volontairement uniforme (pas d'énumération d'utilisateurs). +// Réponse volontairement uniforme (pas d'énumération d'utilisateurs, ni du +// rôle réel du compte en cas de connexion depuis la mauvaise page). func (h *Handler) Login(c *gin.Context) { var req loginRequest if err := c.ShouldBindJSON(&req); err != nil { @@ -50,7 +56,7 @@ func (h *Handler) Login(c *gin.Context) { } ok, err := VerifyPassword(req.Password, user.PasswordHash) - if err != nil || !ok { + if err != nil || !ok || user.Role != req.Role { c.JSON(http.StatusUnauthorized, gin.H{"error": "identifiants invalides"}) return } diff --git a/control-plane/api/internal/auth/models.go b/control-plane/api/internal/auth/models.go index 9773aa3..545ca13 100644 --- a/control-plane/api/internal/auth/models.go +++ b/control-plane/api/internal/auth/models.go @@ -10,6 +10,14 @@ type User struct { Role Role `gorm:"size:20;not null" json:"role"` TypeAbo string `gorm:"type:varchar(35);default:demo" json:"type_abonnement"` ExpiredAt time.Time `json:"expired_at"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + + // Réglages d'alerte monitoring (admin uniquement) : chaque admin + // configure son propre canal, aucune variable d'env globale — voir + // internal/alerts et internal/profile (Get/SetAlertSettings). + AlertDiscordWebhookURL *string `gorm:"size:500" json:"-"` + AlertTelegramBotToken *string `gorm:"size:200" json:"-"` + AlertTelegramChatID *string `gorm:"size:64" json:"-"` + + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` } diff --git a/control-plane/api/internal/demos/demos.go b/control-plane/api/internal/demos/demos.go index 41c416e..15433d0 100644 --- a/control-plane/api/internal/demos/demos.go +++ b/control-plane/api/internal/demos/demos.go @@ -4,6 +4,7 @@ package demos import ( "errors" + "strings" "time" ) @@ -145,3 +146,20 @@ const ( ResourceFree ResourceStatus = "free" ResourceBorrowed ResourceStatus = "borrowed" ) + +// premiumNamespace calcule le namespace "premium-" utilisé une fois +// la démo passée en abonnement payant (voir Service.TransferToPaid et +// HelmProvisioner.MigrateToPremiumNamespace) — Kubernetes ne permet pas de +// renommer un namespace, seulement d'en créer un nouveau et d'y migrer les +// données. Contrainte K8s : nom en minuscules, 63 caractères max ; le +// username est déjà alphanumérique (voir handler.go), il suffit de le +// mettre en minuscule et de le tronquer si besoin. +func premiumNamespace(username string) string { + const prefix = "premium-" + maxLen := 63 - len(prefix) + u := strings.ToLower(username) + if len(u) > maxLen { + u = u[:maxLen] + } + return prefix + u +} diff --git a/control-plane/api/internal/demos/helm_provisioner.go b/control-plane/api/internal/demos/helm_provisioner.go index 80da5d0..a5e4397 100644 --- a/control-plane/api/internal/demos/helm_provisioner.go +++ b/control-plane/api/internal/demos/helm_provisioner.go @@ -5,6 +5,7 @@ import ( "context" "crypto/rand" "encoding/hex" + "encoding/json" "fmt" "io" "log" @@ -206,6 +207,227 @@ func (h *HelmProvisioner) Teardown(d Demo) error { return h.deleteNamespace(d.Namespace) } +// MigrateToPremiumNamespace reconstruit l'intégralité de la démo dans +// newNamespace ("premium-") et y migre les données postgres — +// Kubernetes ne permet pas de renommer un namespace, il faut donc +// recréer toute la stack (postgres/redis/backend/frontend/ingressroute/ +// lbtelegram) ailleurs. +// +// La configuration (bot Telegram, NowPayments, load-balancer...) n'est +// jamais persistée en base (voir ProvisionConfig) : elle est relue depuis +// les valeurs Helm de l'ancien déploiement ("helm get values"), qui +// contiennent exactement ce qui a été installé à l'origine, secrets +// inclus — jamais journalisés ni interprétés ici, seulement retransmis +// tels quels au nouveau déploiement. Seuls les champs qui référencent +// l'ancien namespace (DNS internes, URL du webhook Telegram) sont +// recalculés pour le nouveau (voir patchBackendValuesForNamespace / +// patchLBTelegramValuesForNamespace). +// +// L'ancien namespace n'est supprimé qu'une fois le nouveau confirmé +// opérationnel (rollout réussi) : en cas d'échec à n'importe quelle étape, +// la démo continue de fonctionner sous son ancienne adresse, rien n'est +// perdu. No-op si newNamespace == d.Namespace (déjà migrée, ex. +// renouvellement d'un client déjà premium). +func (h *HelmProvisioner) MigrateToPremiumNamespace(d Demo, newNamespace, newURL string) error { + oldNamespace := d.Namespace + if newNamespace == oldNamespace { + return nil + } + + ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute) + defer cancel() + + backendValues, err := h.getReleaseValues(oldNamespace, oldNamespace+"-backend") + if err != nil { + return fmt.Errorf("lecture config backend existante: %w", err) + } + lbValues, lbEnabled := h.getReleaseValuesOptional(oldNamespace, oldNamespace+"-lbtelegram") + + if err := h.createNamespace(newNamespace); err != nil { + return fmt.Errorf("création namespace %s: %w", newNamespace, err) + } + + newDemo := d + newDemo.Namespace = newNamespace + newDemo.URL = newURL + + if err := h.installChart(newNamespace, "postgresql", h.buildPostgresValues(newDemo)); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement postgresql: %w", err) + } + if err := h.installChart(newNamespace, "redis", h.buildRedisValues(newDemo)); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement redis: %w", err) + } + + // Données postgres : migrées par dump/restore (le nouveau PVC est + // vide). Redis (cache/sessions) n'est pas migré, reconstruit + // naturellement — même convention que l'historique passage en + // stockage persistant. + if err := h.migratePostgresData(ctx, oldNamespace, newNamespace); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("migration données postgres: %w", err) + } + + var backendLinkSecret string + if lbEnabled { + backendLinkSecret = asStringMap(backendValues["secrets"])["BACKEND_LINK_SECRET"] + if backendLinkSecret == "" { + backendLinkSecret = randomSecret() + } + } + + backendPatched := h.patchBackendValuesForNamespace(backendValues, newDemo, lbEnabled, backendLinkSecret) + if err := h.installChart(newNamespace, "backend", backendPatched); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement backend: %w", err) + } + if err := h.installChart(newNamespace, "frontend", h.buildFrontendValues(newDemo)); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement frontend: %w", err) + } + if err := h.installChart(newNamespace, "ingressroute", h.buildIngressRouteValues(newDemo)); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement ingressroute: %w", err) + } + if lbEnabled { + lbPatched := h.patchLBTelegramValuesForNamespace(lbValues, newDemo, backendLinkSecret) + if err := h.installChart(newNamespace, "lbtelegram", lbPatched); err != nil { + h.deleteNamespace(newNamespace) + return fmt.Errorf("déploiement lbtelegram: %w", err) + } + } + + if err := h.waitForRollout(newNamespace); err != nil { + // Le nouveau namespace n'est PAS supprimé : les données y sont déjà + // migrées, un rollout en échec est réparable manuellement sans tout + // reperdre. L'ancien namespace reste lui aussi en place tant que le + // nouveau n'est pas confirmé opérationnel. + return fmt.Errorf("rollout du nouveau namespace %s: %w", newNamespace, err) + } + + if err := h.deleteNamespace(oldNamespace); err != nil { + log.Printf("Warning: suppression ancien namespace %s échouée (nouveau namespace %s opérationnel): %v", oldNamespace, newNamespace, err) + } + + log.Printf("Démo %s migrée vers le namespace premium %s", oldNamespace, newNamespace) + return nil +} + +// migratePostgresData copie les données postgres d'un namespace à l'autre +// (pg_dump / psql restore), utilisé par MigrateToPremiumNamespace. +func (h *HelmProvisioner) migratePostgresData(ctx context.Context, oldNamespace, newNamespace string) error { + oldPod, err := h.findPod(ctx, oldNamespace, "postgresql") + if err != nil { + return fmt.Errorf("pod postgresql source introuvable: %w", err) + } + dumpCmd := fmt.Sprintf("PGPASSWORD=%s pg_dump -h localhost -U %s %s", demoDBPass, demoDBUser, demoDBName) + dump, stderr, err := h.execInPod(ctx, oldNamespace, oldPod, "postgresql", []string{"sh", "-c", dumpCmd}, nil) + if err != nil { + return fmt.Errorf("pg_dump: %w (%s)", err, stderr) + } + if strings.TrimSpace(dump) == "" { + return nil + } + + newPod, err := h.findPod(ctx, newNamespace, "postgresql") + if err != nil { + return fmt.Errorf("pod postgresql cible introuvable: %w", err) + } + restoreCmd := fmt.Sprintf("PGPASSWORD=%s psql -h localhost -U %s %s", demoDBPass, demoDBUser, demoDBName) + if _, stderr, err := h.execInPod(ctx, newNamespace, newPod, "postgresql", []string{"sh", "-c", restoreCmd}, strings.NewReader(dump)); err != nil { + return fmt.Errorf("restore pg_dump: %w (%s)", err, stderr) + } + return nil +} + +// patchBackendValuesForNamespace réutilise les valeurs Helm existantes du +// backend (image, secrets, réglages métier...) en ne recalculant que ce qui +// référence le nom du namespace : DNS internes postgres/redis/lbtelegram et +// URL du webhook Telegram (dépend de l'URL publique de la démo). +func (h *HelmProvisioner) patchBackendValuesForNamespace(values map[string]interface{}, newDemo Demo, lbEnabled bool, backendLinkSecret string) map[string]interface{} { + env := asStringMap(values["env"]) + secrets := asStringMap(values["secrets"]) + + env["DB_HOST"] = fmt.Sprintf("%s-postgresql-postgresql", newDemo.Namespace) + env["REDIS_HOST"] = fmt.Sprintf("%s-redis-redis", newDemo.Namespace) + if lbEnabled { + env["LBTELEGRAM_URL"] = fmt.Sprintf("http://%s-lbtelegram-lbtelegram.%s.svc.cluster.local:8081", newDemo.Namespace, newDemo.Namespace) + secrets["BACKEND_LINK_SECRET"] = backendLinkSecret + } + if secrets["TELEGRAM_BOT_TOKEN"] != "" { + secrets["TELEGRAM_WEBHOOK_URL"] = newDemo.URL + "/webhook/telegram" + } + + values["env"] = env + values["secrets"] = secrets + return values +} + +// patchLBTelegramValuesForNamespace réutilise les valeurs Helm existantes +// du chart lbtelegram (bots, stratégie, tokens...) en ne recalculant que ce +// qui référence le nom du namespace : host public, GATEWAY_URL, DSN +// postgres/redis et URL interne du backend. +func (h *HelmProvisioner) patchLBTelegramValuesForNamespace(values map[string]interface{}, newDemo Demo, backendLinkSecret string) map[string]interface{} { + env := asStringMap(values["env"]) + secrets := asStringMap(values["secrets"]) + + host := fmt.Sprintf("%s.%s", newDemo.Namespace, h.baseDomain) + env["GATEWAY_URL"] = "https://" + host + env["BACKEND_LINK_URL"] = fmt.Sprintf("http://%s-backend-gestion-backend.%s.svc.cluster.local:8080", newDemo.Namespace, newDemo.Namespace) + + secrets["BACKEND_LINK_SECRET"] = backendLinkSecret + secrets["DATABASE_URL"] = fmt.Sprintf("postgres://postgres:demo-postgres-pass@%s-postgresql-postgresql:5432/demo_db?sslmode=disable", newDemo.Namespace) + secrets["REDIS_URL"] = fmt.Sprintf("redis://:demo-redis-pass@%s-redis-redis:6379/0", newDemo.Namespace) + + values["host"] = host + values["env"] = env + values["secrets"] = secrets + return values +} + +// getReleaseValues récupère les valeurs Helm exactes utilisées par une +// release déjà installée ("helm get values -o json"). +func (h *HelmProvisioner) getReleaseValues(namespace, release string) (map[string]interface{}, error) { + out, err := h.runHelmOutput("get", "values", release, "--namespace", namespace, "-o", "json") + if err != nil { + return nil, err + } + var values map[string]interface{} + if err := json.Unmarshal(out, &values); err != nil { + return nil, fmt.Errorf("parse valeurs helm de %s: %w", release, err) + } + return values, nil +} + +// getReleaseValuesOptional : comme getReleaseValues, mais renvoie +// simplement (nil, false) si la release n'existe pas (ex. lbtelegram non +// activé pour cette démo) plutôt qu'une erreur. +func (h *HelmProvisioner) getReleaseValuesOptional(namespace, release string) (map[string]interface{}, bool) { + values, err := h.getReleaseValues(namespace, release) + if err != nil { + return nil, false + } + return values, true +} + +// asStringMap convertit une valeur JSON décodée (map[string]interface{}) +// en map[string]string, en ignorant silencieusement les clés dont la +// valeur n'est pas une chaîne. +func asStringMap(v interface{}) map[string]string { + out := map[string]string{} + m, ok := v.(map[string]interface{}) + if !ok { + return out + } + for k, val := range m { + if s, ok := val.(string); ok { + out[k] = s + } + } + return out +} + // createGestionAdmin crée le compte admin de l'application "gestion" // déployée dans cette démo, en insérant directement dans la table "users" // (aucune route API ne le permet : CreateUser refuse explicitement de créer @@ -405,15 +627,22 @@ func (h *HelmProvisioner) writeValuesFile(namespace, chartName string, values ma // runHelm exécute une commande helm et remonte stdout/stderr en cas d'erreur. func (h *HelmProvisioner) runHelm(args ...string) error { + _, err := h.runHelmOutput(args...) + return err +} + +// runHelmOutput exécute une commande helm et retourne son stdout (ex. "helm +// get values -o json"). +func (h *HelmProvisioner) runHelmOutput(args ...string) ([]byte, error) { cmd := exec.Command(h.helmPath, args...) var stdout, stderr bytes.Buffer cmd.Stdout = &stdout cmd.Stderr = &stderr if err := cmd.Run(); err != nil { - return fmt.Errorf("%v (stdout: %s, stderr: %s)", err, stdout.String(), stderr.String()) + return nil, fmt.Errorf("%v (stdout: %s, stderr: %s)", err, stdout.String(), stderr.String()) } - return nil + return stdout.Bytes(), nil } func parseImage(image string) (repo string, tag string) { diff --git a/control-plane/api/internal/demos/provisioner.go b/control-plane/api/internal/demos/provisioner.go index e37954c..47f0ffa 100644 --- a/control-plane/api/internal/demos/provisioner.go +++ b/control-plane/api/internal/demos/provisioner.go @@ -10,6 +10,11 @@ type Provisioner interface { Provision(d Demo, resources []ExternalResource, cfg ProvisionConfig) error // Teardown demande la destruction d'une démo. Teardown(d Demo) error + // MigrateToPremiumNamespace reconstruit la démo dans newNamespace + // (Kubernetes ne permet pas de renommer un namespace) en préservant les + // données postgres, puis supprime l'ancien namespace une fois le + // nouveau opérationnel. No-op si d.Namespace == newNamespace. + MigrateToPremiumNamespace(d Demo, newNamespace, newURL string) error GetResourceState(ctx context.Context, namespace string) (ResourceState, error) } @@ -19,6 +24,7 @@ type NoopProvisioner struct{} func (NoopProvisioner) Provision(Demo, []ExternalResource, ProvisionConfig) error { return nil } func (NoopProvisioner) Teardown(Demo) error { return nil } +func (NoopProvisioner) MigrateToPremiumNamespace(Demo, string, string) error { return nil } func (NoopProvisioner) GetResourceState(ctx context.Context, namespace string) (ResourceState, error) { return ResourceState{}, nil } diff --git a/control-plane/api/internal/demos/service.go b/control-plane/api/internal/demos/service.go index e308086..ed877e8 100644 --- a/control-plane/api/internal/demos/service.go +++ b/control-plane/api/internal/demos/service.go @@ -75,15 +75,7 @@ func (s *Service) Create(username string, cfg ProvisionConfig) (Demo, error) { CreatedAt: s.now().UTC(), ExpiresAt: s.now().UTC().Add(s.cfg.TTL), } - // Port omis dans l'URL s'il s'agit du 443 standard ; sinon affiché - // explicitement (ex. NodePort HTTPS sans LoadBalancer). Ne concerne que - // l'URL affichée : le Host() de l'IngressRoute reste sans port (voir - // buildIngressRouteValues), le port n'y a pas sa place pour le matching. - portSuffix := "" - if s.cfg.HTTPSPort != "" && s.cfg.HTTPSPort != "443" { - portSuffix = ":" + s.cfg.HTTPSPort - } - demo.URL = "https://" + demo.Namespace + "." + s.cfg.BaseDomain + portSuffix + demo.URL = s.urlFor(demo.Namespace) // Réserve les ressources externes (slots Telegram/NowPayments pré- // provisionnés) — contrainte réelle indépendante du nombre de démos, @@ -134,11 +126,16 @@ func (s *Service) ListForUser(username string) ([]Demo, error) { } // TransferToPaid marque la démo active du client comme abonnement payant -// (n'expire plus). Le stockage (PVC postgres/redis) est déjà en place depuis -// la création de la démo (voir HelmProvisioner.Provision) : rien à basculer -// côté infra, seul le statut change. No-op si le client n'a pas de démo -// active — ce n'est pas une erreur (ex: compte créé sans jamais avoir -// demandé de démo). +// (n'expire plus) et déclenche la migration de son namespace vers +// "premium-" (Kubernetes ne permet pas de renommer un namespace, +// voir HelmProvisioner.MigrateToPremiumNamespace) — no-op si déjà migrée +// (ex. renouvellement d'un client déjà premium). Le stockage (PVC +// postgres/redis) est déjà en place depuis la création de la démo, seules +// les données postgres sont recopiées vers le nouveau namespace. No-op +// total si le client n'a pas de démo active — ce n'est pas une erreur (ex: +// compte créé sans jamais avoir demandé de démo). La migration est lente +// (dump/restore/helm) : elle tourne en tâche de fond, cette méthode ne +// bloque pas. func (s *Service) TransferToPaid(username string) error { existing, err := s.store.ListByUsername(auth.NormalizeUsername(username)) if err != nil { @@ -158,13 +155,43 @@ func (s *Service) TransferToPaid(username string) error { active.TypeAbo = "premium" active.ExpiresAt = s.now().UTC().AddDate(10, 0, 0) // n'expire plus, en pratique - if _, err := s.store.Update(*active); err != nil { + updated, err := s.store.Update(*active) + if err != nil { return err } + newNamespace := premiumNamespace(updated.Username) + if newNamespace != updated.Namespace { + newURL := s.urlFor(newNamespace) + go func() { + if err := s.prov.MigrateToPremiumNamespace(updated, newNamespace, newURL); err != nil { + log.Printf("Migration namespace premium échouée pour %s: %v", updated.Namespace, err) + return + } + updated.Namespace = newNamespace + updated.URL = newURL + if _, err := s.store.Update(updated); err != nil { + log.Printf("Mise à jour namespace après migration premium échouée pour %s: %v", newNamespace, err) + } + }() + } + return nil } +// urlFor construit l'URL publique d'une démo pour un namespace donné. Port +// omis s'il s'agit du 443 standard ; sinon affiché explicitement (ex. +// NodePort HTTPS sans LoadBalancer). Ne concerne que l'URL affichée : le +// Host() de l'IngressRoute reste sans port (voir buildIngressRouteValues), +// le port n'y a pas sa place pour le matching. +func (s *Service) urlFor(namespace string) string { + portSuffix := "" + if s.cfg.HTTPSPort != "" && s.cfg.HTTPSPort != "443" { + portSuffix = ":" + s.cfg.HTTPSPort + } + return "https://" + namespace + "." + s.cfg.BaseDomain + portSuffix +} + // Delete déclenche le teardown et libère le pool. func (s *Service) Delete(id string) (Demo, error) { d, ok := s.store.Get(id) diff --git a/control-plane/api/internal/profile/GormStore.go b/control-plane/api/internal/profile/GormStore.go index a7531a4..efff17e 100644 --- a/control-plane/api/internal/profile/GormStore.go +++ b/control-plane/api/internal/profile/GormStore.go @@ -19,6 +19,8 @@ type Store interface { UpdatePassword(id, passwordHahs string) (auth.User, error) GetTelegram(id string) (auth.User, error) SetTelegram(id, telegram string) (auth.User, error) + GetAlertSettings(id string) (auth.User, error) + SetAlertSettings(id string, discordWebhookURL, telegramBotToken, telegramChatID string) (auth.User, error) } func (s *GormStore) UpdateUsername(id, newUsername string) (auth.User, error) { @@ -71,3 +73,36 @@ func (s *GormStore) SetTelegram(id, telegram string) (auth.User, error) { } return user, nil } + +func (s *GormStore) GetAlertSettings(id string) (auth.User, error) { + var user auth.User + if err := s.db.First(&user, "id = ?", id).Error; err != nil { + return auth.User{}, err + } + return user, nil +} + +// SetAlertSettings enregistre les réglages d'alerte de cet admin. Une chaîne +// vide efface le champ correspondant (désactive ce canal pour cet admin). +func (s *GormStore) SetAlertSettings(id string, discordWebhookURL, telegramBotToken, telegramChatID string) (auth.User, error) { + updates := map[string]interface{}{ + "alert_discord_webhook_url": nullIfEmpty(discordWebhookURL), + "alert_telegram_bot_token": nullIfEmpty(telegramBotToken), + "alert_telegram_chat_id": nullIfEmpty(telegramChatID), + } + if err := s.db.Model(&auth.User{}).Where("id = ?", id).Updates(updates).Error; err != nil { + return auth.User{}, err + } + var user auth.User + if err := s.db.First(&user, "id = ?", id).Error; err != nil { + return auth.User{}, err + } + return user, nil +} + +func nullIfEmpty(s string) *string { + if s == "" { + return nil + } + return &s +} diff --git a/control-plane/api/internal/profile/handler.go b/control-plane/api/internal/profile/handler.go index b1abd87..e6a7880 100644 --- a/control-plane/api/internal/profile/handler.go +++ b/control-plane/api/internal/profile/handler.go @@ -27,6 +27,32 @@ type newTelegram struct { Telegram string `json:"telegram" binding:"required,min=3,max=64"` } +type alertSettingsRequest struct { + DiscordWebhookURL string `json:"discord_webhook_url" binding:"omitempty,max=500,url"` + TelegramBotToken string `json:"telegram_bot_token" binding:"omitempty,max=200"` + TelegramChatID string `json:"telegram_chat_id" binding:"omitempty,max=64"` +} + +type alertSettingsResponse struct { + DiscordWebhookURL string `json:"discord_webhook_url"` + TelegramBotToken string `json:"telegram_bot_token"` + TelegramChatID string `json:"telegram_chat_id"` +} + +func toAlertSettingsResponse(user auth.User) alertSettingsResponse { + deref := func(s *string) string { + if s == nil { + return "" + } + return *s + } + return alertSettingsResponse{ + DiscordWebhookURL: deref(user.AlertDiscordWebhookURL), + TelegramBotToken: deref(user.AlertTelegramBotToken), + TelegramChatID: deref(user.AlertTelegramChatID), + } +} + func (h *Handler) UpdateUsernameById(c *gin.Context) { var u newUsername @@ -110,3 +136,40 @@ func (h *Handler) SetTelegramById(c *gin.Context) { } c.JSON(http.StatusOK, gin.H{"telegram": user.Telegram}) } + +// GetAlerts : réglages d'alerte monitoring (webhook Discord / bot Telegram) +// de l'admin authentifié — chacun configure les siens, rien de partagé. +func (h *Handler) GetAlerts(c *gin.Context) { + p := auth.PrincipalFrom(c) + if p == nil { + c.JSON(http.StatusUnauthorized, gin.H{"error": "non authentifié"}) + return + } + user, err := h.store.GetAlertSettings(p.UserID) + if err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"}) + return + } + c.JSON(http.StatusOK, toAlertSettingsResponse(user)) +} + +// SetAlerts : enregistre les réglages d'alerte de l'admin authentifié. Un +// champ vide désactive le canal correspondant. +func (h *Handler) SetAlerts(c *gin.Context) { + var req alertSettingsRequest + if err := c.ShouldBindJSON(&req); err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"}) + return + } + p := auth.PrincipalFrom(c) + if p == nil { + c.JSON(http.StatusUnauthorized, gin.H{"error": "non authentifié"}) + return + } + user, err := h.store.SetAlertSettings(p.UserID, req.DiscordWebhookURL, req.TelegramBotToken, req.TelegramChatID) + if err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "erreur serveur"}) + return + } + c.JSON(http.StatusOK, toAlertSettingsResponse(user)) +} diff --git a/control-plane/api/internal/router/router.go b/control-plane/api/internal/router/router.go index b6e3af2..0ba3722 100644 --- a/control-plane/api/internal/router/router.go +++ b/control-plane/api/internal/router/router.go @@ -68,6 +68,8 @@ func New(d Deps) *gin.Engine { { admin.GET("/codes", d.SubH.ListCodes) admin.POST("/codes", d.SubH.CreateCodeForBuy) + admin.GET("/profile/alerts", d.ProfileH.GetAlerts) + admin.POST("/profile/alerts", d.ProfileH.SetAlerts) if d.DemosH != nil { admin.POST("/demos", d.DemosH.Create) admin.GET("/demos", d.DemosH.List) diff --git a/web/dist/assets/index-BZ4jKugg.js b/web/dist/assets/index-BZ4jKugg.js new file mode 100644 index 0000000..6ba222e --- /dev/null +++ b/web/dist/assets/index-BZ4jKugg.js @@ -0,0 +1,1510 @@ +var R3=Object.defineProperty;var ox=e=>{throw TypeError(e)};var z3=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ix=(e,t,n)=>z3(e,typeof t!="symbol"?t+"":t,n),ax=(e,t,n)=>t.has(e)||ox("Cannot "+n);var sx=(e,t,n)=>(ax(e,t,"read from private field"),n?n.call(e):t.get(e)),lx=(e,t,n)=>t.has(e)?ox("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Em=(e,t,n,r)=>(ax(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function M3(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D2={exports:{}},cp={},L2={exports:{}},ve={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jc=Symbol.for("react.element"),N3=Symbol.for("react.portal"),O3=Symbol.for("react.fragment"),D3=Symbol.for("react.strict_mode"),L3=Symbol.for("react.profiler"),F3=Symbol.for("react.provider"),B3=Symbol.for("react.context"),V3=Symbol.for("react.forward_ref"),W3=Symbol.for("react.suspense"),U3=Symbol.for("react.memo"),H3=Symbol.for("react.lazy"),cx=Symbol.iterator;function G3(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var F2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B2=Object.assign,V2={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=V2,this.updater=n||F2}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W2(){}W2.prototype=Ks.prototype;function x0(e,t,n){this.props=e,this.context=t,this.refs=V2,this.updater=n||F2}var S0=x0.prototype=new W2;S0.constructor=x0;B2(S0,Ks.prototype);S0.isPureReactComponent=!0;var ux=Array.isArray,U2=Object.prototype.hasOwnProperty,w0={current:null},H2={key:!0,ref:!0,__self:!0,__source:!0};function G2(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)U2.call(t,r)&&!H2.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,H=O[G];if(0>>1;Go(me,D))xeo(Fe,me)?(O[G]=Fe,O[xe]=D,G=xe):(O[G]=me,O[be]=D,G=be);else if(xeo(Fe,D))O[G]=Fe,O[xe]=D,G=xe;else break e}}return R}function o(O,R){var D=O.sortIndex-R.sortIndex;return D!==0?D:O.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,h=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(O){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=O)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function w(O){if(y=!1,S(O),!g)if(n(l)!==null)g=!0,F(k);else{var R=n(c);R!==null&&z(w,R.startTime-O)}}function k(O,R){g=!1,y&&(y=!1,b(T),T=-1),h=!0;var D=p;try{for(S(R),f=n(l);f!==null&&(!(f.expirationTime>R)||O&&!B());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var H=G(f.expirationTime<=R);R=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&r(l),S(R)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var be=n(c);be!==null&&z(w,be.startTime-R),Q=!1}return Q}finally{f=null,p=D,h=!1}}var _=!1,C=null,T=-1,A=5,$=-1;function B(){return!(e.unstable_now()-$O||125G?(O.sortIndex=D,t(c,O),n(l)===null&&O===n(c)&&(y?(b(T),T=-1):y=!0,z(w,D-G))):(O.sortIndex=H,t(l,O),g||h||(g=!0,F(k))),O},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(O){var R=p;return function(){var D=p;p=R;try{return O.apply(this,arguments)}finally{p=D}}}})(Q2);q2.exports=Q2;var rI=q2.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var oI=m,Cn=rI;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sg=Object.prototype.hasOwnProperty,iI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fx={},px={};function aI(e){return sg.call(px,e)?!0:sg.call(fx,e)?!1:iI.test(e)?px[e]=!0:(fx[e]=!0,!1)}function sI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lI(e,t,n,r){if(t===null||typeof t>"u"||sI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function on(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new on(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var C0=/[\-:]([a-z])/g;function P0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function _0(e,t,n,r){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Am=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cl(e):""}function cI(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=Im(e.type,!1),e;case 11:return e=Im(e.type.render,!1),e;case 1:return e=Im(e.type,!0),e;default:return""}}function dg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case za:return"Fragment";case Ra:return"Portal";case lg:return"Profiler";case T0:return"StrictMode";case cg:return"Suspense";case ug:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eP:return(e.displayName||"Context")+".Consumer";case J2:return(e._context.displayName||"Context")+".Provider";case E0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j0:return t=e.displayName||null,t!==null?t:dg(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return dg(e(t))}catch{}}return null}function uI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dg(t);case 8:return t===T0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dI(e){var t=nP(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ou(e){e._valueTracker||(e._valueTracker=dI(e))}function rP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nP(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fg(e,t){var n=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ni(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oP(e,t){t=t.checked,t!=null&&_0(e,"checked",t,!1)}function pg(e,t){oP(e,t);var n=ni(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mg(e,t.type,n):t.hasOwnProperty("defaultValue")&&mg(e,t.type,ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mg(e,t,n){(t!=="number"||hf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pl=Array.isArray;function ls(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Du.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fI=["Webkit","ms","Moz","O"];Object.keys(Vl).forEach(function(e){fI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vl[t]=Vl[e]})});function lP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}function cP(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lP(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pI=ot({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vg(e,t){if(t){if(pI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function yg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bg=null;function $0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xg=null,cs=null,us=null;function bx(e){if(e=nu(e)){if(typeof xg!="function")throw Error(W(280));var t=e.stateNode;t&&(t=mp(t),xg(e.stateNode,e.type,t))}}function uP(e){cs?us?us.push(e):us=[e]:cs=e}function dP(){if(cs){var e=cs,t=us;if(us=cs=null,bx(e),t)for(e=0;e>>=0,e===0?32:31-(CI(e)/PI|0)|0}var Lu=64,Fu=4194304;function _l(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=_l(s):(i&=a,i!==0&&(r=_l(i)))}else a=n&~o,a!==0?r=_l(a):i!==0&&(r=_l(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function eu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lr(t),e[t]=n}function jI(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ul),Ex=" ",jx=!1;function AP(e,t){switch(e){case"keyup":return rR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function iR(e,t){switch(e){case"compositionend":return IP(t);case"keypress":return t.which!==32?null:(jx=!0,Ex);case"textInput":return e=t.data,e===Ex&&jx?null:e;default:return null}}function aR(e,t){if(Ma)return e==="compositionend"||!D0&&AP(e,t)?(e=jP(),Ad=M0=Do=null,Ma=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rx(n)}}function NP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OP(){for(var e=window,t=hf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hf(e.document)}return t}function L0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hR(e){var t=OP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NP(n.ownerDocument.documentElement,n)){if(r!==null&&L0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=zx(n,i);var a=zx(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Na=null,_g=null,Gl=null,Tg=!1;function Mx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tg||Na==null||Na!==hf(r)||(r=Na,"selectionStart"in r&&L0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gl&&xc(Gl,r)||(Gl=r,r=wf(_g,"onSelect"),0La||(e.current=Rg[La],Rg[La]=null,La--)}function Be(e,t){La++,Rg[La]=e.current,e.current=t}var ri={},qt=fi(ri),un=fi(!1),ea=ri;function _s(e,t){var n=e.type.contextTypes;if(!n)return ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dn(e){return e=e.childContextTypes,e!=null}function Cf(){Ge(un),Ge(qt)}function Vx(e,t,n){if(qt.current!==ri)throw Error(W(168));Be(qt,t),Be(un,n)}function GP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(W(108,uI(e)||"Unknown",o));return ot({},n,r)}function Pf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ri,ea=qt.current,Be(qt,e),Be(un,un.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=GP(e,t,ea),r.__reactInternalMemoizedMergedChildContext=e,Ge(un),Ge(qt),Be(qt,e)):Ge(un),Be(un,n)}var Ur=null,hp=!1,Gm=!1;function KP(e){Ur===null?Ur=[e]:Ur.push(e)}function TR(e){hp=!0,KP(e)}function pi(){if(!Gm&&Ur!==null){Gm=!0;var e=0,t=Oe;try{var n=Ur;for(Oe=1;e>=a,o-=a,Yr=1<<32-lr(t)+o|n<T?(A=C,C=null):A=C.sibling;var $=p(b,C,S[T],w);if($===null){C===null&&(C=A);break}e&&C&&$.alternate===null&&t(b,C),v=i($,v,T),_===null?k=$:_.sibling=$,_=$,C=A}if(T===S.length)return n(b,C),Je&&_i(b,T),k;if(C===null){for(;TT?(A=C,C=null):A=C.sibling;var B=p(b,C,$.value,w);if(B===null){C===null&&(C=A);break}e&&C&&B.alternate===null&&t(b,C),v=i(B,v,T),_===null?k=B:_.sibling=B,_=B,C=A}if($.done)return n(b,C),Je&&_i(b,T),k;if(C===null){for(;!$.done;T++,$=S.next())$=f(b,$.value,w),$!==null&&(v=i($,v,T),_===null?k=$:_.sibling=$,_=$);return Je&&_i(b,T),k}for(C=r(b,C);!$.done;T++,$=S.next())$=h(C,b,T,$.value,w),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?T:$.key),v=i($,v,T),_===null?k=$:_.sibling=$,_=$);return e&&C.forEach(function(Y){return t(b,Y)}),Je&&_i(b,T),k}function x(b,v,S,w){if(typeof S=="object"&&S!==null&&S.type===za&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Nu:e:{for(var k=S.key,_=v;_!==null;){if(_.key===k){if(k=S.type,k===za){if(_.tag===7){n(b,_.sibling),v=o(_,S.props.children),v.return=b,b=v;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ao&&Gx(k)===_.type){n(b,_.sibling),v=o(_,S.props),v.ref=fl(b,_,S),v.return=b,b=v;break e}n(b,_);break}else t(b,_);_=_.sibling}S.type===za?(v=Wi(S.props.children,b.mode,w,S.key),v.return=b,b=v):(w=Ld(S.type,S.key,S.props,null,b.mode,w),w.ref=fl(b,v,S),w.return=b,b=w)}return a(b);case Ra:e:{for(_=S.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(b,v.sibling),v=o(v,S.children||[]),v.return=b,b=v;break e}else{n(b,v);break}else t(b,v);v=v.sibling}v=eh(S,b.mode,w),v.return=b,b=v}return a(b);case Ao:return _=S._init,x(b,v,_(S._payload),w)}if(Pl(S))return g(b,v,S,w);if(sl(S))return y(b,v,S,w);Ku(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(b,v.sibling),v=o(v,S),v.return=b,b=v):(n(b,v),v=Jm(S,b.mode,w),v.return=b,b=v),a(b)):n(b,v)}return x}var Es=QP(!0),ZP=QP(!1),Ef=fi(null),jf=null,Va=null,W0=null;function U0(){W0=Va=jf=null}function H0(e){var t=Ef.current;Ge(Ef),e._currentValue=t}function Ng(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fs(e,t){jf=e,W0=Va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cn=!0),e.firstContext=null)}function Wn(e){var t=e._currentValue;if(W0!==e)if(e={context:e,memoizedValue:t,next:null},Va===null){if(jf===null)throw Error(W(308));Va=e,jf.dependencies={lanes:0,firstContext:e}}else Va=Va.next=e;return t}var zi=null;function G0(e){zi===null?zi=[e]:zi.push(e)}function JP(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,G0(t)):(n.next=o.next,o.next=n),t.interleaved=n,lo(e,r)}function lo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Io=!1;function K0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,lo(e,n)}return o=r.interleaved,o===null?(t.next=t,G0(r)):(t.next=o.next,o.next=t),r.interleaved=t,lo(e,n)}function Rd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}function Kx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $f(e,t,n,r){var o=e.updateQueue;Io=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,h=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=ot({},f,p);break e;case 2:Io=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ra|=a,e.lanes=a,e.memoizedState=f}}function Xx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xm.transition;Xm.transition={};try{e(!1),t()}finally{Oe=n,Xm.transition=r}}function v_(){return Un().memoizedState}function AR(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y_(e))b_(t,n);else if(n=JP(e,t,n,r),n!==null){var o=tn();cr(n,e,r,o),x_(n,t,r)}}function IR(e,t,n){var r=Zo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y_(e))b_(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,fr(s,a)){var l=t.interleaved;l===null?(o.next=o,G0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=JP(e,t,o,r),n!==null&&(o=tn(),cr(n,e,r,o),x_(n,t,r))}}function y_(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function b_(e,t){Kl=If=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}var Rf={readContext:Wn,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},RR={readContext:Wn,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Wn,useEffect:qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Md(4194308,4,f_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Md(4194308,4,e,t)},useInsertionEffect:function(e,t){return Md(4,2,e,t)},useMemo:function(e,t){var n=kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=AR.bind(null,nt,e),[r.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:Yx,useDebugValue:ty,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=Yx(!1),t=e[0];return e=$R.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=nt,o=kr();if(Je){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));na&30||o_(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qx(a_.bind(null,r,i,e),[e]),r.flags|=2048,Ec(9,i_.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kr(),t=Tt.identifierPrefix;if(Je){var n=qr,r=Yr;n=(r&~(1<<32-lr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_c++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Tr]=t,e[kc]=r,$_(e,t,!1,!1),t.stateNode=e;e:{switch(a=yg(n,r),n){case"dialog":Ue("cancel",e),Ue("close",e),o=r;break;case"iframe":case"object":case"embed":Ue("load",e),o=r;break;case"video":case"audio":for(o=0;oAs&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Af(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Je)return Wt(t),null}else 2*pt()-i.renderingStartTime>As&&n!==1073741824&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pt(),t.sibling=null,n=et.current,Be(et,r?n&1|2:n&1),t):(Wt(t),null);case 22:case 23:return sy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yn&1073741824&&(Wt(t),t.subtreeFlags&6&&(t.flags|=8192)):Wt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function BR(e,t){switch(B0(t),t.tag){case 1:return dn(t.type)&&Cf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),Ge(un),Ge(qt),q0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Y0(t),null;case 13:if(Ge(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(et),null;case 4:return js(),null;case 10:return H0(t.type._context),null;case 22:case 23:return sy(),null;case 24:return null;default:return null}}var Yu=!1,Gt=!1,VR=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Wa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ct(e,t,r)}else n.current=null}function Hg(e,t,n){try{n()}catch(r){ct(e,t,r)}}var sS=!1;function WR(e,t){if(Eg=xf,e=OP(),L0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=a),p===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(jg={focusedElem:e,selectionRange:n},xf=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:nr(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(w){ct(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return g=sS,sS=!1,g}function Xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hg(t,n,i)}o=o.next}while(o!==r)}}function yp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function R_(e){var t=e.alternate;t!==null&&(e.alternate=null,R_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tr],delete t[kc],delete t[Ig],delete t[PR],delete t[_R])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function z_(e){return e.tag===5||e.tag===3||e.tag===4}function lS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kf));else if(r!==4&&(e=e.child,e!==null))for(Kg(e,t,n),e=e.sibling;e!==null;)Kg(e,t,n),e=e.sibling}function Xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}var At=null,rr=!1;function Co(e,t,n){for(n=n.child;n!==null;)M_(e,t,n),n=n.sibling}function M_(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(up,n)}catch{}switch(n.tag){case 5:Gt||Wa(n,t);case 6:var r=At,o=rr;At=null,Co(e,t,n),At=r,rr=o,At!==null&&(rr?(e=At,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):At.removeChild(n.stateNode));break;case 18:At!==null&&(rr?(e=At,n=n.stateNode,e.nodeType===8?Hm(e.parentNode,n):e.nodeType===1&&Hm(e,n),yc(e)):Hm(At,n.stateNode));break;case 4:r=At,o=rr,At=n.stateNode.containerInfo,rr=!0,Co(e,t,n),At=r,rr=o;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Hg(n,t,a),o=o.next}while(o!==r)}Co(e,t,n);break;case 1:if(!Gt&&(Wa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ct(n,t,s)}Co(e,t,n);break;case 21:Co(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,Co(e,t,n),Gt=r):Co(e,t,n);break;default:Co(e,t,n)}}function cS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VR),t.forEach(function(r){var o=ZR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HR(r/1960))-r,10e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,Nf=0,je&6)throw Error(W(331));var o=je;for(je|=4,ee=e.current;ee!==null;){var i=ee,a=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpt()-iy?Vi(e,0):oy|=n),fn(e,t)}function W_(e,t){t===0&&(e.mode&1?(t=Fu,Fu<<=1,!(Fu&130023424)&&(Fu=4194304)):t=1);var n=tn();e=lo(e,t),e!==null&&(eu(e,t,n),fn(e,n))}function QR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),W_(e,n)}function ZR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),W_(e,n)}var U_;U_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||un.current)cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cn=!1,LR(e,t,n);cn=!!(e.flags&131072)}else cn=!1,Je&&t.flags&1048576&&XP(t,Tf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nd(e,t),e=t.pendingProps;var o=_s(t,qt.current);fs(t,n),o=Z0(null,t,r,e,o,n);var i=J0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dn(r)?(i=!0,Pf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K0(t),o.updater=vp,t.stateNode=o,o._reactInternals=t,Dg(t,r,e,n),t=Bg(null,t,r,!0,i,n)):(t.tag=0,Je&&i&&F0(t),Jt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ez(r),e=nr(r,e),o){case 0:t=Fg(null,t,r,e,n);break e;case 1:t=oS(null,t,r,e,n);break e;case 11:t=nS(null,t,r,e,n);break e;case 14:t=rS(null,t,r,nr(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),Fg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),oS(e,t,r,o,n);case 3:e:{if(T_(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,o=i.element,e_(e,t),$f(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=$s(Error(W(423)),t),t=iS(e,t,r,n,o);break e}else if(r!==o){o=$s(Error(W(424)),t),t=iS(e,t,r,n,o);break e}else for(bn=Yo(t.stateNode.containerInfo.firstChild),xn=t,Je=!0,or=null,n=ZP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ts(),r===o){t=co(e,t,n);break e}Jt(e,t,r,n)}t=t.child}return t;case 5:return t_(t),e===null&&Mg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$g(r,o)?a=null:i!==null&&$g(r,i)&&(t.flags|=32),__(e,t),Jt(e,t,a,n),t.child;case 6:return e===null&&Mg(t),null;case 13:return E_(e,t,n);case 4:return X0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Es(t,null,r,n):Jt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),nS(e,t,r,o,n);case 7:return Jt(e,t,t.pendingProps,n),t.child;case 8:return Jt(e,t,t.pendingProps.children,n),t.child;case 12:return Jt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Be(Ef,r._currentValue),r._currentValue=a,i!==null)if(fr(i.value,a)){if(i.children===o.children&&!un.current){t=co(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ng(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(W(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ng(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Jt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fs(t,n),o=Wn(o),r=r(o),t.flags|=1,Jt(e,t,r,n),t.child;case 14:return r=t.type,o=nr(r,t.pendingProps),o=nr(r.type,o),rS(e,t,r,o,n);case 15:return C_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),Nd(e,t),t.tag=1,dn(r)?(e=!0,Pf(t)):e=!1,fs(t,n),S_(t,r,o),Dg(t,r,o,n),Bg(null,t,r,!0,e,n);case 19:return j_(e,t,n);case 22:return P_(e,t,n)}throw Error(W(156,t.tag))};function H_(e,t){return yP(e,t)}function JR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,r){return new JR(e,t,n,r)}function cy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ez(e){if(typeof e=="function")return cy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E0)return 11;if(e===j0)return 14}return 2}function Jo(e,t){var n=e.alternate;return n===null?(n=Ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ld(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")cy(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case za:return Wi(n.children,o,i,t);case T0:a=8,o|=8;break;case lg:return e=Ln(12,n,t,o|2),e.elementType=lg,e.lanes=i,e;case cg:return e=Ln(13,n,t,o),e.elementType=cg,e.lanes=i,e;case ug:return e=Ln(19,n,t,o),e.elementType=ug,e.lanes=i,e;case tP:return xp(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J2:a=10;break e;case eP:a=9;break e;case E0:a=11;break e;case j0:a=14;break e;case Ao:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Ln(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wi(e,t,n,r){return e=Ln(7,e,r,t),e.lanes=n,e}function xp(e,t,n,r){return e=Ln(22,e,r,t),e.elementType=tP,e.lanes=n,e.stateNode={isHidden:!1},e}function Jm(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function eh(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tz(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zm(0),this.expirationTimes=zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uy(e,t,n,r,o,i,a,s,l){return e=new tz(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ln(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},K0(i),e}function nz(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y_)}catch(e){console.error(e)}}Y_(),Y2.exports=Tn;var my=Y2.exports,vS=my;ag.createRoot=vS.createRoot,ag.hydrateRoot=vS.hydrateRoot;function q_(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function sz(){return!!(globalThis!=null&&globalThis.document)}function Q_(e){return e.parentElement&&Q_(e.parentElement)?!0:e.hidden}function lz(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function cz(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function uz(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const oe=e=>e?"":void 0,to=e=>e?!0:void 0;function Jg(e){return Array.isArray(e)}function St(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Jg(e)}function dz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function fz(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function ev(e){if(e==null)return e;const{unitless:t}=fz(e);return t||typeof e=="number"?`${e}px`:e}const Z_=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,hy=e=>Object.fromEntries(Object.entries(e).sort(Z_));function yS(e){const t=hy(e);return Object.assign(Object.values(t),t)}function pz(e){const t=Object.keys(hy(e));return new Set(t)}function bS(e){if(!e)return e;e=ev(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function El(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${ev(e)})`),t&&n.push("and",`(max-width: ${ev(t)})`),n.join(" ")}function mz(e){if(!e)return null;e.base=e.base??"0px";const t=yS(e),n=Object.entries(e).sort(Z_).map(([i,a],s,l)=>{let[,c]=l[s+1]??[];return c=parseFloat(c)>0?bS(c):void 0,{_minW:bS(a),breakpoint:i,minW:a,maxW:c,maxWQuery:El(null,c),minWQuery:El(a),minMaxQuery:El(a,c)}}),r=pz(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const a=Object.keys(i);return a.length>0&&a.every(s=>r.has(s))},asObject:hy(e),asArray:yS(e),details:n,get(i){return n.find(a=>a.breakpoint===i)},media:[null,...t.map(i=>El(i)).slice(1)],toArrayValue(i){if(!St(i))throw new Error("toArrayValue: value must be an object");const a=o.map(s=>i[s]??null);for(;dz(a)===null;)a.pop();return a},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((a,s,l)=>{const c=o[l];return c!=null&&s!=null&&(a[c]=s),a},{})}}}function hz(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function le(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function gy(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function vy(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gz(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ye(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=m.createContext(a);s.displayName=t;function l(){var d;const c=m.useContext(s);if(!c&&n){const f=new Error(i??gz(r,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[s.Provider,l,s]}const V=(...e)=>e.filter(Boolean).join(" "),vz=e=>e.hasAttribute("tabindex");function yz(e){if(!q_(e)||Q_(e)||cz(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():lz(e)?!0:vz(e)}const bz=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],xz=bz.join(),Sz=e=>e.offsetWidth>0&&e.offsetHeight>0;function wz(e){const t=Array.from(e.querySelectorAll(xz));return t.unshift(e),t.filter(n=>yz(n)&&Sz(n))}function kz(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},J_=Cz(kz),Pz=e=>e.default||e;function yy(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function eT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const tT=Object.freeze(["base","sm","md","lg","xl","2xl"]);function by(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):St(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function _z(e,t=tT){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}const Tz=e=>typeof e=="function";function Xt(e,...t){return Tz(e)?e(...t):e}function Ez(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function jz(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function nT(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:q_(e)&&Ez(e)?e:nT(jz(e))}function rT(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}function $z(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=a=>{const s={};for(let l=0;lo(Array.isArray(a)?a:r.filter(a));return t.map(i).concat(o(r))}function xS(e,t,n={}){const{stop:r,getKey:o}=n;function i(a,s=[]){if(St(a)||Array.isArray(a)){const l={};for(const[c,d]of Object.entries(a)){const f=(o==null?void 0:o(c))??c,p=[...s,f];if(r!=null&&r(a,p))return t(a,s);l[f]=i(d,p)}return l}return t(a,s)}return i(e)}var Lf={exports:{}};Lf.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",g="[object GeneratorFunction]",y="[object Map]",x="[object Number]",b="[object Null]",v="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",_="[object String]",C="[object Undefined]",T="[object WeakMap]",A="[object ArrayBuffer]",$="[object DataView]",B="[object Float32Array]",Y="[object Float64Array]",te="[object Int8Array]",I="[object Int16Array]",K="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",R="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Q={};Q[B]=Q[Y]=Q[te]=Q[I]=Q[K]=Q[F]=Q[z]=Q[O]=Q[R]=!0,Q[s]=Q[l]=Q[A]=Q[d]=Q[$]=Q[f]=Q[p]=Q[h]=Q[y]=Q[x]=Q[v]=Q[w]=Q[k]=Q[_]=Q[T]=!1;var be=typeof zu=="object"&&zu&&zu.Object===Object&&zu,me=typeof self=="object"&&self&&self.Object===Object&&self,xe=be||me||Function("return this")(),Fe=t&&!t.nodeType&&t,fe=Fe&&!0&&e&&!e.nodeType&&e,Z=fe&&fe.exports===Fe,J=Z&&be.process,Pe=function(){try{var P=fe&&fe.require&&fe.require("util").types;return P||J&&J.binding&&J.binding("util")}catch{}}(),pe=Pe&&Pe.isTypedArray;function ne(P,j,M){switch(M.length){case 0:return P.call(j);case 1:return P.call(j,M[0]);case 2:return P.call(j,M[0],M[1]);case 3:return P.call(j,M[0],M[1],M[2])}return P.apply(j,M)}function ce(P,j){for(var M=-1,re=Array(P);++M-1}function W4(P,j){var M=this.__data__,re=$u(M,P);return re<0?(++this.size,M.push([P,j])):M[re][1]=j,this}Br.prototype.clear=L4,Br.prototype.delete=F4,Br.prototype.get=B4,Br.prototype.has=V4,Br.prototype.set=W4;function wa(P){var j=-1,M=P==null?0:P.length;for(this.clear();++j1?M[ke-1]:void 0,qe=ke>2?M[2]:void 0;for(Le=P.length>3&&typeof Le=="function"?(ke--,Le):void 0,qe&&y3(M[0],M[1],qe)&&(Le=ke<3?void 0:Le,ke=1),j=Object(j);++re-1&&P%1==0&&P0){if(++j>=o)return arguments[0]}else j=0;return P.apply(void 0,arguments)}}function _3(P){if(P!=null){try{return bi.call(P)}catch{}try{return P+""}catch{}}return""}function Ru(P,j){return P===j||P!==P&&j!==j}var wm=X1(function(){return arguments}())?X1:function(P){return il(P)&&qn.call(P,"callee")&&!j4.call(P,"callee")},km=Array.isArray;function Cm(P){return P!=null&&J1(P.length)&&!Pm(P)}function T3(P){return il(P)&&Cm(P)}var Z1=A4||I3;function Pm(P){if(!ki(P))return!1;var j=Au(P);return j==h||j==g||j==c||j==S}function J1(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=a}function ki(P){var j=typeof P;return P!=null&&(j=="object"||j=="function")}function il(P){return P!=null&&typeof P=="object"}function E3(P){if(!il(P)||Au(P)!=v)return!1;var j=U1(P);if(j===null)return!0;var M=qn.call(j,"constructor")&&j.constructor;return typeof M=="function"&&M instanceof M&&bi.call(M)==Tu}var ex=pe?it(pe):o3;function j3(P){return p3(P,tx(P))}function tx(P){return Cm(P)?e3(P):i3(P)}var $3=m3(function(P,j,M,re){Y1(P,j,M,re)});function A3(P){return function(){return P}}function nx(P){return P}function I3(){return!1}e.exports=$3})(Lf,Lf.exports);var Az=Lf.exports;const Fn=b0(Az);function ur(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Fd(e,t,n,r){const o=ur(n);return m.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function oT(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(p,h)=>p!==h}=e,i=ur(r),a=ur(o),[s,l]=m.useState(n),c=t!==void 0,d=c?t:s,f=ur(p=>{const g=typeof p=="function"?p(d):p;a(d,g)&&(c||l(g),i(g))},[c,i,d,a]);return[d,f]}function ou(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=ur(n),a=ur(t),[s,l]=m.useState(e.defaultIsOpen||!1),c=r!==void 0?r:s,d=r!==void 0,f=m.useId(),p=o??`disclosure-${f}`,h=m.useCallback(()=>{d||l(!1),a==null||a()},[d,a]),g=m.useCallback(()=>{d||l(!0),i==null||i()},[d,i]),y=m.useCallback(()=>{c?h():g()},[c,g,h]);function x(v={}){return{...v,"aria-expanded":c,"aria-controls":p,onClick(S){var w;(w=v.onClick)==null||w.call(v,S),y()}}}function b(v={}){return{...v,hidden:!c,id:p}}return{isOpen:c,onOpen:g,onClose:h,onToggle:y,isControlled:d,getButtonProps:x,getDisclosureProps:b}}const no=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,Ff=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Iz(e){return"current"in e}const iT=()=>typeof window<"u";function Rz(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const zz=e=>iT()&&e.test(navigator.vendor),Mz=e=>iT()&&e.test(Rz()),Nz=()=>Mz(/mac|iphone|ipad|ipod/i),Oz=()=>Nz()&&zz(/apple/i);function Dz(e){const{ref:t,elements:n,enabled:r}=e,o=()=>{var i;return((i=t.current)==null?void 0:i.ownerDocument)??document};Fd(o,"pointerdown",i=>{var c,d;if(!Oz()||!r)return;const a=((d=(c=i.composedPath)==null?void 0:c.call(i))==null?void 0:d[0])??i.target,l=(n??[t]).some(f=>{const p=Iz(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});o().activeElement!==a&&l&&(i.preventDefault(),a.focus())})}function Lz(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function bt(...e){return t=>{e.forEach(n=>{Lz(n,t)})}}function xy(...e){return m.useMemo(()=>bt(...e),e)}function Fz(e,t){const n=ur(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const vt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},br=e=>aT(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Vr=e=>aT(t=>e(t,"~ &"),"[data-peer]",".peer"),aT=(e,...t)=>t.map(e).join(", "),ms={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:br(vt.open),_groupClosed:br(vt.closed),_groupHover:br(vt.hover),_peerHover:Vr(vt.hover),_groupFocus:br(vt.focus),_peerFocus:Vr(vt.focus),_groupFocusVisible:br(vt.focusVisible),_peerFocusVisible:Vr(vt.focusVisible),_groupActive:br(vt.active),_peerActive:Vr(vt.active),_groupDisabled:br(vt.disabled),_peerDisabled:Vr(vt.disabled),_groupInvalid:br(vt.invalid),_peerInvalid:Vr(vt.invalid),_groupChecked:br(vt.checked),_peerChecked:Vr(vt.checked),_groupFocusWithin:br(vt.focusWithin),_peerFocusWithin:Vr(vt.focusWithin),_peerPlaceholderShown:Vr(vt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},sT=Object.keys(ms),Bz=e=>/!(important)?$/.test(e),SS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Vz=(e,t)=>n=>{const r=String(t),o=Bz(r),i=SS(r),a=e?`${e}.${i}`:i;let s=St(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=SS(s),o?`${s} !important`:s};function Sy(e){const{scale:t,transform:n,compose:r}=e;return(i,a)=>{const s=Vz(t,i)(a);let l=(n==null?void 0:n(s,a))??s;return r&&(l=r(l,a)),l}}const Zu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Rn(e,t){return n=>{const r={property:n,scale:e};return r.transform=Sy({scale:e,transform:t}),r}}const Wz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Uz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Wz(t),transform:n?Sy({scale:n,compose:r}):r}}const lT=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Hz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...lT].join(" ")}function Gz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...lT].join(" ")}const Kz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Xz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Yz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const qz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tv={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Qz=new Set(Object.values(tv)),nv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Zz=e=>e.trim();function Jz(e,t){if(e==null||nv.has(e))return e;if(!(rv(e)||nv.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(Zz).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in tv?tv[l]:l;c.unshift(d);const f=c.map(p=>{if(Qz.has(p))return p;const h=p.indexOf(" "),[g,y]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=rv(y)?y:y&&y.split(" "),b=`colors.${g}`,v=b in t.__cssMap?t.__cssMap[b].varRef:g;return x?[v,...Array.isArray(x)?x:[x]].join(" "):v});return`${s}(${f.join(", ")})`}const rv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),eM=(e,t)=>Jz(e,t??{});function tM(e){return/^var\(--.+\)$/.test(e)}const nM=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},xr=e=>t=>`${e}(${t})`,Se={filter(e){return e!=="auto"?e:Kz},backdropFilter(e){return e!=="auto"?e:Xz},ring(e){return Yz(Se.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Hz():e==="auto-gpu"?Gz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=nM(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(tM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:eM,blur:xr("blur"),opacity:xr("opacity"),brightness:xr("brightness"),contrast:xr("contrast"),dropShadow:xr("drop-shadow"),grayscale:xr("grayscale"),hueRotate:e=>xr("hue-rotate")(Se.degree(e)),invert:xr("invert"),saturate:xr("saturate"),sepia:xr("sepia"),bgImage(e){return e==null||rv(e)||nv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=qz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},E={borderWidths:Rn("borderWidths"),borderStyles:Rn("borderStyles"),colors:Rn("colors"),borders:Rn("borders"),gradients:Rn("gradients",Se.gradient),radii:Rn("radii",Se.px),space:Rn("space",Zu(Se.vh,Se.px)),spaceT:Rn("space",Zu(Se.vh,Se.px)),degreeT(e){return{property:e,transform:Se.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Sy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Rn("sizes",Zu(Se.vh,Se.px)),sizesT:Rn("sizes",Zu(Se.vh,Se.fraction)),shadows:Rn("shadows"),logical:Uz,blur:Rn("blur",Se.blur)},Bd={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Se.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:Se.bgClip}};Object.assign(Bd,{bgImage:Bd.backgroundImage,bgImg:Bd.backgroundImage});const Ie={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ie,{rounded:Ie.borderRadius,roundedTop:Ie.borderTopRadius,roundedTopLeft:Ie.borderTopLeftRadius,roundedTopRight:Ie.borderTopRightRadius,roundedTopStart:Ie.borderStartStartRadius,roundedTopEnd:Ie.borderStartEndRadius,roundedBottom:Ie.borderBottomRadius,roundedBottomLeft:Ie.borderBottomLeftRadius,roundedBottomRight:Ie.borderBottomRightRadius,roundedBottomStart:Ie.borderEndStartRadius,roundedBottomEnd:Ie.borderEndEndRadius,roundedLeft:Ie.borderLeftRadius,roundedRight:Ie.borderRightRadius,roundedStart:Ie.borderInlineStartRadius,roundedEnd:Ie.borderInlineEndRadius,borderStart:Ie.borderInlineStart,borderEnd:Ie.borderInlineEnd,borderTopStartRadius:Ie.borderStartStartRadius,borderTopEndRadius:Ie.borderStartEndRadius,borderBottomStartRadius:Ie.borderEndStartRadius,borderBottomEndRadius:Ie.borderEndEndRadius,borderStartRadius:Ie.borderInlineStartRadius,borderEndRadius:Ie.borderInlineEndRadius,borderStartWidth:Ie.borderInlineStartWidth,borderEndWidth:Ie.borderInlineEndWidth,borderStartColor:Ie.borderInlineStartColor,borderEndColor:Ie.borderInlineEndColor,borderStartStyle:Ie.borderInlineStartStyle,borderEndStyle:Ie.borderInlineEndStyle});const rM={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},Bf={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Se.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(Bf,{flexDir:Bf.flexDirection});const Mn={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",Se.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Mn,{w:Mn.width,h:Mn.height,minW:Mn.minWidth,maxW:Mn.maxWidth,minH:Mn.minHeight,maxH:Mn.maxHeight,overscroll:Mn.overscrollBehavior,overscrollX:Mn.overscrollBehaviorX,overscrollY:Mn.overscrollBehaviorY});const oM={filter:{transform:Se.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",Se.brightness),contrast:E.propT("--chakra-contrast",Se.contrast),hueRotate:E.propT("--chakra-hue-rotate",Se.hueRotate),invert:E.propT("--chakra-invert",Se.invert),saturate:E.propT("--chakra-saturate",Se.saturate),dropShadow:E.propT("--chakra-drop-shadow",Se.dropShadow),backdropFilter:{transform:Se.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",Se.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",Se.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",Se.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",Se.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",Se.saturate)},iM={ring:{transform:Se.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},aM={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Se.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},cT={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function sM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},cM=lM(sM),uM={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},dM={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},th=(e,t,n)=>{const r={},o=cM(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},fM={srOnly:{transform(e){return e===!0?uM:e==="focusable"?dM:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>th(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>th(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>th(t,e,n)}},Ql={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ql,{insetStart:Ql.insetInlineStart,insetEnd:Ql.insetInlineEnd});const ov={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(ov,{shadow:ov.boxShadow});const He={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(He,{m:He.margin,mt:He.marginTop,mr:He.marginRight,me:He.marginInlineEnd,marginEnd:He.marginInlineEnd,mb:He.marginBottom,ml:He.marginLeft,ms:He.marginInlineStart,marginStart:He.marginInlineStart,mx:He.marginX,my:He.marginY,p:He.padding,pt:He.paddingTop,py:He.paddingY,px:He.paddingX,pb:He.paddingBottom,pl:He.paddingLeft,ps:He.paddingInlineStart,paddingStart:He.paddingInlineStart,pr:He.paddingRight,pe:He.paddingInlineEnd,paddingEnd:He.paddingInlineEnd});const pM={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},mM={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",Se.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},hM={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},gM={clipPath:!0,transform:E.propT("transform",Se.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},vM={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},yM={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},wy=Fn({},Bd,Ie,rM,Bf,Mn,oM,iM,aM,cT,fM,Ql,ov,He,pM,mM,hM,gM,vM,yM),bM=Object.assign({},He,Mn,Bf,cT,Ql),uT=Object.keys(bM),xM=[...Object.keys(wy),...sT],SM={...wy,...ms},wM=e=>e in SM,kM=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Xt(e[a],t);if(s==null)continue;if(s=St(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!PM(t),TM=(e,t)=>{if(t==null)return t;const n=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.varRef},r=a=>n(a)??a,[o,i]=CM(t);return t=n(o)??r(i)??r(t),t};function EM(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,a=!1)=>{var d;const s=Xt(i,r),l=kM(s)(r);let c={};for(let f in l){const p=l[f];let h=Xt(p,r);f in n&&(f=n[f]),_M(f,h)&&(h=TM(r,h));let g=t[f];if(g===!0&&(g={property:f}),St(h)){c[f]=c[f]??{},c[f]=Fn({},c[f],o(h,!0));continue}let y=((d=g==null?void 0:g.transform)==null?void 0:d.call(g,h,r,s))??h;y=g!=null&&g.processResult?o(y,!0):y;const x=Xt(g==null?void 0:g.property,r);if(!a&&(g!=null&&g.static)){const b=Xt(g.static,r);c=Fn({},c,b)}if(x&&Array.isArray(x)){for(const b of x)c[b]=y;continue}if(x){x==="&"&&St(y)?c=Fn({},c,y):c[x]=y;continue}if(St(y)){c=Fn({},c,y);continue}c[f]=y}return c};return o}const dT=e=>t=>EM({theme:t,pseudos:ms,configs:wy})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function jM(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function $M(e,t){if(Array.isArray(e))return e;if(St(e))return t(e);if(e!=null)return[e]}function AM(e,t){for(let n=t+1;n{Fn(s,{[S]:d?v[S]:{[b]:v[S]}})});continue}if(!f){d?Fn(s,v):s[b]=v;continue}s[b]=v}}return s}}function RM(e){return t=>{const{variant:n,size:r,theme:o}=t,i=IM(o);return Fn({},Xt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Ce(e){return yy(e,["styleConfig","size","variant","colorScheme"])}function fT(e){return St(e)&&e.reference?e.reference:String(e)}const Pp=(e,...t)=>t.map(fT).join(` ${e} `).replace(/calc/g,""),wS=(...e)=>`calc(${Pp("+",...e)})`,kS=(...e)=>`calc(${Pp("-",...e)})`,iv=(...e)=>`calc(${Pp("*",...e)})`,CS=(...e)=>`calc(${Pp("/",...e)})`,PS=e=>{const t=fT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:iv(t,-1)},Hr=Object.assign(e=>({add:(...t)=>Hr(wS(e,...t)),subtract:(...t)=>Hr(kS(e,...t)),multiply:(...t)=>Hr(iv(e,...t)),divide:(...t)=>Hr(CS(e,...t)),negate:()=>Hr(PS(e)),toString:()=>e.toString()}),{add:wS,subtract:kS,multiply:iv,divide:CS,negate:PS});function zM(e,t="-"){return e.replace(/\s+/g,t)}function MM(e){const t=zM(e.toString());return OM(NM(t))}function NM(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function OM(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function DM(e,t=""){return[t,e].filter(Boolean).join("-")}function LM(e,t){return`var(${e}${t?`, ${t}`:""})`}function FM(e,t=""){return MM(`--${DM(e,t)}`)}function X(e,t,n){const r=FM(e,n);return{variable:r,reference:LM(r,t)}}function pT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=X(`${e}-${o}`,i);continue}n[r]=X(`${e}-${r}`)}return n}const BM=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function VM(e){return eT(e,BM)}function WM(e){return e.semanticTokens}function UM(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function HM(e){const t=VM(e),n=WM(e),r=i=>sT.includes(i)||i==="default",o={};return xS(t,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!1,value:i})}),xS(n,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function _S(e,t){return X(String(e).replace(/\./g,"-"),void 0,t)}function GM(e){var a;const t=HM(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const o={};function i(s,l){const d=[String(s).split(".")[0],l].join(".");if(!t[d])return l;const{reference:p}=_S(d,n);return p}for(const[s,l]of Object.entries(t)){const{isSemantic:c,value:d}=l,{variable:f,reference:p}=_S(s,n);if(!c){if(s.startsWith("space")){const g=s.split("."),[y,...x]=g,b=`${y}.-${x.join(".")}`,v=Hr.negate(d),S=Hr.negate(p);o[b]={value:v,var:f,varRef:S}}r[f]=d,o[s]={value:d,var:f,varRef:p};continue}const h=St(d)?d:{default:d};r=Fn(r,Object.entries(h).reduce((g,[y,x])=>{if(!x)return g;const b=i(s,`${x}`);if(y==="default")return g[f]=b,g;const v=(ms==null?void 0:ms[y])??y;return g[v]={[f]:b},g},{})),o[s]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:o}}function KM(e){const t=UM(e),{cssMap:n,cssVars:r}=GM(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:mz(t.breakpoints)}),t}function $e(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return $e(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return $e(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}const XM=$e("accordion").parts("root","container","button","panel","icon"),mT=$e("alert").parts("title","description","container","icon","spinner"),YM=$e("avatar").parts("label","badge","container","excessLabel","group"),qM=$e("breadcrumb").parts("link","item","container","separator");$e("button").parts();const hT=$e("checkbox").parts("control","icon","container","label");$e("progress").parts("track","filledTrack","label");const QM=$e("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),ZM=$e("editable").parts("preview","input","textarea"),gT=$e("form").parts("container","requiredIndicator","helperText"),JM=$e("formError").parts("text","icon"),ky=$e("input").parts("addon","field","element","group"),e6=$e("list").parts("container","item","icon"),vT=$e("menu").parts("button","list","item","groupTitle","icon","command","divider"),yT=$e("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),t6=$e("numberinput").parts("root","field","stepperGroup","stepper");$e("pininput").parts("field");const n6=$e("popover").parts("content","header","body","footer","popper","arrow","closeButton"),bT=$e("progress").parts("label","filledTrack","track"),xT=$e("radio").parts("container","control","label"),r6=$e("select").parts("field","icon"),ST=$e("slider").parts("container","track","thumb","filledTrack","mark"),o6=$e("stat").parts("container","label","helpText","number","icon"),wT=$e("switch").parts("container","track","thumb","label"),i6=$e("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),a6=$e("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),s6=$e("tag").parts("container","label","closeButton"),kT=$e("card").parts("container","header","body","footer");$e("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:l6,defineMultiStyleConfig:c6}=ie(XM.keys),u6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},d6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},f6={pt:"2",px:"4",pb:"5"},p6={fontSize:"1.25em"},m6=l6({container:u6,button:d6,panel:f6,icon:p6}),h6=c6({baseStyle:m6});function Ni(e,t,n){return Math.min(Math.max(e,n),t)}class jl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function Cy(e){if(typeof e!="string")throw new jl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=k6.test(e)?y6(e):e;const n=b6.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt($c(s,2),16)),parseInt($c(a[3]||"f",2),16)/255]}const r=x6.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=S6.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=w6.exec(t);if(i){const[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(Ni(0,100,s)!==s)throw new jl(e);if(Ni(0,100,l)!==l)throw new jl(e);return[...C6(a,s,l),Number.isNaN(c)?1:c]}throw new jl(e)}function g6(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const TS=e=>parseInt(e.replace(/_/g,""),36),v6="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=TS(t.substring(0,3)),r=TS(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function y6(e){const t=e.toLowerCase().trim(),n=v6[g6(t)];if(!n)throw new jl(e);return`#${n}`}const $c=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),b6=new RegExp(`^#${$c("([a-f0-9])",3)}([a-f0-9])?$`,"i"),x6=new RegExp(`^#${$c("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),S6=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${$c(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),w6=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,k6=/^[a-z]+$/i,ES=e=>Math.round(e*255),C6=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(ES);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const d=r-i/2,f=s+d,p=l+d,h=c+d;return[f,p,h].map(ES)};function P6(e,t,n,r){return`rgba(${Ni(0,255,e).toFixed()}, ${Ni(0,255,t).toFixed()}, ${Ni(0,255,n).toFixed()}, ${parseFloat(Ni(0,1,r).toFixed(3))})`}function _6(e,t){const[n,r,o,i]=Cy(e);return P6(n,r,o,i-t)}function T6(e){const[t,n,r,o]=Cy(e);let i=a=>{const s=Ni(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const E6=e=>Object.keys(e).length===0;function j6(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=j6(e,`colors.${t}`,t);try{return T6(r),r}catch{return n??"#000000"}},$6=e=>{const[t,n,r]=Cy(e);return(t*299+n*587+r*114)/1e3},A6=e=>t=>{const n=Ke(t,e);return $6(n)<128?"dark":"light"},I6=e=>t=>A6(e)(t)==="dark",Et=(e,t)=>n=>{const r=Ke(n,e);return _6(r,1-t)};function jS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const R6=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function z6(e){const t=R6();return!e||E6(e)?t:e.string&&e.colors?N6(e.string,e.colors):e.string&&!e.colors?M6(e.string):e.colors&&!e.string?O6(e.colors):t}function M6(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function N6(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Py(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function CT(e){return St(e)&&e.reference?e.reference:String(e)}const _p=(e,...t)=>t.map(CT).join(` ${e} `).replace(/calc/g,""),$S=(...e)=>`calc(${_p("+",...e)})`,AS=(...e)=>`calc(${_p("-",...e)})`,av=(...e)=>`calc(${_p("*",...e)})`,IS=(...e)=>`calc(${_p("/",...e)})`,RS=e=>{const t=CT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:av(t,-1)},Gr=Object.assign(e=>({add:(...t)=>Gr($S(e,...t)),subtract:(...t)=>Gr(AS(e,...t)),multiply:(...t)=>Gr(av(e,...t)),divide:(...t)=>Gr(IS(e,...t)),negate:()=>Gr(RS(e)),toString:()=>e.toString()}),{add:$S,subtract:AS,multiply:av,divide:IS,negate:RS});function D6(e){return!Number.isInteger(parseFloat(e.toString()))}function L6(e,t="-"){return e.replace(/\s+/g,t)}function PT(e){const t=L6(e.toString());return t.includes("\\.")?e:D6(e)?t.replace(".","\\."):e}function F6(e,t=""){return[t,PT(e)].filter(Boolean).join("-")}function B6(e,t){return`var(${PT(e)}${t?`, ${t}`:""})`}function V6(e,t=""){return`--${F6(e,t)}`}function ut(e,t){const n=V6(e,t==null?void 0:t.prefix);return{variable:n,reference:B6(n,W6(t==null?void 0:t.fallback))}}function W6(e){return e==null?void 0:e.reference}const{definePartsStyle:iu,defineMultiStyleConfig:U6}=ie(mT.keys),Sn=X("alert-fg"),uo=X("alert-bg"),H6=iu({container:{bg:uo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function _y(e){const{theme:t,colorScheme:n}=e,r=Et(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const G6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark}}}}),K6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Sn.reference}}}),X6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Sn.reference}}}),Y6=iu(e=>{const{colorScheme:t}=e;return{container:{[Sn.variable]:"colors.white",[uo.variable]:`colors.${t}.600`,_dark:{[Sn.variable]:"colors.gray.900",[uo.variable]:`colors.${t}.200`},color:Sn.reference}}}),q6={subtle:G6,"left-accent":K6,"top-accent":X6,solid:Y6},Q6=U6({baseStyle:H6,variants:q6,defaultProps:{variant:"subtle",colorScheme:"blue"}}),_T={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Z6={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},J6={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},TT={..._T,...Z6,container:J6},eN=e=>typeof e=="function";function nn(e,...t){return eN(e)?e(...t):e}const{definePartsStyle:ET,defineMultiStyleConfig:tN}=ie(YM.keys),hs=X("avatar-border-color"),Zl=X("avatar-bg"),Ac=X("avatar-font-size"),Is=X("avatar-size"),nN={borderRadius:"full",border:"0.2em solid",borderColor:hs.reference,[hs.variable]:"white",_dark:{[hs.variable]:"colors.gray.800"}},rN={bg:Zl.reference,fontSize:Ac.reference,width:Is.reference,height:Is.reference,lineHeight:"1",[Zl.variable]:"colors.gray.200",_dark:{[Zl.variable]:"colors.whiteAlpha.400"}},oN=e=>{const{name:t,theme:n}=e,r=t?z6({string:t}):"colors.gray.400",o=I6(r)(n);let i="white";return o||(i="gray.800"),{bg:Zl.reference,fontSize:Ac.reference,color:i,borderColor:hs.reference,verticalAlign:"top",width:Is.reference,height:Is.reference,"&:not([data-loaded])":{[Zl.variable]:r},[hs.variable]:"colors.white",_dark:{[hs.variable]:"colors.gray.800"}}},iN={fontSize:Ac.reference,lineHeight:"1"},aN=ET(e=>({badge:nn(nN,e),excessLabel:nn(rN,e),container:nn(oN,e),label:iN}));function Po(e){const t=e!=="100%"?TT[e]:void 0;return ET({container:{[Is.variable]:t??e,[Ac.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Is.variable]:t??e,[Ac.variable]:`calc(${t??e} / 2.5)`}})}const sN={"2xs":Po(4),xs:Po(6),sm:Po(8),md:Po(12),lg:Po(16),xl:Po(24),"2xl":Po(32),full:Po("100%")},lN=tN({baseStyle:aN,sizes:sN,defaultProps:{size:"md"}}),mt=pT("badge",["bg","color","shadow"]),cN={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},uN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.500`,.6)(n);return{[mt.bg.variable]:`colors.${t}.500`,[mt.color.variable]:"colors.white",_dark:{[mt.bg.variable]:r,[mt.color.variable]:"colors.whiteAlpha.800"}}},dN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.16)(n);return{[mt.bg.variable]:`colors.${t}.100`,[mt.color.variable]:`colors.${t}.800`,_dark:{[mt.bg.variable]:r,[mt.color.variable]:`colors.${t}.200`}}},fN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[mt.color.variable]:`colors.${t}.500`,_dark:{[mt.color.variable]:r},[mt.shadow.variable]:`inset 0 0 0px 1px ${mt.color.reference}`}},pN={solid:uN,subtle:dN,outline:fN},Jl={baseStyle:cN,variants:pN,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:mN,definePartsStyle:hN}=ie(qM.keys),nh=X("breadcrumb-link-decor"),gN={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:nh.reference,[nh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[nh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},vN=hN({link:gN}),yN=mN({baseStyle:vN}),bN={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},jT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.100","whiteAlpha.200")(e)},_active:{bg:q("gray.200","whiteAlpha.300")(e)}};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:q(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:q(`${t}.50`,r)(e)},_active:{bg:q(`${t}.100`,o)(e)}}},xN=e=>{const{colorScheme:t}=e,n=q("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...nn(jT,e)}},SN={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},wN=e=>{const{colorScheme:t}=e;if(t==="gray"){const s=q("gray.100","whiteAlpha.200")(e);return{bg:s,color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.200","whiteAlpha.300")(e),_disabled:{bg:s}},_active:{bg:q("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=SN[t]??{},a=q(n,`${t}.200`)(e);return{bg:a,color:q(r,"gray.800")(e),_hover:{bg:q(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:q(i,`${t}.400`)(e)}}},kN=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:q(`${t}.700`,`${t}.500`)(e)}}},CN={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},PN={ghost:jT,outline:xN,solid:wN,link:kN,unstyled:CN},_N={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},TN={baseStyle:bN,variants:PN,sizes:_N,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ui,defineMultiStyleConfig:EN}=ie(kT.keys),Vf=X("card-bg"),ro=X("card-padding"),$T=X("card-shadow"),Vd=X("card-radius"),AT=X("card-border-width","0"),IT=X("card-border-color"),jN=Ui({container:{[Vf.variable]:"colors.chakra-body-bg",backgroundColor:Vf.reference,boxShadow:$T.reference,borderRadius:Vd.reference,color:"chakra-body-text",borderWidth:AT.reference,borderColor:IT.reference},body:{padding:ro.reference,flex:"1 1 0%"},header:{padding:ro.reference},footer:{padding:ro.reference}}),$N={sm:Ui({container:{[Vd.variable]:"radii.base",[ro.variable]:"space.3"}}),md:Ui({container:{[Vd.variable]:"radii.md",[ro.variable]:"space.5"}}),lg:Ui({container:{[Vd.variable]:"radii.xl",[ro.variable]:"space.7"}})},AN={elevated:Ui({container:{[$T.variable]:"shadows.base",_dark:{[Vf.variable]:"colors.gray.700"}}}),outline:Ui({container:{[AT.variable]:"1px",[IT.variable]:"colors.chakra-border-color"}}),filled:Ui({container:{[Vf.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ro.variable]:0},header:{[ro.variable]:0},footer:{[ro.variable]:0}}},IN=EN({baseStyle:jN,variants:AN,sizes:$N,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Wd,defineMultiStyleConfig:RN}=ie(hT.keys),ec=X("checkbox-size"),zN=e=>{const{colorScheme:t}=e;return{w:ec.reference,h:ec.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e),_hover:{bg:q(`${t}.600`,`${t}.300`)(e),borderColor:q(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:q("gray.200","transparent")(e),bg:q("gray.200","whiteAlpha.300")(e),color:q("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e)},_disabled:{bg:q("gray.100","whiteAlpha.100")(e),borderColor:q("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:q("red.500","red.300")(e)}}},MN={_disabled:{cursor:"not-allowed"}},NN={userSelect:"none",_disabled:{opacity:.4}},ON={transitionProperty:"transform",transitionDuration:"normal"},DN=Wd(e=>({icon:ON,container:MN,control:nn(zN,e),label:NN})),LN={sm:Wd({control:{[ec.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Wd({control:{[ec.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Wd({control:{[ec.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ro=RN({baseStyle:DN,sizes:LN,defaultProps:{size:"md",colorScheme:"blue"}}),tc=ut("close-button-size"),hl=ut("close-button-bg"),FN={w:[tc.reference],h:[tc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[hl.variable]:"colors.blackAlpha.100",_dark:{[hl.variable]:"colors.whiteAlpha.100"}},_active:{[hl.variable]:"colors.blackAlpha.200",_dark:{[hl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:hl.reference},BN={lg:{[tc.variable]:"sizes.10",fontSize:"md"},md:{[tc.variable]:"sizes.8",fontSize:"xs"},sm:{[tc.variable]:"sizes.6",fontSize:"2xs"}},VN={baseStyle:FN,sizes:BN,defaultProps:{size:"md"}},{variants:WN,defaultProps:UN}=Jl,HN={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},GN={baseStyle:HN,variants:WN,defaultProps:UN},KN={w:"100%",mx:"auto",maxW:"prose",px:"4"},XN={baseStyle:KN},YN={opacity:.6,borderColor:"inherit"},qN={borderStyle:"solid"},QN={borderStyle:"dashed"},ZN={solid:qN,dashed:QN},JN={baseStyle:YN,variants:ZN,defaultProps:{variant:"solid"}},{definePartsStyle:sv,defineMultiStyleConfig:eO}=ie(QM.keys),rh=X("drawer-bg"),oh=X("drawer-box-shadow");function Pa(e){return sv(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const tO={bg:"blackAlpha.600",zIndex:"modal"},nO={display:"flex",zIndex:"modal",justifyContent:"center"},rO=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[rh.variable]:"colors.white",[oh.variable]:"shadows.lg",_dark:{[rh.variable]:"colors.gray.700",[oh.variable]:"shadows.dark-lg"},bg:rh.reference,boxShadow:oh.reference}},oO={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},iO={position:"absolute",top:"2",insetEnd:"3"},aO={px:"6",py:"2",flex:"1",overflow:"auto"},sO={px:"6",py:"4"},lO=sv(e=>({overlay:tO,dialogContainer:nO,dialog:nn(rO,e),header:oO,closeButton:iO,body:aO,footer:sO})),cO={xs:Pa("xs"),sm:Pa("md"),md:Pa("lg"),lg:Pa("2xl"),xl:Pa("4xl"),full:Pa("full")},uO=eO({baseStyle:lO,sizes:cO,defaultProps:{size:"xs"}}),{definePartsStyle:dO,defineMultiStyleConfig:fO}=ie(ZM.keys),pO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},hO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},gO=dO({preview:pO,input:mO,textarea:hO}),vO=fO({baseStyle:gO}),{definePartsStyle:yO,defineMultiStyleConfig:bO}=ie(gT.keys),gs=X("form-control-color"),xO={marginStart:"1",[gs.variable]:"colors.red.500",_dark:{[gs.variable]:"colors.red.300"},color:gs.reference},SO={mt:"2",[gs.variable]:"colors.gray.600",_dark:{[gs.variable]:"colors.whiteAlpha.600"},color:gs.reference,lineHeight:"normal",fontSize:"sm"},wO=yO({container:{width:"100%",position:"relative"},requiredIndicator:xO,helperText:SO}),kO=bO({baseStyle:wO}),{definePartsStyle:CO,defineMultiStyleConfig:PO}=ie(JM.keys),vs=X("form-error-color"),_O={[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},TO={marginEnd:"0.5em",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},EO=CO({text:_O,icon:TO}),jO=PO({baseStyle:EO}),$O={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},AO={baseStyle:$O},IO={fontFamily:"heading",fontWeight:"bold"},RO={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},zO={baseStyle:IO,sizes:RO,defaultProps:{size:"xl"}},{definePartsStyle:Qr,defineMultiStyleConfig:MO}=ie(ky.keys),Ha=X("input-height"),Ga=X("input-font-size"),Ka=X("input-padding"),Xa=X("input-border-radius"),NO=Qr({addon:{height:Ha.reference,fontSize:Ga.reference,px:Ka.reference,borderRadius:Xa.reference},field:{width:"100%",height:Ha.reference,fontSize:Ga.reference,px:Ka.reference,borderRadius:Xa.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),_o={lg:{[Ga.variable]:"fontSizes.lg",[Ka.variable]:"space.4",[Xa.variable]:"radii.md",[Ha.variable]:"sizes.12"},md:{[Ga.variable]:"fontSizes.md",[Ka.variable]:"space.4",[Xa.variable]:"radii.md",[Ha.variable]:"sizes.10"},sm:{[Ga.variable]:"fontSizes.sm",[Ka.variable]:"space.3",[Xa.variable]:"radii.sm",[Ha.variable]:"sizes.8"},xs:{[Ga.variable]:"fontSizes.xs",[Ka.variable]:"space.2",[Xa.variable]:"radii.sm",[Ha.variable]:"sizes.6"}},OO={lg:Qr({field:_o.lg,group:_o.lg}),md:Qr({field:_o.md,group:_o.md}),sm:Qr({field:_o.sm,group:_o.sm}),xs:Qr({field:_o.xs,group:_o.xs})};function Ty(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}const DO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0 0 0 1px ${Ke(t,r)}`},_focusVisible:{zIndex:1,borderColor:Ke(t,n),boxShadow:`0 0 0 1px ${Ke(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),LO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r)},_focusVisible:{bg:"transparent",borderColor:Ke(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),FO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0px 1px 0px 0px ${Ke(t,r)}`},_focusVisible:{borderColor:Ke(t,n),boxShadow:`0px 1px 0px 0px ${Ke(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),BO=Qr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),VO={outline:DO,filled:LO,flushed:FO,unstyled:BO},Me=MO({baseStyle:NO,sizes:OO,variants:VO,defaultProps:{size:"md",variant:"outline"}}),ih=X("kbd-bg"),WO={[ih.variable]:"colors.gray.100",_dark:{[ih.variable]:"colors.whiteAlpha.100"},bg:ih.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},UO={baseStyle:WO},HO={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},GO={baseStyle:HO},{defineMultiStyleConfig:KO,definePartsStyle:XO}=ie(e6.keys),YO={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},qO=XO({icon:YO}),QO=KO({baseStyle:qO}),{defineMultiStyleConfig:ZO,definePartsStyle:JO}=ie(vT.keys),Cr=X("menu-bg"),ah=X("menu-shadow"),eD={[Cr.variable]:"#fff",[ah.variable]:"shadows.sm",_dark:{[Cr.variable]:"colors.gray.700",[ah.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Cr.reference,boxShadow:ah.reference},tD={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_active:{[Cr.variable]:"colors.gray.200",_dark:{[Cr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Cr.reference},nD={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},rD={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},oD={opacity:.6},iD={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},aD={transitionProperty:"common",transitionDuration:"normal"},sD=JO({button:aD,list:eD,item:tD,groupTitle:nD,icon:rD,command:oD,divider:iD}),lD=ZO({baseStyle:sD}),{defineMultiStyleConfig:cD,definePartsStyle:lv}=ie(yT.keys),sh=X("modal-bg"),lh=X("modal-shadow"),uD={bg:"blackAlpha.600",zIndex:"modal"},dD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},fD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[sh.variable]:"colors.white",[lh.variable]:"shadows.lg",_dark:{[sh.variable]:"colors.gray.700",[lh.variable]:"shadows.dark-lg"},bg:sh.reference,boxShadow:lh.reference}},pD={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mD={position:"absolute",top:"2",insetEnd:"3"},hD=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},gD={px:"6",py:"4"},vD=lv(e=>({overlay:uD,dialogContainer:nn(dD,e),dialog:nn(fD,e),header:pD,closeButton:mD,body:nn(hD,e),footer:gD}));function Jn(e){return lv(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const yD={xs:Jn("xs"),sm:Jn("sm"),md:Jn("md"),lg:Jn("lg"),xl:Jn("xl"),"2xl":Jn("2xl"),"3xl":Jn("3xl"),"4xl":Jn("4xl"),"5xl":Jn("5xl"),"6xl":Jn("6xl"),full:Jn("full")},bD=cD({baseStyle:vD,sizes:yD,defaultProps:{size:"md"}}),RT={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:xD,definePartsStyle:zT}=ie(t6.keys),Ey=ut("number-input-stepper-width"),MT=ut("number-input-input-padding"),SD=Gr(Ey).add("0.5rem").toString(),ch=ut("number-input-bg"),uh=ut("number-input-color"),dh=ut("number-input-border-color"),wD={[Ey.variable]:"sizes.6",[MT.variable]:SD},kD=e=>{var t;return((t=nn(Me.baseStyle,e))==null?void 0:t.field)??{}},CD={width:Ey.reference},PD={borderStart:"1px solid",borderStartColor:dh.reference,color:uh.reference,bg:ch.reference,[uh.variable]:"colors.chakra-body-text",[dh.variable]:"colors.chakra-border-color",_dark:{[uh.variable]:"colors.whiteAlpha.800",[dh.variable]:"colors.whiteAlpha.300"},_active:{[ch.variable]:"colors.gray.200",_dark:{[ch.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},_D=zT(e=>({root:wD,field:nn(kD,e)??{},stepperGroup:CD,stepper:PD}));function Ju(e){var i,a;const t=(i=Me.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",o=RT.fontSizes[r];return zT({field:{...t.field,paddingInlineEnd:MT.reference,verticalAlign:"top"},stepper:{fontSize:Gr(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const TD={xs:Ju("xs"),sm:Ju("sm"),md:Ju("md"),lg:Ju("lg")},ED=xD({baseStyle:_D,sizes:TD,variants:Me.variants,defaultProps:Me.defaultProps});var S2;const jD={...(S2=Me.baseStyle)==null?void 0:S2.field,textAlign:"center"},$D={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var w2;const AD={outline:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((w2=Me.variants)==null?void 0:w2.unstyled.field)??{}},ID={baseStyle:jD,sizes:$D,variants:AD,defaultProps:Me.defaultProps},{defineMultiStyleConfig:RD,definePartsStyle:zD}=ie(n6.keys),ed=ut("popper-bg"),MD=ut("popper-arrow-bg"),zS=ut("popper-arrow-shadow-color"),ND={zIndex:"popover"},OD={[ed.variable]:"colors.white",bg:ed.reference,[MD.variable]:ed.reference,[zS.variable]:"colors.gray.200",_dark:{[ed.variable]:"colors.gray.700",[zS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},DD={px:3,py:2,borderBottomWidth:"1px"},LD={px:3,py:2},FD={px:3,py:2,borderTopWidth:"1px"},BD={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},VD=zD({popper:ND,content:OD,header:DD,body:LD,footer:FD,closeButton:BD}),WD=RD({baseStyle:VD}),{defineMultiStyleConfig:UD,definePartsStyle:$l}=ie(bT.keys),HD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=q(jS(),jS("1rem","rgba(0,0,0,0.1)"))(e),a=q(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${Ke(n,a)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},GD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},KD=e=>({bg:q("gray.100","whiteAlpha.300")(e)}),XD=e=>({transitionProperty:"common",transitionDuration:"slow",...HD(e)}),YD=$l(e=>({label:GD,filledTrack:XD(e),track:KD(e)})),qD={xs:$l({track:{h:"1"}}),sm:$l({track:{h:"2"}}),md:$l({track:{h:"3"}}),lg:$l({track:{h:"4"}})},QD=UD({sizes:qD,baseStyle:YD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZD,definePartsStyle:Ud}=ie(xT.keys),JD=e=>{var n;const t=(n=nn(Ro.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},eL=Ud(e=>{var t,n;return{label:(t=Ro.baseStyle)==null?void 0:t.call(Ro,e).label,container:(n=Ro.baseStyle)==null?void 0:n.call(Ro,e).container,control:JD(e)}}),tL={md:Ud({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ud({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ud({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},nL=ZD({baseStyle:eL,sizes:tL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rL,definePartsStyle:oL}=ie(r6.keys),td=X("select-bg");var k2;const iL={...(k2=Me.baseStyle)==null?void 0:k2.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:td.reference,[td.variable]:"colors.white",_dark:{[td.variable]:"colors.gray.700"},"> option, > optgroup":{bg:td.reference}},aL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},sL=oL({field:iL,icon:aL}),nd={paddingInlineEnd:"8"};var C2,P2,_2,T2,E2,j2,$2,A2;const lL={lg:{...(C2=Me.sizes)==null?void 0:C2.lg,field:{...(P2=Me.sizes)==null?void 0:P2.lg.field,...nd}},md:{...(_2=Me.sizes)==null?void 0:_2.md,field:{...(T2=Me.sizes)==null?void 0:T2.md.field,...nd}},sm:{...(E2=Me.sizes)==null?void 0:E2.sm,field:{...(j2=Me.sizes)==null?void 0:j2.sm.field,...nd}},xs:{...($2=Me.sizes)==null?void 0:$2.xs,field:{...(A2=Me.sizes)==null?void 0:A2.xs.field,...nd},icon:{insetEnd:"1"}}},cL=rL({baseStyle:sL,sizes:lL,variants:Me.variants,defaultProps:Me.defaultProps}),fh=X("skeleton-start-color"),ph=X("skeleton-end-color"),uL={[fh.variable]:"colors.gray.100",[ph.variable]:"colors.gray.400",_dark:{[fh.variable]:"colors.gray.800",[ph.variable]:"colors.gray.600"},background:fh.reference,borderColor:ph.reference,opacity:.7,borderRadius:"sm"},dL={baseStyle:uL},mh=X("skip-link-bg"),fL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[mh.variable]:"colors.white",_dark:{[mh.variable]:"colors.gray.700"},bg:mh.reference}},pL={baseStyle:fL},{defineMultiStyleConfig:mL,definePartsStyle:Tp}=ie(ST.keys),ia=X("slider-thumb-size"),Ic=X("slider-track-size"),No=X("slider-bg"),hL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Py({orientation:t,vertical:{h:"100%",px:Hr(ia.reference).divide(2).toString()},horizontal:{w:"100%",py:Hr(ia.reference).divide(2).toString()}})}},gL=e=>({...Py({orientation:e.orientation,horizontal:{h:Ic.reference},vertical:{w:Ic.reference}}),overflow:"hidden",borderRadius:"sm",[No.variable]:"colors.gray.200",_dark:{[No.variable]:"colors.whiteAlpha.200"},_disabled:{[No.variable]:"colors.gray.300",_dark:{[No.variable]:"colors.whiteAlpha.300"}},bg:No.reference}),vL=e=>{const{orientation:t}=e;return{...Py({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:ia.reference,h:ia.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},yL=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[No.variable]:`colors.${t}.500`,_dark:{[No.variable]:`colors.${t}.200`},bg:No.reference}},bL=Tp(e=>({container:hL(e),track:gL(e),thumb:vL(e),filledTrack:yL(e)})),xL=Tp({container:{[ia.variable]:"sizes.4",[Ic.variable]:"sizes.1"}}),SL=Tp({container:{[ia.variable]:"sizes.3.5",[Ic.variable]:"sizes.1"}}),wL=Tp({container:{[ia.variable]:"sizes.2.5",[Ic.variable]:"sizes.0.5"}}),kL={lg:xL,md:SL,sm:wL},CL=mL({baseStyle:bL,sizes:kL,defaultProps:{size:"md",colorScheme:"blue"}}),Ii=ut("spinner-size"),PL={width:[Ii.reference],height:[Ii.reference]},_L={xs:{[Ii.variable]:"sizes.3"},sm:{[Ii.variable]:"sizes.4"},md:{[Ii.variable]:"sizes.6"},lg:{[Ii.variable]:"sizes.8"},xl:{[Ii.variable]:"sizes.12"}},TL={baseStyle:PL,sizes:_L,defaultProps:{size:"md"}},{defineMultiStyleConfig:EL,definePartsStyle:NT}=ie(o6.keys),jL={fontWeight:"medium"},$L={opacity:.8,marginBottom:"2"},AL={verticalAlign:"baseline",fontWeight:"semibold"},IL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},RL=NT({container:{},label:jL,helpText:$L,number:AL,icon:IL}),zL={md:NT({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ML=EL({baseStyle:RL,sizes:zL,defaultProps:{size:"md"}}),{defineMultiStyleConfig:NL,definePartsStyle:Al}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),Kr=X("stepper-indicator-size"),Ya=X("stepper-icon-size"),qa=X("stepper-title-font-size"),Il=X("stepper-description-font-size"),gl=X("stepper-accent-color"),OL=Al(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[gl.variable]:`colors.${e}.500`,_dark:{[gl.variable]:`colors.${e}.200`}},title:{fontSize:qa.reference,fontWeight:"medium"},description:{fontSize:Il.reference,color:"chakra-subtle-text"},number:{fontSize:qa.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ya.reference,height:Ya.reference},indicator:{flexShrink:0,borderRadius:"full",width:Kr.reference,height:Kr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:gl.reference},"&[data-status=complete]":{bg:gl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:gl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Kr.reference} - 8px)`,top:`calc(${Kr.reference} + 4px)`,insetStart:`calc(${Kr.reference} / 2 - 1px)`}}})),DL=NL({baseStyle:OL,sizes:{xs:Al({stepper:{[Kr.variable]:"sizes.4",[Ya.variable]:"sizes.3",[qa.variable]:"fontSizes.xs",[Il.variable]:"fontSizes.xs"}}),sm:Al({stepper:{[Kr.variable]:"sizes.6",[Ya.variable]:"sizes.4",[qa.variable]:"fontSizes.sm",[Il.variable]:"fontSizes.xs"}}),md:Al({stepper:{[Kr.variable]:"sizes.8",[Ya.variable]:"sizes.5",[qa.variable]:"fontSizes.md",[Il.variable]:"fontSizes.sm"}}),lg:Al({stepper:{[Kr.variable]:"sizes.10",[Ya.variable]:"sizes.6",[qa.variable]:"fontSizes.lg",[Il.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:LL,definePartsStyle:Hd}=ie(wT.keys),nc=ut("switch-track-width"),Hi=ut("switch-track-height"),hh=ut("switch-track-diff"),FL=Gr.subtract(nc,Hi),cv=ut("switch-thumb-x"),vl=ut("switch-bg"),BL=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[nc.reference],height:[Hi.reference],transitionProperty:"common",transitionDuration:"fast",[vl.variable]:"colors.gray.300",_dark:{[vl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[vl.variable]:`colors.${t}.500`,_dark:{[vl.variable]:`colors.${t}.200`}},bg:vl.reference}},VL={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Hi.reference],height:[Hi.reference],_checked:{transform:`translateX(${cv.reference})`}},WL=Hd(e=>({container:{[hh.variable]:FL,[cv.variable]:hh.reference,_rtl:{[cv.variable]:Gr(hh).negate().toString()}},track:BL(e),thumb:VL})),UL={sm:Hd({container:{[nc.variable]:"1.375rem",[Hi.variable]:"sizes.3"}}),md:Hd({container:{[nc.variable]:"1.875rem",[Hi.variable]:"sizes.4"}}),lg:Hd({container:{[nc.variable]:"2.875rem",[Hi.variable]:"sizes.6"}})},HL=LL({baseStyle:WL,sizes:UL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:ys}=ie(i6.keys),KL=ys({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Wf={"&[data-is-numeric=true]":{textAlign:"end"}},XL=ys(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},caption:{color:q("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),YL=ys(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},caption:{color:q("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e)},td:{background:q(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qL={simple:XL,striped:YL,unstyled:{}},QL={sm:ys({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ys({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ys({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ZL=GL({baseStyle:KL,variants:qL,sizes:QL,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ln=X("tabs-color"),ar=X("tabs-bg"),rd=X("tabs-border-color"),{defineMultiStyleConfig:JL,definePartsStyle:Rr}=ie(a6.keys),eF=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},tF=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},nF=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},rF={p:4},oF=Rr(e=>({root:eF(e),tab:tF(e),tablist:nF(e),tabpanel:rF})),iF={sm:Rr({tab:{py:1,px:4,fontSize:"sm"}}),md:Rr({tab:{fontSize:"md",py:2,px:4}}),lg:Rr({tab:{fontSize:"lg",py:3,px:4}})},aF=Rr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ln.variable]:`colors.${t}.600`,_dark:{[ln.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[ar.variable]:"colors.gray.200",_dark:{[ar.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ln.reference,bg:ar.reference}}}),sF=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[rd.variable]:"transparent",_selected:{[ln.variable]:`colors.${t}.600`,[rd.variable]:"colors.white",_dark:{[ln.variable]:`colors.${t}.300`,[rd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:rd.reference},color:ln.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),lF=Rr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[ar.variable]:"colors.gray.50",_dark:{[ar.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[ar.variable]:"colors.white",[ln.variable]:`colors.${t}.600`,_dark:{[ar.variable]:"colors.gray.800",[ln.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ln.reference,bg:ar.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),cF=Rr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ke(n,`${t}.700`),bg:Ke(n,`${t}.100`)}}}}),uF=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ln.variable]:"colors.gray.600",_dark:{[ln.variable]:"inherit"},_selected:{[ln.variable]:"colors.white",[ar.variable]:`colors.${t}.600`,_dark:{[ln.variable]:"colors.gray.800",[ar.variable]:`colors.${t}.300`}},color:ln.reference,bg:ar.reference}}}),dF=Rr({}),fF={line:aF,enclosed:sF,"enclosed-colored":lF,"soft-rounded":cF,"solid-rounded":uF,unstyled:dF},pF=JL({baseStyle:oF,sizes:iF,variants:fF,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:mF,definePartsStyle:Gi}=ie(s6.keys),MS=X("tag-bg"),NS=X("tag-color"),gh=X("tag-shadow"),Gd=X("tag-min-height"),Kd=X("tag-min-width"),Xd=X("tag-font-size"),Yd=X("tag-padding-inline"),hF={fontWeight:"medium",lineHeight:1.2,outline:0,[NS.variable]:mt.color.reference,[MS.variable]:mt.bg.reference,[gh.variable]:mt.shadow.reference,color:NS.reference,bg:MS.reference,boxShadow:gh.reference,borderRadius:"md",minH:Gd.reference,minW:Kd.reference,fontSize:Xd.reference,px:Yd.reference,_focusVisible:{[gh.variable]:"shadows.outline"}},gF={lineHeight:1.2,overflow:"visible"},vF={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},yF=Gi({container:hF,label:gF,closeButton:vF}),bF={sm:Gi({container:{[Gd.variable]:"sizes.5",[Kd.variable]:"sizes.5",[Xd.variable]:"fontSizes.xs",[Yd.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Gi({container:{[Gd.variable]:"sizes.6",[Kd.variable]:"sizes.6",[Xd.variable]:"fontSizes.sm",[Yd.variable]:"space.2"}}),lg:Gi({container:{[Gd.variable]:"sizes.8",[Kd.variable]:"sizes.8",[Xd.variable]:"fontSizes.md",[Yd.variable]:"space.3"}})},xF={subtle:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.subtle(e)}}),solid:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.solid(e)}}),outline:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.outline(e)}})},SF=mF({variants:xF,baseStyle:yF,sizes:bF,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var I2;const wF={...(I2=Me.baseStyle)==null?void 0:I2.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var R2;const kF={outline:e=>{var t;return((t=Me.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Me.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Me.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((R2=Me.variants)==null?void 0:R2.unstyled.field)??{}};var z2,M2,N2,O2;const CF={xs:((z2=Me.sizes)==null?void 0:z2.xs.field)??{},sm:((M2=Me.sizes)==null?void 0:M2.sm.field)??{},md:((N2=Me.sizes)==null?void 0:N2.md.field)??{},lg:((O2=Me.sizes)==null?void 0:O2.lg.field)??{}},PF={baseStyle:wF,sizes:CF,variants:kF,defaultProps:{size:"md",variant:"outline"}},od=ut("tooltip-bg"),vh=ut("tooltip-fg"),_F=ut("popper-arrow-bg"),TF={bg:od.reference,color:vh.reference,[od.variable]:"colors.gray.700",[vh.variable]:"colors.whiteAlpha.900",_dark:{[od.variable]:"colors.gray.300",[vh.variable]:"colors.gray.900"},[_F.variable]:od.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},EF={baseStyle:TF},jF={Accordion:h6,Alert:Q6,Avatar:lN,Badge:Jl,Breadcrumb:yN,Button:TN,Checkbox:Ro,CloseButton:VN,Code:GN,Container:XN,Divider:JN,Drawer:uO,Editable:vO,Form:kO,FormError:jO,FormLabel:AO,Heading:zO,Input:Me,Kbd:UO,Link:GO,List:QO,Menu:lD,Modal:bD,NumberInput:ED,PinInput:ID,Popover:WD,Progress:QD,Radio:nL,Select:cL,Skeleton:dL,SkipLink:pL,Slider:CL,Spinner:TL,Stat:ML,Switch:HL,Table:ZL,Tabs:pF,Tag:SF,Textarea:PF,Tooltip:EF,Card:IN,Stepper:DL},$F={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},AF={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},IF={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},RF={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},zF={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},MF={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},NF={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},OF={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},DF={property:MF,easing:NF,duration:OF},LF={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},FF={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},BF={breakpoints:AF,zIndices:LF,radii:RF,blur:FF,colors:IF,...RT,sizes:TT,shadows:zF,space:_T,borders:$F,transition:DF},VF={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},WF={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},UF=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function HF(e){return St(e)?UF.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const GF="ltr",KF={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Oi={semanticTokens:VF,direction:GF,...BF,components:jF,styles:WF,config:KF};function XF(e){if(e.sheet)return e.sheet;for(var t=0;t0?zt(qs,--hn):0,Rs--,ht===10&&(Rs=1,jp--),ht}function wn(){return ht=hn2||zc(ht)>3?"":" "}function s8(e,t){for(;--t&&wn()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return au(e,qd()+(t<6&&zr()==32&&wn()==32))}function dv(e){for(;wn();)switch(ht){case e:return hn;case 34:case 39:e!==34&&e!==39&&dv(ht);break;case 40:e===41&&dv(e);break;case 92:wn();break}return hn}function l8(e,t){for(;wn()&&e+ht!==57;)if(e+ht===84&&zr()===47)break;return"/*"+au(t,hn-1)+"*"+Ep(e===47?e:wn())}function c8(e){for(;!zc(zr());)wn();return au(e,hn)}function u8(e){return VT(Zd("",null,null,null,[""],e=BT(e),0,[0],e))}function Zd(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,f=a,p=0,h=0,g=0,y=1,x=1,b=1,v=0,S="",w=o,k=i,_=r,C=S;x;)switch(g=v,v=wn()){case 40:if(g!=108&&zt(C,f-1)==58){uv(C+=ze(Qd(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Qd(v);break;case 9:case 10:case 13:case 32:C+=a8(g);break;case 92:C+=s8(qd()-1,7);continue;case 47:switch(zr()){case 42:case 47:id(d8(l8(wn(),qd()),t,n),l);break;default:C+="/"}break;case 123*y:s[c++]=Pr(C)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:b==-1&&(C=ze(C,/\f/g,"")),h>0&&Pr(C)-f&&id(h>32?DS(C+";",r,n,f-1):DS(ze(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(id(_=OS(C,t,n,c,d,o,s,S,w=[],k=[],f),i),v===123)if(d===0)Zd(C,t,_,_,w,i,f,s,k);else switch(p===99&&zt(C,3)===110?100:p){case 100:case 108:case 109:case 115:Zd(e,_,_,r&&id(OS(e,_,_,0,0,o,s,S,o,w=[],f),k),o,k,f,s,r?w:k);break;default:Zd(C,_,_,_,[""],k,0,s,k)}}c=d=h=0,y=b=1,S=C="",f=a;break;case 58:f=1+Pr(C),h=g;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&i8()==125)continue}switch(C+=Ep(v),v*y){case 38:b=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(Pr(C)-1)*b,b=1;break;case 64:zr()===45&&(C+=Qd(wn())),p=zr(),d=f=Pr(S=C+=c8(qd())),v++;break;case 45:g===45&&Pr(C)==2&&(y=0)}}return i}function OS(e,t,n,r,o,i,a,s,l,c,d){for(var f=o-1,p=o===0?i:[""],h=Ay(p),g=0,y=0,x=0;g0?p[b]+" "+v:ze(v,/&\f/g,p[b])))&&(l[x++]=S);return $p(e,t,n,o===0?jy:s,l,c,d)}function d8(e,t,n){return $p(e,t,n,OT,Ep(o8()),Rc(e,2,-2),0)}function DS(e,t,n,r){return $p(e,t,n,$y,Rc(e,0,r),Rc(e,r+1,-1),r)}function bs(e,t){for(var n="",r=Ay(e),o=0;o6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Uf+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uv(e,"stretch")?UT(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Pr(e)-3-(~uv(e,"!important")&&10))){case 107:return ze(e,":",":"+Re)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(zt(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ut+e+e}return e}var x8=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $y:t.return=UT(t.value,t.length);break;case DT:return bs([yl(t,{value:ze(t.value,"@","@"+Re)})],o);case jy:if(t.length)return r8(t.props,function(i){switch(n8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bs([yl(t,{props:[ze(i,/:(read-\w+)/,":"+Uf+"$1")]})],o);case"::placeholder":return bs([yl(t,{props:[ze(i,/:(plac\w+)/,":"+Re+"input-$1")]}),yl(t,{props:[ze(i,/:(plac\w+)/,":"+Uf+"$1")]}),yl(t,{props:[ze(i,/:(plac\w+)/,Ut+"input-$1")]})],o)}return""})}},S8=[x8],w8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||S8,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z8=/[A-Z]|^ms/g,M8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qT=function(t){return t.charCodeAt(1)===45},BS=function(t){return t!=null&&typeof t!="boolean"},yh=WT(function(e){return qT(e)?e:e.replace(z8,"-$&").toLowerCase()}),VS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(M8,function(r,o,i){return _r={name:o,styles:i,next:_r},o})}return R8[t]!==1&&!qT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Mc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _r={name:o.name,styles:o.styles,next:_r},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)_r={name:a.name,styles:a.styles,next:_r},a=a.next;var s=i.styles+";";return s}return N8(e,t,n)}case"function":{if(e!==void 0){var l=_r,c=n(e);return _r=l,Mc(e,t,c)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function N8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?ad.dark:ad.light),document.body.classList.remove(o?ad.light:ad.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),a=s=>{o(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const X8="chakra-ui-color-mode";function Y8(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const q8=Y8(X8),GS=()=>{},Q8=sz()?m.useLayoutEffect:m.useEffect;function KS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const JT=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=q8}=t,l=D8(),c=i==="dark"?"dark":"light",[d,f]=m.useState(()=>KS(s,c)),[p,h]=m.useState(()=>KS(s)),{getSystemTheme:g,setClassName:y,setDataset:x,addListener:b}=m.useMemo(()=>K8({preventTransition:a,nonce:l==null?void 0:l.nonce}),[a,l==null?void 0:l.nonce]),v=i==="system"&&!d?p:d,S=m.useCallback(_=>{const C=_==="system"?g():_;f(C),y(C==="dark"),x(C),s.set(C)},[s,g,y,x]);Q8(()=>{i==="system"&&h(g())},[]),m.useEffect(()=>{const _=s.get();if(_){S(_);return}if(i==="system"){S("system");return}S(c)},[s,c,i,S]);const w=m.useCallback(()=>{S(v==="dark"?"light":"dark")},[v,S]);m.useEffect(()=>{if(o)return b(S)},[o,b,S]);const k=m.useMemo(()=>({colorMode:n??v,toggleColorMode:n?GS:w,setColorMode:n?GS:S,forced:n!==void 0}),[v,w,S,n]);return u.jsx(Fy.Provider,{value:k,children:r})};JT.displayName="ColorModeProvider";const eE=String.raw,tE=eE` + :root, + :host { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root, + :host { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root, + :host { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root, + :host { + --chakra-vh: 100dvh; + } + } +`,Z8=()=>u.jsx(Vp,{styles:tE}),J8=({scope:e=""})=>u.jsx(Vp,{styles:eE` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${tE} + `});function e9(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=m.useMemo(()=>KM(n),[n]);return u.jsxs(B8,{theme:o,children:[u.jsx(t9,{root:t}),r]})}function t9({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return u.jsx(Vp,{styles:n=>({[t]:n.__cssVars})})}ye({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function hr(e){return ye({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function n9(){const{colorMode:e}=lu();return u.jsx(Vp,{styles:t=>{const n=J_(t,"styles.global"),r=Xt(n,{theme:t,colorMode:e});return r?dT(r)(t):void 0}})}const[r9,o9]=ye({strict:!1,name:"PortalManagerContext"});function nE(e){const{children:t,zIndex:n}=e;return u.jsx(r9,{value:{zIndex:n},children:t})}nE.displayName="PortalManager";const By=m.createContext({getDocument(){return document},getWindow(){return window}});By.displayName="EnvironmentContext";function i9({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return no(()=>{e&&t()},[e]),m.useContext(By)}function rE(e){const{children:t,environment:n,disabled:r}=e,o=m.useRef(null),i=m.useMemo(()=>n||{getDocument:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument)??document},getWindow:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return u.jsxs(By.Provider,{value:i,children:[t,a&&u.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}rE.displayName="EnvironmentProvider";const a9=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,f=u.jsx(rE,{environment:s,disabled:c,children:t});return u.jsx(e9,{theme:a,cssVarsRoot:l,children:u.jsxs(JT,{colorModeManager:n,options:a.config,children:[i?u.jsx(J8,{scope:o}):u.jsx(Z8,{}),!d&&u.jsx(n9,{}),r?u.jsx(nE,{zIndex:r,children:f}):f]})})},Vy=m.createContext({});function Wy(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const cu=m.createContext(null),Uy=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class s9 extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function l9({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),o=m.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=m.useContext(Uy);return m.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:c}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${a}px !important; + height: ${s}px !important; + top: ${l}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(d)}},[t]),u.jsx(s9,{isPresent:t,childRef:r,sizeRef:o,children:m.cloneElement(e,{ref:r})})}const c9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Wy(u9),l=m.useId(),c=m.useCallback(f=>{s.set(f,!0);for(const p of s.values())if(!p)return;r&&r()},[s,r]),d=m.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(s.set(f,!1),()=>s.delete(f))}),i?[Math.random(),c]:[n,c]);return m.useMemo(()=>{s.forEach((f,p)=>s.set(p,!1))},[n]),m.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=u.jsx(l9,{isPresent:n,children:e})),u.jsx(cu.Provider,{value:d,children:e})};function u9(){return new Map}function Hy(e=!0){const t=m.useContext(cu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=m.useId();m.useEffect(()=>{e&&o(i)},[e]);const a=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}function d9(){return f9(m.useContext(cu))}function f9(e){return e===null?!0:e.isPresent}const sd=e=>e.key||"";function XS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Gy=typeof window<"u",oE=Gy?m.useLayoutEffect:m.useEffect,vo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[s,l]=Hy(a),c=m.useMemo(()=>XS(e),[e]),d=a&&!s?[]:c.map(sd),f=m.useRef(!0),p=m.useRef(c),h=Wy(()=>new Map),[g,y]=m.useState(c),[x,b]=m.useState(c);oE(()=>{f.current=!1,p.current=c;for(let w=0;w{const k=sd(w),_=a&&!s?!1:c===x||d.includes(k),C=()=>{if(h.has(k))h.set(k,!0);else return;let T=!0;h.forEach(A=>{A||(T=!1)}),T&&(S==null||S(),b(p.current),a&&(l==null||l()),r&&r())};return u.jsx(c9,{isPresent:_,initial:!f.current||n?void 0:!1,custom:_?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:_?void 0:C,children:w},k)})})},kn=e=>e;let iE=kn;function Ky(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ms=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},oo=e=>e*1e3,io=e=>e/1e3,p9={useManualTiming:!1};function m9(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(c){i.has(c)&&(l.schedule(c),e()),c(a)}const l={schedule:(c,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&i.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(a=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const ld=["read","resolveKeyframes","update","preRender","render","postRender"],h9=40;function aE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=ld.reduce((b,v)=>(b[v]=m9(i),b),{}),{read:s,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:p}=a,h=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,h9),1),o.timestamp=b,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:ld.reduce((b,v)=>{const S=a[v];return b[v]=(w,k=!1,_=!1)=>(n||g(),S.schedule(w,k,_)),b},{}),cancel:b=>{for(let v=0;vYS[e].some(n=>!!t[n])};function g9(e){for(const t in e)Ns[t]={...Ns[t],...e[t]}}const v9=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","ignoreStrict","viewport"]);function Hf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v9.has(e)}let lE=e=>!Hf(e);function y9(e){e&&(lE=t=>t.startsWith("on")?!Hf(t):e(t))}try{y9(require("@emotion/is-prop-valid").default)}catch{}function b9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(lE(o)||n===!0&&Hf(o)||!t&&!Hf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function x9(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Wp=m.createContext({});function Nc(e){return typeof e=="string"||Array.isArray(e)}function Up(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Xy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yy=["initial",...Xy];function Hp(e){return Up(e.animate)||Yy.some(t=>Nc(e[t]))}function cE(e){return!!(Hp(e)||e.variants)}function S9(e,t){if(Hp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nc(n)?n:void 0,animate:Nc(r)?r:void 0}}return e.inherit!==!1?t:{}}function w9(e){const{initial:t,animate:n}=S9(e,m.useContext(Wp));return m.useMemo(()=>({initial:t,animate:n}),[qS(t),qS(n)])}function qS(e){return Array.isArray(e)?e.join(" "):e}const k9=Symbol.for("motionComponentSymbol");function Qa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C9(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qa(n)&&(n.current=r))},[t])}const qy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P9="framerAppearId",uE="data-"+qy(P9),{schedule:Qy}=aE(queueMicrotask,!1),dE=m.createContext({});function _9(e,t,n,r,o){var i,a;const{visualElement:s}=m.useContext(Wp),l=m.useContext(sE),c=m.useContext(cu),d=m.useContext(Uy).reducedMotion,f=m.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(dE);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&T9(f.current,n,o,h);const g=m.useRef(!1);m.useInsertionEffect(()=>{p&&g.current&&p.update(n,c)});const y=n[uE],x=m.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return oE(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Qy.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,y)}),x.current=!1))}),p}function T9(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fE(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&Qa(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function fE(e){if(e)return e.options.allowProjection!==!1?e.projection:fE(e.parent)}function E9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,a;e&&g9(e);function s(c,d){let f;const p={...m.useContext(Uy),...c,layoutId:j9(c)},{isStatic:h}=p,g=w9(c),y=r(c,h);if(!h&&Gy){$9();const x=A9(p);f=x.MeasureLayout,g.visualElement=_9(o,y,p,t,x.ProjectionNode)}return u.jsxs(Wp.Provider,{value:g,children:[f&&g.visualElement?u.jsx(f,{visualElement:g.visualElement,...p}):null,n(o,c,C9(y,g.visualElement,d),y,h,g.visualElement)]})}s.displayName=`motion.${typeof o=="string"?o:`create(${(a=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&a!==void 0?a:""})`}`;const l=m.forwardRef(s);return l[k9]=o,l}function j9({layoutId:e}){const t=m.useContext(Vy).id;return t&&e!==void 0?t+"-"+e:e}function $9(e,t){m.useContext(sE).strict}function A9(e){const{drag:t,layout:n}=Ns;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const I9=["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 Zy(e){return typeof e!="string"||e.includes("-")?!1:!!(I9.indexOf(e)>-1||/[A-Z]/u.test(e))}function QS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Jy(e,t,n,r){if(typeof t=="function"){const[o,i]=QS(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=QS(r);t=t(n!==void 0?n:e.custom,o,i)}return t}const mv=e=>Array.isArray(e),R9=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),z9=e=>mv(e)?e[e.length-1]||0:e,Yt=e=>!!(e&&e.getVelocity);function Jd(e){const t=Yt(e)?e.get():e;return R9(t)?t.toValue():t}function M9({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:N9(r,o,i,e),renderState:t()};return n&&(a.onMount=s=>n({props:r,current:s,...a}),a.onUpdate=s=>n(s)),a}const pE=e=>(t,n)=>{const r=m.useContext(Wp),o=m.useContext(cu),i=()=>M9(e,t,r,o);return n?i():Wy(i)};function N9(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Jd(i[p]);let{initial:a,animate:s}=e;const l=Hp(e),c=cE(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;if(f&&typeof f!="boolean"&&!Up(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),hE=mE("--"),O9=mE("var(--"),eb=e=>O9(e)?D9.test(e.split("/*")[0].trim()):!1,D9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fo=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Oc={...Zs,transform:e=>fo(0,1,e)},cd={...Zs,default:1},uu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eo=uu("deg"),Mr=uu("%"),de=uu("px"),L9=uu("vh"),F9=uu("vw"),ZS={...Mr,parse:e=>Mr.parse(e)/100,transform:e=>Mr.transform(e*100)},B9={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de},V9={rotate:Eo,rotateX:Eo,rotateY:Eo,rotateZ:Eo,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Eo,skewX:Eo,skewY:Eo,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:Oc,originX:ZS,originY:ZS,originZ:de},JS={...Zs,transform:Math.round},tb={...B9,...V9,zIndex:JS,size:de,fillOpacity:Oc,strokeOpacity:Oc,numOctaves:JS},W9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U9=Qs.length;function H9(e,t,n){let r="",o=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),vE=()=>({...ob(),attrs:{}}),ib=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yE(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const bE=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"]);function xE(e,t,n,r){yE(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(bE.has(o)?o:qy(o),t.attrs[o])}const Gf={};function q9(e){Object.assign(Gf,e)}function SE(e,{layout:t,layoutId:n}){return ga.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gf[e]||e==="opacity")}function ab(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(Yt(o[a])||t.style&&Yt(t.style[a])||SE(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function wE(e,t,n){const r=ab(e,t,n);for(const o in e)if(Yt(e[o])||Yt(t[o])){const i=Qs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Q9(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const tw=["x","y","width","height","cx","cy","r"],Z9={useVisualState:pE({scrapeMotionValuesFromProps:wE,createRenderState:vE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(const s in o)if(ga.has(s)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let s=0;s{Q9(n,r),Ye.render(()=>{rb(r,o,ib(n.tagName),e.transformTemplate),xE(n,r)})})}})},J9={useVisualState:pE({scrapeMotionValuesFromProps:ab,createRenderState:ob})};function kE(e,t,n){for(const r in t)!Yt(t[r])&&!SE(r,n)&&(e[r]=t[r])}function eB({transformTemplate:e},t){return m.useMemo(()=>{const n=ob();return nb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tB(e,t){const n=e.style||{},r={};return kE(r,n,e),Object.assign(r,eB(e,t)),r}function nB(e,t){const n={},r=tB(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}function rB(e,t,n,r){const o=m.useMemo(()=>{const i=vE();return rb(i,t,ib(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};kE(i,e.style,e),o.style={...i,...o.style}}return o}function oB(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(Zy(n)?rB:nB)(r,i,a,n),c=b9(r,typeof n=="string",e),d=n!==m.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=m.useMemo(()=>Yt(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function iB(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const a={...Zy(r)?Z9:J9,preloadedFeatures:e,useRender:oB(o),createVisualElement:t,Component:r};return E9(a)}}function CE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class sB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(aB()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lB extends sB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function sb(e,t){return e?e[t]||e.default||e:void 0}const hv=2e4;function PE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=hv?1/0:t}function lb(e){return typeof e=="function"}function nw(e,t){e.timeline=t,e.onfinish=null}const cb=e=>Array.isArray(e)&&typeof e[0]=="number",cB={linearEasing:void 0};function uB(e,t){const n=Ky(e);return()=>{var r;return(r=cB[t])!==null&&r!==void 0?r:n()}}const Kf=uB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_E=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rl([0,.65,.55,1]),circOut:Rl([.55,0,1,.45]),backIn:Rl([.31,.01,.66,-.59]),backOut:Rl([.33,1.53,.69,.99])};function EE(e,t){if(e)return typeof e=="function"&&Kf()?_E(e,t):cb(e)?Rl(e):Array.isArray(e)?e.map(n=>EE(n,t)||gv.easeOut):gv[e]}const tr={x:!1,y:!1};function jE(){return tr.x||tr.y}function dB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function $E(e,t){const n=dB(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function rw(e){return t=>{t.pointerType==="touch"||jE()||e(t)}}function fB(e,t,n={}){const[r,o,i]=$E(e,n),a=rw(s=>{const{target:l}=s,c=t(s);if(typeof c!="function"||!l)return;const d=rw(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(s=>{s.addEventListener("pointerenter",a,o)}),i}const AE=(e,t)=>t?e===t?!0:AE(e,t.parentElement):!1,ub=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mB(e){return pB.has(e.tagName)||e.tabIndex!==-1}const zl=new WeakSet;function ow(e){return t=>{t.key==="Enter"&&e(t)}}function xh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ow(()=>{if(zl.has(n))return;xh(n,"down");const o=ow(()=>{xh(n,"up")}),i=()=>xh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function iw(e){return ub(e)&&!jE()}function gB(e,t,n={}){const[r,o,i]=$E(e,n),a=s=>{const l=s.currentTarget;if(!iw(s)||zl.has(l))return;zl.add(l);const c=t(s),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!iw(h)||!zl.has(l))&&(zl.delete(l),typeof c=="function"&&c(h,{success:g}))},f=h=>{d(h,n.useGlobalTarget||AE(l,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(s=>{!mB(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),s.addEventListener("focus",c=>hB(c,o),o)}),i}function vB(e){return e==="x"||e==="y"?tr[e]?null:(tr[e]=!0,()=>{tr[e]=!1}):tr.x||tr.y?null:(tr.x=tr.y=!0,()=>{tr.x=tr.y=!1})}const IE=new Set(["width","height","top","left","right","bottom",...Qs]);let ef;function yB(){ef=void 0}const Nr={now:()=>(ef===void 0&&Nr.set(It.isProcessing||p9.useManualTiming?It.timestamp:performance.now()),ef),set:e=>{ef=e,queueMicrotask(yB)}};function db(e,t){e.indexOf(t)===-1&&e.push(t)}function fb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class pb{constructor(){this.subscriptions=[]}add(t){return db(this.subscriptions,t),()=>fb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class xB{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Nr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pb);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>aw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,aw);return RE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dc(e,t){return new xB(e,t)}function SB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dc(n))}function wB(e,t){const n=Gp(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=z9(i[a]);SB(e,a,s)}}function kB(e){return!!(Yt(e)&&e.add)}function vv(e,t){const n=e.getValue("willChange");if(kB(n))return n.add(t)}function zE(e){return e.props[uE]}const ME=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,CB=1e-7,PB=12;function _B(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=ME(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>CB&&++s_B(i,0,1,e,n);return i=>i===0||i===1?i:ME(o(i),t,r)}const NE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,OE=e=>t=>1-e(1-t),DE=du(.33,1.53,.69,.99),mb=OE(DE),LE=NE(mb),FE=e=>(e*=2)<1?.5*mb(e):.5*(2-Math.pow(2,-10*(e-1))),hb=e=>1-Math.sin(Math.acos(e)),BE=OE(hb),VE=NE(hb),WE=e=>/^0[^.\s]+$/u.test(e);function TB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}const rc=e=>Math.round(e*1e5)/1e5,gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EB(e){return e==null}const jB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vb=(e,t)=>n=>!!(typeof n=="string"&&jB.test(n)&&n.startsWith(e)||t&&!EB(n)&&Object.prototype.hasOwnProperty.call(n,t)),UE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,s]=r.match(gb);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},$B=e=>fo(0,255,e),Sh={...Zs,transform:e=>Math.round($B(e))},Di={test:vb("rgb","red"),parse:UE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sh.transform(e)+", "+Sh.transform(t)+", "+Sh.transform(n)+", "+rc(Oc.transform(r))+")"};function AB(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const yv={test:vb("#"),parse:AB,transform:Di.transform},Za={test:vb("hsl","hue"),parse:UE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mr.transform(rc(t))+", "+Mr.transform(rc(n))+", "+rc(Oc.transform(r))+")"},Ht={test:e=>Di.test(e)||yv.test(e)||Za.test(e),parse:e=>Di.test(e)?Di.parse(e):Za.test(e)?Za.parse(e):yv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Di.transform(e):Za.transform(e)},IB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function RB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(gb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IB))===null||n===void 0?void 0:n.length)||0)>0}const HE="number",GE="color",zB="var",MB="var(",sw="${}",NB=/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 Lc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(NB,l=>(Ht.test(l)?(r.color.push(i),o.push(GE),n.push(Ht.parse(l))):l.startsWith(MB)?(r.var.push(i),o.push(zB),n.push(l)):(r.number.push(i),o.push(HE),n.push(parseFloat(l))),++i,sw)).split(sw);return{values:n,split:s,indexes:r,types:o}}function KE(e){return Lc(e).values}function XE(e){const{split:t,types:n}=Lc(e),r=t.length;return o=>{let i="";for(let a=0;atypeof e=="number"?0:e;function DB(e){const t=KE(e);return XE(e)(t.map(OB))}const ii={test:RB,parse:KE,createTransformer:XE,getAnimatableNone:DB},LB=new Set(["brightness","contrast","saturate","opacity"]);function FB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gb)||[];if(!r)return e;const o=n.replace(r,"");let i=LB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const BB=/\b([a-z-]*)\(.*?\)/gu,bv={...ii,getAnimatableNone:e=>{const t=e.match(BB);return t?t.map(FB).join(" "):e}},VB={...tb,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:bv,WebkitFilter:bv},yb=e=>VB[e];function YE(e,t){let n=yb(e);return n!==bv&&(n=ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const WB=new Set(["auto","none","0"]);function UB(e,t,n){let r=0,o;for(;re===Zs||e===de,cw=(e,t)=>parseFloat(e.split(", ")[t]),uw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return cw(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?cw(i[1],e):0}},HB=new Set(["x","y","z"]),GB=Qs.filter(e=>!HB.has(e));function KB(e){const t=[];return GB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Os={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:uw(4,13),y:uw(5,14)};Os.translateX=Os.x;Os.translateY=Os.y;const Ki=new Set;let xv=!1,Sv=!1;function qE(){if(Sv){const e=Array.from(Ki).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=KB(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sv=!1,xv=!1,Ki.forEach(e=>e.complete()),Ki.clear()}function QE(){Ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sv=!0)})}function XB(){QE(),qE()}class bb{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ki.add(this),xv||(xv=!0,Ye.read(QE),Ye.resolveKeyframes(qE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qB(e){const t=YB.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function JE(e,t,n=1){const[r,o]=qB(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return ZE(a)?parseFloat(a):a}return eb(o)?JE(o,t,n+1):o}const ej=e=>t=>t.test(e),QB={test:e=>e==="auto",parse:e=>e},tj=[Zs,de,Mr,Eo,F9,L9,QB],dw=e=>tj.find(ej(e));class nj extends bb{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const fw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ii.test(e)||e==="0")&&!e.startsWith("url("));function ZB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Kp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(e7),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const t7=40;class rj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nr.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>t7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&XB(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nr.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!JB(t,r,o,i))if(a)this.options.duration=0;else{l&&l(Kp(t,this.options,n)),s&&s(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const tt=(e,t,n)=>e+(t-e)*n;function wh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=wh(l,s,e+1/3),i=wh(l,s,e),a=wh(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Xf(e,t){return n=>n>0?t:e}const kh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},r7=[yv,Di,Za],o7=e=>r7.find(t=>t.test(e));function pw(e){const t=o7(e);if(!t)return!1;let n=t.parse(e);return t===Za&&(n=n7(n)),n}const mw=(e,t)=>{const n=pw(e),r=pw(t);if(!n||!r)return Xf(e,t);const o={...n};return i=>(o.red=kh(n.red,r.red,i),o.green=kh(n.green,r.green,i),o.blue=kh(n.blue,r.blue,i),o.alpha=tt(n.alpha,r.alpha,i),Di.transform(o))},i7=(e,t)=>n=>t(e(n)),fu=(...e)=>e.reduce(i7),wv=new Set(["none","hidden"]);function a7(e,t){return wv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function s7(e,t){return n=>tt(e,t,n)}function xb(e){return typeof e=="number"?s7:typeof e=="string"?eb(e)?Xf:Ht.test(e)?mw:u7:Array.isArray(e)?oj:typeof e=="object"?Ht.test(e)?mw:l7:Xf}function oj(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>xb(i)(i,t[a]));return i=>{for(let a=0;a{for(const i in r)n[i]=r[i](o);return n}}function c7(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ii.createTransformer(t),r=Lc(e),o=Lc(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?wv.has(e)&&!o.values.length||wv.has(t)&&!r.values.length?a7(e,t):fu(oj(c7(r,o),o.values),n):Xf(e,t)};function ij(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):xb(e)(e,t)}const d7=5;function aj(e,t,n){const r=Math.max(t-d7,0);return RE(n-e(r),t-r)}const lt={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},Ch=.001;function f7({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,i,a=1-t;a=fo(lt.minDamping,lt.maxDamping,a),e=fo(lt.minDuration,lt.maxDuration,io(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,h=kv(c,a),g=Math.exp(-f);return Ch-p/h*g},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-f),y=kv(Math.pow(c,2),a);return(-o(c)+Ch>0?-1:1)*((p-h)*g)/y}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Ch+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=m7(o,i,s);if(e=oo(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const p7=12;function m7(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function v7(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!hw(e,g7)&&hw(e,h7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*fo(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:i}}else{const n=f7(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function sj(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=v7({...n,velocity:-io(n.velocity||0)}),g=p||0,y=c/(2*Math.sqrt(l*d)),x=a-i,b=io(Math.sqrt(l/d)),v=Math.abs(x)<5;r||(r=v?lt.restSpeed.granular:lt.restSpeed.default),o||(o=v?lt.restDelta.granular:lt.restDelta.default);let S;if(y<1){const k=kv(b,y);S=_=>{const C=Math.exp(-y*b*_);return a-C*((g+y*b*x)/k*Math.sin(k*_)+x*Math.cos(k*_))}}else if(y===1)S=k=>a-Math.exp(-b*k)*(x+(g+b*x)*k);else{const k=b*Math.sqrt(y*y-1);S=_=>{const C=Math.exp(-y*b*_),T=Math.min(k*_,300);return a-C*((g+y*b*x)*Math.sinh(T)+k*x*Math.cosh(T))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const _=S(k);if(h)s.done=k>=f;else{let C=0;y<1&&(C=k===0?oo(g):aj(S,k,_));const T=Math.abs(C)<=r,A=Math.abs(a-_)<=o;s.done=T&&A}return s.value=s.done?a:_,s},toString:()=>{const k=Math.min(PE(w),hv),_=_E(C=>w.next(k*C).value,k,30);return k+"ms "+_}};return w}function gw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=T=>s!==void 0&&Tl,g=T=>s===void 0?l:l===void 0||Math.abs(s-T)-y*Math.exp(-T/r),S=T=>b+v(T),w=T=>{const A=v(T),$=S(T);p.done=Math.abs(A)<=c,p.value=p.done?b:$};let k,_;const C=T=>{h(p.value)&&(k=T,_=sj({keyframes:[p.value,g(p.value)],velocity:aj(S,T,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return C(0),{calculatedDuration:null,next:T=>{let A=!1;return!_&&k===void 0&&(A=!0,w(T),C(T)),k!==void 0&&T>=k?_.next(T-k):(!A&&w(T),p)}}}const y7=du(.42,0,1,1),b7=du(0,0,.58,1),lj=du(.42,0,.58,1),x7=e=>Array.isArray(e)&&typeof e[0]!="number",S7={linear:kn,easeIn:y7,easeInOut:lj,easeOut:b7,circIn:hb,circInOut:VE,circOut:BE,backIn:mb,backInOut:LE,backOut:DE,anticipate:FE},vw=e=>{if(cb(e)){iE(e.length===4);const[t,n,r,o]=e;return du(t,n,r,o)}else if(typeof e=="string")return S7[e];return e};function w7(e,t,n){const r=[],o=n||ij,i=e.length-1;for(let a=0;at[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=w7(t,r,o),l=s.length,c=d=>{if(a&&d1)for(;fc(fo(e[0],e[i-1],d)):c}function C7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ms(0,t,r);e.push(tt(n,1,o))}}function P7(e){const t=[0];return C7(t,e.length-1),t}function _7(e,t){return e.map(n=>n*t)}function T7(e,t){return e.map(()=>t||lj).splice(0,e.length-1)}function Yf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=x7(r)?r.map(vw):vw(r),i={done:!1,value:t[0]},a=_7(n&&n.length===t.length?n:P7(t),e),s=k7(a,t,{ease:Array.isArray(o)?o:T7(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const E7=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>oi(t),now:()=>It.isProcessing?It.timestamp:Nr.now()}},j7={decay:gw,inertia:gw,tween:Yf,keyframes:Yf,spring:sj},$7=e=>e/100;class Sb extends rj{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,a=(o==null?void 0:o.KeyframeResolver)||bb,s=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new a(i,s,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=lb(n)?n:j7[n]||Yf;let l,c;s!==Yf&&typeof t[0]!="number"&&(l=fu($7,ij(t[0],t[1])),t=[0,100]);const d=s({...this.options,keyframes:t});i==="mirror"&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=PE(d));const{calculatedDuration:f}=d,p=f+o,h=p*(r+1)-o;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:g,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=i;if(h){const T=Math.min(this.currentTime,d)/f;let A=Math.floor(T),$=T%1;!$&&T>=1&&($=1),$===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(g==="reverse"?($=1-$,y&&($-=y/f)):g==="mirror"&&(w=a)),S=fo(0,1,$)*f}const k=v?{done:!1,value:l[0]}:w.next(S);s&&(k.value=s(k.value));let{done:_}=k;!v&&c!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return C&&o!==void 0&&(k.value=Kp(l,this.options,o)),x&&x(k.value),C&&this.finish(),k}get duration(){const{resolved:t}=this;return t?io(t.calculatedDuration):0}get time(){return io(this.currentTime)}set time(t){t=oo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=io(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=E7,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const A7=new Set(["opacity","clipPath","filter","transform"]);function I7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=EE(s,o);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const R7=Ky(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qf=10,z7=2e4;function M7(e){return lb(e.type)||e.type==="spring"||!TE(e.ease)}function N7(e,t){const n=new Sb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(a,s),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof i=="string"&&Kf()&&O7(i)&&(i=cj[i]),M7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:g,...y}=this.options,x=N7(t,y);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,o=x.times,i=x.ease,a="keyframes"}const d=I7(s.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(nw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;s.set(Kp(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return io(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return io(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=oo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kn;const{animation:r}=n;nw(r,t)}return kn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:p,...h}=this.options,g=new Sb({...h,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),y=oo(this.time);c.setWithVelocity(g.sample(y-qf).value,g.sample(y).value,qf)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return R7()&&r&&A7.has(r)&&!l&&!c&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const D7={type:"spring",stiffness:500,damping:25,restSpeed:10},L7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),F7={type:"keyframes",duration:.8},B7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V7=(e,{keyframes:t})=>t.length>2?F7:ga.has(e)?e.startsWith("scale")?L7(t[1]):D7:B7;function W7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const wb=(e,t,n,r={},o,i)=>a=>{const s=sb(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-oo(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};W7(s)||(d={...d,...V7(e,d)}),d.duration&&(d.duration=oo(d.duration)),d.repeatDelay&&(d.repeatDelay=oo(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Kp(d.keyframes,s);if(p!==void 0)return Ye.update(()=>{d.onUpdate(p),d.onComplete()}),new lB([])}return!i&&yw.supports(d)?new yw(d):new Sb(d)};function U7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uj(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),h=l[f];if(h===void 0||d&&U7(d,f))continue;const g={delay:n,...sb(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=zE(e);if(b){const v=window.MotionHandoffAnimation(b,f,Ye);v!==null&&(g.startTime=v,y=!0)}}vv(e,f),p.start(wb(f,p,h,e.shouldReduceMotion&&IE.has(f)?{type:!1}:g,e,y));const x=p.animation;x&&c.push(x)}return s&&Promise.all(c).then(()=>{Ye.update(()=>{s&&wB(e,s)})}),c}function Cv(e,t,n={}){var r;const o=Gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(uj(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=i;return H7(e,t,d+c,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[a,s]:[s,a];return c().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function H7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(G7).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Cv(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function G7(e,t){return e.sortNodePosition(t)}function K7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Cv(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Cv(e,t,n);else{const o=typeof t=="function"?Gp(e,t,n.custom):t;r=Promise.all(uj(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const X7=Yy.length;function dj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>K7(e,n,r)))}function Z7(e){let t=Q7(e),n=bw(),r=!0;const o=l=>(c,d)=>{var f;const p=Gp(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:g,...y}=p;c={...c,...y,...g}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,d=dj(e.parent)||{},f=[],p=new Set;let h={},g=1/0;for(let x=0;xg&&w,A=!1;const $=Array.isArray(S)?S:[S];let B=$.reduce(o(b),{});k===!1&&(B={});const{prevResolvedValues:Y={}}=v,te={...Y,...B},I=z=>{T=!0,p.has(z)&&(A=!0,p.delete(z)),v.needsAnimating[z]=!0;const O=e.getValue(z);O&&(O.liveStyle=!1)};for(const z in te){const O=B[z],R=Y[z];if(h.hasOwnProperty(z))continue;let D=!1;mv(O)&&mv(R)?D=!CE(O,R):D=O!==R,D?O!=null?I(z):p.add(z):O!==void 0&&p.has(z)?I(z):v.protectedKeys[z]=!0}v.prevProp=S,v.prevResolvedValues=B,v.isActive&&(h={...h,...B}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(_&&C)||A)&&f.push(...$.map(z=>({animation:z,options:{type:b}})))}if(p.size){const x={};p.forEach(b=>{const v=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),x[b]=v??null}),f.push({animation:x})}let y=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bw(),r=!0}}}function J7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CE(t,e):!1}function Ci(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bw(){return{animate:Ci(!0),whileInView:Ci(),whileHover:Ci(),whileTap:Ci(),whileDrag:Ci(),whileFocus:Ci(),exit:Ci()}}class mi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eV extends mi{constructor(t){super(t),t.animationState||(t.animationState=Z7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Up(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tV=0;class nV extends mi{constructor(){super(...arguments),this.id=tV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rV={animation:{Feature:eV},exit:{Feature:nV}};function Fc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pu(e){return{point:{x:e.pageX,y:e.pageY}}}const oV=e=>t=>ub(t)&&e(t,pu(t));function oc(e,t,n,r){return Fc(e,t,oV(n),r)}const xw=(e,t)=>Math.abs(e-t);function iV(e,t){const n=xw(e.x,t.x),r=xw(e.y,t.y);return Math.sqrt(n**2+r**2)}class fj{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_h(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=iV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:g}=f,{timestamp:y}=It;this.history.push({...g,timestamp:y});const{onStart:x,onMove:b}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ph(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_h(f.type==="pointercancel"?this.lastMoveEventInfo:Ph(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),g&&g(f,x)},!ub(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=pu(t),s=Ph(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,_h(s,this.history)),this.removeListeners=fu(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oi(this.updatePoint)}}function Ph(e,t){return t?{point:t(e.point)}:e}function Sw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _h({point:e},t){return{point:e,delta:Sw(e,pj(t)),offset:Sw(e,aV(t)),velocity:sV(t,.1)}}function aV(e){return e[0]}function pj(e){return e[e.length-1]}function sV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pj(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>oo(t)));)n--;if(!r)return{x:0,y:0};const i=io(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const mj=1e-4,lV=1-mj,cV=1+mj,hj=.01,uV=0-hj,dV=0+hj;function Pn(e){return e.max-e.min}function fV(e,t,n){return Math.abs(e-t)<=n}function ww(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Pn(n)/Pn(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lV&&e.scale<=cV||isNaN(e.scale))&&(e.scale=1),(e.translate>=uV&&e.translate<=dV||isNaN(e.translate))&&(e.translate=0)}function ic(e,t,n,r){ww(e.x,t.x,n.x,r?r.originX:void 0),ww(e.y,t.y,n.y,r?r.originY:void 0)}function kw(e,t,n){e.min=n.min+t.min,e.max=e.min+Pn(t)}function pV(e,t,n){kw(e.x,t.x,n.x),kw(e.y,t.y,n.y)}function Cw(e,t,n){e.min=t.min-n.min,e.max=e.min+Pn(t)}function ac(e,t,n){Cw(e.x,t.x,n.x),Cw(e.y,t.y,n.y)}function mV(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function Pw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function hV(e,{top:t,left:n,bottom:r,right:o}){return{x:Pw(e.x,n,o),y:Pw(e.y,t,r)}}function _w(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ms(t.min,t.max-r,e.min):r>o&&(n=Ms(e.min,e.max-o,t.min)),fo(0,1,n)}function yV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Pv=.35;function bV(e=Pv){return e===!1?e=0:e===!0&&(e=Pv),{x:Tw(e,"left","right"),y:Tw(e,"top","bottom")}}function Tw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const jw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ja=()=>({x:jw(),y:jw()}),$w=()=>({min:0,max:0}),dt=()=>({x:$w(),y:$w()});function Nn(e){return[e("x"),e("y")]}function gj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SV(e,t){if(!t)return e;const 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 Th(e){return e===void 0||e===1}function _v({scale:e,scaleX:t,scaleY:n}){return!Th(e)||!Th(t)||!Th(n)}function Ei(e){return _v(e)||vj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vj(e){return Aw(e.x)||Aw(e.y)}function Aw(e){return e&&e!=="0%"}function Qf(e,t,n){const r=e-n,o=t*r;return n+o}function Iw(e,t,n,r,o){return o!==void 0&&(e=Qf(e,o,r)),Qf(e,n,r)+t}function Tv(e,t=0,n=1,r,o){e.min=Iw(e.min,t,n,r,o),e.max=Iw(e.max,t,n,r,o)}function yj(e,{x:t,y:n}){Tv(e.x,t.translate,t.scale,t.originPoint),Tv(e.y,n.translate,n.scale,n.originPoint)}const Rw=.999999999999,zw=1.0000000000001;function wV(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;sRw&&(t.x=1),t.yRw&&(t.y=1)}function es(e,t){e.min=e.min+t,e.max=e.max+t}function Mw(e,t,n,r,o=.5){const i=tt(e.min,e.max,o);Tv(e,t,n,i,r)}function ts(e,t){Mw(e.x,t.x,t.scaleX,t.scale,t.originX),Mw(e.y,t.y,t.scaleY,t.scale,t.originY)}function bj(e,t){return gj(SV(e.getBoundingClientRect(),t))}function kV(e,t,n){const r=bj(e,n),{scroll:o}=t;return o&&(es(r.x,o.offset.x),es(r.y,o.offset.y)),r}const xj=({current:e})=>e?e.ownerDocument.defaultView:null,CV=new WeakMap;class PV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pu(d).point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vB(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nn(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Mr.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[x];S&&(b=Pn(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),g&&Ye.postRender(()=>g(d,f)),vv(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=_V(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(d,f)},s=(d,f)=>this.stop(d,f),l=()=>Nn(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new fj(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:xj(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ye.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ud(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=mV(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Qa(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=hV(o.layoutBox,n):this.constraints=!1,this.elastic=bV(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Nn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=yV(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qa(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=kV(r,o.root,this.visualElement.getTransformPagePoint());let a=gV(o.layout.layoutBox,i);if(n){const s=n(xV(a));this.hasMutatedConstraints=!!s,s&&(a=gj(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Nn(d=>{if(!ud(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return vv(this.visualElement,t),r.start(wb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Nn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Nn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Nn(n=>{const{drag:r}=this.getProps();if(!ud(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-tt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qa(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Nn(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=vV({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Nn(a=>{if(!ud(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(tt(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;CV.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Qa(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ye.read(r);const a=Fc(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Nn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Pv,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ud(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _V(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class TV extends mi{constructor(t){super(t),this.removeGroupControls=kn,this.removeListeners=kn,this.controls=new PV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nw=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};class EV extends mi{constructor(){super(...arguments),this.removePointerDownListener=kn}onPointerDown(t){this.session=new fj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nw(t),onStart:Nw(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ye.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const tf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ow(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const n=Ow(e,t.target.x),r=Ow(e,t.target.y);return`${n}% ${r}%`}},jV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ii.parse(e);if(o.length>5)return r;const i=ii.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=tt(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class $V extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;q9(AV),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),tf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ye.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Sj(e){const[t,n]=Hy(),r=m.useContext(Vy);return u.jsx($V,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(dE),isPresent:t,safeToRemove:n})}const AV={borderRadius:{...bl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bl,borderTopRightRadius:bl,borderBottomLeftRadius:bl,borderBottomRightRadius:bl,boxShadow:jV};function IV(e,t,n){const r=Yt(e)?e:Dc(e);return r.start(wb("",r,t,n)),r.animation}function RV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const zV=(e,t)=>e.depth-t.depth;class MV{constructor(){this.children=[],this.isDirty=!1}add(t){db(this.children,t),this.isDirty=!0}remove(t){fb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zV),this.isDirty=!1,this.children.forEach(t)}}function NV(e,t){const n=Nr.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(oi(r),e(i-t))};return Ye.read(r,!0),()=>oi(r)}const wj=["TopLeft","TopRight","BottomLeft","BottomRight"],OV=wj.length,Dw=e=>typeof e=="string"?parseFloat(e):e,Lw=e=>typeof e=="number"||de.test(e);function DV(e,t,n,r,o,i){o?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,LV(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,FV(r))):i&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Ms(e,t,r))}function Bw(e,t){e.min=t.min,e.max=t.max}function zn(e,t){Bw(e.x,t.x),Bw(e.y,t.y)}function Vw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ww(e,t,n,r,o){return e-=t,e=Qf(e,1/n,r),o!==void 0&&(e=Qf(e,1/o,r)),e}function BV(e,t=0,n=1,r=.5,o,i=e,a=e){if(Mr.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=tt(i.min,i.max,r);e===i&&(s-=t),e.min=Ww(e.min,t,n,s,o),e.max=Ww(e.max,t,n,s,o)}function Uw(e,t,[n,r,o],i,a){BV(e,t[n],t[r],t[o],t.scale,i,a)}const VV=["x","scaleX","originX"],WV=["y","scaleY","originY"];function Hw(e,t,n,r){Uw(e.x,t,VV,n?n.x:void 0,r?r.x:void 0),Uw(e.y,t,WV,n?n.y:void 0,r?r.y:void 0)}function Gw(e){return e.translate===0&&e.scale===1}function Cj(e){return Gw(e.x)&&Gw(e.y)}function Kw(e,t){return e.min===t.min&&e.max===t.max}function UV(e,t){return Kw(e.x,t.x)&&Kw(e.y,t.y)}function Xw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pj(e,t){return Xw(e.x,t.x)&&Xw(e.y,t.y)}function Yw(e){return Pn(e.x)/Pn(e.y)}function qw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class HV{constructor(){this.members=[]}add(t){db(this.members,t),t.scheduleRender()}remove(t){if(fb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function GV(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const ji={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ml=typeof window<"u"&&window.MotionDebug!==void 0,Eh=["","X","Y","Z"],KV={visibility:"hidden"},Qw=1e3;let XV=0;function jh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _j(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=zE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_j(r)}function Tj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=XV++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ml&&(ji.totalNodes=ji.resolvedTargetDeltas=ji.recalculatedProjection=0),this.nodes.forEach(QV),this.nodes.forEach(nW),this.nodes.forEach(rW),this.nodes.forEach(ZV),Ml&&window.MotionDebug.record(ji)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=NV(p,250),tf.hasAnimatedSinceResize&&(tf.hasAnimatedSinceResize=!1,this.nodes.forEach(Jw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||lW,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!Pj(this.targetLayout,g)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...sb(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||Jw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oi(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(oW),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_j(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;ek(f.x,a.x,k),ek(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aW(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&UV(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=dt()),zn(S,this.relativeTarget)),y&&(this.animationValues=d,DV(d,c,this.latestValues,k,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{tf.hasAnimatedSinceResize=!0,this.currentAnimation=IV(0,Qw,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Ej(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||dt();const f=Pn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=Pn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}zn(s,l),ts(s,d),ic(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new HV),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&jh("z",a,c,this.animationValues);for(let d=0;d{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Zw),this.root.sharedNodes.clear()}}}function YV(e){e.updateLayout()}function qV(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?Nn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Pn(p);p.min=r[f].min,p.max=p.min+h}):Ej(i,n.layoutBox,r)&&Nn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Pn(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Ja();ic(s,r,n.layoutBox);const l=Ja();a?ic(l,e.applyTransform(o,!0),n.measuredBox):ic(l,r,n.layoutBox);const c=!Cj(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const g=dt();ac(g,n.layoutBox,p.layoutBox);const y=dt();ac(y,r,h.layoutBox),Pj(g,y)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QV(e){Ml&&ji.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ZV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function JV(e){e.clearSnapshot()}function Zw(e){e.clearMeasurements()}function eW(e){e.isLayoutDirty=!1}function tW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nW(e){e.resolveTargetDelta()}function rW(e){e.calcProjection()}function oW(e){e.resetSkewAndRotation()}function iW(e){e.removeLeadSnapshot()}function ek(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tk(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function aW(e,t,n,r){tk(e.x,t.x,n.x,r),tk(e.y,t.y,n.y,r)}function sW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lW={duration:.45,ease:[.4,0,.1,1]},nk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rk=nk("applewebkit/")&&!nk("chrome/")?Math.round:kn;function ok(e){e.min=rk(e.min),e.max=rk(e.max)}function cW(e){ok(e.x),ok(e.y)}function Ej(e,t,n){return e==="position"||e==="preserve-aspect"&&!fV(Yw(t),Yw(n),.2)}function uW(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const dW=Tj({attachResizeListener:(e,t)=>Fc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$h={current:void 0},jj=Tj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$h.current){const e=new dW({});e.mount(window),e.setOptions({layoutScroll:!0}),$h.current=e}return $h.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fW={pan:{Feature:EV},drag:{Feature:TV,ProjectionNode:jj,MeasureLayout:Sj}};function ik(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Ye.postRender(()=>i(t,pu(t)))}class pW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=fB(t,n=>(ik(this.node,n,"Start"),r=>ik(this.node,r,"End"))))}unmount(){}}class mW extends mi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=fu(Fc(this.node.current,"focus",()=>this.onFocus()),Fc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ak(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Ye.postRender(()=>i(t,pu(t)))}class hW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=gB(t,n=>(ak(this.node,n,"Start"),(r,{success:o})=>ak(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ev=new WeakMap,Ah=new WeakMap,gW=e=>{const t=Ev.get(e.target);t&&t(e)},vW=e=>{e.forEach(gW)};function yW({root:e,...t}){const n=e||document;Ah.has(n)||Ah.set(n,{});const r=Ah.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vW,{root:e,...t})),r[o]}function bW(e,t,n){const r=yW(t);return Ev.set(e,n),r.observe(e),()=>{Ev.delete(e),r.unobserve(e)}}const xW={some:0,all:1};class SW extends mi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xW[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return bW(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wW(t,n))&&this.startObserver()}unmount(){}}function wW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kW={inView:{Feature:SW},tap:{Feature:hW},focus:{Feature:mW},hover:{Feature:pW}},CW={layout:{ProjectionNode:jj,MeasureLayout:Sj}},jv={current:null},$j={current:!1};function PW(){if($j.current=!0,!!Gy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jv.current=e.matches;e.addListener(t),t()}else jv.current=!1}const _W=[...tj,Ht,ii],TW=e=>_W.find(ej(e)),sk=new WeakMap;function EW(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Yt(o))e.addValue(r,o);else if(Yt(i))e.addValue(r,Dc(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Dc(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const lk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jW{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const h=Nr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),$j.current||PW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sk.delete(this.current),this.projection&&this.projection.unmount(),oi(this.notifyUpdate),oi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ga.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ns){const n=Ns[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(ZE(o)||WE(o))?o=parseFloat(o):!TW(o)&&ii.test(n)&&(o=YE(t,n)),this.setBaseTarget(t,Yt(o)?o.get():o)),Yt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Jy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Yt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Aj extends jW{constructor(){super(...arguments),this.KeyframeResolver=nj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $W(e){return window.getComputedStyle(e)}class AW extends Aj{constructor(){super(...arguments),this.type="html",this.renderInstance=yE}readValueFromInstance(t,n){if(ga.has(n)){const r=yb(n);return r&&r.default||0}else{const r=$W(t),o=(hE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bj(t,n)}build(t,n,r){nb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ab(t,n,r)}}class IW extends Aj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ga.has(n)){const r=yb(n);return r&&r.default||0}return n=bE.has(n)?n:qy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wE(t,n,r)}build(t,n,r){rb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){xE(t,n,r,o)}mount(t){this.isSVGTag=ib(t.tagName),super.mount(t)}}const RW=(e,t)=>Zy(e)?new IW(t):new AW(t,{allowProjection:e!==m.Fragment}),zW=iB({...rV,...kW,...fW,...CW},RW),$n=x9(zW),MW=(e,t)=>e.find(n=>n.id===t);function ck(e,t){const n=Ij(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Ij(e,t){for(const[n,r]of Object.entries(e))if(MW(r,t))return n}function NW(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function OW(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:a}}var DW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LW=WT(function(e){return DW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FW=LW,BW=function(t){return t!=="theme"},uk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FW:BW},dk=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},VW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return My(n,r,o),ZT(function(){return Ny(n,r,o)}),null},WW=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=dk(t,n,r),l=s||uk(o),c=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;gt=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,[s]=$z(a,wM),l=Xt(e,t),c=uz({},o,l,vy(s),i),d=dT(c)(t.theme);return r?[d,r]:d};function Ih(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=KW);const o=YW({baseStyle:n}),i=XW(e,r)(o);return m.forwardRef(function(l,c){const{children:d,...f}=l,{colorMode:p,forced:h}=lu(),g=h?p:void 0;return m.createElement(i,{ref:c,"data-theme":g,...f},d)})}function qW(){const e=new Map;return new Proxy(Ih,{apply(t,n,r){return Ih(...r)},get(t,n){return e.has(n)||e.set(n,Ih(n)),e.get(n)}})}const N=qW(),QW={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Rj=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=QW,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(s),h=d9();Ff(()=>{h||r==null||r()},[h]),Ff(()=>{p(s)},[s]);const g=()=>p(null),y=()=>p(s),x=()=>{h&&o()};m.useEffect(()=>{h&&i&&o()},[h,i,o]),Fz(x,f);const b=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),v=m.useMemo(()=>NW(a),[a]);return u.jsx($n.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:v,children:u.jsx(N.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Xt(n,{id:t,onClose:x})})})});Rj.displayName="ToastComponent";function L(e){return m.forwardRef(e)}var ZW=typeof Element<"u",JW=typeof Map=="function",eU=typeof Set=="function",tU=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!nf(e[r],t[r]))return!1;return!0}var i;if(JW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!nf(r.value[1],t.get(r.value[0])))return!1;return!0}if(eU&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(tU&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(ZW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!nf(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var nU=function(t,n){try{return nf(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const rU=b0(nU);function yo(){const e=m.useContext(zs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function zj(){const e=lu(),t=yo();return{...e,theme:t}}function oU(e,t,n){if(t==null)return t;const r=o=>{var i,a;return(a=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:a.value};return r(t)??r(n)??n}function iU(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const a=o.filter(Boolean),s=r.map((l,c)=>{const d=`${e}.${l}`;return oU(i,d,a[c]??l)});return Array.isArray(t)?s:s[0]}}function aU(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function Mj(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=zj(),a=e?J_(o,`components.${e}`):void 0,s=n||a,l=Fn({theme:o,colorMode:i},(s==null?void 0:s.defaultProps)??{},aU(r),(d,f)=>d?void 0:f),c=m.useRef({});if(s){const f=RM(s)(l);rU(c.current,f)||(c.current=f)}return c.current}function An(e,t={}){return Mj(e,t)}function Ve(e,t={}){return Mj(e,t)}const fk={path:u.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[u.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),u.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),u.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},wt=L((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,d=V("chakra-icon",s),f=An("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...f},h={ref:t,focusable:i,className:d,__css:p},g=r??fk.viewBox;if(n&&typeof n!="string")return u.jsx(N.svg,{as:n,...h,...c});const y=a??fk.path;return u.jsx(N.svg,{verticalAlign:"middle",viewBox:g,...h,...c,children:y})});wt.displayName="Icon";function sU(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function lU(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function pk(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const cU=su({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Hn=L((e,t)=>{const n=An("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Ce(e),c=V("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${cU} ${i} linear infinite`,...n};return u.jsx(N.div,{ref:t,__css:d,className:c,...l,children:r&&u.jsx(N.span,{srOnly:!0,children:r})})});Hn.displayName="Spinner";const[uU,kb]=ye({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[dU,Cb]=ye({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Nj={info:{icon:lU,colorScheme:"blue"},warning:{icon:pk,colorScheme:"orange"},success:{icon:sU,colorScheme:"green"},error:{icon:pk,colorScheme:"red"},loading:{icon:Hn,colorScheme:"blue"}};function fU(e){return Nj[e].colorScheme}function pU(e){return Nj[e].icon}const Oj=L(function(t,n){const{status:r="info",addRole:o=!0,...i}=Ce(t),a=t.colorScheme??fU(r),s=Ve("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return u.jsx(uU,{value:{status:r},children:u.jsx(dU,{value:s,children:u.jsx(N.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:V("chakra-alert",t.className),__css:l})})})});Oj.displayName="Alert";function Dj(e){const{status:t}=kb(),n=pU(t),r=Cb(),o=t==="loading"?r.spinner:r.icon;return u.jsx(N.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:o,children:e.children||u.jsx(n,{h:"100%",w:"100%"})})}Dj.displayName="AlertIcon";const Lj=L(function(t,n){const r=Cb(),{status:o}=kb();return u.jsx(N.div,{ref:n,"data-status":o,...t,className:V("chakra-alert__title",t.className),__css:r.title})});Lj.displayName="AlertTitle";const Fj=L(function(t,n){const{status:r}=kb(),o=Cb(),i={display:"inline",...o.description};return u.jsx(N.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:i})});Fj.displayName="AlertDescription";function mU(e){return u.jsx(wt,{focusable:"false","aria-hidden":!0,...e,children:u.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Xp=L(function(t,n){const r=An("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Ce(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return u.jsx(N.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...a},...s,children:o||u.jsx(mU,{width:"1em",height:"1em"})})});Xp.displayName="CloseButton";const hU=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return u.jsxs(Oj,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[u.jsx(Dj,{children:c}),u.jsxs(N.div,{flex:"1",maxWidth:"100%",children:[o&&u.jsx(Lj,{id:d==null?void 0:d.title,children:o}),s&&u.jsx(Fj,{id:d==null?void 0:d.description,display:"block",children:s})]}),i&&u.jsx(Xp,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Bj(e={}){const{render:t,toastComponent:n=hU}=e;return o=>typeof t=="function"?t({...o,...e}):u.jsx(n,{...o,...e})}const gU={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Er=vU(gU);function vU(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=yU(o,i),{position:s,id:l}=a;return r(c=>{const f=s.includes("top")?[a,...c[s]??[]]:[...c[s]??[],a];return{...c,[s]:f}}),l},update:(o,i)=>{o&&r(a=>{const s={...a},{position:l,index:c}=ck(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...i,message:Bj(i)}),s})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(d=>({...d,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const a=Ij(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!ck(Er.getState(),o).position}}let mk=0;function yU(e,t={}){mk+=1;const n=t.id??mk,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Er.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[Vj,bU]=ye({strict:!1,name:"PortalContext"}),Pb="chakra-portal",xU=".chakra-portal",SU=e=>u.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),wU=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=m.useState(null),i=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const s=bU(),l=o9();no(()=>{if(!r)return;const d=r.ownerDocument,f=t?s??d.body:d.body;if(!f)return;i.current=d.createElement("div"),i.current.className=Pb,f.appendChild(i.current),a({});const p=i.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const c=l!=null&&l.zIndex?u.jsx(SU,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?my.createPortal(u.jsx(Vj,{value:i.current,children:c}),i.current):u.jsx("span",{ref:d=>{d&&o(d)}})},kU=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Pb),l},[o]),[,s]=m.useState({});return no(()=>s({}),[]),no(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?my.createPortal(u.jsx(Vj,{value:r?a:null,children:t}),a):null};function Js(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?u.jsx(kU,{containerRef:n,...r}):u.jsx(wU,{...r})}Js.className=Pb;Js.selector=xU;Js.displayName="Portal";const[CU,PU]=ye({name:"ToastOptionsContext",strict:!1}),_U=e=>{const t=m.useSyncExternalStore(Er.subscribe,Er.getState,Er.getState),{motionVariants:n,component:r=Rj,portalProps:o,animatePresenceProps:i}=e,s=Object.keys(t).map(l=>{const c=t[l];return u.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:OW(l),children:u.jsx(vo,{...i,initial:!1,children:c.map(d=>u.jsx(r,{motionVariants:n,...d},d.id))})},l)});return u.jsx(Js,{...o,children:s})},TU=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return u.jsxs(a9,{theme:r,...i,children:[u.jsx(CU,{value:o==null?void 0:o.defaultOptions,children:n}),u.jsx(_U,{...o})]})},EU=TU(Oi);function hk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const jU=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function gk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function vk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const Rh=typeof window<"u"?m.useLayoutEffect:m.useEffect,yk=e=>e;var $U=Object.defineProperty,AU=(e,t,n)=>t in e?$U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,at=(e,t,n)=>(AU(e,typeof t!="symbol"?t+"":t,n),n);class IU{constructor(){at(this,"descendants",new Map),at(this,"register",t=>{if(t!=null)return jU(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),at(this,"unregister",t=>{this.descendants.delete(t);const n=hk(Array.from(this.descendants.keys()));this.assignIndex(n)}),at(this,"destroy",()=>{this.descendants.clear()}),at(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),at(this,"count",()=>this.descendants.size),at(this,"enabledCount",()=>this.enabledValues().length),at(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),at(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),at(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),at(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),at(this,"first",()=>this.item(0)),at(this,"firstEnabled",()=>this.enabledItem(0)),at(this,"last",()=>this.item(this.descendants.size-1)),at(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),at(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),at(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),at(this,"next",(t,n=!0)=>{const r=gk(t,this.count(),n);return this.item(r)}),at(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=gk(o,this.enabledCount(),n);return this.enabledItem(i)}),at(this,"prev",(t,n=!0)=>{const r=vk(t,this.count()-1,n);return this.item(r)}),at(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=vk(o,this.enabledCount()-1,n);return this.enabledItem(i)}),at(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),o=hk(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const i={node:t,index:-1,...n};this.descendants.set(t,i),this.assignIndex(o)})}}function RU(){const[e,t]=ye({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=m.useRef(new IU);return Rh(()=>()=>o.current.destroy()),o.current},o=>{const i=t(),[a,s]=m.useState(-1),l=m.useRef(null);Rh(()=>()=>{l.current&&i.unregister(l.current)},[]),Rh(()=>{if(!l.current)return;const d=Number(l.current.dataset.index);a!=d&&!Number.isNaN(d)&&s(d)});const c=yk(o?i.register(o):i.register);return{descendants:i,index:a,enabledIndex:i.enabledIndexOf(l.current),register:bt(c,l)}}]}const Zr={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},xl={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Av(e){switch((e==null?void 0:e.direction)??"right"){case"right":return xl.slideRight;case"left":return xl.slideLeft;case"bottom":return xl.slideDown;case"top":return xl.slideUp;default:return xl.slideRight}}const Xi={enter:{duration:.2,ease:Zr.easeOut},exit:{duration:.1,ease:Zr.easeIn}},dr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},zU=e=>e!=null&&parseInt(e.toString(),10)>0,bk={exit:{height:{duration:.2,ease:Zr.ease},opacity:{duration:.3,ease:Zr.ease}},enter:{height:{duration:.3,ease:Zr.ease},opacity:{duration:.4,ease:Zr.ease}}},MU={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:zU(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??dr.exit(bk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??dr.enter(bk.enter,o)})},Yp=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:a="auto",style:s,className:l,transition:c,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,g]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{g(!0)});return()=>clearTimeout(S)},[]);const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:a,animateOpacity:o,transition:h?c:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:y?"block":"none"}}},b=r?n:!0,v=n||r?"enter":"exit";return u.jsx(vo,{...f,initial:!1,custom:x,children:b&&u.jsx($n.div,{ref:t,...p,className:V("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:x,variants:MU,initial:r?"exit":!1,animate:v,exit:"exit"})})});Yp.displayName="Collapse";const[NU,Wj]=ye({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function OU(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function Uj(e){const{name:t,getInitials:n,...r}=e,o=Wj();return u.jsx(N.div,{role:"img","aria-label":t,...r,__css:o.label,children:t?n==null?void 0:n(t):null})}Uj.displayName="AvatarName";const Hj=e=>u.jsxs(N.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[u.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),u.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function DU(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const g=new Image;g.src=n,a&&(g.crossOrigin=a),r&&(g.srcset=r),s&&(g.sizes=s),t&&(g.loading=t),g.onload=y=>{h(),d("loaded"),o==null||o(y)},g.onerror=y=>{h(),d("failed"),i==null||i(y)},f.current=g},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return no(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Gj(e){const{src:t,srcSet:n,onError:r,onLoad:o,getInitials:i,name:a,borderRadius:s,loading:l,iconLabel:c,icon:d=u.jsx(Hj,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,y=DU({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!y?a?u.jsx(Uj,{className:"chakra-avatar__initials",getInitials:i,name:a}):m.cloneElement(d,{role:"img","aria-label":c}):u.jsx(N.img,{src:t,srcSet:n,alt:a??c,onLoad:o,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:s}})}Gj.displayName="AvatarImage";const LU={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},_b=L((e,t)=>{const n=Ve("Avatar",e),[r,o]=m.useState(!1),{src:i,srcSet:a,name:s,showBorder:l,borderRadius:c="full",onError:d,onLoad:f,getInitials:p=OU,icon:h=u.jsx(Hj,{}),iconLabel:g=" avatar",loading:y,children:x,borderColor:b,ignoreFallback:v,crossOrigin:S,referrerPolicy:w,...k}=Ce(e),_={borderRadius:c,borderWidth:l?"2px":void 0,...LU,...n.container};return b&&(_.borderColor=b),u.jsx(N.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":oe(r),__css:_,children:u.jsxs(NU,{value:n,children:[u.jsx(Gj,{src:i,srcSet:a,loading:y,onLoad:le(f,()=>{o(!0)}),onError:d,getInitials:p,name:s,borderRadius:c,icon:h,iconLabel:g,ignoreFallback:v,crossOrigin:S,referrerPolicy:w}),x]})})});_b.displayName="Avatar";const FU={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},Kj=L(function(t,n){const{placement:r="bottom-end",className:o,...i}=t,a=Wj(),l={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...FU[r],...a.badge};return u.jsx(N.div,{ref:n,...i,className:V("chakra-avatar__badge",o),__css:l})});Kj.displayName="AvatarBadge";const Gn=L(function(t,n){const r=An("Badge",t),{className:o,...i}=Ce(t);return u.jsx(N.span,{ref:n,className:V("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Gn.displayName="Badge";const ge=N("div");ge.displayName="Box";const[BU,VU]=ye({strict:!1,name:"ButtonGroupContext"});function Nl(e){const{children:t,className:n,...r}=e,o=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=V("chakra-button__icon",n);return u.jsx(N.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Nl.displayName="ButtonIcon";function Iv(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=u.jsx(Hn,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=V("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,c,r]);return u.jsx(N.div,{className:l,...s,__css:d,children:o})}Iv.displayName="ButtonSpinner";function WU(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const he=L((e,t)=>{const n=VU(),r=An("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:g="start",className:y,as:x,shouldWrapChildren:b,...v}=Ce(e),S=m.useMemo(()=>{const C={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:C}}},[r,n]),{ref:w,type:k}=WU(x),_={rightIcon:c,leftIcon:l,iconSpacing:f,children:s,shouldWrapChildren:b};return u.jsxs(N.button,{disabled:o||i,ref:xy(t,w),as:x,type:p??k,"data-active":oe(a),"data-loading":oe(i),__css:S,className:V("chakra-button",y),...v,children:[i&&g==="start"&&u.jsx(Iv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),i?d||u.jsx(N.span,{opacity:0,children:u.jsx(xk,{..._})}):u.jsx(xk,{..._}),i&&g==="end"&&u.jsx(Iv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});he.displayName="Button";function xk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?u.jsxs("span",{style:{display:"contents"},children:[t&&u.jsx(Nl,{marginEnd:o,children:t}),r,n&&u.jsx(Nl,{marginStart:o,children:n})]}):u.jsxs(u.Fragment,{children:[t&&u.jsx(Nl,{marginEnd:o,children:t}),r,n&&u.jsx(Nl,{marginStart:o,children:n})]})}const UU={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},HU={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Tb=L(function(t,n){const{size:r,colorScheme:o,variant:i,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:c,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:c}),[r,o,i,c]);let g={display:"inline-flex",...l?UU[d]:HU[d](s)};const y=d==="vertical";return u.jsx(BU,{value:h,children:u.jsx(N.div,{ref:n,role:"group",__css:g,className:p,"data-attached":l?"":void 0,"data-orientation":d,flexDir:y?"column":void 0,...f})})});Tb.displayName="ButtonGroup";const Or=L((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=n||r,l=m.isValidElement(s)?m.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.jsx(he,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});Or.displayName="IconButton";const[GU,KU]=hr("Card"),Eb=L(function(t,n){const{className:r,children:o,direction:i="column",justify:a,align:s,...l}=Ce(t),c=Ve("Card",t);return u.jsx(N.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:u.jsx(GU,{value:c,children:o})})}),jb=L(function(t,n){const{className:r,...o}=t,i=KU();return u.jsx(N.div,{ref:n,className:V("chakra-card__body",r),__css:i.body,...o})}),Xj=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Xj.displayName="Center";const XU={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};L(function(t,n){const{axis:r="both",...o}=t;return u.jsx(N.div,{ref:n,__css:XU[r],...o,position:"absolute"})});var YU=()=>typeof document<"u",Sk=!1,mu=null,sa=!1,Rv=!1,zv=new Set;function $b(e,t){zv.forEach(n=>n(e,t))}var qU=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function QU(e){return!(e.metaKey||!qU&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function wk(e){sa=!0,QU(e)&&(mu="keyboard",$b("keyboard",e))}function _a(e){if(mu="pointer",e.type==="mousedown"||e.type==="pointerdown"){sa=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;$b("pointer",e)}}function ZU(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function JU(e){ZU(e)&&(sa=!0,mu="virtual")}function eH(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!sa&&!Rv&&(mu="virtual",$b("virtual",e)),sa=!1,Rv=!1)}function tH(){sa=!1,Rv=!0}function kk(){return mu!=="pointer"}function nH(){if(!YU()||Sk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){sa=!0,e.apply(this,n)},document.addEventListener("keydown",wk,!0),document.addEventListener("keyup",wk,!0),document.addEventListener("click",JU,!0),window.addEventListener("focus",eH,!0),window.addEventListener("blur",tH,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_a,!0),document.addEventListener("pointermove",_a,!0),document.addEventListener("pointerup",_a,!0)):(document.addEventListener("mousedown",_a,!0),document.addEventListener("mousemove",_a,!0),document.addEventListener("mouseup",_a,!0)),Sk=!0}function Yj(e){nH(),e(kk());const t=()=>e(kk());return zv.add(t),()=>{zv.delete(t)}}const[rH,qj]=ye({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[oH,hu]=ye({strict:!1,name:"FormControlContext"});function iH(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...a}=e,s=m.useId(),l=t||`field-${s}`,c=`${l}-label`,d=`${l}-feedback`,f=`${l}-helptext`,[p,h]=m.useState(!1),[g,y]=m.useState(!1),[x,b]=m.useState(!1),v=m.useCallback((C={},T=null)=>({id:f,...C,ref:bt(T,A=>{A&&y(!0)})}),[f]),S=m.useCallback((C={},T=null)=>({...C,ref:T,"data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i),id:C.id!==void 0?C.id:c,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,x,r,i,c]),w=m.useCallback((C={},T=null)=>({id:d,...C,ref:bt(T,A=>{A&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((C={},T=null)=>({...C,...a,ref:T,role:"group","data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i)}),[a,o,x,r,i]),_=m.useCallback((C={},T=null)=>({...C,ref:T,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:y,id:l,labelId:c,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:v,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:_}}const _e=L(function(t,n){const r=Ve("Form",t),o=Ce(t),{getRootProps:i,htmlProps:a,...s}=iH(o),l=V("chakra-form-control",t.className);return u.jsx(oH,{value:s,children:u.jsx(rH,{value:r,children:u.jsx(N.div,{...i({},n),className:l,__css:r.container})})})});_e.displayName="FormControl";const Zf=L(function(t,n){const r=hu(),o=qj(),i=V("chakra-form__helper-text",t.className);return u.jsx(N.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});Zf.displayName="FormHelperText";function Qj(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=Zj(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":to(n),"aria-required":to(o),"aria-readonly":to(r)}}function Zj(e){const t=hu(),{id:n,disabled:r,readOnly:o,required:i,isRequired:a,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??c??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??a??(t==null?void 0:t.isRequired),isInvalid:s??(t==null?void 0:t.isInvalid),onFocus:le(t==null?void 0:t.onFocus,d),onBlur:le(t==null?void 0:t.onBlur,f)}}const Jj={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function aH(e={}){const t=Zj(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:g,name:y,value:x,tabIndex:b=void 0,"aria-label":v,"aria-labelledby":S,"aria-invalid":w,...k}=e,_=yy(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=ur(h),T=ur(s),A=ur(l),[$,B]=m.useState(!1),[Y,te]=m.useState(!1),[I,K]=m.useState(!1),F=m.useRef(!1);m.useEffect(()=>Yj(ce=>{F.current=ce}),[]);const z=m.useRef(null),[O,R]=m.useState(!0),[D,G]=m.useState(!!d),H=f!==void 0,Q=H?f:D,be=m.useCallback(ce=>{if(r||n){ce.preventDefault();return}H||G(Q?ce.currentTarget.checked:g?!0:ce.currentTarget.checked),C==null||C(ce)},[r,n,Q,H,g,C]);no(()=>{z.current&&(z.current.indeterminate=!!g)},[g]),Ff(()=>{n&&B(!1)},[n,B]),no(()=>{const ce=z.current;if(!(ce!=null&&ce.form))return;const it=()=>{G(!!d)};return ce.form.addEventListener("reset",it),()=>{var We;return(We=ce.form)==null?void 0:We.removeEventListener("reset",it)}},[]);const me=n&&!p,xe=m.useCallback(ce=>{ce.key===" "&&K(!0)},[K]),Fe=m.useCallback(ce=>{ce.key===" "&&K(!1)},[K]);no(()=>{if(!z.current)return;z.current.checked!==Q&&G(z.current.checked)},[z.current]);const fe=m.useCallback((ce={},it=null)=>{const We=Bt=>{$&&Bt.preventDefault(),K(!0)};return{...ce,ref:it,"data-active":oe(I),"data-hover":oe(Y),"data-checked":oe(Q),"data-focus":oe($),"data-focus-visible":oe($&&F.current),"data-indeterminate":oe(g),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r),"aria-hidden":!0,onMouseDown:le(ce.onMouseDown,We),onMouseUp:le(ce.onMouseUp,()=>K(!1)),onMouseEnter:le(ce.onMouseEnter,()=>te(!0)),onMouseLeave:le(ce.onMouseLeave,()=>te(!1))}},[I,Q,n,$,Y,g,i,r]),Z=m.useCallback((ce={},it=null)=>({...ce,ref:it,"data-active":oe(I),"data-hover":oe(Y),"data-checked":oe(Q),"data-focus":oe($),"data-focus-visible":oe($&&F.current),"data-indeterminate":oe(g),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r)}),[I,Q,n,$,Y,g,i,r]),J=m.useCallback((ce={},it=null)=>({..._,...ce,ref:bt(it,We=>{We&&R(We.tagName==="LABEL")}),onClick:le(ce.onClick,()=>{var We;O||((We=z.current)==null||We.click(),requestAnimationFrame(()=>{var Bt;(Bt=z.current)==null||Bt.focus({preventScroll:!0})}))}),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[_,n,Q,i,O]),Pe=m.useCallback((ce={},it=null)=>({...ce,ref:bt(z,it),type:"checkbox",name:y,value:x,id:a,tabIndex:b,onChange:le(ce.onChange,be),onBlur:le(ce.onBlur,T,()=>B(!1)),onFocus:le(ce.onFocus,A,()=>B(!0)),onKeyDown:le(ce.onKeyDown,xe),onKeyUp:le(ce.onKeyUp,Fe),required:o,checked:Q,disabled:me,readOnly:r,"aria-label":v,"aria-labelledby":S,"aria-invalid":w?!!w:i,"aria-describedby":c,"aria-disabled":n,"aria-checked":g?"mixed":Q,style:Jj}),[y,x,a,b,be,T,A,xe,Fe,o,Q,me,r,v,S,w,i,c,n,g]),pe=m.useCallback((ce={},it=null)=>({...ce,ref:it,onMouseDown:le(ce.onMouseDown,sH),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[Q,n,i]);return{state:{isInvalid:i,isFocused:$,isChecked:Q,isActive:I,isHovered:Y,isIndeterminate:g,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:J,getCheckboxProps:fe,getIndicatorProps:Z,getInputProps:Pe,getLabelProps:pe,htmlProps:_}}function sH(e){e.preventDefault(),e.stopPropagation()}const lH=new Set(["dark","light","system"]);function cH(e){let t=e;return lH.has(t)||(t="light"),t}function uH(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=cH(t),i=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?a:s}`.trim()}function dH(e={}){const{nonce:t}=e;return u.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:uH(e)}})}const pr=L(function(t,n){const{className:r,centerContent:o,...i}=Ce(t),a=An("Container",t);return u.jsx(N.div,{ref:n,className:V("chakra-container",r),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});pr.displayName="Container";const Yi=L(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:c,...d}=An("Divider",t),{className:f,orientation:p="horizontal",__css:h,...g}=Ce(t),y={vertical:{borderLeftWidth:r||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return u.jsx(N.hr,{ref:n,"aria-orientation":p,...g,__css:{...d,border:"0",borderColor:c,borderStyle:l,...y[p],...h},className:V("chakra-divider",f)})});Yi.displayName="Divider";const[fH,e$]=ye({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[pH,Ab]=ye({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function Ck(e,t){return e?e===t||e.contains(t):!1}function mH(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:o,value:i,isDisabled:a,defaultValue:s,startWithEditView:l,isPreviewFocusable:c=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:g,...y}=e,x=ur(h),b=!!(l&&!a),[v,S]=m.useState(b),[w,k]=oT({defaultValue:s||"",value:i,onChange:t}),[_,C]=m.useState(w),T=m.useRef(null),A=m.useRef(null),$=m.useRef(null),B=m.useRef(null),Y=m.useRef(null);Dz({ref:T,enabled:v,elements:[B,Y]});const te=!v&&!a;no(()=>{var Z,J;v&&((Z=T.current)==null||Z.focus(),f&&((J=T.current)==null||J.select()))},[]),Ff(()=>{var Z,J,Pe,pe;if(!v){g?(Z=g.current)==null||Z.focus():(J=$.current)==null||J.focus();return}(Pe=T.current)==null||Pe.focus(),f&&((pe=T.current)==null||pe.select()),x==null||x()},[v,x,f]);const I=m.useCallback(()=>{te&&S(!0)},[te]),K=m.useCallback(()=>{C(w)},[w]),F=m.useCallback(()=>{S(!1),k(_),n==null||n(_),o==null||o(_)},[n,o,k,_]),z=m.useCallback(()=>{S(!1),C(w),r==null||r(w),o==null||o(_)},[w,r,o,_]);m.useEffect(()=>{if(v)return;const Z=T.current;(Z==null?void 0:Z.ownerDocument.activeElement)===Z&&(Z==null||Z.blur())},[v]);const O=m.useCallback(Z=>{k(Z.currentTarget.value)},[k]),R=m.useCallback(Z=>{const J=Z.key,pe={Escape:F,Enter:ne=>{!ne.shiftKey&&!ne.metaKey&&z()}}[J];pe&&(Z.preventDefault(),pe(Z))},[F,z]),D=m.useCallback(Z=>{const J=Z.key,pe={Escape:F}[J];pe&&(Z.preventDefault(),pe(Z))},[F]),G=w.length===0,H=m.useCallback(Z=>{if(!v)return;const J=Z.currentTarget.ownerDocument,Pe=Z.relatedTarget??J.activeElement,pe=Ck(B.current,Pe),ne=Ck(Y.current,Pe);!pe&&!ne&&(d?z():F())},[d,z,F,v]),Q=m.useCallback((Z={},J=null)=>{const Pe=te&&c?0:void 0;return{...Z,ref:bt(J,A),children:G?p:w,hidden:v,"aria-disabled":to(a),tabIndex:Pe,onFocus:le(Z.onFocus,I,K)}},[a,v,te,c,G,I,K,p,w]),be=m.useCallback((Z={},J=null)=>({...Z,hidden:!v,placeholder:p,ref:bt(J,T),disabled:a,"aria-disabled":to(a),value:w,onBlur:le(Z.onBlur,H),onChange:le(Z.onChange,O),onKeyDown:le(Z.onKeyDown,R),onFocus:le(Z.onFocus,K)}),[a,v,H,O,R,K,p,w]),me=m.useCallback((Z={},J=null)=>({...Z,hidden:!v,placeholder:p,ref:bt(J,T),disabled:a,"aria-disabled":to(a),value:w,onBlur:le(Z.onBlur,H),onChange:le(Z.onChange,O),onKeyDown:le(Z.onKeyDown,D),onFocus:le(Z.onFocus,K)}),[a,v,H,O,D,K,p,w]),xe=m.useCallback((Z={},J=null)=>({"aria-label":"Edit",...Z,type:"button",onClick:le(Z.onClick,I),ref:bt(J,$),disabled:a}),[I,a]),Fe=m.useCallback((Z={},J=null)=>({...Z,"aria-label":"Submit",ref:bt(Y,J),type:"button",onClick:le(Z.onClick,z),disabled:a}),[z,a]),fe=m.useCallback((Z={},J=null)=>({"aria-label":"Cancel",id:"cancel",...Z,ref:bt(B,J),type:"button",onClick:le(Z.onClick,F),disabled:a}),[F,a]);return{isEditing:v,isDisabled:a,isValueEmpty:G,value:w,onEdit:I,onCancel:F,onSubmit:z,getPreviewProps:Q,getInputProps:be,getTextareaProps:me,getEditButtonProps:xe,getSubmitButtonProps:Fe,getCancelButtonProps:fe,htmlProps:y}}const Ol=L(function(t,n){const r=Ve("Editable",t),o=Ce(t),{htmlProps:i,...a}=mH(o),{isEditing:s,onSubmit:l,onCancel:c,onEdit:d}=a,f=V("chakra-editable",t.className),p=Xt(t.children,{isEditing:s,onSubmit:l,onCancel:c,onEdit:d});return u.jsx(pH,{value:a,children:u.jsx(fH,{value:r,children:u.jsx(N.div,{ref:n,...i,className:f,children:p})})})});Ol.displayName="Editable";const t$={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},Dl=L(function(t,n){const{getInputProps:r}=Ab(),o=e$(),i=r(t,n),a=V("chakra-editable__input",t.className);return u.jsx(N.input,{...i,__css:{outline:0,...t$,...o.input},className:a})});Dl.displayName="EditableInput";const Ll=L(function(t,n){const{getPreviewProps:r}=Ab(),o=e$(),i=r(t,n),a=V("chakra-editable__preview",t.className);return u.jsx(N.span,{...i,__css:{cursor:"text",display:"inline-block",...t$,...o.preview},className:a})});Ll.displayName="EditablePreview";function hH(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=Ab();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function Fl(e){return typeof e=="function"}function gH(...e){return t=>e.reduce((n,r)=>r(n),t)}const vH=e=>function(...n){let r=[...n],o=n[n.length-1];return HF(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,gH(...r.map(i=>a=>Fl(i)?i(a):yH(a,i)))(o)},Ib=vH(Oi);function yH(...e){return Fn({},...e,n$)}function n$(e,t,n,r){if((Fl(e)||Fl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Fl(e)?e(...o):e,a=Fl(t)?t(...o):t;return Fn({},i,a,n$)};if(St(e)&&Jg(t)||Jg(e)&&St(t))return t}const _t=L(function(t,n){const{direction:r,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,...d}=t,f={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c};return u.jsx(N.div,{ref:n,__css:f,...d})});_t.displayName="Flex";function bH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Mv="data-focus-lock",r$="data-focus-lock-disabled",xH="data-no-focus-lock",SH="data-autofocus-inside",wH="data-no-autofocus";function zh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kH(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var CH=typeof window<"u"?m.useLayoutEffect:m.useEffect,Pk=new WeakMap;function o$(e,t){var n=kH(null,function(r){return e.forEach(function(o){return zh(o,r)})});return CH(function(){var r=Pk.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||zh(s,null)}),i.forEach(function(s){o.has(s)||zh(s,a)})}Pk.set(n,e)},[e]),n}var Mh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},jr=function(){return jr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(UH)},GH=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ob=GH.join(","),KH="".concat(Ob,", [data-focus-guard]"),x$=function(e,t){return Fr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?KH:Ob)?[r]:[],x$(r))},[])},XH=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Ds([e.contentDocument.body],t):[e]},Ds=function(e,t){return e.reduce(function(n,r){var o,i=x$(r,t),a=(o=[]).concat.apply(o,i.map(function(s){return XH(s,t)}));return n.concat(a,r.parentNode?Fr(r.parentNode.querySelectorAll(Ob)).filter(function(s){return s===r}):[])},[])},YH=function(e){var t=e.querySelectorAll("[".concat(SH,"]"));return Fr(t).map(function(n){return Ds([n])}).reduce(function(n,r){return n.concat(r)},[])},Db=function(e,t){return Fr(e).filter(function(n){return h$(t,n)}).filter(function(n){return BH(n)})},_k=function(e,t){return t===void 0&&(t=new Map),Fr(e).filter(function(n){return g$(t,n)})},Lb=function(e,t,n){return Nb(Db(Ds(e,n),t),!0,n)},Vc=function(e,t){return Nb(Db(Ds(e),t),!1)},qH=function(e,t){return Db(YH(e),t)},qi=function(e,t){return e.shadowRoot?qi(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Fr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?qi(o,t):!1}return qi(n,t)})},QH=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,s){return!t.has(s)})},S$=function(e){return e.parentNode?S$(e.parentNode):e},Fb=function(e){var t=la(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Mv);return n.push.apply(n,o?QH(Fr(S$(r).querySelectorAll("[".concat(Mv,'="').concat(o,'"]:not([').concat(r$,'="disabled"])')))):[r]),n},[])},ZH=function(e){try{return e()}catch{return}},Wc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Wc(t.shadowRoot):t instanceof HTMLIFrameElement&&ZH(function(){return t.contentWindow.document})?Wc(t.contentWindow.document):t}},JH=function(e,t){return e===t},eG=function(e,t){return!!Fr(e.querySelectorAll("iframe")).some(function(n){return JH(n,t)})},w$=function(e,t){return t===void 0&&(t=Wc(f$(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Fb(e).some(function(n){return qi(n,t)||eG(n,t)})},tG=function(e){e===void 0&&(e=document);var t=Wc(e);return t?Fr(e.querySelectorAll("[".concat(xH,"]"))).some(function(n){return qi(n,t)}):!1},nG=function(e,t){return t.filter(b$).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Bb=function(e,t){return b$(e)&&e.name?nG(e,t):e},rG=function(e){var t=new Set;return e.forEach(function(n){return t.add(Bb(n,e))}),e.filter(function(n){return t.has(n)})},Tk=function(e){return e[0]&&e.length>1?Bb(e[0],e):e[0]},Ek=function(e,t){return e.indexOf(Bb(t,e))},Dv="NEW_FOCUS",oG=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=Mb(r);if(!(r&&e.indexOf(r)>=0)){var c=r!==void 0?n.indexOf(r):-1,d=o?n.indexOf(o):c,f=o?e.indexOf(o):-1;if(c===-1)return f!==-1?f:Dv;if(f===-1)return Dv;var p=c-d,h=n.indexOf(a),g=n.indexOf(s),y=rG(n),x=r!==void 0?y.indexOf(r):-1,b=o?y.indexOf(o):x,v=y.filter(function(T){return T.tabIndex>=0}),S=r!==void 0?v.indexOf(r):-1,w=o?v.indexOf(o):S,k=S>=0&&w>=0?w-S:b-x;if(!p&&f>=0||t.length===0)return f;var _=Ek(e,t[0]),C=Ek(e,t[t.length-1]);if(c<=h&&l&&Math.abs(p)>1)return C;if(c>=g&&l&&Math.abs(p)>1)return _;if(p&&Math.abs(k)>1)return f;if(c<=h)return C;if(c>g)return _;if(p)return Math.abs(p)>1?f:(i+f+p)%i}},iG=function(e){return function(t){var n,r=(n=v$(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},jk=function(e,t,n){var r=e.map(function(i){var a=i.node;return a}),o=_k(r.filter(iG(n)));return o&&o.length?Tk(o):Tk(_k(t))},Lv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Lv(e.parentNode.host||e.parentNode,t),t},Nh=function(e,t){for(var n=Lv(e),r=Lv(t),o=0;o=0)return i}return!1},k$=function(e,t,n){var r=la(e),o=la(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(s){a=Nh(a||s,s)||a,n.filter(Boolean).forEach(function(l){var c=Nh(i,l);c&&(!a||qi(c,a)?a=c:a=Nh(c,a))})}),a},$k=function(e,t){return e.reduce(function(n,r){return n.concat(qH(r,t))},[])},aG=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(WH)},sG=function(e,t){var n=Wc(la(e).length>0?document:f$(e).ownerDocument),r=Fb(e).filter(Ov),o=k$(n||e,e,r),i=new Map,a=Vc(r,i),s=a.filter(function(g){var y=g.node;return Ov(y)});if(s[0]){var l=Vc([o],i).map(function(g){var y=g.node;return y}),c=aG(l,s),d=c.map(function(g){var y=g.node;return y}),f=c.filter(function(g){var y=g.tabIndex;return y>=0}).map(function(g){var y=g.node;return y}),p=oG(d,f,l,n,t);if(p===Dv){var h=jk(a,f,$k(r,i))||jk(a,d,$k(r,i));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:c[p]}},lG=function(e){var t=Fb(e).filter(Ov),n=k$(e,e,t),r=Nb(Ds([n],!0),!0,!0),o=Ds(t,!1);return r.map(function(i){var a=i.node,s=i.index;return{node:a,index:s,lockItem:o.indexOf(a)>=0,guard:Mb(a)}})},Vb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Oh=0,Dh=!1,C$=function(e,t,n){n===void 0&&(n={});var r=sG(e,t);if(!Dh&&r){if(Oh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Dh=!0,setTimeout(function(){Dh=!1},1);return}Oh++,Vb(r.node,n.focusOptions),Oh--}};function Sl(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var cG=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Sl(n),parent:Sl(n.parentElement),left:Sl(n.previousElementSibling),right:Sl(n.nextElementSibling)}),n=n.parentElement;return{element:Sl(e),stack:t,ownerDocument:e.ownerDocument}},uG=function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,c=0,d=a;c-1&&(x.filter(function(v){var S=v.guard,w=v.node;return S&&w.dataset.focusAutoGuard}).forEach(function(v){var S=v.node;return S.removeAttribute("tabIndex")}),Ik(b,x.length,1,x),Ik(b,-1,-1,x))}}}return t},$$=function(t){Jf()&&t&&(t.stopPropagation(),t.preventDefault())},Hb=function(){return Wb(Jf)},EG=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||wG(r,n)},jG=function(){return null},A$=function(){Ub=!0},I$=function(){Ub=!1,Uc="just",Wb(function(){Uc="meanwhile"})},$G=function(){document.addEventListener("focusin",$$),document.addEventListener("focusout",Hb),window.addEventListener("focus",A$),window.addEventListener("blur",I$)},AG=function(){document.removeEventListener("focusin",$$),document.removeEventListener("focusout",Hb),window.removeEventListener("focus",A$),window.removeEventListener("blur",I$)};function IG(e){return e.filter(function(t){var n=t.disabled;return!n})}var R$={moveFocusInside:C$,focusInside:w$,focusNextElement:mG,focusPrevElement:hG,focusFirstElement:gG,focusLastElement:vG,captureFocusRestore:P$};function RG(e){var t=e.slice(-1)[0];t&&!xs&&$G();var n=xs,r=n&&t&&t.id===n.id;xs=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(an=null,(!r||n.observed!==t.observed)&&t.onActivation(R$),Jf(),Wb(Jf)):(AG(),an=null)}u$.assignSyncMedium(EG);d$.assignMedium(Hb);TH.assignMedium(function(e){return e(R$)});const zG=MH(IG,RG)(jG);var Fv=m.forwardRef(function(t,n){return Rt.createElement(zb,aa({sideCar:zG,ref:n},t))}),z$=zb.propTypes||{};z$.sideCar;bH(z$,["sideCar"]);Fv.propTypes={};const MG=Fv.default??Fv,M$=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&wz(r.current).length===0&&requestAnimationFrame(()=>{var g;(g=r.current)==null||g.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=o&&!n;return u.jsx(MG,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};M$.displayName="FocusLock";const Te=L(function(t,n){const r=An("FormLabel",t),o=Ce(t),{className:i,children:a,requiredIndicator:s=u.jsx(N$,{}),optionalIndicator:l=null,...c}=o,d=hu(),f=(d==null?void 0:d.getLabelProps(c,n))??{ref:n,...c};return u.jsxs(N.label,{...f,className:V("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?s:l]})});Te.displayName="FormLabel";const N$=L(function(t,n){const r=hu(),o=qj();if(!(r!=null&&r.isRequired))return null;const i=V("chakra-form__required-indicator",t.className);return u.jsx(N.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});N$.displayName="RequiredIndicator";const O$=L(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:c,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...g}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return u.jsx(N.div,{ref:n,__css:y,...g})});O$.displayName="Grid";const ca=L(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:a,minChildWidth:s,...l}=t,c=yo(),d=s?OG(s,c):DG(r);return u.jsx(O$,{ref:n,gap:a,columnGap:o,rowGap:i,templateColumns:d,...l})});ca.displayName="SimpleGrid";function NG(e){return typeof e=="number"?`${e}px`:e}function OG(e,t){return by(e,n=>{const r=iU("sizes",n,NG(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function DG(e){return by(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function qp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=m.Children.toArray(e.path),a=L((s,l)=>u.jsx(wt,{ref:l,viewBox:t,...o,...s,children:i.length?i:u.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const ft=L(function(t,n){const{htmlSize:r,...o}=t,i=Ve("Input",o),a=Ce(o),s=Qj(a),l=V("chakra-input",t.className);return u.jsx(N.input,{size:r,...s,__css:i.field,ref:n,className:l})});ft.displayName="Input";ft.id="Input";const[LG,FG]=ye({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Gb=L(function(t,n){const r=Ve("Input",t),{children:o,className:i,...a}=Ce(t),s=V("chakra-input__group",i),l={},c=gy(o),d=r.field;c.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=c.map(p=>{var g,y;const h=vy({size:((g=p.props)==null?void 0:g.size)||t.size,variant:((y=p.props)==null?void 0:y.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,l,p.props))});return u.jsx(N.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:u.jsx(LG,{value:r,children:f})})});Gb.displayName="InputGroup";const BG=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Qp=L(function(t,n){const{placement:r="left",...o}=t,i=FG(),a=i.field,l={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...i.element};return u.jsx(BG,{ref:n,__css:l,...o})});Qp.id="InputElement";Qp.displayName="InputElement";const Kb=L(function(t,n){const{className:r,...o}=t,i=V("chakra-input__left-element",r);return u.jsx(Qp,{ref:n,placement:"left",className:i,...o})});Kb.id="InputLeftElement";Kb.displayName="InputLeftElement";const Zp=L(function(t,n){const{className:r,...o}=t,i=V("chakra-input__right-element",r);return u.jsx(Qp,{ref:n,placement:"right",className:i,...o})});Zp.id="InputRightElement";Zp.displayName="InputRightElement";const va=L(function(t,n){const r=An("Link",t),{className:o,isExternal:i,...a}=Ce(t);return u.jsx(N.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:V("chakra-link",o),...a,__css:r})});va.displayName="Link";const[VG,D$]=ye({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Jp=L(function(t,n){const r=Ve("List",t),{children:o,styleType:i="none",stylePosition:a,spacing:s,...l}=Ce(t),c=gy(o),f=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return u.jsx(VG,{value:r,children:u.jsx(N.ul,{ref:n,listStyleType:i,listStylePosition:a,role:"list",__css:{...r.container,...f},...l,children:c})})});Jp.displayName="List";const WG=L((e,t)=>{const{as:n,...r}=e;return u.jsx(Jp,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});WG.displayName="OrderedList";const UG=L(function(t,n){const{as:r,...o}=t;return u.jsx(Jp,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});UG.displayName="UnorderedList";const L$=L(function(t,n){const r=D$();return u.jsx(N.li,{ref:n,...t,__css:r.item})});L$.displayName="ListItem";const HG=L(function(t,n){const r=D$();return u.jsx(wt,{ref:n,role:"presentation",...t,__css:r.icon})});HG.displayName="ListIcon";function GG(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=i9(),i=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(c=>c!=null);const[s,l]=m.useState(()=>i.map((c,d)=>({media:c,matches:n?!!a[d]:o().matchMedia(c).matches})));return m.useEffect(()=>{const c=o();l(i.map(p=>({media:p,matches:c.matchMedia(p).matches})));const d=i.map(p=>c.matchMedia(p)),f=p=>{l(h=>h.slice().map(g=>g.media===p.media?{...g,matches:p.matches}:g))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[o]),s.map(c=>c.matches)}function KG(e){var s;const t=St(e)?e:{fallback:e??"base"},r=yo().__breakpoints.details.map(({minMaxQuery:l,breakpoint:c})=>({breakpoint:c,query:l.replace("@media screen and ","")})),o=r.map(l=>l.breakpoint===t.fallback),a=GG(r.map(l=>l.query),{fallback:o,ssr:t.ssr}).findIndex(l=>l==!0);return((s=r[a])==null?void 0:s.breakpoint)??t.fallback}function XG(e,t,n=tT){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function ep(e,t){var s;const n=St(t)?t:{fallback:t??"base"},r=KG(n),o=yo();if(!r)return;const i=Array.from(((s=o.__breakpoints)==null?void 0:s.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(_z(e,i)).map(([l,c])=>[l,c])):e;return XG(a,r,i)}var pn="top",Kn="bottom",Xn="right",mn="left",Xb="auto",gu=[pn,Kn,Xn,mn],Ls="start",Hc="end",YG="clippingParents",F$="viewport",wl="popper",qG="reference",Rk=gu.reduce(function(e,t){return e.concat([t+"-"+Ls,t+"-"+Hc])},[]),B$=[].concat(gu,[Xb]).reduce(function(e,t){return e.concat([t,t+"-"+Ls,t+"-"+Hc])},[]),QG="beforeRead",ZG="read",JG="afterRead",eK="beforeMain",tK="main",nK="afterMain",rK="beforeWrite",oK="write",iK="afterWrite",aK=[QG,ZG,JG,eK,tK,nK,rK,oK,iK];function Lr(e){return e?(e.nodeName||"").toLowerCase():null}function _n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){var t=_n(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=_n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yb(e){if(typeof ShadowRoot>"u")return!1;var t=_n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Vn(i)||!Lr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Vn(o)||!Lr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cK={name:"applyStyles",enabled:!0,phase:"write",fn:sK,effect:lK,requires:["computeStyles"]};function Dr(e){return e.split("-")[0]}var Qi=Math.max,tp=Math.min,Fs=Math.round;function Bv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function V$(){return!/^((?!chrome|android).)*safari/i.test(Bv())}function Bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Vn(e)&&(o=e.offsetWidth>0&&Fs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fs(r.height)/e.offsetHeight||1);var a=ua(e)?_n(e):window,s=a.visualViewport,l=!V$()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,d=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function qb(e){var t=Bs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return _n(e).getComputedStyle(e)}function uK(e){return["table","td","th"].indexOf(Lr(e))>=0}function hi(e){return((ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return Lr(e)==="html"?e:e.assignedSlot||e.parentNode||(Yb(e)?e.host:null)||hi(e)}function zk(e){return!Vn(e)||po(e).position==="fixed"?null:e.offsetParent}function dK(e){var t=/firefox/i.test(Bv()),n=/Trident/i.test(Bv());if(n&&Vn(e)){var r=po(e);if(r.position==="fixed")return null}var o=em(e);for(Yb(o)&&(o=o.host);Vn(o)&&["html","body"].indexOf(Lr(o))<0;){var i=po(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function vu(e){for(var t=_n(e),n=zk(e);n&&uK(n)&&po(n).position==="static";)n=zk(n);return n&&(Lr(n)==="html"||Lr(n)==="body"&&po(n).position==="static")?t:n||dK(e)||t}function Qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sc(e,t,n){return Qi(e,tp(t,n))}function fK(e,t,n){var r=sc(e,t,n);return r>n?n:r}function U$(){return{top:0,right:0,bottom:0,left:0}}function H$(e){return Object.assign({},U$(),e)}function G$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H$(typeof t!="number"?t:G$(t,gu))};function mK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dr(n.placement),l=Qb(s),c=[mn,Xn].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=pK(o.padding,n),p=qb(i),h=l==="y"?pn:mn,g=l==="y"?Kn:Xn,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],b=vu(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,w=f[h],k=v-p[d]-f[g],_=v/2-p[d]/2+S,C=sc(w,_,k),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-_,t)}}function hK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||W$(t.elements.popper,o)&&(t.elements.arrow=o))}const gK={name:"arrow",enabled:!0,phase:"main",fn:mK,effect:hK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var vK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fs(n*o)/o||0,y:Fs(r*o)/o||0}}function Mk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,y=g===void 0?0:g,x=typeof d=="function"?d({x:h,y}):{x:h,y};h=x.x,y=x.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=mn,w=pn,k=window;if(c){var _=vu(n),C="clientHeight",T="clientWidth";if(_===_n(n)&&(_=hi(n),po(_).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),_=_,o===pn||(o===mn||o===Xn)&&i===Hc){w=Kn;var A=f&&_===k&&k.visualViewport?k.visualViewport.height:_[C];y-=A-r.height,y*=l?1:-1}if(o===mn||(o===pn||o===Kn)&&i===Hc){S=Xn;var $=f&&_===k&&k.visualViewport?k.visualViewport.width:_[T];h-=$-r.width,h*=l?1:-1}}var B=Object.assign({position:s},c&&vK),Y=d===!0?yK({x:h,y},_n(n)):{x:h,y};if(h=Y.x,y=Y.y,l){var te;return Object.assign({},B,(te={},te[w]=v?"0":"",te[S]=b?"0":"",te.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",te))}return Object.assign({},B,(t={},t[w]=v?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function bK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Dr(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bK,data:{}};var dd={passive:!0};function SK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=_n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,dd)}),s&&l.addEventListener("resize",n.update,dd),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,dd)}),s&&l.removeEventListener("resize",n.update,dd)}}const wK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SK,data:{}};var kK={left:"right",right:"left",bottom:"top",top:"bottom"};function rf(e){return e.replace(/left|right|bottom|top/g,function(t){return kK[t]})}var CK={start:"end",end:"start"};function Nk(e){return e.replace(/start|end/g,function(t){return CK[t]})}function Zb(e){var t=_n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jb(e){return Bs(hi(e)).left+Zb(e).scrollLeft}function PK(e,t){var n=_n(e),r=hi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=V$();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Jb(e),y:l}}function _K(e){var t,n=hi(e),r=Zb(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Qi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Qi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Jb(e),l=-r.scrollTop;return po(o||n).direction==="rtl"&&(s+=Qi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function e1(e){var t=po(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function K$(e){return["html","body","#document"].indexOf(Lr(e))>=0?e.ownerDocument.body:Vn(e)&&e1(e)?e:K$(em(e))}function lc(e,t){var n;t===void 0&&(t=[]);var r=K$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=_n(r),a=o?[i].concat(i.visualViewport||[],e1(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lc(em(a)))}function Vv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function TK(e,t){var n=Bs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ok(e,t,n){return t===F$?Vv(PK(e,n)):ua(t)?TK(t,n):Vv(_K(hi(e)))}function EK(e){var t=lc(em(e)),n=["absolute","fixed"].indexOf(po(e).position)>=0,r=n&&Vn(e)?vu(e):e;return ua(r)?t.filter(function(o){return ua(o)&&W$(o,r)&&Lr(o)!=="body"}):[]}function jK(e,t,n,r){var o=t==="clippingParents"?EK(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var d=Ok(e,c,r);return l.top=Qi(d.top,l.top),l.right=tp(d.right,l.right),l.bottom=tp(d.bottom,l.bottom),l.left=Qi(d.left,l.left),l},Ok(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?Dr(r):null,i=r?Vs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case pn:l={x:a,y:t.y-n.height};break;case Kn:l={x:a,y:t.y+t.height};break;case Xn:l={x:t.x+t.width,y:s};break;case mn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Qb(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Ls:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Hc:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Gc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YG:s,c=n.rootBoundary,d=c===void 0?F$:c,f=n.elementContext,p=f===void 0?wl:f,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,b=H$(typeof x!="number"?x:G$(x,gu)),v=p===wl?qG:wl,S=e.rects.popper,w=e.elements[g?v:p],k=jK(ua(w)?w:w.contextElement||hi(e.elements.popper),l,d,a),_=Bs(e.elements.reference),C=X$({reference:_,element:S,placement:o}),T=Vv(Object.assign({},S,C)),A=p===wl?T:_,$={top:k.top-A.top+b.top,bottom:A.bottom-k.bottom+b.bottom,left:k.left-A.left+b.left,right:A.right-k.right+b.right},B=e.modifiersData.offset;if(p===wl&&B){var Y=B[o];Object.keys($).forEach(function(te){var I=[Xn,Kn].indexOf(te)>=0?1:-1,K=[pn,Kn].indexOf(te)>=0?"y":"x";$[te]+=Y[K]*I})}return $}function $K(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?B$:l,d=Vs(r),f=d?s?Rk:Rk.filter(function(g){return Vs(g)===d}):gu,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,y){return g[y]=Gc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Dr(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function AK(e){if(Dr(e)===Xb)return[];var t=rf(e);return[Nk(e),t,Nk(t)]}function IK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,b=Dr(x),v=b===x,S=l||(v||!g?[rf(x)]:AK(x)),w=[x].concat(S).reduce(function(be,me){return be.concat(Dr(me)===Xb?$K(t,{placement:me,boundary:d,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:y}):me)},[]),k=t.rects.reference,_=t.rects.popper,C=new Map,T=!0,A=w[0],$=0;$=0,K=I?"width":"height",F=Gc(t,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),z=I?te?Xn:mn:te?Kn:pn;k[K]>_[K]&&(z=rf(z));var O=rf(z),R=[];if(i&&R.push(F[Y]<=0),s&&R.push(F[z]<=0,F[O]<=0),R.every(function(be){return be})){A=B,T=!1;break}C.set(B,R)}if(T)for(var D=g?3:1,G=function(me){var xe=w.find(function(Fe){var fe=C.get(Fe);if(fe)return fe.slice(0,me).every(function(Z){return Z})});if(xe)return A=xe,"break"},H=D;H>0;H--){var Q=G(H);if(Q==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const RK={name:"flip",enabled:!0,phase:"main",fn:IK,requiresIfExists:["offset"],data:{_skip:!1}};function Dk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lk(e){return[pn,Xn,Kn,mn].some(function(t){return e[t]>=0})}function zK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Gc(t,{elementContext:"reference"}),s=Gc(t,{altBoundary:!0}),l=Dk(a,r),c=Dk(s,o,i),d=Lk(l),f=Lk(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const MK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zK};function NK(e,t,n){var r=Dr(e),o=[mn,pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[mn,Xn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function OK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=B$.reduce(function(d,f){return d[f]=NK(f,t.rects,i),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const DK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:OK};function LK(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const FK={name:"popperOffsets",enabled:!0,phase:"read",fn:LK,data:{}};function BK(e){return e==="x"?"y":"x"}function VK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,x=Gc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),b=Dr(t.placement),v=Vs(t.placement),S=!v,w=Qb(b),k=BK(w),_=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(_){if(i){var te,I=w==="y"?pn:mn,K=w==="y"?Kn:Xn,F=w==="y"?"height":"width",z=_[w],O=z+x[I],R=z-x[K],D=h?-T[F]/2:0,G=v===Ls?C[F]:T[F],H=v===Ls?-T[F]:-C[F],Q=t.elements.arrow,be=h&&Q?qb(Q):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U$(),xe=me[I],Fe=me[K],fe=sc(0,C[F],be[F]),Z=S?C[F]/2-D-fe-xe-$.mainAxis:G-fe-xe-$.mainAxis,J=S?-C[F]/2+D+fe+Fe+$.mainAxis:H+fe+Fe+$.mainAxis,Pe=t.elements.arrow&&vu(t.elements.arrow),pe=Pe?w==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,ne=(te=B==null?void 0:B[w])!=null?te:0,ce=z+Z-ne-pe,it=z+J-ne,We=sc(h?tp(O,ce):O,z,h?Qi(R,it):R);_[w]=We,Y[w]=We-z}if(s){var Bt,vr=w==="x"?pn:mn,Yn=w==="x"?Kn:Xn,Qt=_[k],ko=k==="y"?"height":"width",bi=Qt+x[vr],qn=Qt-x[Yn],Sa=[pn,mn].indexOf(b)!==-1,rl=(Bt=B==null?void 0:B[k])!=null?Bt:0,Tu=Sa?bi:Qt-C[ko]-T[ko]-rl+$.altAxis,Eu=Sa?Qt+C[ko]+T[ko]-rl-$.altAxis:qn,xi=h&&Sa?fK(Tu,Qt,Eu):sc(h?Tu:bi,Qt,h?Eu:qn);_[k]=xi,Y[k]=xi-Qt}t.modifiersData[r]=Y}}const WK={name:"preventOverflow",enabled:!0,phase:"main",fn:VK,requiresIfExists:["offset"]};function UK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HK(e){return e===_n(e)||!Vn(e)?Zb(e):UK(e)}function GK(e){var t=e.getBoundingClientRect(),n=Fs(t.width)/e.offsetWidth||1,r=Fs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function KK(e,t,n){n===void 0&&(n=!1);var r=Vn(t),o=Vn(t)&&GK(t),i=hi(t),a=Bs(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Lr(t)!=="body"||e1(i))&&(s=HK(t)),Vn(t)?(l=Bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Jb(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function XK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function YK(e){var t=XK(e);return aK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Fk={placement:"bottom",modifiers:[],strategy:"absolute"};function Bk(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Nt={arrowShadowColor:Ta("--popper-arrow-shadow-color"),arrowSize:Ta("--popper-arrow-size","8px"),arrowSizeHalf:Ta("--popper-arrow-size-half"),arrowBg:Ta("--popper-arrow-bg"),transformOrigin:Ta("--popper-transform-origin"),arrowOffset:Ta("--popper-arrow-offset")};function tX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const nX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},rX=e=>nX[e],Vk={scroll:!0,resize:!0};function oX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Vk,...e}}:t={enabled:e,options:Vk},t}const iX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},aX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Wk(e)},effect:({state:e})=>()=>{Wk(e)}},Wk=e=>{e.elements.popper.style.setProperty(Nt.transformOrigin.var,rX(e.placement))},sX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{lX(e)}},lX=e=>{var n;if(!e.placement)return;const t=cX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Nt.arrowSize.varRef,height:Nt.arrowSize.varRef,zIndex:-1});const r={[Nt.arrowSizeHalf.var]:`calc(${Nt.arrowSize.varRef} / 2 - 1px)`,[Nt.arrowOffset.var]:`calc(${Nt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},cX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Nt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Nt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Nt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Nt.arrowOffset.varRef}},uX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Uk(e)},effect:({state:e})=>()=>{Uk(e)}},Uk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=tX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Nt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},dX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},fX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function pX(e,t="ltr"){var r;const n=((r=dX[e])==null?void 0:r[t])||e;return t==="ltr"?n:fX[e]??n}function mX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,g=m.useRef(null),y=m.useRef(null),x=m.useRef(null),b=pX(r,h),v=m.useRef(()=>{}),S=m.useCallback(()=>{var $;!t||!g.current||!y.current||(($=v.current)==null||$.call(v),x.current=eX(g.current,y.current,{placement:b,modifiers:[uX,sX,aX,{...iX,enabled:!!p},{name:"eventListeners",...oX(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:o}),x.current.forceUpdate(),v.current=x.current.destroy)},[b,t,n,p,a,i,s,l,c,f,d,o]);m.useEffect(()=>()=>{var $;!g.current&&!y.current&&(($=x.current)==null||$.destroy(),x.current=null)},[]);const w=m.useCallback($=>{g.current=$,S()},[S]),k=m.useCallback(($={},B=null)=>({...$,ref:bt(w,B)}),[w]),_=m.useCallback($=>{y.current=$,S()},[S]),C=m.useCallback(($={},B=null)=>({...$,ref:bt(_,B),style:{...$.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,_,p]),T=m.useCallback(($={},B=null)=>{const{size:Y,shadowColor:te,bg:I,style:K,...F}=$;return{...F,ref:B,"data-popper-arrow":"",style:hX($)}},[]),A=m.useCallback(($={},B=null)=>({...$,ref:B,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=x.current)==null||$.update()},forceUpdate(){var $;($=x.current)==null||$.forceUpdate()},transformOrigin:Nt.transformOrigin.varRef,referenceRef:w,popperRef:_,getPopperProps:C,getArrowProps:T,getArrowInnerProps:A,getReferenceProps:k}}function hX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}const[Ase,Ise,Rse,zse]=RU(),[Mse,gX]=ye({strict:!1,name:"MenuContext"});var vX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ea=new WeakMap,fd=new WeakMap,pd={},Lh=0,Y$=function(e){return e&&(e.host||Y$(e.parentNode))},yX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Y$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bX=function(e,t,n,r){var o=yX(t,Array.isArray(e)?e:[e]);pd[n]||(pd[n]=new WeakMap);var i=pd[n],a=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),g=h!==null&&h!=="false",y=(Ea.get(p)||0)+1,x=(i.get(p)||0)+1;Ea.set(p,y),i.set(p,x),a.push(p),y===1&&g&&fd.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),s.clear(),Lh++,function(){a.forEach(function(f){var p=Ea.get(f)-1,h=i.get(f)-1;Ea.set(f,p),i.set(f,h),p||(fd.has(f)||f.removeAttribute(r),fd.delete(f)),h||f.removeAttribute(n)}),Lh--,Lh||(Ea=new WeakMap,Ea=new WeakMap,fd=new WeakMap,pd={})}},xX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=vX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bX(r,o,n,"aria-hidden")):function(){return null}},SX=Object.defineProperty,wX=(e,t,n)=>t in e?SX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kX=(e,t,n)=>(wX(e,t+"",n),n);class CX{constructor(){kX(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Wv=new CX;function q$(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const o=e.current;if(o){if(t){const i=Wv.add(o);r(i)}return()=>{Wv.remove(o),r(0)}}},[t,e]),n}function PX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,c=m.useRef(null),d=m.useRef(null),[f,p,h]=TX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");_X(c,t&&a);const g=q$(c,t),y=m.useRef(null),x=m.useCallback(A=>{y.current=A.target},[]),b=m.useCallback(A=>{A.key==="Escape"&&(A.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[v,S]=m.useState(!1),[w,k]=m.useState(!1),_=m.useCallback((A={},$=null)=>({role:"dialog",...A,ref:bt($,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?p:void 0,"aria-describedby":w?h:void 0,onClick:le(A.onClick,B=>B.stopPropagation())}),[h,w,f,p,v]),C=m.useCallback(A=>{A.stopPropagation(),y.current===A.target&&Wv.isTopModal(c.current)&&(o&&(n==null||n()),s==null||s())},[n,o,s]),T=m.useCallback((A={},$=null)=>({...A,ref:bt($,d),onClick:le(A.onClick,C),onKeyDown:le(A.onKeyDown,b),onMouseDown:le(A.onMouseDown,x)}),[b,x,C]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:c,overlayRef:d,getDialogProps:_,getDialogContainerProps:T,index:g}}function _X(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return xX(e.current)},[t,e,n])}function TX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}const[EX,ya]=ye({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[jX,ai]=ye({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),tm=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:y}=t,x=Ve("Modal",t),v={...PX(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return u.jsx(jX,{value:v,children:u.jsx(EX,{value:x,children:u.jsx(vo,{...g,onExitComplete:y,children:v.isOpen&&u.jsx(Js,{...n,children:r})})})})};tm.displayName="Modal";var of="right-scroll-bar-position",af="width-before-scroll-bar",$X="with-scroll-bars-hidden",AX="--removed-body-scroll-bar-size",Q$=l$(),Fh=function(){},nm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Fh,onWheelCapture:Fh,onTouchMoveCapture:Fh}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,S=e.gapMode,w=i$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,_=o$([n,t]),C=jr(jr({},w),o);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:Q$,removeScrollBar:c,shards:f,noRelative:h,noIsolation:g,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(s),jr(jr({},C),{ref:_})):m.createElement(v,jr({},C,{className:l,ref:_}),s))});nm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nm.classNames={fullWidth:af,zeroRight:of};var IX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IX();return t&&e.setAttribute("nonce",t),e}function zX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function MX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var NX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=RX())&&(zX(t,n),MX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},OX=function(){var e=NX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Z$=function(){var e=OX(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},DX={left:0,top:0,right:0,gap:0},Bh=function(e){return parseInt(e||"",10)||0},LX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bh(n),Bh(r),Bh(o)]},FX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DX;var t=LX(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])}},BX=Z$(),ws="data-scroll-locked",VX=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat($X,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body[`).concat(ws,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(of,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(af,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(of," .").concat(of,` { + right: 0 `).concat(r,`; + } + + .`).concat(af," .").concat(af,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(ws,`] { + `).concat(AX,": ").concat(s,`px; + } +`)},Hk=function(){var e=parseInt(document.body.getAttribute(ws)||"0",10);return isFinite(e)?e:0},WX=function(){m.useEffect(function(){return document.body.setAttribute(ws,(Hk()+1).toString()),function(){var e=Hk()-1;e<=0?document.body.removeAttribute(ws):document.body.setAttribute(ws,e.toString())}},[])},UX=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;WX();var i=m.useMemo(function(){return FX(o)},[o]);return m.createElement(BX,{styles:VX(i,!t,o,n?"":"!important")})},Uv=!1;if(typeof window<"u")try{var md=Object.defineProperty({},"passive",{get:function(){return Uv=!0,!0}});window.addEventListener("test",md,md),window.removeEventListener("test",md,md)}catch{Uv=!1}var ja=Uv?{passive:!1}:!1,HX=function(e){return e.tagName==="TEXTAREA"},J$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!HX(e)&&n[t]==="visible")},GX=function(e){return J$(e,"overflowY")},KX=function(e){return J$(e,"overflowX")},Gk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=e5(e,r);if(o){var i=t5(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},XX=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YX=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},e5=function(e,t){return e==="v"?GX(t):KX(t)},t5=function(e,t){return e==="v"?XX(t):YX(t)},qX=function(e,t){return e==="h"&&t==="rtl"?-1:1},QX=function(e,t,n,r,o){var i=qX(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=t5(e,s),g=h[0],y=h[1],x=h[2],b=y-x-i*g;(g||b)&&e5(e,s)&&(f+=b,p+=g);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},hd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kk=function(e){return[e.deltaX,e.deltaY]},Xk=function(e){return e&&"current"in e?e.current:e},ZX=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JX=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},eY=0,$a=[];function tY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(eY++)[0],i=m.useState(Z$)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=PH([e.lockRef.current],(e.shards||[]).map(Xk),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var b=hd(y),v=n.current,S="deltaX"in y?y.deltaX:v[0]-b[0],w="deltaY"in y?y.deltaY:v[1]-b[1],k,_=y.target,C=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in y&&C==="h"&&_.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,$=A?A===_||A.contains(_):!1;if($)return!1;var B=Gk(C,_);if(!B)return!0;if(B?k=C:(k=C==="v"?"h":"v",B=Gk(C,_)),!B)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=k),!k)return!0;var Y=r.current||k;return QX(Y,x,y,Y==="h"?S:w)},[]),l=m.useCallback(function(y){var x=y;if(!(!$a.length||$a[$a.length-1]!==i)){var b="deltaY"in x?Kk(x):hd(x),v=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&ZX(k.delta,b)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(a.current.shards||[]).map(Xk).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?s(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),c=m.useCallback(function(y,x,b,v){var S={name:y,delta:x,target:b,should:v,shadowParent:nY(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(y){n.current=hd(y),r.current=void 0},[]),f=m.useCallback(function(y){c(y.type,Kk(y),y.target,s(y,e.lockRef.current))},[]),p=m.useCallback(function(y){c(y.type,hd(y),y.target,s(y,e.lockRef.current))},[]);m.useEffect(function(){return $a.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ja),document.addEventListener("touchmove",l,ja),document.addEventListener("touchstart",d,ja),function(){$a=$a.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,ja),document.removeEventListener("touchmove",l,ja),document.removeEventListener("touchstart",d,ja)}},[]);var h=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:JX(o)}):null,h?m.createElement(UX,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rY=_H(Q$,tY);var n5=m.forwardRef(function(e,t){return m.createElement(nm,jr({},e,{ref:t,sideCar:rY}))});n5.classNames=nm.classNames;function r5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=ai(),[p,h]=Hy();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const g=q$(r,f);return u.jsx(M$,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:u.jsx(n5,{removeScrollBar:!c,allowPinchZoom:a,enabled:g===1&&i,forwardProps:!0,children:e.children})})}const oY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??dr.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Fo={initial:"initial",animate:"enter",exit:"exit",variants:oY},iY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,g=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:d,delay:f};return u.jsx(vo,{...p,custom:x,children:g&&u.jsx($n.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...Fo,animate:y,...h})})});iY.displayName="SlideFade";const aY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??dr.enter(Xi.enter,n),transitionEnd:e==null?void 0:e.enter})},t1={initial:"exit",animate:"enter",exit:"exit",variants:aY},sY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:d,animatePresenceProps:f,...p}=t,h=r?o&&r:!0,g=o||r?"enter":"exit",y={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:d};return u.jsx(vo,{...f,custom:y,children:h&&u.jsx($n.div,{ref:n,className:V("chakra-offset-slide",s),...t1,animate:g,custom:y,...p})})});sY.displayName="ScaleFade";const lY={slideInBottom:{...Fo,custom:{offsetY:16,reverse:!0}},slideInRight:{...Fo,custom:{offsetX:16,reverse:!0}},slideInTop:{...Fo,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Fo,custom:{offsetX:-16,reverse:!0}},scale:{...t1,custom:{initialScale:.95,reverse:!0}},none:{}},cY=N($n.section),uY=e=>lY[e||"none"],o5=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=uY(n),...o}=e;return u.jsx(cY,{ref:t,...r,...o})});o5.displayName="ModalTransition";const n1=L((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=ai(),c=s(a,t),d=l(o),f=V("chakra-modal__content",n),p=ya(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:y}=ai();return u.jsx(r5,{children:u.jsx(N.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:u.jsx(o5,{preset:y,motionProps:i,className:f,...c,__css:h,children:r})})})});n1.displayName="ModalContent";const yu=L((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__body",n),s=ya();return u.jsx(N.div,{ref:t,className:a,id:o,...r,__css:s.body})});yu.displayName="ModalBody";const rm=L((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=ai(),a=V("chakra-modal__close-btn",r),s=ya();return u.jsx(Xp,{ref:t,__css:s.closeButton,className:a,onClick:le(n,l=>{l.stopPropagation(),i()}),...o})});rm.displayName="ModalCloseButton";const r1=L((e,t)=>{const{className:n,...r}=e,o=V("chakra-modal__footer",n),i=ya(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return u.jsx(N.footer,{ref:t,...r,__css:a,className:o})});r1.displayName="ModalFooter";const bu=L((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__header",n),s=ya(),l={flex:0,...s.header};return u.jsx(N.header,{ref:t,className:a,id:o,...r,__css:l})});bu.displayName="ModalHeader";const dY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??dr.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??dr.exit(Xi.exit,n),transitionEnd:t==null?void 0:t.exit})},i5={initial:"exit",animate:"enter",exit:"exit",variants:dY},fY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,animatePresenceProps:c,...d}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,h={transition:a,transitionEnd:s,delay:l};return u.jsx(vo,{...c,custom:h,children:p&&u.jsx($n.div,{ref:n,className:V("chakra-fade",i),custom:h,...i5,animate:f,...d})})});fY.displayName="Fade";const pY=N($n.div),xu=L((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=V("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ya().overlay},{motionPreset:c}=ai(),f=o||(c==="none"?{}:i5);return u.jsx(pY,{...f,__css:l,ref:t,className:a,...i})});xu.displayName="ModalOverlay";function mY(e){const{leastDestructiveRef:t,...n}=e;return u.jsx(tm,{...n,initialFocusRef:t})}const hY=L((e,t)=>u.jsx(n1,{ref:t,role:"alertdialog",...e})),[gY,vY]=ye(),yY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function bY(e,t){var n;if(e)return((n=yY[e])==null?void 0:n[t])??e}function a5(e){var c;const{isOpen:t,onClose:n,placement:r="right",children:o,...i}=e,a=yo(),s=(c=a.components)==null?void 0:c.Drawer,l=bY(r,a.direction);return u.jsx(gY,{value:{placement:l},children:u.jsx(tm,{isOpen:t,onClose:n,styleConfig:s,...i,children:o})})}const Yk={exit:{duration:.15,ease:Zr.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},xY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=Av({direction:e});return{...o,transition:(t==null?void 0:t.exit)??dr.exit(Yk.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=Av({direction:e});return{...o,transition:(n==null?void 0:n.enter)??dr.enter(Yk.enter,r),transitionEnd:t==null?void 0:t.enter}}},s5=m.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:a,className:s,transition:l,transitionEnd:c,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,g=Av({direction:r}),y=Object.assign({position:"fixed"},g.position,o),x=i?a&&i:!0,b=a||i?"enter":"exit",v={transitionEnd:c,transition:l,direction:r,delay:d};return u.jsx(vo,{...p,custom:v,children:x&&u.jsx($n.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",s),animate:b,exit:"exit",custom:v,variants:xY,style:y,...f})})});s5.displayName="Slide";const SY=N(s5),o1=L((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=ai(),d=s(a,t),f=l(i),p=V("chakra-modal__content",n),h=ya(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=vY();return u.jsx(r5,{children:u.jsx(N.div,{...f,className:"chakra-modal__content-container",__css:y,children:u.jsx(SY,{motionProps:o,direction:x,in:c,className:p,...d,__css:g,children:r})})})});o1.displayName="DrawerContent";function wY(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function kY(e,t,n){return(e-t)*100/(n-t)}su({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});su({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const CY=su({"0%":{left:"-40%"},"100%":{left:"100%"}}),PY=su({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function _Y(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:s="progressbar"}=e,l=kY(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:s},percent:l,value:t}}const[TY,EY]=ye({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),jY=L((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:a,...s}=e,l=_Y({value:o,min:n,max:r,isIndeterminate:i,role:a}),d={height:"100%",...EY().filledTrack};return u.jsx(N.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})}),Hv=L((e,t)=>{var C;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:a,children:s,borderRadius:l,isIndeterminate:c,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:g,...y}=Ce(e),x=Ve("Progress",e),b=l??((C=x.track)==null?void 0:C.borderRadius),v={animation:`${PY} 1s linear infinite`},k={...!c&&i&&a&&v,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${CY} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...x.track};return u.jsx(N.div,{ref:t,borderRadius:b,__css:_,...y,children:u.jsxs(TY,{value:x,children:[u.jsx(jY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:c,css:k,borderRadius:b,title:h,role:g}),s]})})});Hv.displayName="Progress";function $Y(e){return e&&St(e)&&St(e.target)}function AY(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:i,isFocusable:a,isNative:s,...l}=e,[c,d]=m.useState(r||""),f=typeof n<"u",p=f?n:c,h=m.useRef(null),g=m.useCallback(()=>{const k=h.current;if(!k)return;let _="input:not(:disabled):checked";const C=k.querySelector(_);if(C){C.focus();return}_="input:not(:disabled)";const T=k.querySelector(_);T==null||T.focus()},[]),x=`radio-${m.useId()}`,b=o||x,v=m.useCallback(k=>{const _=$Y(k)?k.target.value:k;f||d(_),t==null||t(String(_))},[t,f]),S=m.useCallback((k={},_=null)=>({...k,ref:bt(_,h),role:"radiogroup"}),[]),w=m.useCallback((k={},_=null)=>({...k,ref:_,name:b,[s?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(T){v(T)},"data-radiogroup":!0}),[s,b,v,p]);return{getRootProps:S,getRadioProps:w,name:b,ref:h,focus:g,setValue:d,value:p,onChange:v,isDisabled:i,isFocusable:a,htmlProps:l}}const[IY,l5]=ye({name:"RadioGroupContext",strict:!1}),c5=L((e,t)=>{const{colorScheme:n,size:r,variant:o,children:i,className:a,isDisabled:s,isFocusable:l,...c}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:g}=AY(c),y=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:o,isDisabled:s,isFocusable:l}),[h,r,f,n,d,o,s,l]);return u.jsx(IY,{value:y,children:u.jsx(N.div,{...p(g,t),className:V("chakra-radio-group",a),children:i})})});c5.displayName="RadioGroup";function RY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:i,isRequired:a,onChange:s,isInvalid:l,name:c,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...g}=e,y=`radio-${m.useId()}`,x=hu(),v=!!l5()||!!p;let w=!!x&&!v?x.id:y;w=f??w;const k=o??(x==null?void 0:x.isDisabled),_=i??(x==null?void 0:x.isReadOnly),C=a??(x==null?void 0:x.isRequired),T=l??(x==null?void 0:x.isInvalid),[A,$]=m.useState(!1),[B,Y]=m.useState(!1),[te,I]=m.useState(!1),[K,F]=m.useState(!!t),z=typeof n<"u",O=z?n:K,R=m.useRef(!1);m.useEffect(()=>Yj(J=>{R.current=J}),[]);const D=m.useCallback(J=>{if(_||k){J.preventDefault();return}z||F(J.currentTarget.checked),s==null||s(J)},[z,k,_,s]),G=m.useCallback(J=>{J.key===" "&&I(!0)},[I]),H=m.useCallback(J=>{J.key===" "&&I(!1)},[I]),Q=m.useCallback((J={},Pe=null)=>({...J,ref:Pe,"data-active":oe(te),"data-hover":oe(B),"data-disabled":oe(k),"data-invalid":oe(T),"data-checked":oe(O),"data-focus":oe(A),"data-focus-visible":oe(A&&R.current),"data-readonly":oe(_),"aria-hidden":!0,onMouseDown:le(J.onMouseDown,()=>I(!0)),onMouseUp:le(J.onMouseUp,()=>I(!1)),onMouseEnter:le(J.onMouseEnter,()=>Y(!0)),onMouseLeave:le(J.onMouseLeave,()=>Y(!1))}),[te,B,k,T,O,A,_]),{onFocus:be,onBlur:me}=x??{},xe=m.useCallback((J={},Pe=null)=>{const pe=k&&!r;return{...J,id:w,ref:Pe,type:"radio",name:c,value:d,onChange:le(J.onChange,D),onBlur:le(me,J.onBlur,()=>$(!1)),onFocus:le(be,J.onFocus,()=>$(!0)),onKeyDown:le(J.onKeyDown,G),onKeyUp:le(J.onKeyUp,H),checked:O,disabled:pe,readOnly:_,required:C,"aria-invalid":to(T),"aria-disabled":to(pe),"aria-required":to(C),"data-readonly":oe(_),"aria-describedby":h,style:Jj}},[k,r,w,c,d,D,me,be,G,H,O,_,C,T,h]);return{state:{isInvalid:T,isFocused:A,isChecked:O,isActive:te,isHovered:B,isDisabled:k,isReadOnly:_,isRequired:C},getRadioProps:Q,getInputProps:xe,getLabelProps:(J={},Pe=null)=>({...J,ref:Pe,onMouseDown:le(J.onMouseDown,zY),"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),getRootProps:(J,Pe=null)=>({htmlFor:w,...J,ref:Pe,"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),htmlProps:g}}function zY(e){e.preventDefault(),e.stopPropagation()}const Gv=L((e,t)=>{const n=l5(),{onChange:r,value:o}=e,i=Ve("Radio",{...n,...e}),a=Ce(e),{spacing:s="0.5rem",children:l,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(h=n.value===o);let g=r;n!=null&&n.onChange&&o!=null&&(g=hz(n.onChange,r));const y=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:b,getLabelProps:v,getRootProps:S,htmlProps:w}=RY({...p,isChecked:h,isFocusable:d,isDisabled:c,onChange:g,name:y}),[k,_]=rT(w,uT),C=b(_),T=x(f,t),A=v(),$=Object.assign({},k,S()),B={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},te={userSelect:"none",marginStart:s,...i.label};return u.jsxs(N.label,{className:"chakra-radio",...$,__css:B,children:[u.jsx("input",{className:"chakra-radio__input",...T}),u.jsx(N.span,{className:"chakra-radio__control",...C,__css:Y}),l&&u.jsx(N.span,{className:"chakra-radio__label",...A,__css:te,children:l})]})});Gv.displayName="Radio";const u5=L(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return u.jsxs(N.select,{...a,ref:n,className:V("chakra-select",i),children:[o&&u.jsx("option",{value:"",children:o}),r]})});u5.displayName="SelectField";const d5=L((e,t)=>{var S;const n=Ve("Select",e),{rootProps:r,placeholder:o,icon:i,color:a,height:s,h:l,minH:c,minHeight:d,iconColor:f,iconSize:p,...h}=Ce(e),[g,y]=rT(h,uT),x=Qj(y),b={width:"100%",height:"fit-content",position:"relative",color:a},v={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return u.jsxs(N.div,{className:"chakra-select__wrapper",__css:b,...g,...r,children:[u.jsx(u5,{ref:t,height:l??s,minH:c??d,placeholder:o,...x,__css:v,children:e.children}),u.jsx(f5,{"data-disabled":oe(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:i})]})});d5.displayName="Select";const MY=e=>u.jsx("svg",{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),NY=N("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),f5=e=>{const{children:t=u.jsx(MY,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return u.jsx(NY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};f5.displayName="SelectIcon";const Ws=N("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Ws.displayName="Spacer";const p5=e=>u.jsx(N.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p5.displayName="StackItem";function OY(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":by(n,o=>r[o])}}const Ee=L((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:c,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",g=m.useMemo(()=>OY({spacing:a,direction:h}),[a,h]),y=!!c,x=!f&&!y,b=m.useMemo(()=>{const S=gy(l);return x?S:S.map((w,k)=>{const _=typeof w.key<"u"?w.key:k,C=k+1===S.length,A=f?u.jsx(p5,{children:w},_):w;if(!y)return A;const $=m.cloneElement(c,{__css:g}),B=C?null:$;return u.jsxs(m.Fragment,{children:[A,B]},_)})},[c,g,y,x,f,l]),v=V("chakra-stack",d);return u.jsx(N.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:y?void 0:a,className:v,...p,children:b})});Ee.displayName="Stack";const we=L((e,t)=>u.jsx(Ee,{align:"center",...e,direction:"row",ref:t}));we.displayName="HStack";const np=L((e,t)=>u.jsx(Ee,{align:"center",...e,direction:"column",ref:t}));np.displayName="VStack";const[DY,m5]=ye({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$i=L(function(t,n){const r=Ve("Stat",t),o={position:"relative",flex:"1 1 0%",...r.container},{className:i,children:a,...s}=Ce(t);return u.jsx(DY,{value:r,children:u.jsx(N.div,{ref:n,...s,className:V("chakra-stat",i),__css:o,children:u.jsx("dl",{children:a})})})});$i.displayName="Stat";const Ai=L(function(t,n){const r=m5();return u.jsx(N.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});Ai.displayName="StatLabel";const jo=L(function(t,n){const r=m5();return u.jsx(N.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});jo.displayName="StatNumber";const[LY,gi]=ye({name:"StepContext"}),[FY,ba]=hr("Stepper"),BY=L(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=gi(),a=ba();return u.jsx(N.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":oe(i),__css:a.step,...t,className:V("chakra-step",t.className)})}),VY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:o.description})});function WY(e){return u.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function UY(e){const{status:t}=gi(),n=ba(),r=t==="complete"?WY:void 0;return u.jsx(wt,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const qk=L(function(t,n){const{children:r,...o}=t,{status:i,index:a}=gi(),s=ba();return u.jsx(N.div,{ref:n,"data-status":i,__css:s.number,...o,className:V("chakra-step__number",t.className),children:r||a+1})});function HY(e){const{complete:t,incomplete:n,active:r}=e,o=gi();let i=null;switch(o.status){case"complete":i=Xt(t,o);break;case"incomplete":i=Xt(n,o);break;case"active":i=Xt(r,o);break}return i?u.jsx(u.Fragment,{children:i}):null}const GY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.div,{ref:n,"data-status":r,...t,__css:o.indicator,className:V("chakra-step__indicator",t.className)})}),h5=L(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:a}=gi(),s=ba();return i&&!a?null:u.jsx(N.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:s.separator,...t,className:V("chakra-step__separator",t.className)})}),KY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.h3,{ref:n,"data-status":r,...t,__css:o.title,className:V("chakra-step__title",t.className)})}),XY=L(function(t,n){const r=Ve("Stepper",t),{children:o,index:i,orientation:a="horizontal",showLastSeparator:s=!1,...l}=Ce(t),c=m.Children.toArray(o),d=c.length;function f(p){return pi?"incomplete":"active"}return u.jsx(N.div,{ref:n,"aria-label":"Progress","data-orientation":a,...l,__css:r.stepper,className:V("chakra-stepper",t.className),children:u.jsx(FY,{value:r,children:c.map((p,h)=>u.jsx(LY,{value:{index:h,status:f(h),orientation:a,showLastSeparator:s,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),sf=L(function(t,n){const r=Ve("Switch",t),{spacing:o="0.5rem",children:i,...a}=Ce(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:d,getLabelProps:f}=aH(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),g=m.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return u.jsxs(N.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[u.jsx("input",{className:"chakra-switch__input",...l({},n)}),u.jsx(N.span,{...c(),className:"chakra-switch__track",__css:h,children:u.jsx(N.span,{__css:r.thumb,className:"chakra-switch__thumb",...s()})}),i&&u.jsx(N.span,{className:"chakra-switch__label",...f(),__css:g,children:i})]})});sf.displayName="Switch";const[YY,Su]=ye({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),om=L((e,t)=>{const n=Ve("Table",e),{className:r,layout:o,...i}=Ce(e);return u.jsx(YY,{value:n,children:u.jsx(N.table,{ref:t,__css:{tableLayout:o,...n.table},className:V("chakra-table",r),...i})})});om.displayName="Table";const i1=L((e,t)=>{const{overflow:n,overflowX:r,className:o,...i}=e;return u.jsx(N.div,{ref:t,className:V("chakra-table__container",o),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),a1=L((e,t)=>{const n=Su();return u.jsx(N.tbody,{...e,ref:t,__css:n.tbody})}),Mt=L(({isNumeric:e,...t},n)=>{const r=Su();return u.jsx(N.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),en=L(({isNumeric:e,...t},n)=>{const r=Su();return u.jsx(N.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),s1=L((e,t)=>{const n=Su();return u.jsx(N.thead,{...e,ref:t,__css:n.thead})}),ei=L((e,t)=>{const n=Su();return u.jsx(N.tr,{...e,ref:t,__css:n.tr})});function qY(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function QY(e,t){const n=o=>({...t,...o,position:qY((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),a=Bj(i);return Er.notify(a,i)};return r.update=(o,i)=>{Er.update(o,n(i))},r.promise=(o,i)=>{const a=r({...i.loading,status:"loading",duration:null});o.then(s=>r.update(a,{status:"success",duration:5e3,...Xt(i.success,s)})).catch(s=>r.update(a,{status:"error",duration:5e3,...Xt(i.error,s)}))},r.closeAll=Er.closeAll,r.close=Er.close,r.isActive=Er.isActive,r}function bo(e){const{theme:t}=zj(),n=PU();return m.useMemo(()=>QY(t.direction,{...n,...e}),[e,t.direction,n])}const ZY={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Kv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},lf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function JY(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:y,arrowPadding:x,modifiers:b,isDisabled:v,gutter:S,offset:w,direction:k,..._}=e,{isOpen:C,onOpen:T,onClose:A}=ou({isOpen:p,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:$,getPopperProps:B,getArrowInnerProps:Y,getArrowProps:te}=mX({enabled:C,placement:d,arrowPadding:x,modifiers:b,gutter:S,offset:w,direction:k}),I=m.useId(),F=`tooltip-${f??I}`,z=m.useRef(null),O=m.useRef(void 0),R=m.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),D=m.useRef(void 0),G=m.useCallback(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),H=m.useCallback(()=>{G(),A()},[A,G]),Q=eq(z,H),be=m.useCallback(()=>{if(!v&&!O.current){C&&Q();const pe=lf(z);O.current=pe.setTimeout(T,t)}},[Q,v,C,T,t]),me=m.useCallback(()=>{R();const pe=lf(z);D.current=pe.setTimeout(H,n)},[n,H,R]),xe=m.useCallback(()=>{C&&r&&me()},[r,me,C]),Fe=m.useCallback(()=>{C&&a&&me()},[a,me,C]),fe=m.useCallback(pe=>{C&&pe.key==="Escape"&&me()},[C,me]);Fd(()=>Kv(z),"keydown",s?fe:void 0),Fd(()=>{if(!i)return null;const pe=z.current;if(!pe)return null;const ne=nT(pe);return ne.localName==="body"?lf(z):ne},"scroll",()=>{C&&i&&H()},{passive:!0,capture:!0}),m.useEffect(()=>{v&&(R(),C&&A())},[v,C,A,R]),m.useEffect(()=>()=>{R(),G()},[R,G]),Fd(()=>z.current,"pointerleave",me);const Z=m.useCallback((pe={},ne=null)=>({...pe,ref:bt(z,ne,$),onPointerEnter:le(pe.onPointerEnter,it=>{it.pointerType!=="touch"&&be()}),onClick:le(pe.onClick,xe),onPointerDown:le(pe.onPointerDown,Fe),onFocus:le(pe.onFocus,be),onBlur:le(pe.onBlur,me),"aria-describedby":C?F:void 0}),[be,me,Fe,C,F,xe,$]),J=m.useCallback((pe={},ne=null)=>B({...pe,style:{...pe.style,[Nt.arrowSize.var]:g?`${g}px`:void 0,[Nt.arrowShadowColor.var]:y}},ne),[B,g,y]),Pe=m.useCallback((pe={},ne=null)=>{const ce={...pe.style,position:"relative",transformOrigin:Nt.transformOrigin.varRef};return{ref:ne,..._,...pe,id:F,role:"tooltip",style:ce}},[_,F]);return{isOpen:C,show:be,hide:me,getTriggerProps:Z,getTooltipProps:Pe,getTooltipPositionerProps:J,getArrowProps:te,getArrowInnerProps:Y}}const Vh="chakra-ui:close-tooltip";function eq(e,t){return m.useEffect(()=>{const n=Kv(e);return n.addEventListener(Vh,t),()=>n.removeEventListener(Vh,t)},[t,e]),()=>{const n=Kv(e),r=lf(e);n.dispatchEvent(new r.CustomEvent(Vh))}}const tq=N($n.div),l1=L((e,t)=>{const n=An("Tooltip",e),r=Ce(e),o=yo(),{children:i,label:a,shouldWrapChildren:s,"aria-label":l,hasArrow:c,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:g,motionProps:y,animatePresenceProps:x,...b}=r,v=p??h??d??g;if(v){n.bg=v;const $=jM(o,"colors",v);n[Nt.arrowBg.var]=$}const S=JY({...b,direction:o.direction}),w=!m.isValidElement(i)||s;let k;if(w)k=u.jsx(N.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:i});else{const $=m.Children.only(i);k=m.cloneElement($,S.getTriggerProps($.props,wY($)))}const _=!!l,C=S.getTooltipProps({},t),T=_?yy(C,["role","id"]):C,A=eT(C,["role","id"]);return a?u.jsxs(u.Fragment,{children:[k,u.jsx(vo,{...x,children:S.isOpen&&u.jsx(Js,{...f,children:u.jsx(N.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:u.jsxs(tq,{variants:ZY,initial:"exit",animate:"enter",exit:"exit",...y,...T,__css:n,children:[a,_&&u.jsx(N.span,{srOnly:!0,...A,children:l}),c&&u.jsx(N.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:u.jsx(N.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):u.jsx(u.Fragment,{children:i})});l1.displayName="Tooltip";const Dt=L(function(t,n){const r=An("Heading",t),{className:o,...i}=Ce(t);return u.jsx(N.h2,{ref:n,className:V("chakra-heading",t.className),...i,__css:r})});Dt.displayName="Heading";const ue=L(function(t,n){const r=An("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Ce(t),c=vy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return u.jsx(N.p,{ref:n,className:V("chakra-text",t.className),...c,...l,__css:r})});ue.displayName="Text";var gn=e=>qp({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});gn({displayName:"ChevronUpIcon",path:u.jsx("polyline",{points:"18 15 12 9 6 15"})});gn({displayName:"ChevronDownIcon",path:u.jsx("polyline",{points:"6 9 12 15 18 9"})});gn({displayName:"ChevronLeftIcon",path:u.jsx("polyline",{points:"15 18 9 12 15 6"})});gn({displayName:"ChevronRightIcon",path:u.jsx("polyline",{points:"9 18 15 12 9 6"})});gn({displayName:"ChevronDownIcon",path:u.jsxs("g",{fill:"none",children:[u.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),u.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),u.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var nq=gn({displayName:"CloseIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});gn({displayName:"FilterIcon",path:u.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});gn({displayName:"CalendarIcon",path:u.jsxs("g",{children:[u.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),u.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),u.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),u.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});gn({displayName:"PlusIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});gn({displayName:"MinusIcon",path:u.jsx("g",{children:u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});gn({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),u.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});gn({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var rq=gn({displayName:"SearchIcon",path:u.jsxs("g",{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});gn({displayName:"CheckIcon",path:u.jsx("g",{children:u.jsx("polyline",{points:"20 6 9 17 4 12"})})});function jt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return jt(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return jt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var oq=jt("app-shell").parts("container","inner","main"),g5=jt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),iq=jt("banner").parts("container","icon","content","title","description","actions","close"),aq=jt("hotkeys").parts("container","group","groupTitle","item","command","then"),sq=jt("loading-overlay").parts("overlay","text"),lq=jt("nav-group").parts("container","title","icon","content"),cq=jt("nav-item").parts("item","link","inner","icon","label"),uq=jt("nprogress").parts("container","bar"),dq=jt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),fq=jt("search-input").parts("input","reset"),pq=jt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");jt("stepper").parts("container","steps","icon","content","title","separator");var mq=jt("structured-list").parts("list","item","button","header","cell","icon"),v5=jt("property").parts("property","label","value"),hq=jt("select").parts("addon","field","element"),gq=jt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:y5,defineMultiStyleConfig:vq}=ie(mT.keys),yq=y5(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),bq=y5({container:{borderRadius:"md"}}),xq=vq({defaultProps:{size:"sm"},baseStyle:bq,variants:{snackbar:yq}}),Xr=pT("badge",["bg","color","shadow","border"]),Qk=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[Xr.color.variable]:`colors.${t}.500`,_dark:{[Xr.color.variable]:r},[Xr.shadow.variable]:`inset 0 0 0px 1px ${Xr.color.reference}`}},Sq={variants:{outline:e=>{const t=Qk(e);return{...t,_dark:{...t==null?void 0:t._dark,[Xr.shadow.variable]:`inset 0 0 0px 1px ${Xr.border.reference}`,[Xr.color.variable]:`colors.${e.colorScheme}.200`,[Xr.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Qk(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[Xr.color.variable]:`colors.${e.colorScheme}.200`}}}}},b5=e=>{const{colorScheme:t}=e;return t==="gray"?{base:q("gray.100","whiteAlpha.300")(e),hover:q("gray.200","whiteAlpha.400")(e),active:q("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:q(`${t}.500`,`${t}.500`)(e),hover:q(`${t}.600`,`${t}.600`)(e),active:q(`${t}.700`,`${t}.700`)(e)}},wq={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},im=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:o,hover:i,active:a}=b5(e),{color:s=n==="gray"?q("black","white")(e):"white",bg:l=o,hoverBg:c=i,activeBg:d=a}=(t=wq[n])!=null?t:{};return{bg:l,color:s,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:d}}},kq=e=>({shadow:"md",...im(e)}),x5=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:o}=b5(e);return{...S5(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?o:r}}},S5=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:o}}}},Cq=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),o=Et(r,.1)(n),i=Et(r,.16)(n),a=Et(r,.24)(n);return{color:t==="white"?"white":q(`${t}.600`,`${t}.200`)(e),bg:o,_hover:{bg:i},_active:{bg:a}}},Pq=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":q(`${t}.700`,`${t}.500`)(e)}}},_q=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),im({...e,variant:"solid",colorScheme:t})},Tq=e=>im({...e,variant:"solid"}),Eq=e=>x5({...e,variant:"outline"}),jq={defaultProps:{size:"sm"},variants:{solid:im,ghost:S5,outline:x5,subtle:Cq,elevated:kq,link:Pq,primary:_q,secondary:Tq,tertiary:Eq}},{definePartsStyle:Zi,defineMultiStyleConfig:$q}=ie(kT.keys),Li=X("card-bg"),Wh=X("card-padding"),c1=X("card-shadow"),Uh=X("card-radius"),u1=X("card-border-width","0"),Bo=X("card-border-color"),Aq=Zi(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),Iq=Zi(e=>({container:{[Li.variable]:"colors.white",[Bo.variable]:"colors.blackAlpha.200",[u1.variable]:"1px",[c1.variable]:"shadows.sm",_dark:{[Li.variable]:"colors.whiteAlpha.200",[Bo.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Bo.variable]:"colors.blackAlpha.300",_dark:{[Bo.variable]:"colors.whiteAlpha.300"}}}})),Rq=Zi(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[u1.variable]:"0",[c1.variable]:"none",[Li.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[Li.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[Li.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[Li.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),zq=Zi(e=>{const{colorScheme:t}=e;return{container:{[u1.variable]:"1px",[c1.variable]:"none",[Bo.variable]:t?`${t}.500`:"colors.blackAlpha.200",[Li.variable]:"transparent","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Bo.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),Mq={sm:Zi({container:{[Uh.variable]:"radii.base",[Wh.variable]:"space.3"}}),md:Zi({container:{[Uh.variable]:"radii.md",[Wh.variable]:"space.4"}}),lg:Zi({container:{[Uh.variable]:"radii.xl",[Wh.variable]:"space.6"}})},Nq=$q({defaultProps:{variant:"elevated"},baseStyle:Aq,variants:{elevated:Iq,outline:zq,filled:Rq},sizes:Mq}),{definePartsStyle:Oq,defineMultiStyleConfig:Dq}=ie(hT.keys),Lq=Oq(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),Fq=Dq({baseStyle:Lq,defaultProps:{colorScheme:"primary"}}),Bq={defaultProps:{size:"sm"}},{definePartsStyle:cf,defineMultiStyleConfig:Vq}=ie(ky.keys),gd=X("input-height"),vd=X("input-padding"),Zk=X("input-border-radius"),w5={sm:cf({field:{[Zk.variable]:"radii.md"},group:{[Zk.variable]:"radii.md"}}),md:cf({field:{[vd.variable]:"space.3",[gd.variable]:"sizes.9"},group:{[vd.variable]:"space.3",[gd.variable]:"sizes.9"}}),lg:cf({field:{[vd.variable]:"space.3",[gd.variable]:"sizes.10"},group:{[vd.variable]:"space.3",[gd.variable]:"sizes.10"}})},k5=cf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),d1=Vq({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:k5},sizes:w5}),Wq={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},cc=d1,Uq=d1,Hq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:k5},sizes:w5},Gq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=cc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},Kq=d1,{definePartsStyle:Jr,defineMultiStyleConfig:Xq}=ie(ky.keys),ns=X("input-height"),rs=X("input-font-size"),os=X("input-padding"),is=X("input-border-radius"),Yq=Jr({addon:{height:ns.reference,fontSize:rs.reference,px:os.reference,borderRadius:is.reference},field:{width:"100%",height:ns.reference,fontSize:rs.reference,px:os.reference,borderRadius:is.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),To={lg:{[rs.variable]:"fontSizes.lg",[os.variable]:"space.4",[is.variable]:"radii.md",[ns.variable]:"sizes.12"},md:{[rs.variable]:"fontSizes.md",[os.variable]:"space.4",[is.variable]:"radii.md",[ns.variable]:"sizes.10"},sm:{[rs.variable]:"fontSizes.sm",[os.variable]:"space.3",[is.variable]:"radii.sm",[ns.variable]:"sizes.8"},xs:{[rs.variable]:"fontSizes.xs",[os.variable]:"space.2",[is.variable]:"radii.sm",[ns.variable]:"sizes.6"}},qq={lg:Jr({field:To.lg,group:To.lg}),md:Jr({field:To.md,group:To.md}),sm:Jr({field:To.sm,group:To.sm}),xs:Jr({field:To.xs,group:To.xs})};function f1(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}var Qq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0 0 0 1px ${Ke(t,r)}`},_focusVisible:{zIndex:1,borderColor:Ke(t,n),boxShadow:`0 0 0 1px ${Ke(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),Zq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r)},_focusVisible:{bg:"transparent",borderColor:Ke(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),Jq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0px 1px 0px 0px ${Ke(t,r)}`},_focusVisible:{borderColor:Ke(t,n),boxShadow:`0px 1px 0px 0px ${Ke(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),eQ=Jr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),tQ={outline:Qq,filled:Zq,flushed:Jq,unstyled:eQ},Vo=Xq({baseStyle:Yq,sizes:qq,variants:tQ,defaultProps:{size:"md",variant:"outline"}}),Jk,eC,nQ={...Vo,defaultProps:cc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=cc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(eC=(Jk=Vo.variants)==null?void 0:Jk.unstyled)!=null?eC:{}},sizes:cc.sizes},rQ={defaultProps:{size:"lg"}},oQ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),iQ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:oQ}},{definePartsStyle:C5,defineMultiStyleConfig:aQ}=ie(vT.keys),sQ=C5(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),lQ=C5(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),cQ=aQ({baseStyle:sQ,variants:{dialog:lQ}}),{definePartsStyle:uQ,defineMultiStyleConfig:dQ}=ie(yT.keys),fQ=uQ(e=>({closeButton:{top:4,insetEnd:4}})),pQ=dQ({baseStyle:fQ}),{definePartsStyle:mQ,defineMultiStyleConfig:hQ}=ie(bT.keys),gQ=hQ({defaultProps:{colorScheme:"primary"},baseStyle:mQ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:vQ,defineMultiStyleConfig:yQ}=ie(xT.keys),bQ=yQ({defaultProps:{colorScheme:"primary"},baseStyle:vQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:xQ,defineMultiStyleConfig:SQ}=ie(ST.keys),wQ=SQ({defaultProps:{colorScheme:"primary"},baseStyle:xQ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:kQ,defineMultiStyleConfig:CQ}=ie(wT.keys),PQ=CQ({defaultProps:{colorScheme:"primary"},baseStyle:kQ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),yd=ut("tooltip-bg"),tC=ut("tooltip-fg"),_Q=ut("popper-arrow-bg"),TQ=e=>({display:"flex",[yd.variable]:"colors.white",[tC.variable]:"colors.blackAlpha.900",_dark:{[yd.variable]:"colors.gray.700",[tC.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[yd.reference],[_Q.variable]:[yd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),EQ={baseStyle:TQ},bd=X("stepper-indicator-size"),Ji=X("stepper-accent-color"),Fi=X("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:jQ,definePartsStyle:Wo}=ie(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),$Q=Wo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:Fi.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Fi.variable]:"10px",[Ji.variable]:`colors.${e}.500`,_dark:{[Ji.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:Fi.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),AQ=Wo(e=>({})),IQ=Wo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ji.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:Ji.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),RQ=Wo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[Ji.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ji.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:Ji.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),zQ=jQ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:$Q,variants:{outline:AQ,solid:IQ,subtle:RQ},sizes:{xs:Wo({stepper:{[bd.variable]:"sizes.4",[Fi.variable]:"7px"}}),sm:Wo({stepper:{[bd.variable]:"sizes.6",[Fi.variable]:"11px"}}),md:Wo({stepper:{[bd.variable]:"sizes.7",[Fi.variable]:"14px"}}),lg:Wo({stepper:{[bd.variable]:"sizes.8",[Fi.variable]:"16px"}})}}),{definePartsStyle:MQ,defineMultiStyleConfig:NQ}=ie(g5.keys),OQ=MQ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),DQ=NQ({baseStyle:OQ}),{definePartsStyle:P5,defineMultiStyleConfig:_5}=ie(uq.keys),LQ=P5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),FQ=_5({defaultProps:{colorScheme:"teal"},baseStyle:LQ}),BQ=P5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),VQ=_5({defaultProps:{colorScheme:"primary"},baseStyle:BQ}),{defineMultiStyleConfig:WQ}=ie(v5.keys),UQ=WQ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),HQ={Alert:xq,Badge:Sq,Button:jq,Card:Nq,Checkbox:Fq,CloseButton:Bq,Heading:rQ,Kbd:iQ,Menu:cQ,Modal:pQ,Progress:gQ,Radio:bQ,Slider:wQ,Switch:PQ,Stepper:zQ,Tooltip:EQ,Input:cc,PinInput:Hq,FormLabel:Wq,NumberInput:Uq,Select:Kq,Textarea:Gq,SuiEmptyState:DQ,SuiNProgress:VQ,SuiProperty:UQ,SuiSelect:nQ},{definePartsStyle:GQ,defineMultiStyleConfig:KQ}=ie(oq.keys),XQ=GQ({container:{},inner:{},main:{}}),YQ=KQ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:XQ}),{definePartsStyle:p1,defineMultiStyleConfig:qQ}=ie(iq.keys),QQ=p1({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),ZQ=p1(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Et(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),JQ=p1(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),eZ=qQ({baseStyle:QQ,variants:{subtle:ZQ,solid:JQ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),tZ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:T5,defineMultiStyleConfig:nZ}=ie(g5.keys),rZ=T5(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),oZ=T5(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),iZ=nZ({baseStyle:rZ,variants:{centered:oZ}}),{definePartsStyle:aZ,defineMultiStyleConfig:sZ}=ie(gT.keys),lZ=aZ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),cZ=sZ({variants:{horizontal:lZ}}),uZ={defaultProps:{spacing:4}},dZ={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:fZ}=ie(aq.keys),pZ=fZ({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:mZ,definePartsStyle:am}=ie(sq.keys),hZ=am({overlay:{p:4}}),gZ=am(()=>({overlay:{flex:1,height:"100%"}})),vZ=am(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),yZ=am(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),bZ=mZ({defaultProps:{variant:"fill"},baseStyle:hZ,variants:{fill:gZ,fullscreen:vZ,overlay:yZ}}),{definePartsStyle:xZ,defineMultiStyleConfig:SZ}=ie(lq.keys),wZ=xZ(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),kZ=SZ({baseStyle:wZ}),{definePartsStyle:wu,defineMultiStyleConfig:CZ}=ie(cq.keys),PZ=wu(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),_Z=wu(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),TZ=wu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Et(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Et(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),EZ=wu(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),jZ=wu(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),nC,rC,oC,iC,$Z=CZ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:PZ,sizes:{xs:{link:(nC=Oi.components.Button.sizes)==null?void 0:nC.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(rC=Oi.components.Button.sizes)==null?void 0:rC.sm,icon:{me:2,fontSize:"sm"}},md:{link:(oC=Oi.components.Button.sizes)==null?void 0:oC.md,icon:{me:2,fontSize:"md"}},lg:{link:(iC=Oi.components.Button.sizes)==null?void 0:iC.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:_Z,subtle:TZ,solid:EZ,"left-accent":jZ}}),{definePartsStyle:$o,defineMultiStyleConfig:AZ}=ie(dq.keys),aC=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),IZ=$o(e=>({details:{minW:0},secondaryLabel:aC(e),tertiaryLabel:aC(e)})),RZ={"2xs":$o({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:$o({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:$o({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":$o({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},zZ=AZ({defaultProps:{size:"md"},baseStyle:IZ,sizes:RZ}),{defineMultiStyleConfig:MZ}=ie(v5.keys),NZ=MZ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:OZ}=ie(fq.keys),DZ=OZ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:m1,defineMultiStyleConfig:LZ}=ie(pq.keys),FZ=m1(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),BZ=m1(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),VZ=m1(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),WZ=LZ({defaultProps:{variant:"default"},baseStyle:FZ,variants:{default:BZ,compact:VZ}}),{defineMultiStyleConfig:UZ}=ie(hq.keys),HZ=UZ({defaultProps:Vo.defaultProps,baseStyle:Vo.baseStyle,sizes:Vo.sizes,variants:Vo.variants}),{definePartsStyle:GZ,defineMultiStyleConfig:KZ}=ie(mq.keys),XZ=GZ(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),YZ=KZ({defaultProps:{size:"md"},baseStyle:XZ,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:h1,defineMultiStyleConfig:qZ}=ie(gq.keys),sC=X("timeline-row-start","minmax(0,1fr)"),QZ=X("timeline-row-end","minmax(0,1fr)"),lC=X("timeline-col-start","minmax(0,1fr)"),cC=X("timeline-col-end","minmax(0,1fr)"),ZZ=h1(e=>({container:{display:"flex",[sC.variable]:"minmax(0,1fr)",[QZ.variable]:"minmax(0,1fr)",[lC.variable]:"auto",[cC.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${sC.reference}`,gridTemplateColumns:`${lC.reference} ${cC.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),JZ=h1(e=>({icon:{}})),eJ=h1(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),tJ=qZ({defaultProps:{variant:"solid",size:"sm"},baseStyle:ZZ,variants:{solid:JZ,outline:eJ},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),nJ={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},rJ=$e("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:oJ,definePartsStyle:iJ}=ie(rJ.keys),uC=X("navbar-bg"),dC=X("navbar-text-color","currentColor"),Hh=X("navbar-link-bg","transparent"),aJ=["yellow","cyan"],sJ=oJ({baseStyle:iJ(({colorScheme:e})=>{let t="currentColor";return e&&(t=aJ.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[uC.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[dC.variable]:t,bg:uC.reference,color:dC.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:Hh.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[Hh.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[Hh.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),lJ={Form:cZ,SuiAppShell:YQ,SuiBanner:eZ,SuiCommand:tZ,SuiEmptyState:iZ,SuiFormLayout:uZ,SuiFormLegend:dZ,SuiHotkeys:pZ,SuiStructuredList:YZ,SuiLoadingOverlay:bZ,SuiNavGroup:kZ,SuiNavItem:$Z,SuiPersona:zZ,SuiProperty:NZ,SuiNProgress:FQ,SuiSearchInput:DZ,SuiSelect:HZ,SuiSidebar:WZ,SuiTimeline:tJ,SuiIconBadge:nJ,SuiNavbar:sJ},cJ=Ib({colors:{primary:Oi.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:lJ}),uJ={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Gh={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Xv={primary:Gh.purple,secondary:Gh.cyan,...Gh},dJ={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},fJ={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},pJ={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},mJ={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},hJ=mJ,gJ={outline:`0 0 0 2px ${Et(Xv.primary[500],.6)({colors:Xv})}`},vJ=gJ,yJ={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},bJ={colors:Xv,fonts:dJ,fontSizes:fJ,textStyles:pJ,sizes:hJ,shadows:vJ,semanticTokens:yJ},E5=Ib({...bJ,styles:uJ,components:HQ},cJ);function j5(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function xJ(e,t){return e.find(n=>n.id===t)}function $5(e,t){const n=xJ(e,t);return n?e.indexOf(n):-1}function SJ(e,t,n=!0){let r=$5(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function wJ(e,t,n=!0){let r=$5(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const Uo=e=>(e==null?void 0:e.ownerDocument)??document,si=e=>e&&"window"in e&&e.window===e?e:Uo(e).defaultView||window;function kJ(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function CJ(e){return kJ(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const PJ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _J(e){const t=si(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=si(e);let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function TJ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function A5(e,t){return PJ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_J(e)&&TJ(e,t)&&(!e.parentElement||A5(e.parentElement,e))}const I5=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],EJ=I5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";I5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function jJ(e,t){return e.matches(EJ)&&!$J(e)&&((t==null?void 0:t.skipVisibilityCheck)||A5(e))}function $J(e){let t=e;for(;t!=null;){if(t instanceof si(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function R5(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const g1=typeof document<"u"?Rt.useLayoutEffect:()=>{};let Yv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Yv.delete(e)});function AJ(e,t){if(e===t)return e;let n=Yv.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Yv.get(t);return r?(r.forEach(o=>o.current=e),e):t}function IJ(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=fC(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():fC(e[i],null)})}}}function fC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function z5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t=65&&o.charCodeAt(2)<=90?t[o]=R5(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=RJ(i,a):o==="id"&&i&&a?t.id=AJ(i,a):o==="ref"&&i&&a?t.ref=IJ(i,a):t[o]=a!==void 0?a:i}}return t}function Kc(e){if(zJ())e.focus({preventScroll:!0});else{let t=MJ(e);e.focus(),NJ(t)}}let xd=null;function zJ(){if(xd==null){xd=!1;try{document.createElement("div").focus({get preventScroll(){return xd=!0,!0}})}catch{}}return xd}function MJ(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightt.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function LJ(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function FJ(e){for(;e&&!jJ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=si(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,o=d=>{(Ct(d)===n||r)&&d.stopImmediatePropagation()},i=d=>{(Ct(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Kc(n),l()))},a=d=>{(Ct(d)===e||r)&&d.stopImmediatePropagation()},s=d=>{(Ct(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Kc(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),r=!1},c=requestAnimationFrame(l);return l}function sm(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function y1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function vi(e){let t=null;return()=>(t==null&&(t=e()),t)}const rp=vi(function(){return y1(/^Mac/i)}),BJ=vi(function(){return y1(/^iPhone/i)}),N5=vi(function(){return y1(/^iPad/i)||rp()&&navigator.maxTouchPoints>1}),O5=vi(function(){return BJ()||N5()}),VJ=vi(function(){return sm(/AppleWebKit/i)&&!WJ()}),WJ=vi(function(){return sm(/Chrome/i)}),D5=vi(function(){return sm(/Android/i)}),UJ=vi(function(){return sm(/Firefox/i)});let Oo=new Map,qv=new Set;function pC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let o=Ct(r);if(!e(r)||!o)return;let i=Oo.get(o);i||(i=new Set,Oo.set(o,i),o.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{let o=Ct(r);if(!e(r)||!o)return;let i=Oo.get(o);if(i&&(i.delete(r.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",n),Oo.delete(o)),Oo.size===0)){for(let a of qv)a();qv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?pC():document.addEventListener("DOMContentLoaded",pC));function HJ(){for(const[e]of Oo)"isConnected"in e&&!e.isConnected&&Oo.delete(e)}function GJ(e){requestAnimationFrame(()=>{HJ(),Oo.size===0?e():qv.add(e)})}let as="default",Qv="",uf=new WeakMap;function KJ(e){if(O5()){if(as==="default"){const t=Uo(e);Qv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}as="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";uf.set(e,e.style[t]),e.style[t]="none"}}function mC(e){if(O5()){if(as!=="disabled")return;as="restoring",setTimeout(()=>{GJ(()=>{if(as==="restoring"){const t=Uo(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Qv||""),Qv="",as="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&uf.has(e)){let t=uf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),uf.delete(e)}}function hC(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Kh=new WeakMap;function XJ(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return hC(t);if(Kh.has(t))return Kh.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof si(n).HTMLMetaElement&&(n.nonce||n.content)||hC(t)||void 0;return r!==void 0&&Kh.set(t,r),r}function YJ(e){return e.pointerType===""&&e.isTrusted?!0:D5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function qJ(e){return!D5()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Xc(e,t,n=!0){var l,c;let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t;UJ()&&((c=(l=window.event)==null?void 0:l.type)!=null&&c.startsWith("key"))&&e.target==="_blank"&&(rp()?r=!0:o=!0);let s=VJ()&&rp()&&!N5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Xc.isOpening=n,Kc(e),e.dispatchEvent(s),Xc.isOpening=!1}Xc.isOpening=!1;const L5=Rt.createContext({register:()=>{}});L5.displayName="PressResponderContext";const QJ=Rt.useInsertionEffect??g1;function df(e){const t=m.useRef(null);return QJ(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function F5(){let e=m.useRef(new Map),t=m.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=m.useCallback((o,i,a,s)=>{var c;let l=((c=e.current.get(a))==null?void 0:c.fn)||a;o.removeEventListener(i,l,s),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ZJ(e,t){g1(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function JJ(e){let t=m.useContext(L5);if(t){let{register:n,ref:r,...o}=t;e=v1(o,e),n()}return ZJ(t,e.ref),e}var Cs;class Sd{constructor(t,n,r,o){lx(this,Cs);Em(this,Cs,!0);let i=(o==null?void 0:o.target)??r.currentTarget;const a=i==null?void 0:i.getBoundingClientRect();let s,l=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(s=c-a.left,l=d-a.top):(s=a.width/2,l=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=l,this.key=r.key}continuePropagation(){Em(this,Cs,!1)}get shouldStopPropagation(){return sx(this,Cs)}}Cs=new WeakMap;const gC=Symbol("linkClicked"),vC="react-aria-pressable-style",yC="data-react-aria-pressable";function eee(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=JJ(e),[g,y]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=F5(),S=m.useCallback((I,K)=>{let F=x.current;if(s||F.didFirePressStart)return!1;let z=!0;if(F.isTriggeringEvent=!0,r){let O=new Sd("pressstart",K,I);r(O),z=O.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,y(!0),z},[s,r,n]),w=m.useCallback((I,K,F=!0)=>{let z=x.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let O=!0;if(o){let R=new Sd("pressend",K,I);o(R),O=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&F&&!s){let R=new Sd("press",K,I);t(R),O&&(O=R.shouldStopPropagation)}return z.isTriggeringEvent=!1,O},[s,o,n,t]),k=df(w),_=m.useCallback((I,K)=>{let F=x.current;if(s)return!1;if(i){F.isTriggeringEvent=!0;let z=new Sd("pressup",K,I);return i(z),F.isTriggeringEvent=!1,z.shouldStopPropagation}return!0},[s,i]),C=df(_),T=m.useCallback(I=>{let K=x.current;if(K.isPressed&&K.target){K.didFirePressStart&&K.pointerType!=null&&w(Pi(K.target,I),K.pointerType,!1),K.isPressed=!1,K.isOverTarget=!1,K.activePointerId=null,K.pointerType=null,v(),f||mC(K.target);for(let F of K.disposables)F();K.disposables=[]}},[f,v,w]),A=df(T);m.useEffect(()=>{s&&x.current.isPressed&&A({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let $=m.useCallback(I=>{d&&T(I)},[d,T]),B=m.useCallback(I=>{s||a==null||a(I)},[s,a]),Y=m.useCallback((I,K)=>{if(!s&&a){let F=new MouseEvent("click",I);LJ(F,K),a(DJ(F))}},[s,a]),te=m.useMemo(()=>{let I=x.current,K={onKeyDown(z){var O;if(Xh(z.nativeEvent,z.currentTarget)&&Sr(z.currentTarget,Ct(z))){bC(Ct(z),z.key)&&z.preventDefault();let R=!0;!I.isPressed&&!z.repeat&&(I.target=z.currentTarget,I.isPressed=!0,I.pointerType="keyboard",R=S(z,"keyboard"));let D=z.currentTarget,G=H=>{Xh(H,D)&&!H.repeat&&Sr(D,Ct(H))&&I.target&&C(Pi(I.target,H),"keyboard")};b(Uo(z.currentTarget),"keyup",R5(G,F),!0),R&&z.stopPropagation(),z.metaKey&&rp()&&((O=I.metaKeyEvents)==null||O.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Sr(z.currentTarget,Ct(z)))&&z&&z.button===0&&!I.isTriggeringEvent&&!Xc.isOpening){let O=!0;if(s&&z.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||YJ(z.nativeEvent))){let R=S(z,"virtual"),D=C(z,"virtual"),G=k(z,"virtual");B(z),O=R&&D&&G}else if(I.isPressed&&I.pointerType!=="keyboard"){let R=I.pointerType||z.nativeEvent.pointerType||"virtual",D=C(Pi(z.currentTarget,z),R),G=k(Pi(z.currentTarget,z),R,!0);O=D&&G,I.isOverTarget=!1,B(z),A(z)}I.ignoreEmulatedMouseEvents=!1,O&&z.stopPropagation()}}},F=z=>{var O,R,D;if(I.isPressed&&I.target&&Xh(z,I.target)){bC(Ct(z),z.key)&&z.preventDefault();let G=Ct(z),H=Sr(I.target,G);k(Pi(I.target,z),"keyboard",H),H&&Y(z,I.target),v(),z.key!=="Enter"&&b1(I.target)&&Sr(I.target,G)&&!z[gC]&&(z[gC]=!0,Xc(I.target,z,!1)),I.isPressed=!1,(O=I.metaKeyEvents)==null||O.delete(z.key)}else if(z.key==="Meta"&&((R=I.metaKeyEvents)!=null&&R.size)){let G=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let H of G.values())(D=I.target)==null||D.dispatchEvent(new KeyboardEvent("keyup",H))}};if(typeof PointerEvent<"u"){K.onPointerDown=R=>{if(R.button!==0||!Sr(R.currentTarget,Ct(R)))return;if(qJ(R.nativeEvent)){I.pointerType="virtual";return}I.pointerType=R.pointerType;let D=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=R.pointerId,I.target=R.currentTarget,f||KJ(I.target),D=S(R,I.pointerType);let G=Ct(R);"releasePointerCapture"in G&&("hasPointerCapture"in G?G.hasPointerCapture(R.pointerId)&&G.releasePointerCapture(R.pointerId):G.releasePointerCapture(R.pointerId)),b(Uo(R.currentTarget),"pointerup",z,!1),b(Uo(R.currentTarget),"pointercancel",O,!1)}D&&R.stopPropagation()},K.onMouseDown=R=>{if(Sr(R.currentTarget,Ct(R))&&R.button===0){if(c){let D=FJ(R.target);D&&I.disposables.push(D)}R.stopPropagation()}},K.onPointerUp=R=>{!Sr(R.currentTarget,Ct(R))||I.pointerType==="virtual"||R.button===0&&!I.isPressed&&C(R,I.pointerType||R.pointerType)},K.onPointerEnter=R=>{R.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(Pi(I.target,R),I.pointerType))},K.onPointerLeave=R=>{R.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(Pi(I.target,R),I.pointerType,!1),$(R))};let z=R=>{if(R.pointerId===I.activePointerId&&I.isPressed&&R.button===0&&I.target){if(Sr(I.target,Ct(R))&&I.pointerType!=null){let D=!1,G=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(D?A(R):(Kc(I.target),I.target.click()))},80);b(R.currentTarget,"click",()=>D=!0,!0),I.disposables.push(()=>clearTimeout(G))}else A(R);I.isOverTarget=!1}},O=R=>{A(R)};K.onDragStart=R=>{Sr(R.currentTarget,Ct(R))&&A(R)}}return K},[b,s,c,v,f,$,S,B,Y]);return m.useEffect(()=>{if(!p)return;const I=Uo(p.current);if(!I||!I.head||I.getElementById(vC))return;const K=I.createElement("style");K.id=vC;let F=XJ(I);F&&(K.nonce=F),K.textContent=` +@layer { + [${yC}] { + touch-action: pan-x pan-y pinch-zoom; + } +} + `.trim(),I.head.prepend(K)},[p]),m.useEffect(()=>{let I=x.current;return()=>{f||mC(I.target??void 0);for(let K of I.disposables)K();I.disposables=[]}},[f]),{isPressed:l||g,pressProps:v1(h,te,{[yC]:!0})}}function b1(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xh(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof si(o).HTMLInputElement&&!B5(o,n)||o instanceof si(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&b1(o))&&n!=="Enter")}function Pi(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function tee(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!b1(e)}function bC(e,t){return e instanceof HTMLInputElement?!B5(e,t):tee(e)}const nee=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":nee.has(e.type)}let ree=0;const Yh=new Map;function oee(e){let[t,n]=m.useState();return g1(()=>{if(!e)return;let r=Yh.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${ree++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Yh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Yh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const iee=500;function aee(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=iee,accessibilityDescription:a}=e;const s=m.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=F5(),{pressProps:d}=eee({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Uo(p.target).activeElement!==p.target&&Kc(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=y=>{y.preventDefault()},g=si(p.target);l(p.target,"contextmenu",h,{once:!0}),l(g,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=oee(o&&!t?a:void 0);return{longPressProps:v1(d,f)}}function see(){return typeof window.ResizeObserver<"u"}function lee(e){const{ref:t,box:n,onResize:r}=e;let o=df(r);m.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(see()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function cee(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function uee(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var dee=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],xC=(e,t)=>{var n;const r=yo(),o=dee(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return ep(o,t)},[Nse,fee]=hr("SuiEmptyState"),pee=L((e,t)=>{var n;const r=fee();return u.jsx(wt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:V("sui-empty-state__icon",e.className)})});pee.displayName="EmptyStateIcon";var x1=m.createContext({});function mee(e){const{theme:t,linkComponent:n,onError:r,children:o,...i}=e,a={linkComponent:n,onError:r};return u.jsx(x1.Provider,{value:a,children:u.jsx(EU,{...i,theme:t||E5,children:o})})}var hee=()=>m.useContext(x1),gee=e=>u.jsx(N.a,{...e});function S1(){const e=hee();return e!=null&&e.linkComponent?e.linkComponent:gee}var vee=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,o,i,a;(o=(r=this.props).onError)==null||o.call(r,t,n),(a=(i=this.context).onError)==null||a.call(i,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||u.jsx("h1",{children:"Something went wrong."}):this.props.children}};vee.contextType=x1;var V5=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[yee,bee]=ye({strict:!1,errorMessage:"AppShell context not available."}),xee=e=>{const t=ou(),n=V5(e.toggleBreakpoint),r=ep(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[See]=hr("SuiAppShell"),wee=L((e,t)=>{const n=Ve("SuiAppShell",e),{navbar:r,sidebar:o,aside:i,footer:a,children:s,mainRef:l,...c}=Ce(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(o)&&o.type.id==="Sidebar",g=xee({toggleBreakpoint:h?o==null?void 0:o.props.toggleBreakpoint:void 0});return u.jsx(yee,{value:g,children:u.jsx(See,{value:n,children:u.jsxs(_t,{ref:t,...c,sx:d,className:V("sui-app-shell",e.className),children:[r,u.jsxs(_t,{sx:f,className:"saas-app-shell__inner",children:[o,u.jsx(_t,{ref:l,sx:p,className:"saas-app-shell__main",children:s}),i]}),a]})})})});wee.displayName="AppShell";function kee(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Cee(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function SC(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var wd={enter:{duration:.2,ease:Zr.easeOut},exit:{duration:.2,ease:Zr.easeIn}},Pee={slideOutTop:{...Fo,custom:{offsetY:"-100%",reverse:!0,transition:wd},initial:"enter"},slideOutBottom:{...Fo,custom:{offsetY:"100%",reverse:!0,transition:wd},initial:"enter"},fade:{...Fo,custom:{transition:wd},initial:"enter"},scale:{...t1,custom:{initialScale:.1,reverse:!0,transition:wd},initial:"enter"},none:{custom:{}}},_ee=N($n.div),Tee=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,i={...Pee[n]};return u.jsx(_ee,{ref:t,...i,...r})}),[Eee,ku]=hr("SuiBanner"),jee={info:{icon:Cee,colorScheme:"blue"},warning:{icon:SC,colorScheme:"orange"},success:{icon:kee,colorScheme:"green"},error:{icon:SC,colorScheme:"red"}},[$ee,Aee]=ye({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),Iee=L((e,t)=>{var n;const{id:r,status:o="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop",...l}=Ce(e),c=(n=e.colorScheme)!=null?n:jee[o].colorScheme,d=Ve("SuiBanner",{...e,colorScheme:c}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:o,onClose:a,isOpen:i},h=["warning","error"].includes(o)?"alert":"status",g=i?"enter":"exit";return u.jsx($ee,{value:p,children:u.jsx(Eee,{value:d,children:u.jsx(vo,{children:i&&u.jsx(Tee,{id:p.id,role:h,ref:t,motionPreset:s,animate:g,...l,className:V("sui-banner",e.className),__css:f})})})})});Iee.displayName="Banner";var Ree=L((e,t)=>{const n=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Ree.displayName="BannerContent";var zee=L((e,t)=>{const n=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});zee.displayName="BannerTitle";var Mee=L((e,t)=>{const r={display:"inline",...ku().description};return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});Mee.displayName="BannerDescription";var Nee=L((e,t)=>{const{children:n,variant:r}=e,o=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:o.actions,children:u.jsx(Tb,{variant:r,children:n})})});Nee.displayName="BannerActions";var Oee=L((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i,isOpen:a,id:s}=Aee(),l=V("sui-banner__close-btn",r),c=ku();return u.jsx(Xp,{ref:t,__css:c.closeButton,className:l,onClick:le(n,d=>{d.stopPropagation(),i==null||i()}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false",...o})});Oee.displayName="BannerCloseButton";ye({name:"UseCollapseReturn"});var[Dee,w1]=hr("SuiStructuredList"),[Lee,Fee]=ye({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function Bee(e){return j5(e,"[role='button']:not([disabled])")}var Vee=e=>{var t;const n=m.useId(),r=m.useRef(null),[o,i]=m.useState(null),a={onBlur:le(e.onBlur,s=>{s.relatedTarget&&(Bee(r.current).includes(s.relatedTarget)||i(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:o,setFocusId:i,listProps:a}},Wee=L((e,t)=>{const{items:n,children:r,...o}=e,i=Ve("SuiStructuredList",o),a=Ce(o);let s;n?s=n.map((f,p)=>m.createElement(W5,{...f,key:f.id||p})):s=r;const l={py:2,position:"relative",...i.list},{listProps:c,...d}=Vee(e);return u.jsx(Lee,{value:d,children:u.jsx(Dee,{value:i,children:u.jsx(N.ul,{ref:xy(t,d.containerRef),__css:l,...a,...c,className:V("sui-list",e.className),children:s})})})});Wee.displayName="StructuredList";var Uee=L((e,t)=>{const{children:n,onClick:r,action:o,role:i="heading",level:a=1,...s}=e,l=w1();return u.jsxs(N.li,{ref:t,__css:l.header,onClick:r,...s,className:V("sui-list__header",e.className),children:[u.jsx(N.span,{flex:"1",userSelect:"none",role:i,"aria-level":a,children:n}),o]})});Uee.displayName="StructuredListHeader";var W5=L((e,t)=>{const{onClick:n,href:r,as:o,children:i,isDisabled:a,...s}=e,l=w1(),c=!!(n||r),d=c?U5:m.Fragment,f=!!c,p={...l.item,...f?{py:0,px:0}:{}},h=c?{onClick:n,href:r,as:o,isDisabled:a}:{},g=c?u.jsx(d,{...h,children:i}):i;return u.jsx(N.li,{ref:t,__css:p,...s,className:V("sui-list__item",e.className),children:g})});W5.displayName="StructuredListItem";var Hee=e=>{var t;const{id:n,containerRef:r,focusId:o,setFocusId:i}=Fee(),a=`${n}-${m.useId()}`,s=(t=e.id)!=null?t:a,l=o===s;function c(){return j5(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:s,"data-focus":oe(l),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:le(e.onFocus,()=>{i(s)}),onKeyDown:le(e.onKeyDown,m.useCallback(f=>{const p=c(),h={ArrowUp:()=>{var g;(g=wJ(p,s))==null||g.focus()},ArrowDown:()=>{var g;(g=SJ(p,s))==null||g.focus()},Home:()=>{var g;(g=p[0])==null||g.focus()},End:()=>{var g;(g=p[p.length-1])==null||g.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[s])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},U5=L((e,t)=>{const{children:n,isDisabled:r,...o}=e,{buttonProps:i}=Hee(e),a=w1();return u.jsx(N.div,{ref:t,__css:a.button,role:"button",...o,...i,className:V("sui-list__item-button",e.className),children:n})});U5.displayName="StructuredListButton";var Gee=L((e,t)=>{const n=S1(),{href:r,...o}=e;return u.jsx(va,{as:n,ref:t,href:r,...o})});Gee.displayName="Link";hr("SuiLoadingOverlay");N($n.div);var Kee=typeof window<"u";function wC(e){return Kee?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Xee=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=m.useRef(o?wC(t==null?void 0:t.current):{x:0,y:0});let a=null;const s=()=>{const l=wC(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,a=null};return m.useEffect(()=>{if(!o)return;const l=()=>{n?a===null&&(a=setTimeout(s,n)):s()},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current},[Ose,Yee]=ye({name:"UseContextMenuContext",strict:!1}),kC=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),qee=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,Qee=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:o,anchor:i}=Yee(),a=gX(),{popper:s,openAndFocusFirstItem:l}=a,{longPressProps:c}=aee({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{o()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),l())}}),d=m.useRef({getBoundingClientRect:kC(i.x,i.y)});return m.useEffect(()=>{s.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=kC(i.x,i.y),a.popper.update()},[i]),{triggerProps:{...c,onPointerDown:h=>{var g;h.pointerType!=="mouse"&&((g=c.onPointerDown)==null||g.call(c,h))},onMouseDown:h=>{var g;qee()&&((g=c.onMouseDown)==null||g.call(c,h))},onContextMenu:le(h=>{h.preventDefault(),r(h),l()},e.onContextMenu),ref:bt(n,t)}}},Zee=L((e,t)=>{const{children:n,longPressDisabled:r,...o}=e,{triggerProps:i}=Qee(e,t);return u.jsx(N.span,{...o,sx:{WebkitTouchCallout:"none"},...i,children:n})});Zee.displayName="ContextMenuTrigger";var[Jee,lm]=hr("SuiPersona"),CC={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},ete={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},tte=L((e,t)=>{const{children:n,...r}=e,o=Ve("SuiPersona",e),i=Ce(r),s={...{display:"flex",flexDirection:"row",alignItems:"center"},...o.container};return u.jsx(Jee,{value:o,children:u.jsx(N.div,{ref:t,__css:s,...i,className:V("sui-persona",e.className),children:n})})});tte.displayName="PersonaContainer";var nte=L((e,t)=>{var n,r,o,i,a;const{name:s,presence:l,presenceLabel:c,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:g,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:k,..._}=e,C={};let T;const A=yo(),$=((n=A.colors)==null?void 0:n.presence)||ete,B=!!((o=(r=A.semanticTokens)==null?void 0:r.colors)!=null&&o["presence.online"]);if(l){const Y=c||((i=CC[l])==null?void 0:i.label),te=B?((a=CC[l])==null?void 0:a.color)||`presence.${l}`:$[l];f?(C.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:te,borderRadius:"50%",boxSizing:"border-box"}},C.borderWidth="0.15em",C.bg=pv("white","gray.800")):C.bg=te,T=u.jsx(Kj,{boxSize:p,...C,children:d}),Y&&(T=u.jsx(l1,{label:Y,children:T}))}return u.jsx(_b,{ref:t,name:s,size:h,getInitials:g,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:k,..._,children:T})});nte.displayName="PersonaAvatar";var rte=L((e,t)=>{const{children:n,className:r,...o}=e,i=lm(),s={...{display:"flex",flexDirection:"column"},...i.details};return u.jsx(N.div,{ref:t,...o,__css:s,className:V("sui-persona__details",r),children:n})});rte.displayName="PersonaDetails";var ote=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});ote.displayName="PersonaLabel";var ite=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});ite.displayName="PersonaSecondaryLabel";var ate=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});ate.displayName="PersonaTertiaryLabel";var[ste,H5]=hr("SuiProperty"),lte=L((e,t)=>{const n=Ve("SuiProperty",e),{children:r,label:o,value:i,labelWidth:a,spacing:s,...l}=Ce(e),c={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return u.jsx(ste,{value:n,children:u.jsxs(N.dl,{ref:t,__css:c,...l,className:V("sui-property",e.className),children:[o&&u.jsx(G5,{width:a,minWidth:a,marginEnd:s,children:o}),i&&u.jsx(K5,{children:i}),r]})})});lte.displayName="Property";var G5=L((e,t)=>{const n=H5(),{children:r,noOfLines:o=1,width:i,minWidth:a,...s}=e,l={display:"flex",flexDirection:"row",...n.label};return i&&(l.minWidth=a||"auto",l.width=i),u.jsx(N.dt,{ref:t,__css:l,...s,className:V("sui-property__label",e.className),children:u.jsx(N.span,{flex:"1",noOfLines:o,children:r})})});G5.displayName="PropertyLabel";var K5=L((e,t)=>{const n=H5(),{children:r,...o}=e,i={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return u.jsx(N.dd,{ref:t,__css:i,...o,className:V("sui-property__value",e.className),children:r})});K5.displayName="PropertyValue";function cte(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:o=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s,...l}=e,c=m.useRef(null);m.useImperativeHandle(t,()=>c.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),g=()=>{if(c.current){const x=c.current.offsetWidth;x!==d.current&&(d.current=x)}};return lee({ref:c,onResize:()=>{var x;((x=c.current)==null?void 0:x.offsetWidth)!==d.current&&g()}}),m.useEffect(()=>{var x;g(),f.current=((x=c.current)==null?void 0:x.offsetHeight)||0},[]),Xee({elementRef:n,isEnabled:o||!i,callback:({prevPos:x,currPos:b})=>{a==null||a(b.y),o&&h(v=>{const S=b.y>x.y&&b.y>f.current;return S!==v?S:v})}}),{containerRef:c,height:r,isHidden:p,shouldHideOnScroll:o,motionProps:s,getContainerProps:(x={})=>({...l,...s,"data-hidden":oe(p),ref:c,style:{"--navbar-height":r,...l.style,...x==null?void 0:x.style}})}}var[ute]=ye({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[dte,cm]=ye({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),fte=N($n.nav),pte=L((e,t)=>{const{children:n,...r}=e,o=cte({...r,ref:t}),i=Ve("SuiNavbar",e),a=u.jsx(N.header,{__css:i.inner,className:"sui-navbar__inner",children:n}),s={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...i.container};return u.jsx(dte,{value:i,children:u.jsx(ute,{value:o,children:u.jsx(fte,{__css:s,animate:o.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...o.getContainerProps(e),children:a})})})});pte.displayName="Navbar";var mte=L((e,t)=>{const{className:n,children:r,...o}=e,i=cm();return u.jsx(N.div,{ref:t,__css:i.brand,className:V("sui-navbar__brand"),...o,children:r})});mte.displayName="NavbarBrand";var hte=L((e,t)=>{const{className:n,children:r,spacing:o=0,...i}=e,s={...cm().content,"& > *:not(style) ~ *:not(style)":{marginStart:o}};return u.jsx(N.ul,{ref:t,__css:s,className:V("sui-navbar__content",n),...i,children:r})});hte.displayName="NavbarContent";var gte=L((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=cm();return u.jsx(N.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":oe(o),...i,children:r})});gte.displayName="NavbarItem";var vte=L((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=S1(),s=cm();return u.jsx(N.a,{as:a,ref:t,__css:s.link,"data-active":oe(o),className:V("sui-navbar__link",n),...i,children:r})});vte.displayName="NavbarLink";var[yte,bte]=ye({name:"SidebarContext",strict:!1}),[xte]=ye({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),Ste=N($n.nav),wte={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},X5=L((e,t)=>{var n,r,o;const i=Ve("SuiSidebar",e),s=(n=yo().components.SuiSidebar)==null?void 0:n.defaultProps,l=xC((r=e.variant)!=null?r:s==null?void 0:s.variant,{fallback:"base"}),c=xC((o=e.size)!=null?o:s==null?void 0:s.size,{fallback:"base"}),d=l==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:g,motionPreset:y="slideInOut",isOpen:x,onOpen:b,onClose:v,...S}=Ce(e),w=bee(),k=V5(h),_=ep(k,{fallback:void 0}),C=ep(k),T=typeof _>"u",A=typeof x<"u",$=(_||A)&&!d,B=ou({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:b||(w==null?void 0:w.openSidebar),onClose:v||(w==null?void 0:w.closeSidebar)}),{isOpen:Y,onClose:te,onOpen:I}=B;m.useEffect(()=>{T&&C||d||A||(C?te():I())},[T,d,C]);const K={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",..._&&$?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},F={...B,breakpoints:k,isMobile:_,variant:l,size:c},z=wte[d?"none":y||"none"];return u.jsx(yte,{value:F,children:u.jsx(xte,{value:i,children:u.jsx(Ste,{ref:t,initial:!1,animate:!T&&(!$||Y?"enter":"exit"),variants:z,__css:{...K,...i.container},...S,id:B.getDisclosureProps().id,className:V("sui-sidebar",g),"data-compact":oe(d),"data-collapsible":oe(_&&$),children:p})})})});X5.displayName="Sidebar";X5.id="Sidebar";ye({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[kte,Y5]=ye({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),q5=L(({children:e,...t},n)=>{const r=Y5();return u.jsx(N.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});q5.displayName="NavItemLabel";var Q5=e=>{const t=Y5(),{className:n,children:r,...o}=e,i=m.Children.only(r),a=m.isValidElement(i)?m.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return u.jsx(N.span,{...o,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};Q5.displayName="NavItemIcon";var Cte=L((e,t)=>{const{as:n,href:r,icon:o,inset:i,className:a,tooltipProps:s,isActive:l,children:c,...d}=Ce(e),f=S1(),{onClose:p,variant:h}=bte()||{},g=h==="compact",y=Ve("SuiNavItem",e);let x=c,b=s==null?void 0:s.label;typeof x=="string"&&(!b&&g&&(b=x),x=u.jsx(q5,{children:x}));let v=n;r&&!n&&(v=f);const S=u.jsx(N.a,{as:v,"aria-current":l?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":oe(l),__css:y.link,children:u.jsxs(N.span,{__css:{...y.inner,pl:i},className:"sui-nav-item__inner",children:[o&&u.jsx(Q5,{children:o}),x]})});return u.jsx(kte,{value:y,children:u.jsx(l1,{label:b,placement:"right",openDelay:400,...s,children:u.jsx(N.div,{__css:y.item,onClick:p,"data-compact":oe(g),className:V("sui-nav-item",a),children:S})})})});Cte.displayName="NavItem";var Pte=L((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:o,size:i,variant:a,width:s,icon:l,resetIcon:c,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...g}=e,y=Ve("SuiSearchInput",e),x=m.useRef(null),[b,v]=oT({value:r,defaultValue:o}),S=m.useCallback(T=>{v(T.target.value)},[v]),w=m.useCallback(T=>{T.key==="Escape"&&(v(""),k())},[p,v]),k=()=>{var T;v(""),p==null||p(),(T=x.current)==null||T.focus()},_=i==="lg"?"sm":"xs",C=b&&!e.isDisabled;return u.jsxs(Gb,{size:i,width:s,children:[u.jsx(Kb,{children:l||u.jsx(rq,{})}),u.jsx(ft,{type:"text",placeholder:n,variant:a,size:i,value:b,ref:xy(t,x),sx:y.input,onChange:le(S,f),onKeyDown:le(w,h),...g}),u.jsx(Zp,{children:C?u.jsx(Or,{onClick:k,size:_,variant:"ghost","aria-label":"Reset search",icon:c||u.jsx(nq,{}),sx:y.reset}):d})]})});Pte.displayName="SearchInput";var[_te,Tte]=ye({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function Ete(e){const{step:t,onChange:n}=e,[r,o]=m.useState(0),i=m.useRef([]),[,a]=m.useState(Date.now()),s=m.useCallback(h=>{const g=[...i.current];g.indexOf(h)===-1&&g.push(h),i.current=g,a(Date.now())},[i,a]),l=h=>{i.current=i.current.slice(i.current.indexOf(h),1)},c=h=>{const g=i.current.indexOf(h);g!==-1&&o(g)},d=()=>{o(r+1)},f=()=>{o(r-1)};return m.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?o(t):r===-1&&o(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:i,activeStep:i.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===i.current.length-1,isCompleted:r>=i.current.length,setIndex:o,setStep:c,nextStep:d,prevStep:f,registerStep:s,unregisterStep:l}}function jte(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:i,activeStep:a}=Tte();return m.useEffect(()=>{if(t)return o(t),()=>{i(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[$te,Ate]=hr("Stepper"),Ite=L((e,t)=>{var n,r,o,i;const{children:a,orientation:s="horizontal",index:l,step:c,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:g,...y}=e,x=Ve("Stepper",e),b=Ete({step:c??l,onChange:d}),{activeIndex:v}=b,S=s==="vertical",w=uee(a,Z5),k={position:"relative",...x.item},_=w.reduce(($,B,Y,te)=>{const I=m.cloneElement(B,{key:Y,...B.props,isActive:v===Y,isCompleted:B.props.isCompleted||v>Y});return S?$.push(u.jsxs(N.div,{className:"sui-steps__item",__css:k,children:[I,u.jsx(Zv,{isOpen:v===Y,orientation:s,children:B.props.children}),Y=w.length?C:!S&&T?u.jsx(Zv,{orientation:s,children:(i=(o=w[v])==null?void 0:o.props)==null?void 0:i.children}):null;return u.jsx($te,{value:x,children:u.jsx(_te,{value:b,children:u.jsxs(N.div,{ref:t,__css:x.container,...y,className:V("sui-steps",e.className),children:[u.jsx(XY,{index:v,orientation:s,variant:f,colorScheme:p,size:h,...g,children:_}),A]})})})});Ite.displayName="Steps";var Z5=e=>{const{render:t,icon:n,title:r,description:o,...i}=e,a=jte(i);return t?t({...a,...e}):u.jsxs(BY,{children:[u.jsx(GY,{children:u.jsx(HY,{complete:u.jsx(UY,{}),incomplete:u.jsx(qk,{children:n}),active:u.jsx(qk,{})})}),u.jsxs(ge,{flexShrink:"0",children:[u.jsx(KY,{children:r}),o&&u.jsx(VY,{children:o})]}),u.jsx(h5,{})]})};Z5.displayName="StepsItem";var Zv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...o}=e,i=Ate();return u.jsx(N.div,{...o,__css:i.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?u.jsx(Yp,{in:n,style:{overflow:n?"visible":"hidden"},children:u.jsx(N.div,{p:"2px",children:n?t:null})}):t})};Zv.displayName="StepsContent";var J5=e=>{const t={};return u.jsx(N.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};J5.displayName="StepsCompleted";var[Dse,Rte]=hr("SuiTimeline"),zte=L((e,t)=>{const{children:n,...r}=e,o=Rte();return u.jsx(N.li,{...r,ref:t,__css:o.item,className:V("sui-timeline__item",e.className),children:n})});zte.displayName="TimelineItem";L((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=An("SuiIconBadge",e),l=Ce(a),c=n||r,d=m.isValidElement(c)?m.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...s};return u.jsx(N.div,{ref:t,__css:f,borderRadius:o?"full":void 0,"aria-label":i,...l,className:V("sui-icon-badge",e.className),children:d})});/** + * @remix-run/router v1.23.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function k1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nte(){return Math.random().toString(36).substr(2,8)}function _C(e,t){return{usr:e.state,key:e.key,idx:t}}function Jv(e,t,n,r){return n===void 0&&(n=null),Yc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?el(t):t,{state:n,key:t&&t.key||r||Nte()})}function op(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function el(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ote(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Ho.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Yc({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Ho.Pop;let x=d(),b=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:b})}function p(x,b){s=Ho.Push;let v=Jv(y.location,x,b);c=d()+1;let S=_C(v,c),w=y.createHref(v);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&l&&l({action:s,location:y.location,delta:1})}function h(x,b){s=Ho.Replace;let v=Jv(y.location,x,b);c=d();let S=_C(v,c),w=y.createHref(v);a.replaceState(S,"",w),i&&l&&l({action:s,location:y.location,delta:0})}function g(x){let b=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof x=="string"?x:op(x);return v=v.replace(/ $/,"%20"),rt(b,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,b)}let y={get action(){return s},get location(){return e(o,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(PC,f),l=x,()=>{o.removeEventListener(PC,f),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let b=g(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(x){return a.go(x)}};return y}var TC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(TC||(TC={}));function Dte(e,t,n){return n===void 0&&(n="/"),Lte(e,t,n)}function Lte(e,t,n,r){let o=typeof t=="string"?el(t):t,i=Us(o.pathname||"/",n);if(i==null)return null;let a=eA(e);Fte(a);let s=null,l=Qte(i);for(let c=0;s==null&&c{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(rt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ti([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),eA(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Kte(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of tA(i.path))o(i,a,l)}),t}function tA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=tA(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Fte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xte(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bte=/^:[\w-]+$/,Vte=3,Wte=2,Ute=1,Hte=10,Gte=-2,EC=e=>e==="*";function Kte(e,t){let n=e.split("/"),r=n.length;return n.some(EC)&&(r+=Gte),t&&(r+=Wte),n.filter(o=>!EC(o)).reduce((o,i)=>o+(Bte.test(i)?Vte:i===""?Ute:Hte),r)}function Xte(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Yte(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:h}=d;if(p==="*"){let y=s[f]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return h&&!g?c[p]=void 0:c[p]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function qte(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Qte(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Us(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zte=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jte=e=>Zte.test(e);function ene(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?el(e):e,i;if(n)if(Jte(n))i=n;else{if(n.includes("//")){let a=n;n=nA(n),k1(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=jC(n.substring(1),"/"):i=jC(n,t)}else i=t;return{pathname:i,search:rne(r),hash:one(o)}}function jC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function qh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tne(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C1(e,t){let n=tne(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function P1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=el(e):(o=Yc({},e),rt(!o.pathname||!o.pathname.includes("?"),qh("?","pathname","search",o)),rt(!o.pathname||!o.pathname.includes("#"),qh("#","pathname","hash",o)),rt(!o.search||!o.search.includes("#"),qh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=ene(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const nA=e=>e.replace(/\/\/+/g,"/"),ti=e=>nA(e.join("/")),nne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,one=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ine(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rA=["post","put","patch","delete"];new Set(rA);const ane=["get",...rA];new Set(ane);/** + * React Router v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),m.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=P1(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ti([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const cne=m.createContext(null);function une(e){let t=m.useContext(So).outlet;return t&&m.createElement(cne.Provider,{value:e},t)}function fm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(xo),{matches:o}=m.useContext(So),{pathname:i}=xa(),a=JSON.stringify(C1(o,r.v7_relativeSplatPath));return m.useMemo(()=>P1(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function dne(e,t){return fne(e,t)}function fne(e,t,n,r){tl()||rt(!1);let{navigator:o}=m.useContext(xo),{matches:i}=m.useContext(So),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=xa(),d;if(t){var f;let x=typeof t=="string"?el(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||rt(!1),d=x}else d=c;let p=d.pathname||"/",h=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=Dte(e,{pathname:h}),y=vne(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:ti([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ti([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?m.createElement(dm.Provider,{value:{location:qc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ho.Pop}},y):y}function pne(){let e=Sne(),t=ine(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const mne=m.createElement(pne,null);class hne extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(So.Provider,{value:this.props.routeContext},m.createElement(iA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gne(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(um);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(So.Provider,{value:t},r)}function vne(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,g=!1,y=null,x=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||mne,l&&(c<0&&p===0?(kne("route-fallback"),g=!0,x=null):c===p&&(g=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=y:g?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(gne,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(hne,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var sA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sA||{}),lA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lA||{});function yne(e){let t=m.useContext(um);return t||rt(!1),t}function bne(e){let t=m.useContext(oA);return t||rt(!1),t}function xne(e){let t=m.useContext(So);return t||rt(!1),t}function cA(e){let t=xne(),n=t.matches[t.matches.length-1];return n.route.id||rt(!1),n.route.id}function Sne(){var e;let t=m.useContext(iA),n=bne(),r=cA();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wne(){let{router:e}=yne(sA.UseNavigateStable),t=cA(lA.UseNavigateStable),n=m.useRef(!1);return aA(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qc({fromRouteId:t},i)))},[e,t])}const $C={};function kne(e,t,n){$C[e]||($C[e]=!0)}function Cne(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Qc(e){let{to:t,replace:n,state:r,relative:o}=e;tl()||rt(!1);let{future:i,static:a}=m.useContext(xo),{matches:s}=m.useContext(So),{pathname:l}=xa(),c=gr(),d=P1(t,C1(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return m.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function uA(e){return une(e.context)}function Zt(e){rt(!1)}function Pne(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ho.Pop,navigator:i,static:a=!1,future:s}=e;tl()&&rt(!1);let l=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:l,navigator:i,static:a,future:qc({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=el(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:g="default"}=r,y=m.useMemo(()=>{let x=Us(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:g},navigationType:o}},[l,d,f,p,h,g,o]);return y==null?null:m.createElement(xo.Provider,{value:c},m.createElement(dm.Provider,{children:n,value:y}))}function _ne(e){let{children:t,location:n}=e;return dne(t0(t),n)}new Promise(()=>{});function t0(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,t0(r.props.children,i));return}r.type!==Zt&&rt(!1),!r.props.index||!r.props.children||rt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=t0(r.props.children,i)),n.push(a)}),n}/** + * React Router DOM v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c&&AC?AC(()=>l(f)):l(f)},[l,c]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Cne(r),[r]),m.createElement(Pne,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const Mne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kt=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,p=dA(t,jne),{basename:h}=m.useContext(xo),g,y=!1;if(typeof c=="string"&&Nne.test(c)&&(g=c,Mne))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),k=Us(w.pathname,h);w.origin===S.origin&&k!=null?c=k+w.search+w.hash:y=!0}catch{}let x=sne(c,{relative:o}),b=Dne(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f});function v(S){r&&r(S),S.defaultPrevented||b(S)}return m.createElement("a",ip({},p,{href:g||x,onClick:y||i?r:v,ref:n,target:l}))}),fA=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:c,children:d}=t,f=dA(t,$ne),p=fm(l,{relative:f.relative}),h=xa(),g=m.useContext(oA),{navigator:y,basename:x}=m.useContext(xo),b=g!=null&&Lne(p)&&c===!0,v=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&x&&(w=Us(w,x)||w);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=S===v||!a&&S.startsWith(v)&&S.charAt(k)==="/",C=w!=null&&(w===v||!a&&w.startsWith(v)&&w.charAt(v.length)==="/"),T={isActive:_,isPending:C,isTransitioning:b},A=_?r:void 0,$;typeof i=="function"?$=i(T):$=[i,_?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(T):s;return m.createElement(Kt,ip({},f,{"aria-current":A,className:$,ref:n,style:B,to:l,viewTransition:c}),typeof d=="function"?d(T):d)});var n0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var IC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(IC||(IC={}));function One(e){let t=m.useContext(um);return t||rt(!1),t}function Dne(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=gr(),c=xa(),d=fm(e,{relative:a});return m.useCallback(f=>{if(Ene(f,n)){f.preventDefault();let p=r!==void 0?r:op(c)===op(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,d,r,o,n,e,i,a,s])}function Lne(e,t){t===void 0&&(t={});let n=m.useContext(Ine);n==null&&rt(!1);let{basename:r}=One(n0.useViewTransitionState),o=fm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Us(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Us(n.nextLocation.pathname,r)||n.nextLocation.pathname;return e0(o.pathname,a)!=null||e0(o.pathname,i)!=null}const Fne=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS TomTom, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"WAF ModSecurity/Coraza, TLS, JWT, isolation par démo."}];function Bne(){return u.jsxs(ge,{children:[u.jsx(ge,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:u.jsx(pr,{maxW:"container.lg",children:u.jsxs(Ee,{spacing:6,textAlign:"center",align:"center",children:[u.jsx(Dt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),u.jsx(ue,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),u.jsxs(Ee,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),u.jsx(he,{as:Kt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),u.jsx(pr,{maxW:"container.lg",py:16,children:u.jsx(ca,{columns:{base:1,md:2},spacing:8,children:Fne.map(e=>u.jsxs(ge,{p:6,borderWidth:"1px",borderRadius:"lg",children:[u.jsx(Dt,{size:"md",mb:2,children:e.title}),u.jsx(ue,{color:"gray.600",children:e.desc})]},e.title))})})]})}const Vne=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Données de démonstration pré-remplies","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte"},{name:"Pro",price:"Sur devis",period:"par mois",description:"Pour déployer la plateforme en production sur votre activité.",features:["Tout ce qui est inclus dans Démo","Déploiement production dédié","WAF, TLS, sauvegardes","GPS, paiements et notifications","Support prioritaire"],cta:"Nous contacter",highlighted:!0},{name:"Entreprise",price:"Sur mesure",period:"",description:"Multi-sites, SLA et intégrations spécifiques.",features:["Tout ce qui est inclus dans Pro","Haute disponibilité multi-régions","SLA et supervision 24/7","Intégrations sur mesure","Accompagnement dédié"],cta:"Nous contacter"}];function Wne(){return u.jsxs(pr,{maxW:"container.lg",py:{base:12,md:20},children:[u.jsxs(Ee,{spacing:4,textAlign:"center",mb:12,align:"center",children:[u.jsx(Dt,{size:"2xl",children:"Tarifs"}),u.jsx(ue,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en production quand vous êtes prêt."})]}),u.jsx(ca,{columns:{base:1,md:3},spacing:8,alignItems:"stretch",children:Vne.map(e=>u.jsx(Une,{plan:e},e.name))}),u.jsxs(ue,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ? ",u.jsx(Hne,{to:"/register",children:"Créez un compte"})," — un commercial vous recontacte."]})]})}function Une({plan:e}){return u.jsxs(Ee,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&u.jsx(Gn,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),u.jsxs(ge,{children:[u.jsx(Dt,{size:"md",children:e.name}),u.jsx(ue,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),u.jsxs(we,{align:"baseline",spacing:2,children:[u.jsx(ue,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&u.jsxs(ue,{color:"gray.500",children:["/ ",e.period]})]}),u.jsx(Jp,{spacing:3,flex:"1",children:e.features.map(t=>u.jsxs(L$,{display:"flex",alignItems:"flex-start",children:[u.jsx(wt,{as:Gne,color:"primary.500",mt:1,mr:2}),u.jsx(ue,{fontSize:"sm",children:t})]},t))}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function Hne({to:e,children:t}){return u.jsx(ge,{as:Kt,to:e,color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function Gne(e){return u.jsx(wt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}const Kne="http://localhost:8080",_1="omnex.token";function r0(){return localStorage.getItem(_1)}function RC(e){localStorage.setItem(_1,e)}function zC(){localStorage.removeItem(_1)}class Ze extends Error{constructor(n,r){super(r);ix(this,"status");this.status=n}}async function st(e,t,n){const r={"Content-Type":"application/json"},o=r0();o&&(r.Authorization=`Bearer ${o}`);const i=await fetch(`${Kne}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!i.ok){const a=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ze(i.status,a.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const Ne={login:(e,t,n)=>st("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>st("POST","/auth/register",{username:e,password:t}),me:()=>st("GET","/auth/me"),logout:()=>st("POST","/auth/logout"),listDemos:()=>st("GET","/demos"),listMyDemos:()=>st("GET","/demos/mine"),getDemo:e=>st("GET",`/demos/${e}`),createDemo:e=>st("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>st("POST",`/demos/${e}/extend`),deleteDemo:e=>st("DELETE",`/demos/${e}`),listCodes:()=>st("GET","/codes"),createCode:e=>st("POST","/codes",{username:e}),addCode:e=>st("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>st("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>st("GET","/messages"),getDemoDetails:e=>st("POST","/demos/details",{namespace:e}),updateUsername:e=>st("POST","/profile/username",{username:e}),updatePassword:e=>st("POST","/profile/password",{password:e}),getTelegram:()=>st("GET","/profile/telegram"),setTelegram:e=>st("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>st("GET","/profile/alerts"),setAlertSettings:e=>st("POST","/profile/alerts",e)},pA=m.createContext(null);function Xne({children:e}){const[t,n]=m.useState(r0()),[r,o]=m.useState(null),[i,a]=m.useState(null),[s,l]=m.useState(!!r0());m.useEffect(()=>{if(!t){l(!1);return}let g=!0;return Ne.me().then(y=>{g&&(o(y.role),a(y.type_abonnement))}).catch(()=>{g&&(zC(),n(null),o(null),a(null))}).finally(()=>{g&&l(!1)}),()=>{g=!1}},[]);const c=m.useCallback(async(g,y,x)=>{const b=await Ne.login(g,y,x);RC(b.token),n(b.token),o(b.role);const v=await Ne.me();a(v.type_abonnement)},[]),d=m.useCallback(async(g,y)=>{const x=await Ne.register(g,y);RC(x.token),n(x.token),o(x.role);const b=await Ne.me();a(b.type_abonnement)},[]),f=m.useCallback(async()=>{try{await Ne.logout()}finally{zC(),n(null),o(null),a(null)}},[]),p=m.useCallback(async()=>{const g=await Ne.me();a(g.type_abonnement)},[]),h=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:i==="premium",role:r,typeAbo:i,initializing:s,login:c,register:d,logout:f,refreshAbo:p}),[t,r,i,s,c,d,f,p]);return u.jsx(pA.Provider,{value:h,children:e})}function yi(){const e=m.useContext(pA);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function da(e){const{toggleColorMode:t}=lu(),n=pv("Passer en mode sombre","Passer en mode clair");return u.jsx(Or,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:pv(u.jsx(qne,{}),u.jsx(Yne,{}))})}function Yne(){return u.jsxs(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[u.jsx("circle",{cx:"12",cy:"12",r:"4"}),u.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function qne(){return u.jsx(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:u.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}/*! + * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2026 Fonticons, Inc. + */function o0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,i=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function se(e,t,n){return(t=mA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ore(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ire(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return Xe.head.insertBefore(t,r),e}}var mie="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function UC(){for(var e=12,t="";e-- >0;)t+=mie[Math.random()*62|0];return t}function nl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function I1(e){return e.classList?nl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function e4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function hie(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(e4(e[n]),'" ')},"").trim()}function mm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function R1(e){return e.size!==$r.size||e.x!==$r.x||e.y!==$r.y||e.rotate!==$r.rotate||e.flipX||e.flipY}function gie(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function vie(e){var t=e.transform,n=e.width,r=n===void 0?a0:n,o=e.height,i=o===void 0?a0:o,a="";return yA?a+="translate(".concat(t.x/Aa-r/2,"em, ").concat(t.y/Aa-i/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Aa,"em), calc(-50% + ").concat(t.y/Aa,"em)) "),a+="scale(".concat(t.size/Aa*(t.flipX?-1:1),", ").concat(t.size/Aa*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var yie=`:root, :host { + --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free'; + --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free'; + --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro'; + --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro'; + --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone'; + --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands'; + --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab'; + --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press'; + --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo'; + --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo'; + --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel'; + --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic'; + --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum'; + --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard'; + --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint'; + --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog'; + --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo'; + --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch'; + --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite'; + --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly'; + --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill'; + --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo'; + --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel'; + --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility'; + --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo'; + --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill'; +} + +.svg-inline--fa { + box-sizing: content-box; + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; + width: var(--fa-width, 1.25em); +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285714em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left, +.svg-inline--fa .fa-pull-start { + float: inline-start; + margin-inline-end: var(--fa-pull-margin, 0.3em); +} +.svg-inline--fa.fa-pull-right, +.svg-inline--fa .fa-pull-end { + float: inline-end; + margin-inline-start: var(--fa-pull-margin, 0.3em); +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); + inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */ +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: var(--fa-width, 1.25em); +} +.fa-layers .svg-inline--fa { + inset: 0; + margin: auto; + position: absolute; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-xs { + font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-sm { + font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-lg { + font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-xl { + font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-2xl { + font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-width-auto { + --fa-width: auto; +} + +.fa-fw, +.fa-width-fixed { + --fa-width: 1.25em; +} + +.fa-canvas-square { + padding-block: 0.125em; + margin-block-end: -0.125em; +} + +.fa-canvas-roomy { + padding-block: 0.25em; + padding-inline: 0.125em; + margin-block-end: -0.25em; + box-sizing: content-box; +} + +.fa-ul { + list-style-type: none; + margin-inline-start: var(--fa-li-margin, 2.5em); + padding-inline-start: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +/* Heads Up: Bordered Icons will not be supported in the future! + - This feature will be deprecated in the next major release of Font Awesome (v8)! + - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8. +*/ +/* Notes: +* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size) +* --@{v.$css-prefix}-border-padding = + ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment) + ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon) +*/ +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.0625em); + box-sizing: var(--fa-border-box-sizing, content-box); + padding: var(--fa-border-padding, 0.1875em 0.25em); +} + +.fa-pull-left, +.fa-pull-start { + float: inline-start; + margin-inline-end: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right, +.fa-pull-end { + float: inline-end; + margin-inline-start: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1.5s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-flip-360 { + animation-name: fa-flip-360; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.75s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +.fa-spin-snap { + animation-name: fa-spin-snap; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 3s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-snap-4 { + animation-name: fa-spin-snap-4; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2.4s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-snap-8 { + animation-name: fa-spin-snap-8; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 4s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-buzz { + animation-name: fa-buzz; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.6s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-wag { + animation-name: fa-wag; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.9s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); + transform-origin: bottom center; +} + +.fa-float { + animation-name: fa-float; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 3s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); + will-change: transform; +} + +.fa-swing { + animation-name: fa-swing; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1.2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); + transform-origin: top center; +} + +.fa-jello { + animation-name: fa-jello; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.9s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, + .fa-bounce, + .fa-fade, + .fa-beat-fade, + .fa-flip, + .fa-flip-360, + .fa-pulse, + .fa-shake, + .fa-spin, + .fa-spin-pulse, + .fa-buzz, + .fa-float, + .fa-jello, + .fa-spin-snap, + .fa-spin-snap-4, + .fa-spin-snap-8, + .fa-swing, + .fa-wag { + animation: none !important; + transition: none !important; + } +} +@keyframes fa-beat { + 0% { + transform: scale(1); + } + 25% { + transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); + } + 45% { + transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22))); + } + 65% { + transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); + } + 90% { + transform: scale(1); + } +} +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); + animation-timing-function: var(--fa-animation-timing); + } + 14% { + transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 32% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em))); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 52% { + transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1)); + animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); + } + 70% { + transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0); + animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1); + } + 85% { + transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-fade { + 0% { + opacity: 1; + transform: scale(1); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 40% { + opacity: var(--fa-fade-opacity, 0.4); + transform: scale(0.98); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +@keyframes fa-beat-fade { + 0% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 25% { + opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); + transform: scale(var(--fa-beat-fade-scale, 1.28)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 45% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.25)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 65% { + opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); + transform: scale(var(--fa-beat-fade-scale, 1.28)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + } +} +@keyframes fa-flip { + 0% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 8% { + transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 35% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); + animation-timing-function: linear; + } + 65% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5)); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 92% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); + } +} +@keyframes fa-flip-360 { + 0% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 8% { + transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 50% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 80% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); + } +} +@keyframes fa-shake { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 8% { + transform: rotate(35deg) translateX(1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 20% { + transform: rotate(-22deg) translateX(-1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 35% { + transform: rotate(15deg) translateX(1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 50% { + transform: rotate(-9deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 65% { + transform: rotate(5deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 78% { + transform: rotate(-3deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 90% { + transform: rotate(1deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 12% { + transform: rotate(60deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 16.67% { + transform: rotate(60deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 28.67% { + transform: rotate(120deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 33.33% { + transform: rotate(120deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 45.33% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 62% { + transform: rotate(240deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 66.67% { + transform: rotate(240deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 78.67% { + transform: rotate(300deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 83.33% { + transform: rotate(300deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 95.33% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap-4 { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 15% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 25% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 40% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 65% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 75% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 90% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap-8 { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 9% { + transform: rotate(45deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 12.5% { + transform: rotate(45deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 21.5% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 25% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 34% { + transform: rotate(135deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 37.5% { + transform: rotate(135deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 46.5% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 59% { + transform: rotate(225deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 62.5% { + transform: rotate(225deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 71.5% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 75% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 84% { + transform: rotate(315deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 87.5% { + transform: rotate(315deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 96.5% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-buzz { + 0% { + transform: translateX(0) rotate(0deg); + animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1); + } + 5% { + transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg); + } + 10% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg); + } + 15% { + transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg); + } + 20% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg); + } + 25% { + transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg); + } + 30% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg); + } + 35% { + transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg); + } + 40% { + transform: translateX(0) rotate(0deg); + } + 100% { + transform: translateX(0) rotate(0deg); + } +} +@keyframes fa-wag { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 12% { + transform: rotate(var(--fa-wag-angle, 12deg)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 24% { + transform: rotate(2deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 36% { + transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 48% { + transform: rotate(1deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 58% { + transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 68% { + transform: rotate(0deg); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-float { + 0% { + transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 15% { + transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 35% { + transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03)); + animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0); + } + 50% { + transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 70% { + transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 90% { + transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + } +} +@keyframes fa-swing { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 8% { + transform: rotate(var(--fa-swing-angle, 22deg)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 18% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 28% { + transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65)); + animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1); + } + 38% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 48% { + transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 56% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 64% { + transform: rotate(0deg); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-jello { + 0% { + transform: scale(1, 1); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 12% { + transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15))); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 24% { + transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 36% { + transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5))); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 48% { + transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 58% { + transform: scale(1.02, 0.98); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 68% { + transform: scale(1, 1); + } + 100% { + transform: scale(1, 1); + } +} +.fa-rotate-90 { + transform: rotate(90deg); +} + +.fa-rotate-180 { + transform: rotate(180deg); +} + +.fa-rotate-270 { + transform: rotate(270deg); +} + +.fa-flip-horizontal { + transform: scale(-1, 1); +} + +.fa-flip-vertical { + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); +} + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.svg-inline--fa.fa-inverse { + fill: var(--fa-inverse, #fff); +} + +.fa-stack { + display: inline-block; + height: 2em; + line-height: 2em; + position: relative; + vertical-align: middle; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.svg-inline--fa.fa-stack-1x { + --fa-width: 1.25em; + height: 1em; + width: var(--fa-width); +} +.svg-inline--fa.fa-stack-2x { + --fa-width: 2.5em; + height: 2em; + width: var(--fa-width); +} + +.fa-stack-1x, +.fa-stack-2x { + inset: 0; + margin: auto; + position: absolute; + z-index: var(--fa-stack-z-index, auto); +}`;function t4(){var e=KA,t=XA,n=ae.cssPrefix,r=ae.replacementClass,o=yie;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var HC=!1;function Zh(){ae.autoAddCss&&!HC&&(pie(t4()),HC=!0)}var bie={mixout:function(){return{dom:{css:t4,insertCss:Zh}}},hooks:function(){return{beforeDOMElementCreation:function(){Zh()},beforeI2svg:function(){Zh()}}}},ho=li||{};ho[mo]||(ho[mo]={});ho[mo].styles||(ho[mo].styles={});ho[mo].hooks||(ho[mo].hooks={});ho[mo].shims||(ho[mo].shims=[]);var sr=ho[mo],n4=[],r4=function(){Xe.removeEventListener("DOMContentLoaded",r4),sp=1,n4.map(function(t){return t()})},sp=!1;wo&&(sp=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),sp||Xe.addEventListener("DOMContentLoaded",r4));function xie(e){wo&&(sp?setTimeout(e,0):n4.push(e))}function _u(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?e4(e):"<".concat(t," ").concat(hie(r),">").concat(i.map(_u).join(""),"")}function GC(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Jh=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=n,l,c,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,i=KC(t);typeof sr.hooks.addPack=="function"&&!o?sr.hooks.addPack(e,KC(t)):sr.styles[e]=U(U({},sr.styles[e]||{}),i),e==="fas"&&d0("fa",t)}var Zc=sr.styles,Sie=sr.shims,i4=Object.keys(A1),wie=i4.reduce(function(e,t){return e[t]=Object.keys(A1[t]),e},{}),z1=null,a4={},s4={},l4={},c4={},u4={};function kie(e){return~lie.indexOf(e)}function Cie(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!kie(o)?o:null}var d4=function(){var t=function(i){return Jh(Zc,function(a,s,l){return a[l]=Jh(s,i,{}),a},{})};a4=t(function(o,i,a){if(i[3]&&(o[i[3]]=a),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){o[l.toString(16)]=a})}return o}),s4=t(function(o,i,a){if(o[a]=a,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){o[l]=a})}return o}),u4=t(function(o,i,a){var s=i[2];return o[a]=a,s.forEach(function(l){o[l]=a}),o});var n="far"in Zc||ae.autoFetchSvg,r=Jh(Sie,function(o,i){var a=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(o.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(o.unicodes[a.toString(16)]={prefix:s,iconName:l}),o},{names:{},unicodes:{}});l4=r.names,c4=r.unicodes,z1=hm(ae.styleDefault,{family:ae.familyDefault})};fie(function(e){z1=hm(e.styleDefault,{family:ae.familyDefault})});d4();function M1(e,t){return(a4[e]||{})[t]}function Pie(e,t){return(s4[e]||{})[t]}function Bi(e,t){return(u4[e]||{})[t]}function f4(e){return l4[e]||{prefix:null,iconName:null}}function _ie(e){var t=c4[e],n=M1("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ci(){return z1}var p4=function(){return{prefix:null,iconName:null,rest:[]}};function Tie(e){var t=Ft,n=i4.reduce(function(r,o){return r[o]="".concat(ae.cssPrefix,"-").concat(o),r},{});return WA.forEach(function(r){(e.includes(n[r])||e.some(function(o){return wie[r].includes(o)}))&&(t=r)}),t}function hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ft:n,o=rie[r][e];if(r===Cu&&!e)return"fad";var i=WC[r][e]||WC[r][o],a=e in sr.styles?e:null,s=i||a||null;return s}function Eie(e){var t=[],n=null;return e.forEach(function(r){var o=Cie(ae.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function XC(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var YC=HA.concat(UA);function gm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,i=XC(e.filter(function(h){return YC.includes(h)})),a=XC(e.filter(function(h){return!YC.includes(h)})),s=i.filter(function(h){return o=h,!xA.includes(h)}),l=pm(s,1),c=l[0],d=c===void 0?null:c,f=Tie(i),p=U(U({},Eie(a)),{},{prefix:hm(d,{family:f})});return U(U(U({},p),Iie({values:e,family:f,styles:Zc,config:ae,canonical:p,givenPrefix:o})),jie(r,o,p))}function jie(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var i=t==="fa"?f4(o):{},a=Bi(r,o);return o=i.iconName||a||o,r=i.prefix||r,r==="far"&&!Zc.far&&Zc.fas&&!ae.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var $ie=WA.filter(function(e){return e!==Ft||e!==Cu}),Aie=Object.keys(i0).filter(function(e){return e!==Ft}).map(function(e){return Object.keys(i0[e])}).flat();function Iie(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,a=e.styles,s=a===void 0?{}:a,l=e.config,c=l===void 0?{}:l,d=n===Cu,f=t.includes("fa-duotone")||t.includes("fad"),p=c.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&$ie.includes(n)){var g=Object.keys(s).find(function(x){return Aie.includes(x)});if(g||c.autoFetchSvg){var y=Ore.get(n).defaultShortPrefixId;r.prefix=y,r.iconName=Bi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||i==="fa")&&(r.prefix=ci()||"fas"),r}var Rie=function(){function e(){Jne(this,e),this.definitions={}}return tre(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i0&&d.forEach(function(f){typeof f=="string"&&(n[s][f]=c)}),n[s][l]=c}),n}}])}(),qC=[],ss={},ks={},zie=Object.keys(ks);function Mie(e,t){var n=t.mixoutsTo;return qC=e,ss={},Object.keys(ks).forEach(function(r){zie.indexOf(r)===-1&&delete ks[r]}),qC.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(n[a]=o[a]),ap(o[a])==="object"&&Object.keys(o[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=o[a][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(a){ss[a]||(ss[a]=[]),ss[a].push(i[a])})}r.provides&&r.provides(ks)}),n}function f0(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return wo?(pa("beforeI2svg",t),ui("pseudoElements2svg",t),ui("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ae.autoReplaceSvg===!1&&(ae.autoReplaceSvg=!0),ae.observeMutations=!0,xie(function(){Lie({autoReplaceSvgRoot:n}),pa("watch",t)})}},Die={icon:function(t){if(t===null)return null;if(ap(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Bi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=hm(t[0]);return{prefix:r,iconName:Bi(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ae.cssPrefix,"-"))>-1||t.match(oie))){var o=gm(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ci(),iconName:Bi(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ci();return{prefix:i,iconName:Bi(i,t)||t}}}},In={noAuto:Nie,config:ae,dom:Oie,parse:Die,library:m4,findIconDefinition:p0,toHtml:_u},Lie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Xe:n;(Object.keys(sr.styles).length>0||ae.autoFetchSvg)&&wo&&ae.autoReplaceSvg&&In.dom.i2svg({node:r})};function vm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return _u(r)})}}),Object.defineProperty(e,"node",{get:function(){if(wo){var r=Xe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Fie(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(R1(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};o.style=mm(U(U({},i),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function Bie(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=i===!0?"".concat(t,"-").concat(ae.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:U(U({},o),{},{id:a}),children:r}]}]}function Vie(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function N1(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,l=e.maskId,c=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,g=p.height,y=[ae.replacementClass,i?"".concat(ae.cssPrefix,"-").concat(i):""].filter(function(k){return c.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(c.classes).join(" "),x={children:[],attributes:U(U({},c.attributes),{},{"data-prefix":o,"data-icon":i,class:y,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(g)})};!Vie(c.attributes)&&!c.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[fa]="");var b=U(U({},x),{},{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:a,symbol:s,styles:U({},c.styles)}),v=r.found&&n.found?ui("generateAbstractMask",b)||{children:[],attributes:{}}:ui("generateAbstractIcon",b)||{children:[],attributes:{}},S=v.children,w=v.attributes;return b.children=S,b.attributes=w,s?Bie(b):Fie(b)}function QC(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.extra,a=e.watchable,s=a===void 0?!1:a,l=U(U({},i.attributes),{},{class:i.classes.join(" ")});s&&(l[fa]="");var c=U({},i.styles);R1(o)&&(c.transform=vie({transform:o,width:n,height:r}),c["-webkit-transform"]=c.transform);var d=mm(c);d.length>0&&(l.style=d);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),f}function Wie(e){var t=e.content,n=e.extra,r=U(U({},n.attributes),{},{class:n.classes.join(" ")}),o=mm(n.styles);o.length>0&&(r.style=o);var i=[];return i.push({tag:"span",attributes:r,children:[t]}),i}var eg=sr.styles;function m0(e){var t=e[0],n=e[1],r=e.slice(4),o=pm(r,1),i=o[0],a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:a}}var Uie={found:!1,width:512,height:512};function Hie(e,t){!qA&&!ae.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function h0(e,t){var n=t;return t==="fa"&&ae.styleDefault!==null&&(t=ci()),new Promise(function(r,o){if(n==="fa"){var i=f4(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&eg[t]&&eg[t][e]){var a=eg[t][e];return r(m0(a))}Hie(e,t),r(U(U({},Uie),{},{icon:ae.showMissingIcons&&e?ui("missingIconAbstract")||{}:{}}))})}var ZC=function(){},g0=ae.measurePerformance&&kd&&kd.mark&&kd.measure?kd:{mark:ZC,measure:ZC},Bl='FA "7.3.1"',Gie=function(t){return g0.mark("".concat(Bl," ").concat(t," begins")),function(){return h4(t)}},h4=function(t){g0.mark("".concat(Bl," ").concat(t," ends")),g0.measure("".concat(Bl," ").concat(t),"".concat(Bl," ").concat(t," begins"),"".concat(Bl," ").concat(t," ends"))},O1={begin:Gie,end:h4},pf=function(){};function JC(e){var t=e.getAttribute?e.getAttribute(fa):null;return typeof t=="string"}function Kie(e){var t=e.getAttribute?e.getAttribute(j1):null,n=e.getAttribute?e.getAttribute($1):null;return t&&n}function Xie(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ae.replacementClass)}function Yie(){if(ae.autoReplaceSvg===!0)return mf.replace;var e=mf[ae.autoReplaceSvg];return e||mf.replace}function qie(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function Qie(e){return Xe.createElement(e)}function g4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?qie:Qie:n;if(typeof e=="string")return Xe.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){o.setAttribute(a,e.attributes[a])});var i=e.children||[];return i.forEach(function(a){o.appendChild(g4(a,{ceFn:r}))}),o}function Zie(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var mf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(g4(o),n)}),n.getAttribute(fa)===null&&ae.keepOriginalSource){var r=Xe.createComment(Zie(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~I1(n).indexOf(ae.replacementClass))return mf.replace(t);var o=new RegExp("".concat(ae.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===ae.replacementClass||l.match(o)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var a=r.map(function(s){return _u(s)}).join(` +`);n.setAttribute(fa,""),n.innerHTML=a}};function e2(e){e()}function v4(e,t){var n=typeof t=="function"?t:pf;if(e.length===0)n();else{var r=e2;ae.mutateApproach===tie&&(r=li.requestAnimationFrame||e2),r(function(){var o=Yie(),i=O1.begin("mutate");e.map(o),i(),n()})}}var D1=!1;function y4(){D1=!0}function v0(){D1=!1}var lp=null;function t2(e){if(LC&&ae.observeMutations){var t=e.treeCallback,n=t===void 0?pf:t,r=e.nodeCallback,o=r===void 0?pf:r,i=e.pseudoElementsCallback,a=i===void 0?pf:i,s=e.observeMutationsRoot,l=s===void 0?Xe:s;lp=new LC(function(c){if(!D1){var d=ci();nl(c).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!JC(f.addedNodes[0])&&(ae.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ae.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&JC(f.target)&&~sie.indexOf(f.attributeName))if(f.attributeName==="class"&&Kie(f.target)){var p=gm(I1(f.target)),h=p.prefix,g=p.iconName;f.target.setAttribute(j1,h||d),g&&f.target.setAttribute($1,g)}else Xie(f.target)&&o(f.target)})}}),wo&&lp.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Jie(){lp&&lp.disconnect()}function eae(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var i=o.split(":"),a=i[0],s=i.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function tae(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=gm(I1(e));return o.prefix||(o.prefix=ci()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=Pie(o.prefix,e.innerText)||M1(o.prefix,o4(e.innerText))),!o.iconName&&ae.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function nae(e){var t=nl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function rae(){return{iconName:null,prefix:null,transform:$r,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function n2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=tae(e),r=n.iconName,o=n.prefix,i=n.rest,a=nae(e),s=f0("parseNodeAttributes",{},e),l=t.styleParser?eae(e):[];return U({iconName:r,prefix:o,transform:$r,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},s)}var oae=sr.styles;function b4(e){var t=ae.autoReplaceSvg==="nest"?n2(e,{styleParser:!1}):n2(e);return~t.extra.classes.indexOf(ZA)?ui("generateLayersText",e,t):ui("generateSvgReplacementMutation",e,t)}function iae(){return[].concat(mr(UA),mr(HA))}function r2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wo)return Promise.resolve();var n=Xe.documentElement.classList,r=function(f){return n.add("".concat(VC,"-").concat(f))},o=function(f){return n.remove("".concat(VC,"-").concat(f))},i=ae.autoFetchSvg?iae():xA.concat(Object.keys(oae));i.includes("fa")||i.push("fa");var a=[".".concat(ZA,":not([").concat(fa,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(fa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=nl(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();var l=O1.begin("onTree"),c=s.reduce(function(d,f){try{var p=b4(f);p&&d.push(p)}catch(h){qA||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(c).then(function(p){v4(p,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(p){l(),f(p)})})}function aae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;b4(e).then(function(n){n&&v4([n],t)})}function sae(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:p0(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:p0(o||{})),e(r,U(U({},n),{},{mask:o}))}}var lae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?$r:r,i=n.symbol,a=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,c=n.maskId,d=c===void 0?null:c,f=n.classes,p=f===void 0?[]:f,h=n.attributes,g=h===void 0?{}:h,y=n.styles,x=y===void 0?{}:y;if(t){var b=t.prefix,v=t.iconName,S=t.icon;return vm(U({type:"icon"},t),function(){return pa("beforeDOMElementCreation",{iconDefinition:t,params:n}),N1({icons:{main:m0(S),mask:l?m0(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:v,transform:U(U({},$r),o),symbol:a,maskId:d,extra:{attributes:g,styles:x,classes:p}})})}},cae={mixout:function(){return{icon:sae(lae)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=r2,n.nodeCallback=aae,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?Xe:r,i=n.callback,a=i===void 0?function(){}:i;return r2(o,a)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,i=r.prefix,a=r.transform,s=r.symbol,l=r.mask,c=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([h0(o,i),l.iconName?h0(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var g=pm(h,2),y=g[0],x=g[1];f([n,N1({icons:{main:y,mask:x},prefix:i,iconName:o,transform:a,symbol:s,maskId:c,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.transform,s=n.styles,l=mm(s);l.length>0&&(o.style=l);var c;return R1(a)&&(c=ui("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:o}}}},uae={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,i=o===void 0?[]:o;return vm({type:"layer"},function(){pa("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(ae.cssPrefix,"-layers")].concat(mr(i)).join(" ")},children:a}]})}}}},dae={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,i=o===void 0?[]:o,a=r.attributes,s=a===void 0?{}:a,l=r.styles,c=l===void 0?{}:l;return vm({type:"counter",content:n},function(){return pa("beforeDOMElementCreation",{content:n,params:r}),Wie({content:n.toString(),extra:{attributes:s,styles:c,classes:["".concat(ae.cssPrefix,"-layers-counter")].concat(mr(i))}})})}}}},fae={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,i=o===void 0?$r:o,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,d=r.styles,f=d===void 0?{}:d;return vm({type:"text",content:n},function(){return pa("beforeDOMElementCreation",{content:n,params:r}),QC({content:n,transform:U(U({},$r),i),extra:{attributes:c,styles:f,classes:["".concat(ae.cssPrefix,"-layers-text")].concat(mr(s))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,i=r.extra,a=null,s=null;if(yA){var l=parseInt(getComputedStyle(n).fontSize,10),c=n.getBoundingClientRect();a=c.width/l,s=c.height/l}return Promise.resolve([n,QC({content:n.innerHTML,width:a,height:s,transform:o,extra:i,watchable:!0})])}}},x4=new RegExp('"',"ug"),o2=[1105920,1112319],i2=U(U(U(U({},{FontAwesome:{normal:"fas",400:"fas"}}),Nre),Joe),Hre),y0=Object.keys(i2).reduce(function(e,t){return e[t.toLowerCase()]=i2[t],e},{}),pae=Object.keys(y0).reduce(function(e,t){var n=y0[t];return e[t]=n[900]||mr(Object.entries(n))[0][1],e},{});function mae(e){var t=e.replace(x4,"");return o4(mr(t)[0]||"")}function hae(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(x4,""),o=r.codePointAt(0),i=o>=o2[0]&&o<=o2[1],a=r.length===2?r[0]===r[1]:!1;return i||a||t}function gae(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(y0[n]||{})[o]||pae[n]}function a2(e,t){var n="".concat(eie).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var i=nl(e.children),a=i.filter(function(_){return _.getAttribute(s0)===t})[0],s=li.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(iie),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!c)return e.removeChild(a),r();if(c&&f!=="none"&&f!==""){var p=s.getPropertyValue("content"),h=gae(l,d),g=mae(p),y=c[0].startsWith("FontAwesome"),x=hae(s),b=M1(h,g),v=b;if(y){var S=_ie(g);S.iconName&&S.prefix&&(b=S.iconName,h=S.prefix)}if(b&&!x&&(!a||a.getAttribute(j1)!==h||a.getAttribute($1)!==v)){e.setAttribute(n,v),a&&e.removeChild(a);var w=rae(),k=w.extra;k.attributes[s0]=t,h0(b,h).then(function(_){var C=N1(U(U({},w),{},{icons:{main:_,mask:p4()},prefix:h,iconName:v,extra:k,watchable:!0})),T=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=C.map(function(A){return _u(A)}).join(` +`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function vae(e){return Promise.all([a2(e,"::before"),a2(e,"::after")])}function yae(e){return e.parentNode!==document.head&&!~nie.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(s0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var bae=function(t){return!!t&&YA.some(function(n){return t.includes(n)})},xae=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(c){return c.trim()})});var o=ff(r),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;if(bae(a)){var s=YA.reduce(function(l,c){return l.replace(c,"")},a);s!==""&&s!=="*"&&n.add(s)}}}catch(l){o.e(l)}finally{o.f()}return n};function s2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wo){var n;if(t)n=e;else if(ae.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=ff(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;try{var s=ff(a.cssRules),l;try{for(s.s();!(l=s.n()).done;){var c=l.value,d=xae(c.selectorText),f=ff(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}}catch(y){ae.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(y.message,`) +If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){o.e(y)}finally{o.f()}if(!r.size)return;var g=Array.from(r).join(", ");try{n=e.querySelectorAll(g)}catch{}}return new Promise(function(y,x){var b=nl(n).filter(yae).map(vae),v=O1.begin("searchPseudoElements");y4(),Promise.all(b).then(function(){v(),v0(),y()}).catch(function(){v(),v0(),x()})})}}var Sae={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=s2,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?Xe:r;ae.searchPseudoElements&&s2(o)}}},l2=!1,wae={mixout:function(){return{dom:{unwatch:function(){y4(),l2=!0}}}},hooks:function(){return{bootstrap:function(){t2(f0("mutationObserverCallbacks",{}))},noAuto:function(){Jie()},watch:function(n){var r=n.observeMutationsRoot;l2?v0():t2(f0("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},c2=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var i=o.toLowerCase().split("-"),a=i[0],s=i.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},kae={mixout:function(){return{parse:{transform:function(n){return c2(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=c2(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,i=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),c="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(l," ").concat(c," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:s,inner:f,path:p};return{tag:"g",attributes:U({},h.outer),children:[{tag:"g",attributes:U({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:U(U({},r.icon.attributes),h.path)}]}]}}}},tg={x:0,y:0,width:"100%",height:"100%"};function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Cae(e){return e.tag==="g"?e.children:[e]}var Pae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),i=o?gm(o.split(" ").map(function(a){return a.trim()})):p4();return i.prefix||(i.prefix=ci()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.mask,s=n.maskId,l=n.transform,c=i.width,d=i.icon,f=a.width,p=a.icon,h=gie({transform:l,containerWidth:f,iconWidth:c}),g={tag:"rect",attributes:U(U({},tg),{},{fill:"white"})},y=d.children?{children:d.children.map(u2)}:{},x={tag:"g",attributes:U({},h.inner),children:[u2(U({tag:d.tag,attributes:U(U({},d.attributes),h.path)},y))]},b={tag:"g",attributes:U({},h.outer),children:[x]},v="mask-".concat(s||UC()),S="clip-".concat(s||UC()),w={tag:"mask",attributes:U(U({},tg),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,b]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Cae(p)},w]};return r.push(k,{tag:"rect",attributes:U({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(v,")")},tg)}),{children:r,attributes:o}}}},_ae={provides:function(t){var n=!1;li.matchMedia&&(n=li.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:U(U({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=U(U({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:U(U({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:U(U({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:U(U({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:U(U({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:U(U({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:U(U({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:U(U({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Tae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},Eae=[bie,cae,uae,dae,fae,Sae,wae,kae,Pae,_ae,Tae];Mie(Eae,{mixoutsTo:In});In.noAuto;var Gs=In.config;In.library;In.dom;var S4=In.parse;In.findIconDefinition;In.toHtml;var jae=In.icon;In.layer;In.text;In.counter;function $ae(e){return e=e-0,e===e}function w4(e){return $ae(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Aae=(e,t)=>Rt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Iae(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ia=new Map,Rae=1e3;function zae(e){if(Ia.has(e))return Ia.get(e);const t={};let n=0;const r=e.length;for(;n0){const l=a.slice(0,s).trim(),c=a.slice(s+1).trim();if(l&&c){const d=w4(l);t[d.startsWith("webkit")?Iae(d):d]=c}}}n=i+1}if(Ia.size===Rae){const o=Ia.keys().next().value;o&&Ia.delete(o)}return Ia.set(e,t),t}function k4(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),k4(e,p)}),o=t.attributes||{},i={};for(const[f,p]of Object.entries(o))switch(!0){case f==="class":{i.className=p;break}case f==="style":{i.style=zae(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{i[f.toLowerCase()]=p;break}default:i[w4(f)]=p}const{style:a,role:s,"aria-label":l,gradientFill:c,...d}=n;if(a&&(i.style=i.style?{...i.style,...a}:a),s&&(i.role=s),l&&(i["aria-label"]=l,i["aria-hidden"]="false"),c){i.fill=`url(#${c.id})`;const{type:f,stops:p=[],...h}=c;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:c.id},p.map(Aae)))}return e(t.tag,{...i,...d},...r)}var Mae=k4.bind(null,Rt.createElement),d2=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Nae=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},Oae="searchPseudoElementsFullScan"in Gs&&typeof Gs.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Dae=Number.parseInt(Oae)>=7,Lae=()=>Dae,fc="fa",kt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},Fae={left:"fa-pull-left",right:"fa-pull-right"},Bae={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Vae={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},er={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Wae(e){const t=Gs.cssPrefix||Gs.familyPrefix||fc;return t===fc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${fc}-`,"g"),`${t}-`)}function Uae(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:i,spin:a,spinPulse:s,spinReverse:l,pulse:c,fixedWidth:d,inverse:f,border:p,flip:h,size:g,rotation:y,pull:x,swapOpacity:b,rotateBy:v,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:_,buzz:C,float:T,jello:A,spinSnap:$,spinSnap4:B,spinSnap8:Y,swing:te,wag:I,className:K}=e,F=[];return K&&F.push(...K.split(" ")),t&&F.push(kt.beat),n&&F.push(kt.fade),r&&F.push(kt.beatFade),o&&F.push(kt.bounce),i&&F.push(kt.shake),a&&F.push(kt.spin),l&&F.push(kt.spinReverse),s&&F.push(kt.spinPulse),c&&F.push(kt.pulse),d&&F.push(er.fixedWidth),f&&F.push(er.inverse),p&&F.push(er.border),h===!0&&F.push(er.flip),(h==="horizontal"||h==="both")&&F.push(er.flipHorizontal),(h==="vertical"||h==="both")&&F.push(er.flipVertical),g!=null&&F.push(Vae[g]),y!=null&&y!==0&&F.push(Bae[y]),x!=null&&F.push(Fae[x]),b&&F.push(er.swapOpacity),Lae()?(v&&F.push(er.rotateBy),S&&F.push(er.widthAuto),w&&F.push(er.canvasSquare),k&&F.push(er.canvasRoomy),_&&F.push(kt.flip360),C&&F.push(kt.buzz),T&&F.push(kt.float),A&&F.push(kt.jello),$&&F.push(kt.spinSnap),B&&F.push(kt.spinSnap4),Y&&F.push(kt.spinSnap8),te&&F.push(kt.swing),I&&F.push(kt.wag),(Gs.cssPrefix||Gs.familyPrefix||fc)===fc?F:F.map(Wae)):F}var Hae=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function f2(e){if(e)return Hae(e)?e:S4.icon(e)}function Gae(e){return Object.keys(e)}var p2=new Nae("FontAwesomeIcon"),C4={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Kae=new Set(Object.keys(C4)),L1=Rt.forwardRef((e,t)=>{const n={...C4,...e},{icon:r,mask:o,symbol:i,title:a,titleId:s,maskId:l,transform:c}=n,d=d2(l,!!o),f=d2(s,!!a),p=f2(r);if(!p)return p2.error("Icon lookup is undefined",r),null;const h=Uae(n),g=typeof c=="string"?S4.transform(c):c,y=f2(o),x=jae(p,{...h.length>0&&{classes:h},...g&&{transform:g},...y&&{mask:y},symbol:i,title:a,titleId:f,maskId:d});if(!x)return p2.error("Could not find icon",p),null;const{abstract:b}=x,v={ref:t};for(const S of Gae(n))Kae.has(S)||(v[S]=n[S]);return Mae(b[0],v)});L1.displayName="FontAwesomeIcon";/*! + * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2026 Fonticons, Inc. + */var P4={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},_4={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]};const ir=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return u.jsxs(Gb,{children:[u.jsx(ft,{ref:t,type:n?"text":"password",...e}),u.jsx(Zp,{children:u.jsx(Or,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:u.jsx(L1,{icon:n?_4:P4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(o=>!o)})})]})});ir.displayName="PasswordInput";function Xae(){const{login:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),c=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return u.jsxs(pr,{maxW:"sm",py:20,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Espace client"}),u.jsx(ue,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:c,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),u.jsxs(we,{justify:"center",spacing:1,children:[u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),u.jsx(he,{as:Kt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),u.jsx(he,{as:Kt,to:"/",variant:"link",size:"sm",children:"← Retour au site"})]})]})}function Yae(){const{login:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),c=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return u.jsxs(pr,{maxW:"sm",py:20,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Espace admin"}),u.jsx(ue,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:c,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),u.jsx(he,{as:Kt,to:"/",variant:"link",size:"sm",children:"← Retour au site"})]})]})}function qae(){const{register:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(""),[c,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=i.length>=10,h=i===s,g=f&&p&&h,y=async x=>{if(x.preventDefault(),!!g){d(!0);try{await e(r.trim(),i),t("/app",{replace:!0})}catch(b){const v=b instanceof Ze?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:v})}finally{d(!1)}}};return u.jsxs(pr,{maxW:"sm",py:16,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Créer un compte"}),u.jsx(ue,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:y,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,isInvalid:r.length>0&&!f,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:x=>o(x.target.value),autoComplete:"username"}),u.jsx(Zf,{children:"3 à 64 caractères alphanumériques."})]}),u.jsxs(_e,{isRequired:!0,isInvalid:i.length>0&&!p,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:x=>a(x.target.value),autoComplete:"new-password"}),u.jsx(Zf,{children:"10 caractères minimum."})]}),u.jsxs(_e,{isRequired:!0,isInvalid:s.length>0&&!h,children:[u.jsx(Te,{children:"Confirmer le mot de passe"}),u.jsx(ir,{value:s,onChange:x=>l(x.target.value),autoComplete:"new-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:c,isDisabled:!g,children:"Créer mon compte"})]})})})}),u.jsxs(we,{justify:"center",spacing:1,children:[u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),u.jsx(he,{as:Kt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}function F1(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function B1(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function m2(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function Qae(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function Zae(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${o} h`;const i=Math.floor(n%36e5/6e4);return`${o} h ${i} min`}function Jae({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:o="Annuler",confirmColorScheme:i="red",isLoading:a=!1,onConfirm:s,onClose:l}){const c=m.useRef(null);return u.jsx(mY,{isOpen:e,leastDestructiveRef:c,onClose:l,isCentered:!0,motionPreset:"slideInBottom",children:u.jsx(xu,{backdropFilter:"blur(2px)",children:u.jsxs(hY,{borderRadius:"xl",children:[u.jsx(bu,{fontSize:"lg",fontWeight:"bold",children:t}),u.jsx(yu,{color:"gray.600",children:n}),u.jsxs(r1,{gap:3,children:[u.jsx(he,{ref:c,onClick:l,variant:"ghost",isDisabled:a,children:o}),u.jsx(he,{colorScheme:i,onClick:s,isLoading:a,children:r})]})]})})})}function ese({isOpen:e,onClose:t,onCreated:n}){const r=bo(),[o,i]=m.useState(""),[a,s]=m.useState("admin"),[l,c]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[g,y]=m.useState(""),[x,b]=m.useState(!1),[v,S]=m.useState(""),[w,k]=m.useState(""),[_,C]=m.useState(!1),[T,A]=m.useState(""),[$,B]=m.useState(""),[Y,te]=m.useState(""),[I,K]=m.useState(""),[F,z]=m.useState("failover"),[O,R]=m.useState(""),[D,G]=m.useState(""),[H,Q]=m.useState("local"),[be,me]=m.useState(""),[xe,Fe]=m.useState(""),[fe,Z]=m.useState(!1),J=()=>{i(""),s("admin"),c(""),f(!1),h(""),y(""),b(!1),S(""),k(""),C(!1),A(""),B(""),te(""),K(""),z("failover"),R(""),G(""),Q("local"),me(""),Fe("")},Pe=()=>{fe||(J(),t())},pe=async()=>{if(!o.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||l.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(H==="s3"&&(!be.trim()||!xe.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(_&&!T.trim()&&!Y.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}const ne={username:o.trim(),adminUsername:a.trim(),adminPassword:l.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&g.trim()||void 0,nowPaymentsApiKey:x&&v.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:H,...H==="s3"?{s3Bucket:be.trim(),s3Endpoint:xe.trim()}:{},..._?{lbBot1Username:T.trim()||void 0,lbBot1Token:$.trim()||void 0,lbBot2Username:Y.trim()||void 0,lbBot2Token:I.trim()||void 0,lbStrategy:F,lbJwtTtlSeconds:O.trim()||void 0,lbHealthCheckInterval:D.trim()||void 0}:{}};Z(!0);try{await Ne.createDemo(ne),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),J(),n(),t()}catch(ce){const it=ce instanceof Ze?ce.message:"Erreur";r({status:"error",title:"Lancement impossible",description:it})}finally{Z(!1)}};return u.jsxs(tm,{isOpen:e,onClose:Pe,size:"lg",closeOnOverlayClick:!fe,children:[u.jsx(xu,{}),u.jsxs(n1,{children:[u.jsx(bu,{children:"Nouvelle démo"}),u.jsx(rm,{isDisabled:fe}),u.jsx(yu,{children:u.jsxs(Ee,{spacing:5,children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{children:"Username"}),u.jsx(ft,{placeholder:"ex: acme-corp",value:o,onChange:ne=>i(ne.target.value)})]}),u.jsxs(Ee,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[u.jsx(ue,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),u.jsx(ue,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Username"}),u.jsx(ft,{value:a,onChange:ne=>s(ne.target.value)})]}),u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Mot de passe"}),u.jsx(ir,{placeholder:"8 caractères min.",value:l,onChange:ne=>c(ne.target.value),autoComplete:"off"})]})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"Bot Telegram"}),u.jsx(sf,{isChecked:d,onChange:ne=>f(ne.target.checked)})]})}),d&&u.jsxs(Ee,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Nom du bot (username)"}),u.jsx(ft,{placeholder:"mon_bot",value:p,onChange:ne=>h(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Token bot Telegram"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:g,onChange:ne=>y(ne.target.value),autoComplete:"off"})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"NowPayments (paiement crypto)"}),u.jsx(sf,{isChecked:x,onChange:ne=>b(ne.target.checked)})]})}),x&&u.jsxs(Ee,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Clé API NowPayments"}),u.jsx(ir,{placeholder:"clé API du compte marchand",value:v,onChange:ne=>S(ne.target.value),autoComplete:"off"})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Secret IPN NowPayments"}),u.jsx(ir,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ne=>k(ne.target.value),autoComplete:"off"}),u.jsx(ue,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"Load-balancer Telegram"}),u.jsx(sf,{isChecked:_,onChange:ne=>C(ne.target.checked)})]})}),_&&u.jsxs(Ee,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsx(ue,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 1 — username"}),u.jsx(ft,{placeholder:"mon_bot_1",value:T,onChange:ne=>A(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 1 — token"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:$,onChange:ne=>B(ne.target.value),autoComplete:"off"})]})]}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),u.jsx(ft,{placeholder:"mon_bot_2",value:Y,onChange:ne=>te(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 2 — token"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:I,onChange:ne=>K(ne.target.value),autoComplete:"off"})]})]}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Stratégie de répartition"}),u.jsxs(d5,{value:F,onChange:ne=>z(ne.target.value),children:[u.jsx("option",{value:"failover",children:"Failover"}),u.jsx("option",{value:"roundrobin",children:"Round-robin"}),u.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"TTL JWT (secondes)"}),u.jsx(ft,{placeholder:"300",value:O,onChange:ne=>R(ne.target.value),type:"number"})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Intervalle health-check (s)"}),u.jsx(ft,{placeholder:"30",value:D,onChange:ne=>G(ne.target.value),type:"number"})]})]})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{children:"Stockage des fichiers"}),u.jsx(c5,{value:H,onChange:ne=>Q(ne),children:u.jsxs(Ee,{direction:"row",spacing:6,children:[u.jsx(Gv,{value:"local",children:"Local (disque du cluster)"}),u.jsx(Gv,{value:"s3",children:"S3"})]})})]}),H==="s3"&&u.jsxs(Ee,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Nom du bucket"}),u.jsx(ft,{placeholder:"mon-bucket-demo",value:be,onChange:ne=>me(ne.target.value)})]}),u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Endpoint S3"}),u.jsx(ft,{placeholder:"https://s3.exemple.com",value:xe,onChange:ne=>Fe(ne.target.value)})]})]})]})}),u.jsxs(r1,{children:[u.jsx(he,{variant:"ghost",mr:3,onClick:Pe,isDisabled:fe,children:"Annuler"}),u.jsx(he,{colorScheme:"primary",onClick:pe,isLoading:fe,children:"Lancer la démo"})]})]})]})}const ng=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function T4({state:e}){const t=ng.every(r=>e[r.key].phase==="Running"),n=ng.filter(r=>e[r.key].phase!=="Running").length;return u.jsxs(Ee,{spacing:3,children:[u.jsxs(we,{spacing:2,children:[u.jsx(ge,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),u.jsx(ue,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),u.jsx(ca,{columns:{base:1,sm:2,lg:4},spacing:3,children:ng.map(r=>u.jsx(tse,{title:r.label,cs:e[r.key]},r.key))})]})}function tse({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return u.jsxs(ge,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:[u.jsxs(we,{justify:"space-between",mb:3,children:[u.jsx(ue,{fontSize:"sm",fontWeight:"semibold",children:e}),u.jsxs(we,{spacing:1.5,children:[u.jsx(ge,{w:"7px",h:"7px",borderRadius:"full",bg:`${m2(t.phase)}.400`,flexShrink:0}),u.jsx(Gn,{colorScheme:m2(t.phase),fontSize:"10px",children:Qae(t.phase)})]})]}),u.jsxs(Ee,{spacing:2,children:[u.jsxs(ge,{children:[u.jsxs(_t,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(ue,{children:"CPU"}),u.jsxs(ue,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),u.jsx(Hv,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),u.jsxs(ge,{children:[u.jsxs(_t,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(ue,{children:"Mémoire"}),u.jsxs(ue,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),u.jsx(Hv,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function E4(e){return u.jsx(wt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}const nse=5e3,rse=5e3;function ose(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[g,y]=m.useState(null),[x,b]=m.useState(!1),v=m.useCallback(async()=>{try{const C=await Ne.listDemos();r((C.items??[]).filter(T=>T.type_abonnement!=="premium"))}catch(C){C instanceof Ze&&C.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{v();const C=setInterval(()=>void v(),nse);return()=>clearInterval(C)},[v]);const S=async C=>{s(C.id);try{await Ne.extendDemo(C.id),e({status:"success",title:"Démo prolongée de 30 jours"}),await v()}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:A})}finally{s(null)}},w=async()=>{if(!l)return;const C=l;s(C.id);try{await Ne.deleteDemo(C.id),e({status:"success",title:"Démo détruite"}),c(null),await v()}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"Destruction impossible",description:A})}finally{s(null)}},k=async C=>{if(p===C.id){h(null),y(null);return}h(C.id),y(null),b(!0);try{const T=await Ne.getDemoDetails(C.namespace);y(T)}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:A}),h(null)}finally{b(!1)}};m.useEffect(()=>{const C=n.find($=>$.id===p);if(!C)return;const T=C.namespace,A=setInterval(()=>{Ne.getDemoDetails(T).then(y).catch(()=>{})},rse);return()=>clearInterval(A)},[p]);const _=C=>C!=="expired"&&C!=="failed";return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",gap:4,wrap:"wrap",children:[u.jsx(Dt,{size:"md",mr:4,children:"Démos"}),u.jsx(Ws,{}),u.jsx(he,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),u.jsx(ese,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void v()}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"Namespace"}),u.jsx(en,{children:"Client"}),u.jsx(en,{children:"Statut"}),u.jsx(en,{children:"URL"}),u.jsx(en,{children:"Expire dans"}),u.jsx(en,{})]})}),u.jsx(a1,{children:n.map(C=>{const T=p===C.id;return u.jsxs(m.Fragment,{children:[u.jsxs(ei,{cursor:"pointer",bg:T?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>k(C),children:[u.jsx(Mt,{fontFamily:"mono",children:u.jsxs(we,{spacing:2,children:[u.jsx(wt,{as:E4,boxSize:3,color:"gray.400",transform:T?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(ue,{children:C.namespace})]})}),u.jsx(Mt,{children:C.username?u.jsx(ue,{children:C.username}):u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:F1(C.status),children:B1(C.status)})}),u.jsx(Mt,{children:C.status==="ready"?u.jsx(va,{href:C.url,color:"primary.500",isExternal:!0,onClick:A=>A.stopPropagation(),children:C.url}):u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:_(C.status)?Zae(C.expires_at):"—"}),u.jsx(Mt,{textAlign:"right",children:u.jsxs(we,{justify:"flex-end",children:[u.jsx(he,{size:"sm",variant:"outline",isDisabled:!_(C.status)||a===C.id,onClick:A=>{A.stopPropagation(),S(C)},children:"+30 j"}),u.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!_(C.status),onClick:A=>{A.stopPropagation(),c(C)},children:"Détruire"})]})})]}),u.jsx(ei,{children:u.jsx(Mt,{p:0,border:T?void 0:"none",colSpan:6,children:u.jsx(Yp,{in:T,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:x&&!g?u.jsx(_t,{justify:"center",py:4,children:u.jsx(Hn,{size:"sm"})}):g?u.jsx(T4,{state:g.state}):u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},C.id)})})]})}),u.jsxs(Jae,{isOpen:!!l,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!l&&a===l.id,onConfirm:w,onClose:()=>c(null),children:["La démo"," ",u.jsx(ue,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:l==null?void 0:l.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]})]})}const ise=5e3,ase=5e3;function sse(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),p=m.useCallback(async()=>{try{const g=await Ne.listDemos();r((g.items??[]).filter(y=>y.type_abonnement==="premium"))}catch(g){g instanceof Ze&&g.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{p();const g=setInterval(()=>void p(),ise);return()=>clearInterval(g)},[p]);const h=async g=>{if(a===g.id){s(null),c(null);return}s(g.id),c(null),f(!0);try{const y=await Ne.getDemoDetails(g.namespace);c(y)}catch(y){const x=y instanceof Ze?y.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:x}),s(null)}finally{f(!1)}};return m.useEffect(()=>{const g=n.find(b=>b.id===a);if(!g)return;const y=g.namespace,x=setInterval(()=>{Ne.getDemoDetails(y).then(c).catch(()=>{})},ase);return()=>clearInterval(x)},[a]),u.jsxs(u.Fragment,{children:[u.jsx(Dt,{size:"md",mb:2,children:"Démos Premium"}),u.jsx(ue,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucune démo premium pour le moment."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"Namespace"}),u.jsx(en,{children:"Client"}),u.jsx(en,{children:"Statut"}),u.jsx(en,{children:"URL"})]})}),u.jsx(a1,{children:n.map(g=>{const y=a===g.id;return u.jsxs(m.Fragment,{children:[u.jsxs(ei,{cursor:"pointer",bg:y?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>h(g),children:[u.jsx(Mt,{fontFamily:"mono",children:u.jsxs(we,{spacing:2,children:[u.jsx(wt,{as:E4,boxSize:3,color:"gray.400",transform:y?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(ue,{children:g.namespace})]})}),u.jsx(Mt,{children:g.username||u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:F1(g.status),children:B1(g.status)})}),u.jsx(Mt,{children:g.status==="ready"?u.jsx(va,{href:g.url,color:"primary.500",isExternal:!0,onClick:x=>x.stopPropagation(),children:g.url}):u.jsx(ue,{color:"gray.400",children:"—"})})]}),u.jsx(ei,{children:u.jsx(Mt,{p:0,border:y?void 0:"none",colSpan:4,children:u.jsx(Yp,{in:y,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:d&&!l?u.jsx(Hn,{size:"sm"}):l?u.jsx(T4,{state:l.state}):u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},g.id)})})]})})]})}const lse=1e4;function cse(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(""),[d,f]=m.useState(null),p=m.useCallback(async()=>{try{const y=await Ne.listCodes();r(y.items??[])}catch(y){y instanceof Ze&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{p();const y=setInterval(()=>void p(),lse);return()=>clearInterval(y)},[p]);const h=async y=>{if(y.preventDefault(),!l.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}s("generate");try{const x=await Ne.createCode(l.trim());f(x.code),c(""),e({status:"success",title:"Code généré avec succès !"}),await p()}catch(x){const b=x instanceof Ze?x.message:"Erreur";e({status:"error",title:"Génération impossible",description:b})}finally{s(null)}},g=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const b=document.createElement("textarea");b.value=y,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();const v=document.execCommand("copy");document.body.removeChild(b),e(v?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:"Gestion des codes de souscription"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:u.jsx("form",{onSubmit:h,children:u.jsxs(np,{spacing:4,align:"stretch",children:[u.jsxs(Ee,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d\\'utilisateur"}),u.jsx(ft,{type:"text",value:l,onChange:y=>c(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:a==="generate",maxLength:64})]}),u.jsx(he,{colorScheme:"primary",type:"submit",isLoading:a==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),d&&u.jsxs(ge,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[u.jsxs(ue,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",u.jsx("strong",{children:l})," :"]}),u.jsxs(we,{children:[u.jsx(ue,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),u.jsx(he,{size:"sm",variant:"outline",onClick:()=>g(d),children:"Copier"})]})]})]})})}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucun code de souscription généré."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"ID"}),u.jsx(en,{children:"Utilisateur"}),u.jsx(en,{children:"Code"}),u.jsx(en,{children:"Date de création"}),u.jsx(en,{})]})}),u.jsx(a1,{children:n.map(y=>u.jsxs(ei,{children:[u.jsxs(Mt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:"gray",px:2,py:1,children:y.username})}),u.jsx(Mt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),u.jsx(Mt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),u.jsx(Mt,{textAlign:"right",children:u.jsx(he,{size:"sm",variant:"outline",onClick:()=>g(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function use(){const e=bo(),t=gr(),[n,r]=m.useState(null),[o,i]=m.useState(null),[a,s]=m.useState(!0),[l,c]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),[g,y]=m.useState([]),[x,b]=m.useState(!0),v=m.useCallback(async()=>{try{const T=await Ne.me();r(T.type_abonnement??null),i(T.expired_at?new Date(T.expired_at):null)}catch(T){T instanceof Ze&&T.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{s(!1)}},[t,e]),S=m.useCallback(async()=>{try{const T=await Ne.listMyDemos();y(T.items??[])}catch{}finally{b(!1)}},[]);m.useEffect(()=>{v(),S()},[v,S]);const w=async T=>{if(T.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}c(!0);try{await Ne.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await v()}catch(A){const $=A instanceof Ze?A.message:"Erreur";e({status:"error",title:"Code invalide",description:$})}finally{c(!1)}},k=n==="premium",_=!k||p,C=o?Math.ceil((o.getTime()-Date.now())/(1e3*60*60*24)):null;return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:k?"Ma plateforme":"Ma démo"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?u.jsx(Hn,{size:"sm"}):g.length===0?u.jsx(ue,{color:"gray.500",children:k?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):u.jsx(np,{align:"stretch",spacing:3,children:g.map(T=>u.jsxs(we,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[T.status==="ready"?u.jsx(va,{href:T.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:T.url}):u.jsx(ue,{color:"gray.400",fontFamily:"mono",children:T.url||"—"}),u.jsx(Gn,{colorScheme:F1(T.status),children:B1(T.status)})]},T.id))})}),u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:"Mon abonnement"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?u.jsx(Hn,{}):u.jsxs(np,{align:"stretch",spacing:4,children:[u.jsxs(we,{flexWrap:"wrap",rowGap:2,children:[u.jsx(ue,{color:"gray.400",children:"Statut actuel :"}),u.jsx(Gn,{colorScheme:k?"purple":"gray",px:2,py:1,children:k?"Premium":"Demo"}),k&&!p&&u.jsx(he,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),k&&o&&u.jsx(ue,{fontSize:"sm",color:C!==null&&C<=5?"orange.400":"gray.400",children:C!==null&&C>0?`Expire dans ${C} jour${C>1?"s":""} (le ${o.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${o.toLocaleDateString("fr-FR")}`}),_&&u.jsx("form",{onSubmit:w,children:u.jsxs(Ee,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:k?"Nouveau code de renouvellement":"Code de souscription"}),u.jsx(ft,{type:"text",value:d,onChange:T=>f(T.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:l,fontFamily:"mono",letterSpacing:"wide"})]}),u.jsxs(we,{flexShrink:0,children:[u.jsx(he,{colorScheme:"primary",type:"submit",isLoading:l,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:k?"Renouveler":"Activer"}),k&&u.jsx(he,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:l,children:"Annuler"})]})]})})]})})]})}const dse=qp({displayName:"EditIcon",path:u.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[u.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),u.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),fse=qp({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),pse=qp({viewBox:"0 0 14 14",path:u.jsx("g",{fill:"currentColor",children:u.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function h2(e){return e==="admin"?"Administrateur":"Client"}function mse(e){return e==="admin"?"purple":"blue"}function hse(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function gse(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Td(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=hH();return e?u.jsxs(Tb,{size:"sm",spacing:1,children:[u.jsx(Or,{"aria-label":"Enregistrer",icon:u.jsx(pse,{}),...t()}),u.jsx(Or,{"aria-label":"Annuler",icon:u.jsx(fse,{}),...n()})]}):u.jsx(Or,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:u.jsx(dse,{}),...r()})}function vse(){const e=bo(),t=gr(),{logout:n}=yi(),[r,o]=m.useState(null),[i,a]=m.useState(!0),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,p]=m.useState(!1),[h,g]=m.useState(0),[y,x]=m.useState(!1),[b,v]=m.useState(""),[S,w]=m.useState(!1),[k,_]=m.useState(!1),[C,T]=m.useState(""),[A,$]=m.useState(""),[B,Y]=m.useState(""),[te,I]=m.useState(!1);m.useEffect(()=>{let D=!1;return(async()=>{try{const[G,H]=await Promise.all([Ne.me(),Ne.getTelegram()]);if(D)return;if(o(G),v(H.telegram??""),G.role==="admin"){const Q=await Ne.getAlertSettings();if(D)return;T(Q.discord_webhook_url),$(Q.telegram_bot_token),Y(Q.telegram_chat_id)}}catch(G){if(G instanceof Ze&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{D||a(!1)}})(),()=>{D=!0}},[t,e]);const K=async()=>{I(!0);try{const D=await Ne.setAlertSettings({discord_webhook_url:C.trim(),telegram_bot_token:A.trim(),telegram_chat_id:B.trim()});T(D.discord_webhook_url),$(D.telegram_bot_token),Y(D.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(D){if(D instanceof Ze&&D.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:D instanceof Ze?D.message:void 0})}finally{I(!1)}},F=async D=>{const G=D.trim();if(!(!r||!G||G===r.username)){d(!0);try{const H=await Ne.updateUsername(G);o({...r,username:H.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:H instanceof Ze?H.message:void 0})}finally{d(!1)}}},z=async D=>{const G=D.trim();if(!r||G.length<8){G.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),g(H=>H+1);return}p(!0);try{await Ne.updatePassword(G),e({status:"success",title:"Mot de passe mis à jour"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:H instanceof Ze?H.message:void 0})}finally{p(!1),g(H=>H+1)}},O=async D=>{const G=D.trim();if(!G){_(!1);return}w(!0);try{const H=await Ne.setTelegram(G);v(H.telegram),_(!1),e({status:"success",title:"Telegram enregistré"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:H instanceof Ze?H.message:void 0})}finally{w(!1)}},R=async()=>{l(!0);try{await Ne.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{l(!1)}};return u.jsx(ge,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:u.jsxs(pr,{maxW:"container.md",children:[u.jsxs(Ee,{spacing:3,mb:8,children:[u.jsx(Dt,{size:"lg",children:"Mon profil"}),u.jsx(ue,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),u.jsx(ge,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:i?u.jsx(_t,{justify:"center",py:10,children:u.jsx(Hn,{})}):r?u.jsxs(Ee,{spacing:8,children:[u.jsxs(_t,{align:"center",gap:5,wrap:"wrap",children:[u.jsx(_b,{name:r.username,size:"xl"}),u.jsxs(ge,{children:[u.jsx(Ol,{defaultValue:r.username,onSubmit:F,isDisabled:c,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:Dt,size:"md",fontFamily:"mono"}),u.jsx(Dl,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),u.jsx(Td,{})]})},r.username),u.jsxs(we,{mt:2,spacing:2,children:[u.jsx(Gn,{colorScheme:mse(r.role),children:h2(r.role)}),r.type_abonnement&&u.jsx(Gn,{colorScheme:hse(r.type_abonnement),children:r.type_abonnement})]})]})]}),u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsxs(ca,{columns:{base:1,sm:2},spacing:6,children:[u.jsxs($i,{children:[u.jsx(Ai,{children:"Identifiant"}),u.jsx(jo,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Rôle"}),u.jsx(jo,{fontSize:"md",children:h2(r.role)})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Type d'abonnement"}),u.jsx(jo,{fontSize:"md",children:r.type_abonnement||"—"})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Mot de passe"}),u.jsx(Ol,{defaultValue:"",placeholder:"••••••••",onSubmit:z,isDisabled:f,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{type:y?"text":"password",fontSize:"md",fontFamily:"mono"}),u.jsx(Or,{"aria-label":y?"Masquer le mot de passe":"Afficher le mot de passe",icon:u.jsx(L1,{icon:y?_4:P4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>x(D=>!D)}),u.jsx(Td,{})]})},h)]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Telegram"}),b?u.jsx(Ol,{defaultValue:b,onSubmit:O,isDisabled:S,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{fontSize:"md",fontFamily:"mono"}),u.jsx(Td,{})]})},b):k?u.jsx(Ol,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:O,onCancel:()=>_(!1),isDisabled:S,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{fontSize:"md",fontFamily:"mono"}),u.jsx(Td,{})]})}):u.jsx(he,{size:"sm",variant:"outline",onClick:()=>_(!0),children:"Ajouter mon Telegram"})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Expire le"}),u.jsx(jo,{fontSize:"md",children:gse(r.expired_at)})]})]}),r.role==="admin"&&u.jsxs(u.Fragment,{children:[u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsxs(Ee,{spacing:4,children:[u.jsxs(ge,{children:[u.jsx(Dt,{size:"sm",children:"Alertes monitoring"}),u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Webhook Discord"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:C,onChange:D=>T(D.target.value),isDisabled:te})]}),u.jsxs(ca,{columns:{base:1,sm:2},spacing:4,children:[u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Bot Telegram (token)"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:A,onChange:D=>$(D.target.value),isDisabled:te})]}),u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Telegram (chat ID)"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:B,onChange:D=>Y(D.target.value),isDisabled:te}),u.jsx(Zf,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),u.jsx(_t,{justify:"flex-end",children:u.jsx(he,{size:"sm",colorScheme:"primary",isLoading:te,onClick:K,children:"Enregistrer les alertes"})})]})]}),u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsx(_t,{justify:"flex-end",children:u.jsx(he,{colorScheme:"red",variant:"outline",isLoading:s,onClick:R,children:"Se déconnecter"})})]}):u.jsx(ue,{color:"gray.500",children:"Aucune information disponible."})})]})})}const g2=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/contact",label:"Contact",end:!1}],yse=()=>u.jsx(ge,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function bse(){const{isOpen:e,onOpen:t,onClose:n}=ou();return u.jsxs(ge,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[u.jsx(pr,{maxW:"container.lg",children:u.jsxs(_t,{h:16,align:"center",justify:"space-between",children:[u.jsxs(we,{spacing:8,children:[u.jsx(ge,{as:Kt,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),u.jsx(we,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:g2.map(r=>u.jsx(v2,{to:r.to,end:r.end,children:r.label},r.to))})]}),u.jsxs(we,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(da,{}),u.jsx(he,{as:Kt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),u.jsxs(we,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(da,{}),u.jsx(Or,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:u.jsx(yse,{})})]})]})}),u.jsxs(a5,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[u.jsx(xu,{}),u.jsxs(o1,{bg:"chakra-body-bg",children:[u.jsx(rm,{size:"lg"}),u.jsx(bu,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),u.jsxs(yu,{py:6,children:[u.jsx(Ee,{as:"nav",spacing:1,children:g2.map(r=>u.jsx(v2,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),u.jsx(Yi,{my:6}),u.jsxs(Ee,{spacing:3,children:[u.jsx(he,{as:Kt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function v2({to:e,end:t,children:n,onClick:r,mobile:o=!1}){return u.jsx(he,{as:fA,to:e,end:t,size:o?"lg":"sm",variant:"ghost",justifyContent:o?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function xse(){return u.jsx(ge,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:u.jsxs(pr,{maxW:"container.lg",py:12,children:[u.jsxs(ca,{columns:{base:1,md:4},spacing:8,children:[u.jsxs(Ee,{spacing:3,children:[u.jsx(ue,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),u.jsxs(y2,{title:"Produit",children:[u.jsx(rg,{to:"/",children:"Présentation"}),u.jsx(rg,{to:"/tarifs",children:"Tarifs"}),u.jsx(rg,{to:"/register",children:"Créer un compte"})]}),u.jsxs(y2,{title:"Ressources",children:[u.jsx(kl,{href:"#",children:"Documentation"}),u.jsx(kl,{href:"#",children:"Statut"}),u.jsx(kl,{href:"#",children:"Sécurité"})]})]}),u.jsx(Yi,{my:8}),u.jsxs(we,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[u.jsxs(ue,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),u.jsxs(we,{spacing:6,fontSize:"sm",color:"gray.500",children:[u.jsx(kl,{href:"#",children:"Mentions légales"}),u.jsx(kl,{href:"#",children:"Confidentialité"})]})]})]})})}function y2({title:e,children:t}){return u.jsxs(Ee,{spacing:2,children:[u.jsx(ue,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function rg({to:e,children:t}){return u.jsx(va,{as:Kt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function kl({href:e,children:t}){return u.jsx(va,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Sse(){return u.jsxs(_t,{direction:"column",minH:"100vh",children:[u.jsx(bse,{}),u.jsx(ge,{as:"main",flex:"1",children:u.jsx(uA,{})}),u.jsx(xse,{})]})}const wse=()=>u.jsx(ge,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),b2="https://t.me/OMNEX_CORP";function kse(){const{logout:e,isAdmin:t,isClient:n}=yi(),r=gr(),{isOpen:o,onOpen:i,onClose:a}=ou(),s=async()=>{const d=t?"/admin/login":"/login";await e(),r(d,{replace:!0})},l=t?"Admin":n?"Client":"Utilisateur",c=t?"purple":"gray";return u.jsxs(ge,{minH:"100vh",bg:"chakra-subtle-bg",children:[u.jsxs(_t,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[u.jsxs(Dt,{size:"sm",as:Kt,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(we,{spacing:1,display:{base:"none",md:"flex"},children:[n&&u.jsx(wr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&u.jsx(wr,{to:"/app/profile",children:"Profile"}),t&&u.jsx(wr,{to:"/app/demos",children:"Démos"}),t&&u.jsx(wr,{to:"/app/premium",children:"Premium"}),t&&u.jsx(wr,{to:"/app/codes",children:"Codes"})]}),u.jsx(Ws,{}),u.jsxs(we,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(Gn,{colorScheme:c,children:l}),u.jsx(he,{as:"a",href:b2,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),u.jsx(da,{}),u.jsx(he,{size:"sm",variant:"outline",onClick:s,children:"Déconnexion"})]}),u.jsxs(we,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(Gn,{colorScheme:c,children:l}),u.jsx(da,{}),u.jsx(Or,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:i,icon:u.jsx(wse,{})})]})]}),u.jsxs(a5,{isOpen:o,placement:"right",onClose:a,size:"xs",children:[u.jsx(xu,{}),u.jsxs(o1,{bg:"chakra-body-bg",children:[u.jsx(rm,{size:"lg"}),u.jsxs(bu,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(yu,{py:6,children:[u.jsxs(Ee,{as:"nav",spacing:1,children:[n&&u.jsx(wr,{to:"/app/subscription",onClick:a,mobile:!0,children:"Abonnement"}),t&&u.jsx(wr,{to:"/app/demos",onClick:a,mobile:!0,children:"Démos"}),t&&u.jsx(wr,{to:"/app/premium",onClick:a,mobile:!0,children:"Premium"}),t&&u.jsx(wr,{to:"/app/codes",onClick:a,mobile:!0,children:"Codes"}),(t||n)&&u.jsx(wr,{to:"/app/profile",onClick:a,mobile:!0,children:"Profile"})]}),u.jsx(Yi,{my:6}),u.jsxs(Ee,{spacing:3,children:[u.jsx(he,{as:"a",href:b2,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:a,children:"Support"}),u.jsx(he,{variant:"outline",justifyContent:"flex-start",onClick:s,children:"Déconnexion"})]})]})]})]}),u.jsx(pr,{maxW:"container.xl",py:8,children:u.jsx(uA,{})})]})}function wr({to:e,children:t,onClick:n,mobile:r=!1}){return u.jsx(he,{as:fA,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}const Cse=["/app/demos","/app/premium","/app/codes"];function Pse({children:e}){const{isAuthenticated:t,initializing:n}=yi(),r=xa();if(n)return u.jsx(Xj,{h:"100vh",children:u.jsx(Hn,{})});if(t)return e;const o=Cse.some(i=>r.pathname.startsWith(i));return u.jsx(Qc,{to:o?"/admin/login":"/login",replace:!0})}function og({children:e}){const{isAdmin:t}=yi();return t?e:u.jsx(Qc,{to:"/app/subscription",replace:!0})}function _se(){const{role:e}=yi();switch(e){case"admin":return u.jsx(Qc,{to:"/app/demos",replace:!0});default:return u.jsx(Qc,{to:"/app/subscription",replace:!0})}}function Tse(){return u.jsxs(_ne,{children:[u.jsxs(Zt,{element:u.jsx(Sse,{}),children:[u.jsx(Zt,{path:"/",element:u.jsx(Bne,{})}),u.jsx(Zt,{path:"/tarifs",element:u.jsx(Wne,{})})]}),u.jsx(Zt,{path:"/login",element:u.jsx(Xae,{})}),u.jsx(Zt,{path:"/admin/login",element:u.jsx(Yae,{})}),u.jsx(Zt,{path:"/register",element:u.jsx(qae,{})}),u.jsxs(Zt,{path:"/app",element:u.jsx(Pse,{children:u.jsx(kse,{})}),children:[u.jsx(Zt,{index:!0,element:u.jsx(_se,{})}),u.jsx(Zt,{path:"demos",element:u.jsx(og,{children:u.jsx(ose,{})})}),u.jsx(Zt,{path:"codes",element:u.jsx(og,{children:u.jsx(cse,{})})}),u.jsx(Zt,{path:"premium",element:u.jsx(og,{children:u.jsx(sse,{})})}),u.jsx(Zt,{path:"subscription",element:u.jsx(use,{})}),u.jsx(Zt,{path:"profile",element:u.jsx(vse,{})})]}),u.jsx(Zt,{path:"*",element:u.jsx(Qc,{to:"/",replace:!0})})]})}const Ese={initialColorMode:"system",useSystemColorMode:!1},x2=Ib({config:Ese,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},E5);ag.createRoot(document.getElementById("root")).render(u.jsxs(Rt.StrictMode,{children:[u.jsx(dH,{initialColorMode:x2.config.initialColorMode}),u.jsx(mee,{theme:x2,children:u.jsx(Xne,{children:u.jsx(zne,{children:u.jsx(Tse,{})})})})]})); diff --git a/web/dist/assets/index-DRDLx_J5.js b/web/dist/assets/index-DRDLx_J5.js deleted file mode 100644 index efe1032..0000000 --- a/web/dist/assets/index-DRDLx_J5.js +++ /dev/null @@ -1,423 +0,0 @@ -var u5=Object.defineProperty;var Pb=e=>{throw TypeError(e)};var d5=(e,t,n)=>t in e?u5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _b=(e,t,n)=>d5(e,typeof t!="symbol"?t+"":t,n),Tb=(e,t,n)=>t.has(e)||Pb("Cannot "+n);var Eb=(e,t,n)=>(Tb(e,t,"read from private field"),n?n.call(e):t.get(e)),jb=(e,t,n)=>t.has(e)?Pb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),jp=(e,t,n,r)=>(Tb(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function f5(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pk={exports:{}},gf={},_k={exports:{}},fe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xc=Symbol.for("react.element"),p5=Symbol.for("react.portal"),h5=Symbol.for("react.fragment"),m5=Symbol.for("react.strict_mode"),g5=Symbol.for("react.profiler"),v5=Symbol.for("react.provider"),y5=Symbol.for("react.context"),b5=Symbol.for("react.forward_ref"),x5=Symbol.for("react.suspense"),S5=Symbol.for("react.memo"),w5=Symbol.for("react.lazy"),$b=Symbol.iterator;function k5(e){return e===null||typeof e!="object"?null:(e=$b&&e[$b]||e["@@iterator"],typeof e=="function"?e:null)}var Tk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ek=Object.assign,jk={};function ya(e,t,n){this.props=e,this.context=t,this.refs=jk,this.updater=n||Tk}ya.prototype.isReactComponent={};ya.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $k(){}$k.prototype=ya.prototype;function nv(e,t,n){this.props=e,this.context=t,this.refs=jk,this.updater=n||Tk}var rv=nv.prototype=new $k;rv.constructor=nv;Ek(rv,ya.prototype);rv.isPureReactComponent=!0;var Ab=Array.isArray,Ak=Object.prototype.hasOwnProperty,ov={current:null},Rk={key:!0,ref:!0,__self:!0,__source:!0};function Mk(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ak.call(t,r)&&!Rk.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,Z=z[G];if(0>>1;Go(de,V))meo(ze,de)?(z[G]=ze,z[me]=V,G=me):(z[G]=de,z[he]=V,G=he);else if(meo(ze,V))z[G]=ze,z[me]=V,G=me;else break e}}return M}function o(z,M){var V=z.sortIndex-M.sortIndex;return V!==0?V:z.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(z){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=z)r(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(c)}}function w(z){if(y=!1,S(z),!m)if(n(l)!==null)m=!0,K(C);else{var M=n(c);M!==null&&N(w,M.startTime-z)}}function C(z,M){m=!1,y&&(y=!1,b(T),T=-1),g=!0;var V=p;try{for(S(M),f=n(l);f!==null&&(!(f.expirationTime>M)||z&&!L());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var Z=G(f.expirationTime<=M);M=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(l)&&r(l),S(M)}else r(l);f=n(l)}if(f!==null)var J=!0;else{var he=n(c);he!==null&&N(w,he.startTime-M),J=!1}return J}finally{f=null,p=V,g=!1}}var _=!1,k=null,T=-1,A=5,$=-1;function L(){return!(e.unstable_now()-$z||125G?(z.sortIndex=V,t(c,z),n(l)===null&&z===n(c)&&(y?(b(T),T=-1):y=!0,N(w,V-G))):(z.sortIndex=Z,t(l,z),m||g||(m=!0,K(C))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var M=p;return function(){var V=p;p=M;try{return z.apply(this,arguments)}finally{p=V}}}})(Lk);zk.exports=Lk;var I5=zk.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var N5=h,yn=I5;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rm=Object.prototype.hasOwnProperty,D5=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mb={},Ib={};function z5(e){return rm.call(Ib,e)?!0:rm.call(Mb,e)?!1:D5.test(e)?Ib[e]=!0:(Mb[e]=!0,!1)}function L5(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function O5(e,t,n,r){if(t===null||typeof t>"u"||L5(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Yt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Rt[e]=new Yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sv=/[\-:]([a-z])/g;function av(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sv,av);Rt[t]=new Yt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sv,av);Rt[t]=new Yt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sv,av);Rt[t]=new Yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function lv(e,t,n,r){var o=Rt.hasOwnProperty(t)?Rt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Rp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ya(e):""}function B5(e){switch(e.tag){case 5:return Ya(e.type);case 16:return Ya("Lazy");case 13:return Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 2:case 15:return e=Mp(e.type,!1),e;case 11:return e=Mp(e.type.render,!1),e;case 1:return e=Mp(e.type,!0),e;default:return""}}function am(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case as:return"Fragment";case ss:return"Portal";case om:return"Profiler";case cv:return"StrictMode";case im:return"Suspense";case sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fk:return(e.displayName||"Context")+".Consumer";case Bk:return(e._context.displayName||"Context")+".Provider";case uv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dv:return t=e.displayName||null,t!==null?t:am(e.type)||"Memo";case ho:t=e._payload,e=e._init;try{return am(e(t))}catch{}}return null}function F5(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return am(t);case 8:return t===cv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V5(e){var t=Wk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tu(e){e._valueTracker||(e._valueTracker=V5(e))}function Uk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wk(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lm(e,t){var n=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Db(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hk(e,t){t=t.checked,t!=null&&lv(e,"checked",t,!1)}function cm(e,t){Hk(e,t);var n=Bo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?um(e,t.type,n):t.hasOwnProperty("defaultValue")&&um(e,t.type,Bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function um(e,t,n){(t!=="number"||Pd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qa=Array.isArray;function Is(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=nu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},W5=["Webkit","ms","Moz","O"];Object.keys(pl).forEach(function(e){W5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pl[t]=pl[e]})});function Xk(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pl.hasOwnProperty(e)&&pl[e]?(""+t).trim():t+"px"}function Yk(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xk(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var U5=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pm(e,t){if(t){if(U5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function hm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mm=null;function fv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gm=null,Ns=null,Ds=null;function Bb(e){if(e=kc(e)){if(typeof gm!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Sf(t),gm(e.stateNode,e.type,t))}}function Qk(e){Ns?Ds?Ds.push(e):Ds=[e]:Ns=e}function Zk(){if(Ns){var e=Ns,t=Ds;if(Ds=Ns=null,Bb(e),t)for(e=0;e>>=0,e===0?32:31-(tA(e)/nA|0)|0}var ru=64,ou=4194304;function Za(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Za(a):(i&=s,i!==0&&(r=Za(i)))}else s=n&~o,s!==0?r=Za(s):i!==0&&(r=Za(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Sc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function sA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ml),Xb=" ",Yb=!1;function yC(e,t){switch(e){case"keyup":return IA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ls=!1;function DA(e,t){switch(e){case"compositionend":return bC(t);case"keypress":return t.which!==32?null:(Yb=!0,Xb);case"textInput":return e=t.data,e===Xb&&Yb?null:e;default:return null}}function zA(e,t){if(ls)return e==="compositionend"||!xv&&yC(e,t)?(e=gC(),Hu=vv=So=null,ls=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ex(n)}}function kC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function CC(){for(var e=window,t=Pd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pd(e.document)}return t}function Sv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KA(e){var t=CC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kC(n.ownerDocument.documentElement,n)){if(r!==null&&Sv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=tx(n,i);var s=tx(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,cs=null,wm=null,vl=null,km=!1;function nx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;km||cs==null||cs!==Pd(r)||(r=cs,"selectionStart"in r&&Sv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vl&&Vl(vl,r)||(vl=r,r=Rd(wm,"onSelect"),0fs||(e.current=jm[fs],jm[fs]=null,fs--)}function Le(e,t){fs++,jm[fs]=e.current,e.current=t}var Fo={},Ft=Go(Fo),rn=Go(!1),Mi=Fo;function Qs(e,t){var n=e.type.contextTypes;if(!n)return Fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function on(e){return e=e.childContextTypes,e!=null}function Id(){Ue(rn),Ue(Ft)}function cx(e,t,n){if(Ft.current!==Fo)throw Error(F(168));Le(Ft,t),Le(rn,n)}function MC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,F5(e)||"Unknown",o));return et({},n,r)}function Nd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fo,Mi=Ft.current,Le(Ft,e),Le(rn,rn.current),!0}function ux(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=MC(e,t,Mi),r.__reactInternalMemoizedMergedChildContext=e,Ue(rn),Ue(Ft),Le(Ft,e)):Ue(rn),Le(rn,n)}var Ar=null,wf=!1,Gp=!1;function IC(e){Ar===null?Ar=[e]:Ar.push(e)}function oR(e){wf=!0,IC(e)}function qo(){if(!Gp&&Ar!==null){Gp=!0;var e=0,t=Ae;try{var n=Ar;for(Ae=1;e>=s,o-=s,Dr=1<<32-Zn(t)+o|n<T?(A=k,k=null):A=k.sibling;var $=p(b,k,S[T],w);if($===null){k===null&&(k=A);break}e&&k&&$.alternate===null&&t(b,k),v=i($,v,T),_===null?C=$:_.sibling=$,_=$,k=A}if(T===S.length)return n(b,k),Xe&&ai(b,T),C;if(k===null){for(;TT?(A=k,k=null):A=k.sibling;var L=p(b,k,$.value,w);if(L===null){k===null&&(k=A);break}e&&k&&L.alternate===null&&t(b,k),v=i(L,v,T),_===null?C=L:_.sibling=L,_=L,k=A}if($.done)return n(b,k),Xe&&ai(b,T),C;if(k===null){for(;!$.done;T++,$=S.next())$=f(b,$.value,w),$!==null&&(v=i($,v,T),_===null?C=$:_.sibling=$,_=$);return Xe&&ai(b,T),C}for(k=r(b,k);!$.done;T++,$=S.next())$=g(k,b,T,$.value,w),$!==null&&(e&&$.alternate!==null&&k.delete($.key===null?T:$.key),v=i($,v,T),_===null?C=$:_.sibling=$,_=$);return e&&k.forEach(function(X){return t(b,X)}),Xe&&ai(b,T),C}function x(b,v,S,w){if(typeof S=="object"&&S!==null&&S.type===as&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case eu:e:{for(var C=S.key,_=v;_!==null;){if(_.key===C){if(C=S.type,C===as){if(_.tag===7){n(b,_.sibling),v=o(_,S.props.children),v.return=b,b=v;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ho&&px(C)===_.type){n(b,_.sibling),v=o(_,S.props),v.ref=La(b,_,S),v.return=b,b=v;break e}n(b,_);break}else t(b,_);_=_.sibling}S.type===as?(v=ki(S.props.children,b.mode,w,S.key),v.return=b,b=v):(w=Ju(S.type,S.key,S.props,null,b.mode,w),w.ref=La(b,v,S),w.return=b,b=w)}return s(b);case ss:e:{for(_=S.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(b,v.sibling),v=o(v,S.children||[]),v.return=b,b=v;break e}else{n(b,v);break}else t(b,v);v=v.sibling}v=th(S,b.mode,w),v.return=b,b=v}return s(b);case ho:return _=S._init,x(b,v,_(S._payload),w)}if(Qa(S))return m(b,v,S,w);if(Ma(S))return y(b,v,S,w);du(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(b,v.sibling),v=o(v,S),v.return=b,b=v):(n(b,v),v=eh(S,b.mode,w),v.return=b,b=v),s(b)):n(b,v)}return x}var Js=LC(!0),OC=LC(!1),Ld=Go(null),Od=null,ms=null,Pv=null;function _v(){Pv=ms=Od=null}function Tv(e){var t=Ld.current;Ue(Ld),e._currentValue=t}function Rm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ls(e,t){Od=e,Pv=ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(Pv!==e)if(e={context:e,memoizedValue:t,next:null},ms===null){if(Od===null)throw Error(F(308));ms=e,Od.dependencies={lanes:0,firstContext:e}}else ms=ms.next=e;return t}var mi=null;function Ev(e){mi===null?mi=[e]:mi.push(e)}function BC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ev(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xr(e,r)}function Xr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mo=!1;function jv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,we&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xr(e,n)}return o=r.interleaved,o===null?(t.next=t,Ev(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xr(e,n)}function Gu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hv(e,n)}}function hx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bd(e,t,n,r){var o=e.updateQueue;mo=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,d=c=l=null,a=i;do{var p=a.lane,g=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(p=t,g=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(g,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(g,f,p):m,p==null)break e;f=et({},f,p);break e;case 2:mo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else g={eventTime:g,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=g,l=f):d=d.next=g,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Di|=s,e.lanes=s,e.memoizedState=f}}function mx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xp.transition;Xp.transition={};try{e(!1),t()}finally{Ae=n,Xp.transition=r}}function oP(){return zn().memoizedState}function lR(e,t,n){var r=No(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},iP(e))sP(t,n);else if(n=BC(e,t,n,r),n!==null){var o=Kt();Jn(n,e,r,o),aP(n,t,r)}}function cR(e,t,n){var r=No(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(iP(e))sP(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,nr(a,s)){var l=t.interleaved;l===null?(o.next=o,Ev(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=BC(e,t,o,r),n!==null&&(o=Kt(),Jn(n,e,r,o),aP(n,t,r))}}function iP(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function sP(e,t){yl=Vd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hv(e,n)}}var Wd={readContext:Dn,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},uR={readContext:Dn,useCallback:function(e,t){return ur().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:vx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xu(4194308,4,JC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xu(4,2,e,t)},useMemo:function(e,t){var n=ur();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ur();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lR.bind(null,Ze,e),[r.memoizedState,e]},useRef:function(e){var t=ur();return e={current:e},t.memoizedState=e},useState:gx,useDebugValue:zv,useDeferredValue:function(e){return ur().memoizedState=e},useTransition:function(){var e=gx(!1),t=e[0];return e=aR.bind(null,e[1]),ur().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ze,o=ur();if(Xe){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),St===null)throw Error(F(349));Ni&30||HC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vx(GC.bind(null,r,i,e),[e]),r.flags|=2048,Yl(9,KC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ur(),t=St.identifierPrefix;if(Xe){var n=zr,r=Dr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ql++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[hr]=t,e[Hl]=r,vP(e,t,!1,!1),t.stateNode=e;e:{switch(s=hm(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;ona&&(t.flags|=128,r=!0,Oa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Xe)return Nt(t),null}else 2*lt()-i.renderingStartTime>na&&n!==1073741824&&(t.flags|=128,r=!0,Oa(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lt(),t.sibling=null,n=Ye.current,Le(Ye,r?n&1|2:n&1),t):(Nt(t),null);case 22:case 23:return Wv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?fn&1073741824&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function yR(e,t){switch(kv(t),t.tag){case 1:return on(t.type)&&Id(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(),Ue(rn),Ue(Ft),Rv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Av(t),null;case 13:if(Ue(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ye),null;case 4:return ea(),null;case 10:return Tv(t.type._context),null;case 22:case 23:return Wv(),null;case 24:return null;default:return null}}var pu=!1,Lt=!1,bR=typeof WeakSet=="function"?WeakSet:Set,Q=null;function gs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ot(e,t,r)}else n.current=null}function Fm(e,t,n){try{n()}catch(r){ot(e,t,r)}}var Ex=!1;function xR(e,t){if(Cm=$d,e=CC(),Sv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pm={focusedElem:e,selectionRange:n},$d=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:qn(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){ot(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return m=Ex,Ex=!1,m}function bl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Fm(t,n,i)}o=o.next}while(o!==r)}}function Pf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xP(e){var t=e.alternate;t!==null&&(e.alternate=null,xP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hr],delete t[Hl],delete t[Em],delete t[nR],delete t[rR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function SP(e){return e.tag===5||e.tag===3||e.tag===4}function jx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Md));else if(r!==4&&(e=e.child,e!==null))for(Wm(e,t,n),e=e.sibling;e!==null;)Wm(e,t,n),e=e.sibling}function Um(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Um(e,t,n),e=e.sibling;e!==null;)Um(e,t,n),e=e.sibling}var Pt=null,Xn=!1;function so(e,t,n){for(n=n.child;n!==null;)wP(e,t,n),n=n.sibling}function wP(e,t,n){if(vr&&typeof vr.onCommitFiberUnmount=="function")try{vr.onCommitFiberUnmount(vf,n)}catch{}switch(n.tag){case 5:Lt||gs(n,t);case 6:var r=Pt,o=Xn;Pt=null,so(e,t,n),Pt=r,Xn=o,Pt!==null&&(Xn?(e=Pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pt.removeChild(n.stateNode));break;case 18:Pt!==null&&(Xn?(e=Pt,n=n.stateNode,e.nodeType===8?Kp(e.parentNode,n):e.nodeType===1&&Kp(e,n),Bl(e)):Kp(Pt,n.stateNode));break;case 4:r=Pt,o=Xn,Pt=n.stateNode.containerInfo,Xn=!0,so(e,t,n),Pt=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Fm(n,t,s),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!Lt&&(gs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ot(n,t,a)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:n.mode&1?(Lt=(r=Lt)||n.memoizedState!==null,so(e,t,n),Lt=r):so(e,t,n);break;default:so(e,t,n)}}function $x(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bR),t.forEach(function(r){var o=jR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Hn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wR(r/1960))-r,10e?16:e,wo===null)var r=!1;else{if(e=wo,wo=null,Kd=0,we&6)throw Error(F(331));var o=we;for(we|=4,Q=e.current;Q!==null;){var i=Q,s=i.child;if(Q.flags&16){var a=i.deletions;if(a!==null){for(var l=0;llt()-Fv?wi(e,0):Bv|=n),sn(e,t)}function $P(e,t){t===0&&(e.mode&1?(t=ou,ou<<=1,!(ou&130023424)&&(ou=4194304)):t=1);var n=Kt();e=Xr(e,t),e!==null&&(Sc(e,t,n),sn(e,n))}function ER(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$P(e,n)}function jR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),$P(e,n)}var AP;AP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)nn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nn=!1,gR(e,t,n);nn=!!(e.flags&131072)}else nn=!1,Xe&&t.flags&1048576&&NC(t,zd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yu(e,t),e=t.pendingProps;var o=Qs(t,Ft.current);Ls(t,n),o=Iv(null,t,r,e,o,n);var i=Nv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,on(r)?(i=!0,Nd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jv(t),o.updater=Cf,t.stateNode=o,o._reactInternals=t,Im(t,r,e,n),t=zm(null,t,r,!0,i,n)):(t.tag=0,Xe&&i&&wv(t),Wt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=AR(r),e=qn(r,e),o){case 0:t=Dm(null,t,r,e,n);break e;case 1:t=Px(null,t,r,e,n);break e;case 11:t=kx(null,t,r,e,n);break e;case 14:t=Cx(null,t,r,qn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),Dm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),Px(e,t,r,o,n);case 3:e:{if(hP(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,FC(e,t),Bd(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ta(Error(F(423)),t),t=_x(e,t,r,n,o);break e}else if(r!==o){o=ta(Error(F(424)),t),t=_x(e,t,r,n,o);break e}else for(pn=Ro(t.stateNode.containerInfo.firstChild),hn=t,Xe=!0,Yn=null,n=OC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zs(),r===o){t=Yr(e,t,n);break e}Wt(e,t,r,n)}t=t.child}return t;case 5:return VC(t),e===null&&Am(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,_m(r,o)?s=null:i!==null&&_m(r,i)&&(t.flags|=32),pP(e,t),Wt(e,t,s,n),t.child;case 6:return e===null&&Am(t),null;case 13:return mP(e,t,n);case 4:return $v(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Js(t,null,r,n):Wt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),kx(e,t,r,o,n);case 7:return Wt(e,t,t.pendingProps,n),t.child;case 8:return Wt(e,t,t.pendingProps.children,n),t.child;case 12:return Wt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Le(Ld,r._currentValue),r._currentValue=s,i!==null)if(nr(i.value,s)){if(i.children===o.children&&!rn.current){t=Yr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Fr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Rm(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Rm(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Wt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ls(t,n),o=Dn(o),r=r(o),t.flags|=1,Wt(e,t,r,n),t.child;case 14:return r=t.type,o=qn(r,t.pendingProps),o=qn(r.type,o),Cx(e,t,r,o,n);case 15:return dP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),Yu(e,t),t.tag=1,on(r)?(e=!0,Nd(t)):e=!1,Ls(t,n),lP(t,r,o),Im(t,r,o,n),zm(null,t,r,!0,e,n);case 19:return gP(e,t,n);case 22:return fP(e,t,n)}throw Error(F(156,t.tag))};function RP(e,t){return iC(e,t)}function $R(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,t,n,r){return new $R(e,t,n,r)}function Hv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AR(e){if(typeof e=="function")return Hv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uv)return 11;if(e===dv)return 14}return 2}function Do(e,t){var n=e.alternate;return n===null?(n=Rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ju(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Hv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case as:return ki(n.children,o,i,t);case cv:s=8,o|=8;break;case om:return e=Rn(12,n,t,o|2),e.elementType=om,e.lanes=i,e;case im:return e=Rn(13,n,t,o),e.elementType=im,e.lanes=i,e;case sm:return e=Rn(19,n,t,o),e.elementType=sm,e.lanes=i,e;case Vk:return Tf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bk:s=10;break e;case Fk:s=9;break e;case uv:s=11;break e;case dv:s=14;break e;case ho:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Rn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ki(e,t,n,r){return e=Rn(7,e,r,t),e.lanes=n,e}function Tf(e,t,n,r){return e=Rn(22,e,r,t),e.elementType=Vk,e.lanes=n,e.stateNode={isHidden:!1},e}function eh(e,t,n){return e=Rn(6,e,null,t),e.lanes=n,e}function th(e,t,n){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Np(0),this.expirationTimes=Np(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Np(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Kv(e,t,n,r,o,i,s,a,l){return e=new RR(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jv(i),e}function MR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DP)}catch(e){console.error(e)}}DP(),Dk.exports=Sn;var Yv=Dk.exports,Lx=Yv;nm.createRoot=Lx.createRoot,nm.hydrateRoot=Lx.hydrateRoot;function zP(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function LR(){return!!(globalThis!=null&&globalThis.document)}function LP(e){return e.parentElement&&LP(e.parentElement)?!0:e.hidden}function OR(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function BR(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function FR(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const ne=e=>e?"":void 0,Vr=e=>e?!0:void 0;function Xm(e){return Array.isArray(e)}function vt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Xm(e)}function VR(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function WR(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Ym(e){if(e==null)return e;const{unitless:t}=WR(e);return t||typeof e=="number"?`${e}px`:e}const OP=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Qv=e=>Object.fromEntries(Object.entries(e).sort(OP));function Ox(e){const t=Qv(e);return Object.assign(Object.values(t),t)}function UR(e){const t=Object.keys(Qv(e));return new Set(t)}function Bx(e){if(!e)return e;e=Ym(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function el(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ym(e)})`),t&&n.push("and",`(max-width: ${Ym(t)})`),n.join(" ")}function HR(e){if(!e)return null;e.base=e.base??"0px";const t=Ox(e),n=Object.entries(e).sort(OP).map(([i,s],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?Bx(c):void 0,{_minW:Bx(s),breakpoint:i,minW:s,maxW:c,maxWQuery:el(null,c),minWQuery:el(s),minMaxQuery:el(s,c)}}),r=UR(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:Qv(e),asArray:Ox(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>el(i)).slice(1)],toArrayValue(i){if(!vt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;VR(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const c=o[l];return c!=null&&a!=null&&(s[c]=a),s},{})}}}function KR(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function ie(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function Zv(e){return h.Children.toArray(e).filter(t=>h.isValidElement(t))}function Jv(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function GR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function pe(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=h.createContext(s);a.displayName=t;function l(){var d;const c=h.useContext(a);if(!c&&n){const f=new Error(i??GR(r,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[a.Provider,l,a]}const B=(...e)=>e.filter(Boolean).join(" "),qR=e=>e.hasAttribute("tabindex");function XR(e){if(!zP(e)||LP(e)||BR(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():OR(e)?!0:qR(e)}const YR=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],QR=YR.join(),ZR=e=>e.offsetWidth>0&&e.offsetHeight>0;function JR(e){const t=Array.from(e.querySelectorAll(QR));return t.unshift(e),t.filter(n=>XR(n)&&ZR(n))}function eM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},BP=tM(eM),nM=e=>e.default||e;function ey(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function FP(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const VP=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ty(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):vt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function rM(e,t=VP){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}const oM=e=>typeof e=="function";function Ot(e,...t){return oM(e)?e(...t):e}function iM(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function sM(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function WP(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:zP(e)&&iM(e)?e:WP(sM(e))}function UP(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}function aM(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function Fx(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(vt(s)||Array.isArray(s)){const l={};for(const[c,d]of Object.entries(s)){const f=(o==null?void 0:o(c))??c,p=[...a,f];if(r!=null&&r(s,p))return t(s,a);l[f]=i(d,p)}return l}return t(s,a)}return i(e)}var Xd={exports:{}};Xd.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",y="[object Map]",x="[object Number]",b="[object Null]",v="[object Object]",S="[object Proxy]",w="[object RegExp]",C="[object Set]",_="[object String]",k="[object Undefined]",T="[object WeakMap]",A="[object ArrayBuffer]",$="[object DataView]",L="[object Float32Array]",X="[object Float64Array]",re="[object Int8Array]",R="[object Int16Array]",W="[object Int32Array]",K="[object Uint8Array]",N="[object Uint8ClampedArray]",z="[object Uint16Array]",M="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,J={};J[L]=J[X]=J[re]=J[R]=J[W]=J[K]=J[N]=J[z]=J[M]=!0,J[a]=J[l]=J[A]=J[d]=J[$]=J[f]=J[p]=J[g]=J[y]=J[x]=J[v]=J[w]=J[C]=J[_]=J[T]=!1;var he=typeof Zc=="object"&&Zc&&Zc.Object===Object&&Zc,de=typeof self=="object"&&self&&self.Object===Object&&self,me=he||de||Function("return this")(),ze=t&&!t.nodeType&&t,ce=ze&&!0&&e&&!e.nodeType&&e,q=ce&&ce.exports===ze,Y=q&&he.process,Se=function(){try{var P=ce&&ce.require&&ce.require("util").types;return P||Y&&Y.binding&&Y.binding("util")}catch{}}(),ue=Se&&Se.isTypedArray;function ee(P,j,I){switch(I.length){case 0:return P.call(j);case 1:return P.call(j,I[0]);case 2:return P.call(j,I[0],I[1]);case 3:return P.call(j,I[0],I[1],I[2])}return P.apply(j,I)}function se(P,j){for(var I=-1,te=Array(P);++I-1}function x$(P,j){var I=this.__data__,te=qc(I,P);return te<0?(++this.size,I.push([P,j])):I[te][1]=j,this}Er.prototype.clear=g$,Er.prototype.delete=v$,Er.prototype.get=y$,Er.prototype.has=b$,Er.prototype.set=x$;function Qi(P){var j=-1,I=P==null?0:P.length;for(this.clear();++j1?I[ye-1]:void 0,Ge=ye>2?I[2]:void 0;for(Ne=P.length>3&&typeof Ne=="function"?(ye--,Ne):void 0,Ge&&X$(I[0],I[1],Ge)&&(Ne=ye<3?void 0:Ne,ye=1),j=Object(j);++te-1&&P%1==0&&P0){if(++j>=o)return arguments[0]}else j=0;return P.apply(void 0,arguments)}}function r5(P){if(P!=null){try{return ei.call(P)}catch{}try{return P+""}catch{}}return""}function Qc(P,j){return P===j||P!==P&&j!==j}var kp=mb(function(){return arguments}())?mb:function(P){return Aa(P)&&Wn.call(P,"callee")&&!s$.call(P,"callee")},Cp=Array.isArray;function Pp(P){return P!=null&&xb(P.length)&&!_p(P)}function o5(P){return Aa(P)&&Pp(P)}var bb=l$||c5;function _p(P){if(!oi(P))return!1;var j=Xc(P);return j==g||j==m||j==c||j==S}function xb(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=s}function oi(P){var j=typeof P;return P!=null&&(j=="object"||j=="function")}function Aa(P){return P!=null&&typeof P=="object"}function i5(P){if(!Aa(P)||Xc(P)!=v)return!1;var j=db(P);if(j===null)return!0;var I=Wn.call(j,"constructor")&&j.constructor;return typeof I=="function"&&I instanceof I&&ei.call(I)==Hc}var Sb=ue?tt(ue):N$;function s5(P){return U$(P,wb(P))}function wb(P){return Pp(P)?A$(P):D$(P)}var a5=H$(function(P,j,I,te){gb(P,j,I,te)});function l5(P){return function(){return P}}function kb(P){return P}function c5(){return!1}e.exports=a5})(Xd,Xd.exports);var lM=Xd.exports;const Mn=tv(lM);function er(e,t=[]){const n=h.useRef(e);return h.useEffect(()=>{n.current=e}),h.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function ed(e,t,n,r){const o=er(n);return h.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function HP(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(p,g)=>p!==g}=e,i=er(r),s=er(o),[a,l]=h.useState(n),c=t!==void 0,d=c?t:a,f=er(p=>{const m=typeof p=="function"?p(d):p;s(d,m)&&(c||l(m),i(m))},[c,i,d,s]);return[d,f]}function Pc(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=er(n),s=er(t),[a,l]=h.useState(e.defaultIsOpen||!1),c=r!==void 0?r:a,d=r!==void 0,f=h.useId(),p=o??`disclosure-${f}`,g=h.useCallback(()=>{d||l(!1),s==null||s()},[d,s]),m=h.useCallback(()=>{d||l(!0),i==null||i()},[d,i]),y=h.useCallback(()=>{c?g():m()},[c,m,g]);function x(v={}){return{...v,"aria-expanded":c,"aria-controls":p,onClick(S){var w;(w=v.onClick)==null||w.call(v,S),y()}}}function b(v={}){return{...v,hidden:!c,id:p}}return{isOpen:c,onOpen:m,onClose:g,onToggle:y,isControlled:d,getButtonProps:x,getDisclosureProps:b}}const Wr=globalThis!=null&&globalThis.document?h.useLayoutEffect:h.useEffect,Yd=(e,t)=>{const n=h.useRef(!1),r=h.useRef(!1);h.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),h.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function cM(e){return"current"in e}const KP=()=>typeof window<"u";function uM(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const dM=e=>KP()&&e.test(navigator.vendor),fM=e=>KP()&&e.test(uM()),pM=()=>fM(/mac|iphone|ipad|ipod/i),hM=()=>pM()&&dM(/apple/i);function mM(e){const{ref:t,elements:n,enabled:r}=e,o=()=>{var i;return((i=t.current)==null?void 0:i.ownerDocument)??document};ed(o,"pointerdown",i=>{var c,d;if(!hM()||!r)return;const s=((d=(c=i.composedPath)==null?void 0:c.call(i))==null?void 0:d[0])??i.target,l=(n??[t]).some(f=>{const p=cM(f)?f.current:f;return(p==null?void 0:p.contains(s))||p===s});o().activeElement!==s&&l&&(i.preventDefault(),s.focus())})}function gM(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function mt(...e){return t=>{e.forEach(n=>{gM(n,t)})}}function ny(...e){return h.useMemo(()=>mt(...e),e)}function vM(e,t){const n=er(e);h.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const pt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},sr=e=>GP(t=>e(t,"&"),"[role=group]","[data-group]",".group"),jr=e=>GP(t=>e(t,"~ &"),"[data-peer]",".peer"),GP=(e,...t)=>t.map(e).join(", "),Bs={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:sr(pt.open),_groupClosed:sr(pt.closed),_groupHover:sr(pt.hover),_peerHover:jr(pt.hover),_groupFocus:sr(pt.focus),_peerFocus:jr(pt.focus),_groupFocusVisible:sr(pt.focusVisible),_peerFocusVisible:jr(pt.focusVisible),_groupActive:sr(pt.active),_peerActive:jr(pt.active),_groupDisabled:sr(pt.disabled),_peerDisabled:jr(pt.disabled),_groupInvalid:sr(pt.invalid),_peerInvalid:jr(pt.invalid),_groupChecked:sr(pt.checked),_peerChecked:jr(pt.checked),_groupFocusWithin:sr(pt.focusWithin),_peerFocusWithin:jr(pt.focusWithin),_peerPlaceholderShown:jr(pt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},qP=Object.keys(Bs),yM=e=>/!(important)?$/.test(e),Vx=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,bM=(e,t)=>n=>{const r=String(t),o=yM(r),i=Vx(r),s=e?`${e}.${i}`:i;let a=vt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Vx(a),o?`${a} !important`:a};function ry(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=bM(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const gu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function _n(e,t){return n=>{const r={property:n,scale:e};return r.transform=ry({scale:e,transform:t}),r}}const xM=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function SM(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:xM(t),transform:n?ry({scale:n,compose:r}):r}}const XP=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function wM(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...XP].join(" ")}function kM(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...XP].join(" ")}const CM={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},PM={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function _M(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const TM={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Qm={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},EM=new Set(Object.values(Qm)),Zm=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),jM=e=>e.trim();function $M(e,t){if(e==null||Zm.has(e))return e;if(!(Jm(e)||Zm.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=s.split(",").map(jM).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in Qm?Qm[l]:l;c.unshift(d);const f=c.map(p=>{if(EM.has(p))return p;const g=p.indexOf(" "),[m,y]=g!==-1?[p.substr(0,g),p.substr(g+1)]:[p],x=Jm(y)?y:y&&y.split(" "),b=`colors.${m}`,v=b in t.__cssMap?t.__cssMap[b].varRef:m;return x?[v,...Array.isArray(x)?x:[x]].join(" "):v});return`${a}(${f.join(", ")})`}const Jm=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),AM=(e,t)=>$M(e,t??{});function RM(e){return/^var\(--.+\)$/.test(e)}const MM=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},ar=e=>t=>`${e}(${t})`,ge={filter(e){return e!=="auto"?e:CM},backdropFilter(e){return e!=="auto"?e:PM},ring(e){return _M(ge.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?wM():e==="auto-gpu"?kM():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=MM(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(RM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:AM,blur:ar("blur"),opacity:ar("opacity"),brightness:ar("brightness"),contrast:ar("contrast"),dropShadow:ar("drop-shadow"),grayscale:ar("grayscale"),hueRotate:e=>ar("hue-rotate")(ge.degree(e)),invert:ar("invert"),saturate:ar("saturate"),sepia:ar("sepia"),bgImage(e){return e==null||Jm(e)||Zm.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=TM[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},E={borderWidths:_n("borderWidths"),borderStyles:_n("borderStyles"),colors:_n("colors"),borders:_n("borders"),gradients:_n("gradients",ge.gradient),radii:_n("radii",ge.px),space:_n("space",gu(ge.vh,ge.px)),spaceT:_n("space",gu(ge.vh,ge.px)),degreeT(e){return{property:e,transform:ge.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:ry({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:_n("sizes",gu(ge.vh,ge.px)),sizesT:_n("sizes",gu(ge.vh,ge.fraction)),shadows:_n("shadows"),logical:SM,blur:_n("blur",ge.blur)},td={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ge.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:ge.bgClip}};Object.assign(td,{bgImage:td.backgroundImage,bgImg:td.backgroundImage});const _e={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(_e,{rounded:_e.borderRadius,roundedTop:_e.borderTopRadius,roundedTopLeft:_e.borderTopLeftRadius,roundedTopRight:_e.borderTopRightRadius,roundedTopStart:_e.borderStartStartRadius,roundedTopEnd:_e.borderStartEndRadius,roundedBottom:_e.borderBottomRadius,roundedBottomLeft:_e.borderBottomLeftRadius,roundedBottomRight:_e.borderBottomRightRadius,roundedBottomStart:_e.borderEndStartRadius,roundedBottomEnd:_e.borderEndEndRadius,roundedLeft:_e.borderLeftRadius,roundedRight:_e.borderRightRadius,roundedStart:_e.borderInlineStartRadius,roundedEnd:_e.borderInlineEndRadius,borderStart:_e.borderInlineStart,borderEnd:_e.borderInlineEnd,borderTopStartRadius:_e.borderStartStartRadius,borderTopEndRadius:_e.borderStartEndRadius,borderBottomStartRadius:_e.borderEndStartRadius,borderBottomEndRadius:_e.borderEndEndRadius,borderStartRadius:_e.borderInlineStartRadius,borderEndRadius:_e.borderInlineEndRadius,borderStartWidth:_e.borderInlineStartWidth,borderEndWidth:_e.borderInlineEndWidth,borderStartColor:_e.borderInlineStartColor,borderEndColor:_e.borderInlineEndColor,borderStartStyle:_e.borderInlineStartStyle,borderEndStyle:_e.borderInlineEndStyle});const IM={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},Qd={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ge.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(Qd,{flexDir:Qd.flexDirection});const En={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",ge.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(En,{w:En.width,h:En.height,minW:En.minWidth,maxW:En.maxWidth,minH:En.minHeight,maxH:En.maxHeight,overscroll:En.overscrollBehavior,overscrollX:En.overscrollBehaviorX,overscrollY:En.overscrollBehaviorY});const NM={filter:{transform:ge.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",ge.brightness),contrast:E.propT("--chakra-contrast",ge.contrast),hueRotate:E.propT("--chakra-hue-rotate",ge.hueRotate),invert:E.propT("--chakra-invert",ge.invert),saturate:E.propT("--chakra-saturate",ge.saturate),dropShadow:E.propT("--chakra-drop-shadow",ge.dropShadow),backdropFilter:{transform:ge.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",ge.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",ge.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",ge.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",ge.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",ge.saturate)},DM={ring:{transform:ge.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},zM={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ge.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},YP={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function LM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},BM=OM(LM),FM={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},VM={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},nh=(e,t,n)=>{const r={},o=BM(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},WM={srOnly:{transform(e){return e===!0?FM:e==="focusable"?VM:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>nh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>nh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>nh(t,e,n)}},wl={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(wl,{insetStart:wl.insetInlineStart,insetEnd:wl.insetInlineEnd});const eg={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(eg,{shadow:eg.boxShadow});const Ve={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(Ve,{m:Ve.margin,mt:Ve.marginTop,mr:Ve.marginRight,me:Ve.marginInlineEnd,marginEnd:Ve.marginInlineEnd,mb:Ve.marginBottom,ml:Ve.marginLeft,ms:Ve.marginInlineStart,marginStart:Ve.marginInlineStart,mx:Ve.marginX,my:Ve.marginY,p:Ve.padding,pt:Ve.paddingTop,py:Ve.paddingY,px:Ve.paddingX,pb:Ve.paddingBottom,pl:Ve.paddingLeft,ps:Ve.paddingInlineStart,paddingStart:Ve.paddingInlineStart,pr:Ve.paddingRight,pe:Ve.paddingInlineEnd,paddingEnd:Ve.paddingInlineEnd});const UM={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},HM={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",ge.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},KM={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},GM={clipPath:!0,transform:E.propT("transform",ge.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},qM={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},XM={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},oy=Mn({},td,_e,IM,Qd,En,NM,DM,zM,YP,WM,wl,eg,Ve,UM,HM,KM,GM,qM,XM),YM=Object.assign({},Ve,En,Qd,YP,wl),QP=Object.keys(YM),QM=[...Object.keys(oy),...qP],ZM={...oy,...Bs},JM=e=>e in ZM,e4=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Ot(e[s],t);if(a==null)continue;if(a=vt(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!n4(t),o4=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=t4(t);return t=n(o)??r(i)??r(t),t};function i4(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var d;const a=Ot(i,r),l=e4(a)(r);let c={};for(let f in l){const p=l[f];let g=Ot(p,r);f in n&&(f=n[f]),r4(f,g)&&(g=o4(r,g));let m=t[f];if(m===!0&&(m={property:f}),vt(g)){c[f]=c[f]??{},c[f]=Mn({},c[f],o(g,!0));continue}let y=((d=m==null?void 0:m.transform)==null?void 0:d.call(m,g,r,a))??g;y=m!=null&&m.processResult?o(y,!0):y;const x=Ot(m==null?void 0:m.property,r);if(!s&&(m!=null&&m.static)){const b=Ot(m.static,r);c=Mn({},c,b)}if(x&&Array.isArray(x)){for(const b of x)c[b]=y;continue}if(x){x==="&"&&vt(y)?c=Mn({},c,y):c[x]=y;continue}if(vt(y)){c=Mn({},c,y);continue}c[f]=y}return c};return o}const ZP=e=>t=>i4({theme:t,pseudos:Bs,configs:oy})(e);function oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function s4(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function a4(e,t){if(Array.isArray(e))return e;if(vt(e))return t(e);if(e!=null)return[e]}function l4(e,t){for(let n=t+1;n{Mn(a,{[S]:d?v[S]:{[b]:v[S]}})});continue}if(!f){d?Mn(a,v):a[b]=v;continue}a[b]=v}}return a}}function u4(e){return t=>{const{variant:n,size:r,theme:o}=t,i=c4(o);return Mn({},Ot(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function xe(e){return ey(e,["styleConfig","size","variant","colorScheme"])}function JP(e){return vt(e)&&e.reference?e.reference:String(e)}const Rf=(e,...t)=>t.map(JP).join(` ${e} `).replace(/calc/g,""),Wx=(...e)=>`calc(${Rf("+",...e)})`,Ux=(...e)=>`calc(${Rf("-",...e)})`,tg=(...e)=>`calc(${Rf("*",...e)})`,Hx=(...e)=>`calc(${Rf("/",...e)})`,Kx=e=>{const t=JP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:tg(t,-1)},Rr=Object.assign(e=>({add:(...t)=>Rr(Wx(e,...t)),subtract:(...t)=>Rr(Ux(e,...t)),multiply:(...t)=>Rr(tg(e,...t)),divide:(...t)=>Rr(Hx(e,...t)),negate:()=>Rr(Kx(e)),toString:()=>e.toString()}),{add:Wx,subtract:Ux,multiply:tg,divide:Hx,negate:Kx});function d4(e,t="-"){return e.replace(/\s+/g,t)}function f4(e){const t=d4(e.toString());return h4(p4(t))}function p4(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function h4(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function m4(e,t=""){return[t,e].filter(Boolean).join("-")}function g4(e,t){return`var(${e}${t?`, ${t}`:""})`}function v4(e,t=""){return f4(`--${m4(e,t)}`)}function U(e,t,n){const r=v4(e,n);return{variable:r,reference:g4(r,t)}}function e2(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=U(`${e}-${o}`,i);continue}n[r]=U(`${e}-${r}`)}return n}const y4=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function b4(e){return FP(e,y4)}function x4(e){return e.semanticTokens}function S4(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function w4(e){const t=b4(e),n=x4(e),r=i=>qP.includes(i)||i==="default",o={};return Fx(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),Fx(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function Gx(e,t){return U(String(e).replace(/\./g,"-"),void 0,t)}function k4(e){var s;const t=w4(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const d=[String(a).split(".")[0],l].join(".");if(!t[d])return l;const{reference:p}=Gx(d,n);return p}for(const[a,l]of Object.entries(t)){const{isSemantic:c,value:d}=l,{variable:f,reference:p}=Gx(a,n);if(!c){if(a.startsWith("space")){const m=a.split("."),[y,...x]=m,b=`${y}.-${x.join(".")}`,v=Rr.negate(d),S=Rr.negate(p);o[b]={value:v,var:f,varRef:S}}r[f]=d,o[a]={value:d,var:f,varRef:p};continue}const g=vt(d)?d:{default:d};r=Mn(r,Object.entries(g).reduce((m,[y,x])=>{if(!x)return m;const b=i(a,`${x}`);if(y==="default")return m[f]=b,m;const v=(Bs==null?void 0:Bs[y])??y;return m[v]={[f]:b},m},{})),o[a]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:o}}function C4(e){const t=S4(e),{cssMap:n,cssVars:r}=k4(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:HR(t.breakpoints)}),t}function Ce(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return Ce(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return Ce(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const g=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const P4=Ce("accordion").parts("root","container","button","panel","icon"),t2=Ce("alert").parts("title","description","container","icon","spinner"),_4=Ce("avatar").parts("label","badge","container","excessLabel","group"),T4=Ce("breadcrumb").parts("link","item","container","separator");Ce("button").parts();const n2=Ce("checkbox").parts("control","icon","container","label");Ce("progress").parts("track","filledTrack","label");const E4=Ce("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),j4=Ce("editable").parts("preview","input","textarea"),r2=Ce("form").parts("container","requiredIndicator","helperText"),$4=Ce("formError").parts("text","icon"),iy=Ce("input").parts("addon","field","element","group"),A4=Ce("list").parts("container","item","icon"),o2=Ce("menu").parts("button","list","item","groupTitle","icon","command","divider"),i2=Ce("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),R4=Ce("numberinput").parts("root","field","stepperGroup","stepper");Ce("pininput").parts("field");const M4=Ce("popover").parts("content","header","body","footer","popper","arrow","closeButton"),s2=Ce("progress").parts("label","filledTrack","track"),a2=Ce("radio").parts("container","control","label"),I4=Ce("select").parts("field","icon"),l2=Ce("slider").parts("container","track","thumb","filledTrack","mark"),N4=Ce("stat").parts("container","label","helpText","number","icon"),c2=Ce("switch").parts("container","track","thumb","label"),D4=Ce("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),z4=Ce("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),L4=Ce("tag").parts("container","label","closeButton"),u2=Ce("card").parts("container","header","body","footer");Ce("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:O4,defineMultiStyleConfig:B4}=oe(P4.keys),F4={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},V4={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},W4={pt:"2",px:"4",pb:"5"},U4={fontSize:"1.25em"},H4=O4({container:F4,button:V4,panel:W4,icon:U4}),K4=B4({baseStyle:H4});function vi(e,t,n){return Math.min(Math.max(e,n),t)}class tl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function sy(e){if(typeof e!="string")throw new tl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=eI.test(e)?X4(e):e;const n=Y4.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(Zl(a,2),16)),parseInt(Zl(s[3]||"f",2),16)/255]}const r=Q4.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=Z4.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=J4.exec(t);if(i){const[s,a,l,c]=Array.from(i).slice(1).map(parseFloat);if(vi(0,100,a)!==a)throw new tl(e);if(vi(0,100,l)!==l)throw new tl(e);return[...tI(s,a,l),Number.isNaN(c)?1:c]}throw new tl(e)}function G4(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const qx=e=>parseInt(e.replace(/_/g,""),36),q4="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=qx(t.substring(0,3)),r=qx(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function X4(e){const t=e.toLowerCase().trim(),n=q4[G4(t)];if(!n)throw new tl(e);return`#${n}`}const Zl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Y4=new RegExp(`^#${Zl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Q4=new RegExp(`^#${Zl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Z4=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Zl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),J4=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,eI=/^[a-z]+$/i,Xx=e=>Math.round(e*255),tI=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(Xx);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,c=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(a=s,c=i):o>=5&&o<6&&(a=i,c=s);const d=r-i/2,f=a+d,p=l+d,g=c+d;return[f,p,g].map(Xx)};function nI(e,t,n,r){return`rgba(${vi(0,255,e).toFixed()}, ${vi(0,255,t).toFixed()}, ${vi(0,255,n).toFixed()}, ${parseFloat(vi(0,1,r).toFixed(3))})`}function rI(e,t){const[n,r,o,i]=sy(e);return nI(n,r,o,i-t)}function oI(e){const[t,n,r,o]=sy(e);let i=s=>{const a=vi(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const iI=e=>Object.keys(e).length===0;function sI(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=sI(e,`colors.${t}`,t);try{return oI(r),r}catch{return n??"#000000"}},aI=e=>{const[t,n,r]=sy(e);return(t*299+n*587+r*114)/1e3},lI=e=>t=>{const n=He(t,e);return aI(n)<128?"dark":"light"},cI=e=>t=>lI(e)(t)==="dark",wt=(e,t)=>n=>{const r=He(n,e);return rI(r,1-t)};function Yx(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}const uI=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function dI(e){const t=uI();return!e||iI(e)?t:e.string&&e.colors?pI(e.string,e.colors):e.string&&!e.colors?fI(e.string):e.colors&&!e.string?hI(e.colors):t}function fI(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function pI(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function ay(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function d2(e){return vt(e)&&e.reference?e.reference:String(e)}const Mf=(e,...t)=>t.map(d2).join(` ${e} `).replace(/calc/g,""),Qx=(...e)=>`calc(${Mf("+",...e)})`,Zx=(...e)=>`calc(${Mf("-",...e)})`,ng=(...e)=>`calc(${Mf("*",...e)})`,Jx=(...e)=>`calc(${Mf("/",...e)})`,e1=e=>{const t=d2(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ng(t,-1)},Mr=Object.assign(e=>({add:(...t)=>Mr(Qx(e,...t)),subtract:(...t)=>Mr(Zx(e,...t)),multiply:(...t)=>Mr(ng(e,...t)),divide:(...t)=>Mr(Jx(e,...t)),negate:()=>Mr(e1(e)),toString:()=>e.toString()}),{add:Qx,subtract:Zx,multiply:ng,divide:Jx,negate:e1});function mI(e){return!Number.isInteger(parseFloat(e.toString()))}function gI(e,t="-"){return e.replace(/\s+/g,t)}function f2(e){const t=gI(e.toString());return t.includes("\\.")?e:mI(e)?t.replace(".","\\."):e}function vI(e,t=""){return[t,f2(e)].filter(Boolean).join("-")}function yI(e,t){return`var(${f2(e)}${t?`, ${t}`:""})`}function bI(e,t=""){return`--${vI(e,t)}`}function it(e,t){const n=bI(e,t==null?void 0:t.prefix);return{variable:n,reference:yI(n,xI(t==null?void 0:t.fallback))}}function xI(e){return e==null?void 0:e.reference}const{definePartsStyle:_c,defineMultiStyleConfig:SI}=oe(t2.keys),mn=U("alert-fg"),Qr=U("alert-bg"),wI=_c({container:{bg:Qr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:mn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:mn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ly(e){const{theme:t,colorScheme:n}=e,r=wt(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const kI=_c(e=>{const{colorScheme:t}=e,n=ly(e);return{container:{[mn.variable]:`colors.${t}.600`,[Qr.variable]:n.light,_dark:{[mn.variable]:`colors.${t}.200`,[Qr.variable]:n.dark}}}}),CI=_c(e=>{const{colorScheme:t}=e,n=ly(e);return{container:{[mn.variable]:`colors.${t}.600`,[Qr.variable]:n.light,_dark:{[mn.variable]:`colors.${t}.200`,[Qr.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:mn.reference}}}),PI=_c(e=>{const{colorScheme:t}=e,n=ly(e);return{container:{[mn.variable]:`colors.${t}.600`,[Qr.variable]:n.light,_dark:{[mn.variable]:`colors.${t}.200`,[Qr.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:mn.reference}}}),_I=_c(e=>{const{colorScheme:t}=e;return{container:{[mn.variable]:"colors.white",[Qr.variable]:`colors.${t}.600`,_dark:{[mn.variable]:"colors.gray.900",[Qr.variable]:`colors.${t}.200`},color:mn.reference}}}),TI={subtle:kI,"left-accent":CI,"top-accent":PI,solid:_I},EI=SI({baseStyle:wI,variants:TI,defaultProps:{variant:"subtle",colorScheme:"blue"}}),p2={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},jI={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},$I={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},h2={...p2,...jI,container:$I},AI=e=>typeof e=="function";function Gt(e,...t){return AI(e)?e(...t):e}const{definePartsStyle:m2,defineMultiStyleConfig:RI}=oe(_4.keys),Fs=U("avatar-border-color"),kl=U("avatar-bg"),Jl=U("avatar-font-size"),ra=U("avatar-size"),MI={borderRadius:"full",border:"0.2em solid",borderColor:Fs.reference,[Fs.variable]:"white",_dark:{[Fs.variable]:"colors.gray.800"}},II={bg:kl.reference,fontSize:Jl.reference,width:ra.reference,height:ra.reference,lineHeight:"1",[kl.variable]:"colors.gray.200",_dark:{[kl.variable]:"colors.whiteAlpha.400"}},NI=e=>{const{name:t,theme:n}=e,r=t?dI({string:t}):"colors.gray.400",o=cI(r)(n);let i="white";return o||(i="gray.800"),{bg:kl.reference,fontSize:Jl.reference,color:i,borderColor:Fs.reference,verticalAlign:"top",width:ra.reference,height:ra.reference,"&:not([data-loaded])":{[kl.variable]:r},[Fs.variable]:"colors.white",_dark:{[Fs.variable]:"colors.gray.800"}}},DI={fontSize:Jl.reference,lineHeight:"1"},zI=m2(e=>({badge:Gt(MI,e),excessLabel:Gt(II,e),container:Gt(NI,e),label:DI}));function ao(e){const t=e!=="100%"?h2[e]:void 0;return m2({container:{[ra.variable]:t??e,[Jl.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ra.variable]:t??e,[Jl.variable]:`calc(${t??e} / 2.5)`}})}const LI={"2xs":ao(4),xs:ao(6),sm:ao(8),md:ao(12),lg:ao(16),xl:ao(24),"2xl":ao(32),full:ao("100%")},OI=RI({baseStyle:zI,sizes:LI,defaultProps:{size:"md"}}),ct=e2("badge",["bg","color","shadow"]),BI={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ct.bg.reference,color:ct.color.reference,boxShadow:ct.shadow.reference},FI=e=>{const{colorScheme:t,theme:n}=e,r=wt(`${t}.500`,.6)(n);return{[ct.bg.variable]:`colors.${t}.500`,[ct.color.variable]:"colors.white",_dark:{[ct.bg.variable]:r,[ct.color.variable]:"colors.whiteAlpha.800"}}},VI=e=>{const{colorScheme:t,theme:n}=e,r=wt(`${t}.200`,.16)(n);return{[ct.bg.variable]:`colors.${t}.100`,[ct.color.variable]:`colors.${t}.800`,_dark:{[ct.bg.variable]:r,[ct.color.variable]:`colors.${t}.200`}}},WI=e=>{const{colorScheme:t,theme:n}=e,r=wt(`${t}.200`,.8)(n);return{[ct.color.variable]:`colors.${t}.500`,_dark:{[ct.color.variable]:r},[ct.shadow.variable]:`inset 0 0 0px 1px ${ct.color.reference}`}},UI={solid:FI,subtle:VI,outline:WI},Cl={baseStyle:BI,variants:UI,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:HI,definePartsStyle:KI}=oe(T4.keys),rh=U("breadcrumb-link-decor"),GI={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:rh.reference,[rh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[rh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},qI=KI({link:GI}),XI=HI({baseStyle:qI}),YI={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},g2=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:H("gray.800","whiteAlpha.900")(e),_hover:{bg:H("gray.100","whiteAlpha.200")(e)},_active:{bg:H("gray.200","whiteAlpha.300")(e)}};const r=wt(`${t}.200`,.12)(n),o=wt(`${t}.200`,.24)(n);return{color:H(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:H(`${t}.50`,r)(e)},_active:{bg:H(`${t}.100`,o)(e)}}},QI=e=>{const{colorScheme:t}=e,n=H("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Gt(g2,e)}},ZI={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},JI=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=H("gray.100","whiteAlpha.200")(e);return{bg:a,color:H("gray.800","whiteAlpha.900")(e),_hover:{bg:H("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:H("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=ZI[t]??{},s=H(n,`${t}.200`)(e);return{bg:s,color:H(r,"gray.800")(e),_hover:{bg:H(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:H(i,`${t}.400`)(e)}}},e3=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:H(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:H(`${t}.700`,`${t}.500`)(e)}}},t3={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},n3={ghost:g2,outline:QI,solid:JI,link:e3,unstyled:t3},r3={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},o3={baseStyle:YI,variants:n3,sizes:r3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ci,defineMultiStyleConfig:i3}=oe(u2.keys),Zd=U("card-bg"),Ur=U("card-padding"),v2=U("card-shadow"),nd=U("card-radius"),y2=U("card-border-width","0"),b2=U("card-border-color"),s3=Ci({container:{[Zd.variable]:"colors.chakra-body-bg",backgroundColor:Zd.reference,boxShadow:v2.reference,borderRadius:nd.reference,color:"chakra-body-text",borderWidth:y2.reference,borderColor:b2.reference},body:{padding:Ur.reference,flex:"1 1 0%"},header:{padding:Ur.reference},footer:{padding:Ur.reference}}),a3={sm:Ci({container:{[nd.variable]:"radii.base",[Ur.variable]:"space.3"}}),md:Ci({container:{[nd.variable]:"radii.md",[Ur.variable]:"space.5"}}),lg:Ci({container:{[nd.variable]:"radii.xl",[Ur.variable]:"space.7"}})},l3={elevated:Ci({container:{[v2.variable]:"shadows.base",_dark:{[Zd.variable]:"colors.gray.700"}}}),outline:Ci({container:{[y2.variable]:"1px",[b2.variable]:"colors.chakra-border-color"}}),filled:Ci({container:{[Zd.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ur.variable]:0},header:{[Ur.variable]:0},footer:{[Ur.variable]:0}}},c3=i3({baseStyle:s3,variants:l3,sizes:a3,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:rd,defineMultiStyleConfig:u3}=oe(n2.keys),Pl=U("checkbox-size"),d3=e=>{const{colorScheme:t}=e;return{w:Pl.reference,h:Pl.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:H(`${t}.500`,`${t}.200`)(e),borderColor:H(`${t}.500`,`${t}.200`)(e),color:H("white","gray.900")(e),_hover:{bg:H(`${t}.600`,`${t}.300`)(e),borderColor:H(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:H("gray.200","transparent")(e),bg:H("gray.200","whiteAlpha.300")(e),color:H("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:H(`${t}.500`,`${t}.200`)(e),borderColor:H(`${t}.500`,`${t}.200`)(e),color:H("white","gray.900")(e)},_disabled:{bg:H("gray.100","whiteAlpha.100")(e),borderColor:H("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:H("red.500","red.300")(e)}}},f3={_disabled:{cursor:"not-allowed"}},p3={userSelect:"none",_disabled:{opacity:.4}},h3={transitionProperty:"transform",transitionDuration:"normal"},m3=rd(e=>({icon:h3,container:f3,control:Gt(d3,e),label:p3})),g3={sm:rd({control:{[Pl.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:rd({control:{[Pl.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:rd({control:{[Pl.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},go=u3({baseStyle:m3,sizes:g3,defaultProps:{size:"md",colorScheme:"blue"}}),_l=it("close-button-size"),Fa=it("close-button-bg"),v3={w:[_l.reference],h:[_l.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Fa.variable]:"colors.blackAlpha.100",_dark:{[Fa.variable]:"colors.whiteAlpha.100"}},_active:{[Fa.variable]:"colors.blackAlpha.200",_dark:{[Fa.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Fa.reference},y3={lg:{[_l.variable]:"sizes.10",fontSize:"md"},md:{[_l.variable]:"sizes.8",fontSize:"xs"},sm:{[_l.variable]:"sizes.6",fontSize:"2xs"}},b3={baseStyle:v3,sizes:y3,defaultProps:{size:"md"}},{variants:x3,defaultProps:S3}=Cl,w3={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ct.bg.reference,color:ct.color.reference,boxShadow:ct.shadow.reference},k3={baseStyle:w3,variants:x3,defaultProps:S3},C3={w:"100%",mx:"auto",maxW:"prose",px:"4"},P3={baseStyle:C3},_3={opacity:.6,borderColor:"inherit"},T3={borderStyle:"solid"},E3={borderStyle:"dashed"},j3={solid:T3,dashed:E3},$3={baseStyle:_3,variants:j3,defaultProps:{variant:"solid"}},{definePartsStyle:rg,defineMultiStyleConfig:A3}=oe(E4.keys),oh=U("drawer-bg"),ih=U("drawer-box-shadow");function es(e){return rg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const R3={bg:"blackAlpha.600",zIndex:"modal"},M3={display:"flex",zIndex:"modal",justifyContent:"center"},I3=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[oh.variable]:"colors.white",[ih.variable]:"shadows.lg",_dark:{[oh.variable]:"colors.gray.700",[ih.variable]:"shadows.dark-lg"},bg:oh.reference,boxShadow:ih.reference}},N3={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},D3={position:"absolute",top:"2",insetEnd:"3"},z3={px:"6",py:"2",flex:"1",overflow:"auto"},L3={px:"6",py:"4"},O3=rg(e=>({overlay:R3,dialogContainer:M3,dialog:Gt(I3,e),header:N3,closeButton:D3,body:z3,footer:L3})),B3={xs:es("xs"),sm:es("md"),md:es("lg"),lg:es("2xl"),xl:es("4xl"),full:es("full")},F3=A3({baseStyle:O3,sizes:B3,defaultProps:{size:"xs"}}),{definePartsStyle:V3,defineMultiStyleConfig:W3}=oe(j4.keys),U3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},H3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},K3={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},G3=V3({preview:U3,input:H3,textarea:K3}),q3=W3({baseStyle:G3}),{definePartsStyle:X3,defineMultiStyleConfig:Y3}=oe(r2.keys),Vs=U("form-control-color"),Q3={marginStart:"1",[Vs.variable]:"colors.red.500",_dark:{[Vs.variable]:"colors.red.300"},color:Vs.reference},Z3={mt:"2",[Vs.variable]:"colors.gray.600",_dark:{[Vs.variable]:"colors.whiteAlpha.600"},color:Vs.reference,lineHeight:"normal",fontSize:"sm"},J3=X3({container:{width:"100%",position:"relative"},requiredIndicator:Q3,helperText:Z3}),eN=Y3({baseStyle:J3}),{definePartsStyle:tN,defineMultiStyleConfig:nN}=oe($4.keys),Ws=U("form-error-color"),rN={[Ws.variable]:"colors.red.500",_dark:{[Ws.variable]:"colors.red.300"},color:Ws.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},oN={marginEnd:"0.5em",[Ws.variable]:"colors.red.500",_dark:{[Ws.variable]:"colors.red.300"},color:Ws.reference},iN=tN({text:rN,icon:oN}),sN=nN({baseStyle:iN}),aN={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},lN={baseStyle:aN},cN={fontFamily:"heading",fontWeight:"bold"},uN={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},dN={baseStyle:cN,sizes:uN,defaultProps:{size:"xl"}},{definePartsStyle:Lr,defineMultiStyleConfig:fN}=oe(iy.keys),ys=U("input-height"),bs=U("input-font-size"),xs=U("input-padding"),Ss=U("input-border-radius"),pN=Lr({addon:{height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference},field:{width:"100%",height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),lo={lg:{[bs.variable]:"fontSizes.lg",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.12"},md:{[bs.variable]:"fontSizes.md",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.10"},sm:{[bs.variable]:"fontSizes.sm",[xs.variable]:"space.3",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.8"},xs:{[bs.variable]:"fontSizes.xs",[xs.variable]:"space.2",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.6"}},hN={lg:Lr({field:lo.lg,group:lo.lg}),md:Lr({field:lo.md,group:lo.md}),sm:Lr({field:lo.sm,group:lo.sm}),xs:Lr({field:lo.xs,group:lo.xs})};function cy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||H("blue.500","blue.300")(e),errorBorderColor:n||H("red.500","red.300")(e)}}const mN=Lr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=cy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:H("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r),boxShadow:`0 0 0 1px ${He(t,r)}`},_focusVisible:{zIndex:1,borderColor:He(t,n),boxShadow:`0 0 0 1px ${He(t,n)}`}},addon:{border:"1px solid",borderColor:H("inherit","whiteAlpha.50")(e),bg:H("gray.100","whiteAlpha.300")(e)}}}),gN=Lr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=cy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:H("gray.100","whiteAlpha.50")(e),_hover:{bg:H("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r)},_focusVisible:{bg:"transparent",borderColor:He(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:H("gray.100","whiteAlpha.50")(e)}}}),vN=Lr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=cy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r),boxShadow:`0px 1px 0px 0px ${He(t,r)}`},_focusVisible:{borderColor:He(t,n),boxShadow:`0px 1px 0px 0px ${He(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),yN=Lr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),bN={outline:mN,filled:gN,flushed:vN,unstyled:yN},je=fN({baseStyle:pN,sizes:hN,variants:bN,defaultProps:{size:"md",variant:"outline"}}),sh=U("kbd-bg"),xN={[sh.variable]:"colors.gray.100",_dark:{[sh.variable]:"colors.whiteAlpha.100"},bg:sh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},SN={baseStyle:xN},wN={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},kN={baseStyle:wN},{defineMultiStyleConfig:CN,definePartsStyle:PN}=oe(A4.keys),_N={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},TN=PN({icon:_N}),EN=CN({baseStyle:TN}),{defineMultiStyleConfig:jN,definePartsStyle:$N}=oe(o2.keys),dr=U("menu-bg"),ah=U("menu-shadow"),AN={[dr.variable]:"#fff",[ah.variable]:"shadows.sm",_dark:{[dr.variable]:"colors.gray.700",[ah.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:dr.reference,boxShadow:ah.reference},RN={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[dr.variable]:"colors.gray.100",_dark:{[dr.variable]:"colors.whiteAlpha.100"}},_active:{[dr.variable]:"colors.gray.200",_dark:{[dr.variable]:"colors.whiteAlpha.200"}},_expanded:{[dr.variable]:"colors.gray.100",_dark:{[dr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:dr.reference},MN={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},IN={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},NN={opacity:.6},DN={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},zN={transitionProperty:"common",transitionDuration:"normal"},LN=$N({button:zN,list:AN,item:RN,groupTitle:MN,icon:IN,command:NN,divider:DN}),ON=jN({baseStyle:LN}),{defineMultiStyleConfig:BN,definePartsStyle:og}=oe(i2.keys),lh=U("modal-bg"),ch=U("modal-shadow"),FN={bg:"blackAlpha.600",zIndex:"modal"},VN=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},WN=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[lh.variable]:"colors.white",[ch.variable]:"shadows.lg",_dark:{[lh.variable]:"colors.gray.700",[ch.variable]:"shadows.dark-lg"},bg:lh.reference,boxShadow:ch.reference}},UN={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},HN={position:"absolute",top:"2",insetEnd:"3"},KN=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},GN={px:"6",py:"4"},qN=og(e=>({overlay:FN,dialogContainer:Gt(VN,e),dialog:Gt(WN,e),header:UN,closeButton:HN,body:Gt(KN,e),footer:GN}));function Kn(e){return og(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const XN={xs:Kn("xs"),sm:Kn("sm"),md:Kn("md"),lg:Kn("lg"),xl:Kn("xl"),"2xl":Kn("2xl"),"3xl":Kn("3xl"),"4xl":Kn("4xl"),"5xl":Kn("5xl"),"6xl":Kn("6xl"),full:Kn("full")},YN=BN({baseStyle:qN,sizes:XN,defaultProps:{size:"md"}}),x2={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:QN,definePartsStyle:S2}=oe(R4.keys),uy=it("number-input-stepper-width"),w2=it("number-input-input-padding"),ZN=Mr(uy).add("0.5rem").toString(),uh=it("number-input-bg"),dh=it("number-input-color"),fh=it("number-input-border-color"),JN={[uy.variable]:"sizes.6",[w2.variable]:ZN},eD=e=>{var t;return((t=Gt(je.baseStyle,e))==null?void 0:t.field)??{}},tD={width:uy.reference},nD={borderStart:"1px solid",borderStartColor:fh.reference,color:dh.reference,bg:uh.reference,[dh.variable]:"colors.chakra-body-text",[fh.variable]:"colors.chakra-border-color",_dark:{[dh.variable]:"colors.whiteAlpha.800",[fh.variable]:"colors.whiteAlpha.300"},_active:{[uh.variable]:"colors.gray.200",_dark:{[uh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},rD=S2(e=>({root:JN,field:Gt(eD,e)??{},stepperGroup:tD,stepper:nD}));function vu(e){var i,s;const t=(i=je.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=x2.fontSizes[r];return S2({field:{...t.field,paddingInlineEnd:w2.reference,verticalAlign:"top"},stepper:{fontSize:Mr(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const oD={xs:vu("xs"),sm:vu("sm"),md:vu("md"),lg:vu("lg")},iD=QN({baseStyle:rD,sizes:oD,variants:je.variants,defaultProps:je.defaultProps});var lk;const sD={...(lk=je.baseStyle)==null?void 0:lk.field,textAlign:"center"},aD={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var ck;const lD={outline:e=>{var t,n;return((n=Gt((t=je.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Gt((t=je.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Gt((t=je.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((ck=je.variants)==null?void 0:ck.unstyled.field)??{}},cD={baseStyle:sD,sizes:aD,variants:lD,defaultProps:je.defaultProps},{defineMultiStyleConfig:uD,definePartsStyle:dD}=oe(M4.keys),yu=it("popper-bg"),fD=it("popper-arrow-bg"),t1=it("popper-arrow-shadow-color"),pD={zIndex:"popover"},hD={[yu.variable]:"colors.white",bg:yu.reference,[fD.variable]:yu.reference,[t1.variable]:"colors.gray.200",_dark:{[yu.variable]:"colors.gray.700",[t1.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},mD={px:3,py:2,borderBottomWidth:"1px"},gD={px:3,py:2},vD={px:3,py:2,borderTopWidth:"1px"},yD={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},bD=dD({popper:pD,content:hD,header:mD,body:gD,footer:vD,closeButton:yD}),xD=uD({baseStyle:bD}),{defineMultiStyleConfig:SD,definePartsStyle:nl}=oe(s2.keys),wD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=H(Yx(),Yx("1rem","rgba(0,0,0,0.1)"))(e),s=H(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${He(n,s)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},kD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},CD=e=>({bg:H("gray.100","whiteAlpha.300")(e)}),PD=e=>({transitionProperty:"common",transitionDuration:"slow",...wD(e)}),_D=nl(e=>({label:kD,filledTrack:PD(e),track:CD(e)})),TD={xs:nl({track:{h:"1"}}),sm:nl({track:{h:"2"}}),md:nl({track:{h:"3"}}),lg:nl({track:{h:"4"}})},ED=SD({sizes:TD,baseStyle:_D,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:jD,definePartsStyle:od}=oe(a2.keys),$D=e=>{var n;const t=(n=Gt(go.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},AD=od(e=>{var t,n;return{label:(t=go.baseStyle)==null?void 0:t.call(go,e).label,container:(n=go.baseStyle)==null?void 0:n.call(go,e).container,control:$D(e)}}),RD={md:od({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:od({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:od({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},MD=jD({baseStyle:AD,sizes:RD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ID,definePartsStyle:ND}=oe(I4.keys),bu=U("select-bg");var uk;const DD={...(uk=je.baseStyle)==null?void 0:uk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:bu.reference,[bu.variable]:"colors.white",_dark:{[bu.variable]:"colors.gray.700"},"> option, > optgroup":{bg:bu.reference}},zD={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},LD=ND({field:DD,icon:zD}),xu={paddingInlineEnd:"8"};var dk,fk,pk,hk,mk,gk,vk,yk;const OD={lg:{...(dk=je.sizes)==null?void 0:dk.lg,field:{...(fk=je.sizes)==null?void 0:fk.lg.field,...xu}},md:{...(pk=je.sizes)==null?void 0:pk.md,field:{...(hk=je.sizes)==null?void 0:hk.md.field,...xu}},sm:{...(mk=je.sizes)==null?void 0:mk.sm,field:{...(gk=je.sizes)==null?void 0:gk.sm.field,...xu}},xs:{...(vk=je.sizes)==null?void 0:vk.xs,field:{...(yk=je.sizes)==null?void 0:yk.xs.field,...xu},icon:{insetEnd:"1"}}},BD=ID({baseStyle:LD,sizes:OD,variants:je.variants,defaultProps:je.defaultProps}),ph=U("skeleton-start-color"),hh=U("skeleton-end-color"),FD={[ph.variable]:"colors.gray.100",[hh.variable]:"colors.gray.400",_dark:{[ph.variable]:"colors.gray.800",[hh.variable]:"colors.gray.600"},background:ph.reference,borderColor:hh.reference,opacity:.7,borderRadius:"sm"},VD={baseStyle:FD},mh=U("skip-link-bg"),WD={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[mh.variable]:"colors.white",_dark:{[mh.variable]:"colors.gray.700"},bg:mh.reference}},UD={baseStyle:WD},{defineMultiStyleConfig:HD,definePartsStyle:If}=oe(l2.keys),Li=U("slider-thumb-size"),ec=U("slider-track-size"),bo=U("slider-bg"),KD=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ay({orientation:t,vertical:{h:"100%",px:Rr(Li.reference).divide(2).toString()},horizontal:{w:"100%",py:Rr(Li.reference).divide(2).toString()}})}},GD=e=>({...ay({orientation:e.orientation,horizontal:{h:ec.reference},vertical:{w:ec.reference}}),overflow:"hidden",borderRadius:"sm",[bo.variable]:"colors.gray.200",_dark:{[bo.variable]:"colors.whiteAlpha.200"},_disabled:{[bo.variable]:"colors.gray.300",_dark:{[bo.variable]:"colors.whiteAlpha.300"}},bg:bo.reference}),qD=e=>{const{orientation:t}=e;return{...ay({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Li.reference,h:Li.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},XD=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[bo.variable]:`colors.${t}.500`,_dark:{[bo.variable]:`colors.${t}.200`},bg:bo.reference}},YD=If(e=>({container:KD(e),track:GD(e),thumb:qD(e),filledTrack:XD(e)})),QD=If({container:{[Li.variable]:"sizes.4",[ec.variable]:"sizes.1"}}),ZD=If({container:{[Li.variable]:"sizes.3.5",[ec.variable]:"sizes.1"}}),JD=If({container:{[Li.variable]:"sizes.2.5",[ec.variable]:"sizes.0.5"}}),ez={lg:QD,md:ZD,sm:JD},tz=HD({baseStyle:YD,sizes:ez,defaultProps:{size:"md",colorScheme:"blue"}}),pi=it("spinner-size"),nz={width:[pi.reference],height:[pi.reference]},rz={xs:{[pi.variable]:"sizes.3"},sm:{[pi.variable]:"sizes.4"},md:{[pi.variable]:"sizes.6"},lg:{[pi.variable]:"sizes.8"},xl:{[pi.variable]:"sizes.12"}},oz={baseStyle:nz,sizes:rz,defaultProps:{size:"md"}},{defineMultiStyleConfig:iz,definePartsStyle:k2}=oe(N4.keys),sz={fontWeight:"medium"},az={opacity:.8,marginBottom:"2"},lz={verticalAlign:"baseline",fontWeight:"semibold"},cz={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},uz=k2({container:{},label:sz,helpText:az,number:lz,icon:cz}),dz={md:k2({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},fz=iz({baseStyle:uz,sizes:dz,defaultProps:{size:"md"}}),{defineMultiStyleConfig:pz,definePartsStyle:rl}=oe(["stepper","step","title","description","indicator","separator","icon","number"]),Ir=U("stepper-indicator-size"),ws=U("stepper-icon-size"),ks=U("stepper-title-font-size"),ol=U("stepper-description-font-size"),Va=U("stepper-accent-color"),hz=rl(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Va.variable]:`colors.${e}.500`,_dark:{[Va.variable]:`colors.${e}.200`}},title:{fontSize:ks.reference,fontWeight:"medium"},description:{fontSize:ol.reference,color:"chakra-subtle-text"},number:{fontSize:ks.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:ws.reference,height:ws.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ir.reference,height:Ir.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Va.reference},"&[data-status=complete]":{bg:Va.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Va.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ir.reference} - 8px)`,top:`calc(${Ir.reference} + 4px)`,insetStart:`calc(${Ir.reference} / 2 - 1px)`}}})),mz=pz({baseStyle:hz,sizes:{xs:rl({stepper:{[Ir.variable]:"sizes.4",[ws.variable]:"sizes.3",[ks.variable]:"fontSizes.xs",[ol.variable]:"fontSizes.xs"}}),sm:rl({stepper:{[Ir.variable]:"sizes.6",[ws.variable]:"sizes.4",[ks.variable]:"fontSizes.sm",[ol.variable]:"fontSizes.xs"}}),md:rl({stepper:{[Ir.variable]:"sizes.8",[ws.variable]:"sizes.5",[ks.variable]:"fontSizes.md",[ol.variable]:"fontSizes.sm"}}),lg:rl({stepper:{[Ir.variable]:"sizes.10",[ws.variable]:"sizes.6",[ks.variable]:"fontSizes.lg",[ol.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gz,definePartsStyle:id}=oe(c2.keys),Tl=it("switch-track-width"),Pi=it("switch-track-height"),gh=it("switch-track-diff"),vz=Mr.subtract(Tl,Pi),ig=it("switch-thumb-x"),Wa=it("switch-bg"),yz=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Tl.reference],height:[Pi.reference],transitionProperty:"common",transitionDuration:"fast",[Wa.variable]:"colors.gray.300",_dark:{[Wa.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Wa.variable]:`colors.${t}.500`,_dark:{[Wa.variable]:`colors.${t}.200`}},bg:Wa.reference}},bz={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Pi.reference],height:[Pi.reference],_checked:{transform:`translateX(${ig.reference})`}},xz=id(e=>({container:{[gh.variable]:vz,[ig.variable]:gh.reference,_rtl:{[ig.variable]:Mr(gh).negate().toString()}},track:yz(e),thumb:bz})),Sz={sm:id({container:{[Tl.variable]:"1.375rem",[Pi.variable]:"sizes.3"}}),md:id({container:{[Tl.variable]:"1.875rem",[Pi.variable]:"sizes.4"}}),lg:id({container:{[Tl.variable]:"2.875rem",[Pi.variable]:"sizes.6"}})},wz=gz({baseStyle:xz,sizes:Sz,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kz,definePartsStyle:Us}=oe(D4.keys),Cz=Us({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Jd={"&[data-is-numeric=true]":{textAlign:"end"}},Pz=Us(e=>{const{colorScheme:t}=e;return{th:{color:H("gray.600","gray.400")(e),borderBottom:"1px",borderColor:H(`${t}.100`,`${t}.700`)(e),...Jd},td:{borderBottom:"1px",borderColor:H(`${t}.100`,`${t}.700`)(e),...Jd},caption:{color:H("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),_z=Us(e=>{const{colorScheme:t}=e;return{th:{color:H("gray.600","gray.400")(e),borderBottom:"1px",borderColor:H(`${t}.100`,`${t}.700`)(e),...Jd},td:{borderBottom:"1px",borderColor:H(`${t}.100`,`${t}.700`)(e),...Jd},caption:{color:H("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:H(`${t}.100`,`${t}.700`)(e)},td:{background:H(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Tz={simple:Pz,striped:_z,unstyled:{}},Ez={sm:Us({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Us({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Us({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},jz=kz({baseStyle:Cz,variants:Tz,sizes:Ez,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),tn=U("tabs-color"),Qn=U("tabs-bg"),Su=U("tabs-border-color"),{defineMultiStyleConfig:$z,definePartsStyle:br}=oe(z4.keys),Az=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Rz=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Mz=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Iz={p:4},Nz=br(e=>({root:Az(e),tab:Rz(e),tablist:Mz(e),tabpanel:Iz})),Dz={sm:br({tab:{py:1,px:4,fontSize:"sm"}}),md:br({tab:{fontSize:"md",py:2,px:4}}),lg:br({tab:{fontSize:"lg",py:3,px:4}})},zz=br(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[tn.variable]:`colors.${t}.600`,_dark:{[tn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Qn.variable]:"colors.gray.200",_dark:{[Qn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:tn.reference,bg:Qn.reference}}}),Lz=br(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Su.variable]:"transparent",_selected:{[tn.variable]:`colors.${t}.600`,[Su.variable]:"colors.white",_dark:{[tn.variable]:`colors.${t}.300`,[Su.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Su.reference},color:tn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Oz=br(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Qn.variable]:"colors.gray.50",_dark:{[Qn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Qn.variable]:"colors.white",[tn.variable]:`colors.${t}.600`,_dark:{[Qn.variable]:"colors.gray.800",[tn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:tn.reference,bg:Qn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Bz=br(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:He(n,`${t}.700`),bg:He(n,`${t}.100`)}}}}),Fz=br(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[tn.variable]:"colors.gray.600",_dark:{[tn.variable]:"inherit"},_selected:{[tn.variable]:"colors.white",[Qn.variable]:`colors.${t}.600`,_dark:{[tn.variable]:"colors.gray.800",[Qn.variable]:`colors.${t}.300`}},color:tn.reference,bg:Qn.reference}}}),Vz=br({}),Wz={line:zz,enclosed:Lz,"enclosed-colored":Oz,"soft-rounded":Bz,"solid-rounded":Fz,unstyled:Vz},Uz=$z({baseStyle:Nz,sizes:Dz,variants:Wz,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Hz,definePartsStyle:_i}=oe(L4.keys),n1=U("tag-bg"),r1=U("tag-color"),vh=U("tag-shadow"),sd=U("tag-min-height"),ad=U("tag-min-width"),ld=U("tag-font-size"),cd=U("tag-padding-inline"),Kz={fontWeight:"medium",lineHeight:1.2,outline:0,[r1.variable]:ct.color.reference,[n1.variable]:ct.bg.reference,[vh.variable]:ct.shadow.reference,color:r1.reference,bg:n1.reference,boxShadow:vh.reference,borderRadius:"md",minH:sd.reference,minW:ad.reference,fontSize:ld.reference,px:cd.reference,_focusVisible:{[vh.variable]:"shadows.outline"}},Gz={lineHeight:1.2,overflow:"visible"},qz={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Xz=_i({container:Kz,label:Gz,closeButton:qz}),Yz={sm:_i({container:{[sd.variable]:"sizes.5",[ad.variable]:"sizes.5",[ld.variable]:"fontSizes.xs",[cd.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:_i({container:{[sd.variable]:"sizes.6",[ad.variable]:"sizes.6",[ld.variable]:"fontSizes.sm",[cd.variable]:"space.2"}}),lg:_i({container:{[sd.variable]:"sizes.8",[ad.variable]:"sizes.8",[ld.variable]:"fontSizes.md",[cd.variable]:"space.3"}})},Qz={subtle:_i(e=>{var t;return{container:(t=Cl.variants)==null?void 0:t.subtle(e)}}),solid:_i(e=>{var t;return{container:(t=Cl.variants)==null?void 0:t.solid(e)}}),outline:_i(e=>{var t;return{container:(t=Cl.variants)==null?void 0:t.outline(e)}})},Zz=Hz({variants:Qz,baseStyle:Xz,sizes:Yz,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var bk;const Jz={...(bk=je.baseStyle)==null?void 0:bk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var xk;const eL={outline:e=>{var t;return((t=je.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=je.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=je.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((xk=je.variants)==null?void 0:xk.unstyled.field)??{}};var Sk,wk,kk,Ck;const tL={xs:((Sk=je.sizes)==null?void 0:Sk.xs.field)??{},sm:((wk=je.sizes)==null?void 0:wk.sm.field)??{},md:((kk=je.sizes)==null?void 0:kk.md.field)??{},lg:((Ck=je.sizes)==null?void 0:Ck.lg.field)??{}},nL={baseStyle:Jz,sizes:tL,variants:eL,defaultProps:{size:"md",variant:"outline"}},wu=it("tooltip-bg"),yh=it("tooltip-fg"),rL=it("popper-arrow-bg"),oL={bg:wu.reference,color:yh.reference,[wu.variable]:"colors.gray.700",[yh.variable]:"colors.whiteAlpha.900",_dark:{[wu.variable]:"colors.gray.300",[yh.variable]:"colors.gray.900"},[rL.variable]:wu.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},iL={baseStyle:oL},sL={Accordion:K4,Alert:EI,Avatar:OI,Badge:Cl,Breadcrumb:XI,Button:o3,Checkbox:go,CloseButton:b3,Code:k3,Container:P3,Divider:$3,Drawer:F3,Editable:q3,Form:eN,FormError:sN,FormLabel:lN,Heading:dN,Input:je,Kbd:SN,Link:kN,List:EN,Menu:ON,Modal:YN,NumberInput:iD,PinInput:cD,Popover:xD,Progress:ED,Radio:MD,Select:BD,Skeleton:VD,SkipLink:UD,Slider:tz,Spinner:oz,Stat:fz,Switch:wz,Table:jz,Tabs:Uz,Tag:Zz,Textarea:nL,Tooltip:iL,Card:c3,Stepper:mz},aL={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},lL={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},cL={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},uL={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},dL={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},fL={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},pL={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},hL={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},mL={property:fL,easing:pL,duration:hL},gL={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},vL={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},yL={breakpoints:lL,zIndices:gL,radii:uL,blur:vL,colors:cL,...x2,sizes:h2,shadows:dL,space:p2,borders:aL,transition:mL},bL={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},xL={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},SL=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function wL(e){return vt(e)?SL.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const kL="ltr",CL={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yi={semanticTokens:bL,direction:kL,...yL,components:sL,styles:xL,config:CL};function PL(e){if(e.sheet)return e.sheet;for(var t=0;t0?Tt(Sa,--cn):0,oa--,dt===10&&(oa=1,Df--),dt}function gn(){return dt=cn2||nc(dt)>3?"":" "}function LL(e,t){for(;--t&&gn()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return Tc(e,ud()+(t<6&&xr()==32&&gn()==32))}function ag(e){for(;gn();)switch(dt){case e:return cn;case 34:case 39:e!==34&&e!==39&&ag(dt);break;case 40:e===41&&ag(e);break;case 92:gn();break}return cn}function OL(e,t){for(;gn()&&e+dt!==57;)if(e+dt===84&&xr()===47)break;return"/*"+Tc(t,cn-1)+"*"+Nf(e===47?e:gn())}function BL(e){for(;!nc(xr());)gn();return Tc(e,cn)}function FL(e){return j2(fd("",null,null,null,[""],e=E2(e),0,[0],e))}function fd(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,f=s,p=0,g=0,m=0,y=1,x=1,b=1,v=0,S="",w=o,C=i,_=r,k=S;x;)switch(m=v,v=gn()){case 40:if(m!=108&&Tt(k,f-1)==58){sg(k+=Ee(dd(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:k+=dd(v);break;case 9:case 10:case 13:case 32:k+=zL(m);break;case 92:k+=LL(ud()-1,7);continue;case 47:switch(xr()){case 42:case 47:ku(VL(OL(gn(),ud()),t,n),l);break;default:k+="/"}break;case 123*y:a[c++]=fr(k)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:b==-1&&(k=Ee(k,/\f/g,"")),g>0&&fr(k)-f&&ku(g>32?i1(k+";",r,n,f-1):i1(Ee(k," ","")+";",r,n,f-2),l);break;case 59:k+=";";default:if(ku(_=o1(k,t,n,c,d,o,a,S,w=[],C=[],f),i),v===123)if(d===0)fd(k,t,_,_,w,i,f,a,C);else switch(p===99&&Tt(k,3)===110?100:p){case 100:case 108:case 109:case 115:fd(e,_,_,r&&ku(o1(e,_,_,0,0,o,a,S,o,w=[],f),C),o,C,f,a,r?w:C);break;default:fd(k,_,_,_,[""],C,0,a,C)}}c=d=g=0,y=b=1,S=k="",f=s;break;case 58:f=1+fr(k),g=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&DL()==125)continue}switch(k+=Nf(v),v*y){case 38:b=d>0?1:(k+="\f",-1);break;case 44:a[c++]=(fr(k)-1)*b,b=1;break;case 64:xr()===45&&(k+=dd(gn())),p=xr(),d=f=fr(S=k+=BL(ud())),v++;break;case 45:m===45&&fr(k)==2&&(y=0)}}return i}function o1(e,t,n,r,o,i,s,a,l,c,d){for(var f=o-1,p=o===0?i:[""],g=py(p),m=0,y=0,x=0;m0?p[b]+" "+v:Ee(v,/&\f/g,p[b])))&&(l[x++]=S);return zf(e,t,n,o===0?dy:a,l,c,d)}function VL(e,t,n){return zf(e,t,n,C2,Nf(NL()),tc(e,2,-2),0)}function i1(e,t,n,r){return zf(e,t,n,fy,tc(e,0,r),tc(e,r+1,-1),r)}function Hs(e,t){for(var n="",r=py(e),o=0;o6)switch(Tt(e,t+1)){case 109:if(Tt(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+ef+(Tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sg(e,"stretch")?A2(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tt(e,t+1)!==115)break;case 6444:switch(Tt(e,fr(e)-3-(~sg(e,"!important")&&10))){case 107:return Ee(e,":",":"+Te)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(Tt(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return Te+e+Dt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+Dt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+Dt+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+Dt+e+e}return e}var QL=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case fy:t.return=A2(t.value,t.length);break;case P2:return Hs([Ua(t,{value:Ee(t.value,"@","@"+Te)})],o);case dy:if(t.length)return IL(t.props,function(i){switch(ML(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hs([Ua(t,{props:[Ee(i,/:(read-\w+)/,":"+ef+"$1")]})],o);case"::placeholder":return Hs([Ua(t,{props:[Ee(i,/:(plac\w+)/,":"+Te+"input-$1")]}),Ua(t,{props:[Ee(i,/:(plac\w+)/,":"+ef+"$1")]}),Ua(t,{props:[Ee(i,/:(plac\w+)/,Dt+"input-$1")]})],o)}return""})}},ZL=[QL],JL=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||ZL,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dO=/[A-Z]|^ms/g,fO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z2=function(t){return t.charCodeAt(1)===45},l1=function(t){return t!=null&&typeof t!="boolean"},bh=$2(function(e){return z2(e)?e:e.replace(dO,"-$&").toLowerCase()}),c1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fO,function(r,o,i){return pr={name:o,styles:i,next:pr},o})}return uO[t]!==1&&!z2(t)&&typeof n=="number"&&n!==0?n+"px":n};function rc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return pr={name:o.name,styles:o.styles,next:pr},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)pr={name:s.name,styles:s.styles,next:pr},s=s.next;var a=i.styles+";";return a}return pO(e,t,n)}case"function":{if(e!==void 0){var l=pr,c=n(e);return pr=l,rc(e,t,c)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function pO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?Cu.dark:Cu.light),document.body.classList.remove(o?Cu.light:Cu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const PO="chakra-ui-color-mode";function _O(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const TO=_O(PO),p1=()=>{},EO=LR()?h.useLayoutEffect:h.useEffect;function h1(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const B2=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:a=TO}=t,l=mO(),c=i==="dark"?"dark":"light",[d,f]=h.useState(()=>h1(a,c)),[p,g]=h.useState(()=>h1(a)),{getSystemTheme:m,setClassName:y,setDataset:x,addListener:b}=h.useMemo(()=>CO({preventTransition:s,nonce:l==null?void 0:l.nonce}),[s,l==null?void 0:l.nonce]),v=i==="system"&&!d?p:d,S=h.useCallback(_=>{const k=_==="system"?m():_;f(k),y(k==="dark"),x(k),a.set(k)},[a,m,y,x]);EO(()=>{i==="system"&&g(m())},[]),h.useEffect(()=>{const _=a.get();if(_){S(_);return}if(i==="system"){S("system");return}S(c)},[a,c,i,S]);const w=h.useCallback(()=>{S(v==="dark"?"light":"dark")},[v,S]);h.useEffect(()=>{if(o)return b(S)},[o,b,S]);const C=h.useMemo(()=>({colorMode:n??v,toggleColorMode:n?p1:w,setColorMode:n?p1:S,forced:n!==void 0}),[v,w,S,n]);return u.jsx(wy.Provider,{value:C,children:r})};B2.displayName="ColorModeProvider";const F2=String.raw,V2=F2` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`,jO=()=>u.jsx(Xf,{styles:V2}),$O=({scope:e=""})=>u.jsx(Xf,{styles:F2` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${V2} - `});function AO(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=h.useMemo(()=>C4(n),[n]);return u.jsxs(yO,{theme:o,children:[u.jsx(RO,{root:t}),r]})}function RO({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return u.jsx(Xf,{styles:n=>({[t]:n.__cssVars})})}pe({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function rr(e){return pe({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function MO(){const{colorMode:e}=jc();return u.jsx(Xf,{styles:t=>{const n=BP(t,"styles.global"),r=Ot(n,{theme:t,colorMode:e});return r?ZP(r)(t):void 0}})}const[IO,NO]=pe({strict:!1,name:"PortalManagerContext"});function W2(e){const{children:t,zIndex:n}=e;return u.jsx(IO,{value:{zIndex:n},children:t})}W2.displayName="PortalManager";const ky=h.createContext({getDocument(){return document},getWindow(){return window}});ky.displayName="EnvironmentContext";function DO({defer:e}={}){const[,t]=h.useReducer(n=>n+1,0);return Wr(()=>{e&&t()},[e]),h.useContext(ky)}function U2(e){const{children:t,environment:n,disabled:r}=e,o=h.useRef(null),i=h.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return u.jsxs(ky.Provider,{value:i,children:[t,s&&u.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}U2.displayName="EnvironmentProvider";const zO=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,f=u.jsx(U2,{environment:a,disabled:c,children:t});return u.jsx(AO,{theme:s,cssVarsRoot:l,children:u.jsxs(B2,{colorModeManager:n,options:s.config,children:[i?u.jsx($O,{scope:o}):u.jsx(jO,{}),!d&&u.jsx(MO,{}),r?u.jsx(W2,{zIndex:r,children:f}):f]})})},Cy=h.createContext({});function Py(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const $c=h.createContext(null),_y=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class LO extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function OO({children:e,isPresent:t}){const n=h.useId(),r=h.useRef(null),o=h.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=h.useContext(_y);return h.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${s}px !important; - height: ${a}px !important; - top: ${l}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(d)}},[t]),u.jsx(LO,{isPresent:t,childRef:r,sizeRef:o,children:h.cloneElement(e,{ref:r})})}const BO=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Py(FO),l=h.useId(),c=h.useCallback(f=>{a.set(f,!0);for(const p of a.values())if(!p)return;r&&r()},[a,r]),d=h.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),i?[Math.random(),c]:[n,c]);return h.useMemo(()=>{a.forEach((f,p)=>a.set(p,!1))},[n]),h.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=u.jsx(OO,{isPresent:n,children:e})),u.jsx($c.Provider,{value:d,children:e})};function FO(){return new Map}function Ty(e=!0){const t=h.useContext($c);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=h.useId();h.useEffect(()=>{e&&o(i)},[e]);const s=h.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}function VO(){return WO(h.useContext($c))}function WO(e){return e===null?!0:e.isPresent}const Pu=e=>e.key||"";function m1(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const Ey=typeof window<"u",H2=Ey?h.useLayoutEffect:h.useEffect,to=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1})=>{const[a,l]=Ty(s),c=h.useMemo(()=>m1(e),[e]),d=s&&!a?[]:c.map(Pu),f=h.useRef(!0),p=h.useRef(c),g=Py(()=>new Map),[m,y]=h.useState(c),[x,b]=h.useState(c);H2(()=>{f.current=!1,p.current=c;for(let w=0;w{const C=Pu(w),_=s&&!a?!1:c===x||d.includes(C),k=()=>{if(g.has(C))g.set(C,!0);else return;let T=!0;g.forEach(A=>{A||(T=!1)}),T&&(S==null||S(),b(p.current),s&&(l==null||l()),r&&r())};return u.jsx(BO,{isPresent:_,initial:!f.current||n?void 0:!1,custom:_?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:_?void 0:k,children:w},C)})})},vn=e=>e;let K2=vn;function jy(e){let t;return()=>(t===void 0&&(t=e()),t)}const sa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hr=e=>e*1e3,Kr=e=>e/1e3,UO={useManualTiming:!1};function HO(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,d=!1,f=!1)=>{const g=f&&r?t:n;return d&&i.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const _u=["read","resolveKeyframes","update","preRender","render","postRender"],KO=40;function G2(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=_u.reduce((b,v)=>(b[v]=HO(i),b),{}),{read:a,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:p}=s,g=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,KO),1),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},m=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:_u.reduce((b,v)=>{const S=s[v];return b[v]=(w,C=!1,_=!1)=>(n||m(),S.schedule(w,C,_)),b},{}),cancel:b=>{for(let v=0;v<_u.length;v++)s[_u[v]].cancel(b)},state:o,steps:s}}const{schedule:Ke,cancel:Vo,state:_t,steps:xh}=G2(typeof requestAnimationFrame<"u"?requestAnimationFrame:vn,!0),q2=h.createContext({strict:!1}),g1={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"]},aa={};for(const e in g1)aa[e]={isEnabled:t=>g1[e].some(n=>!!t[n])};function GO(e){for(const t in e)aa[t]={...aa[t],...e[t]}}const qO=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","ignoreStrict","viewport"]);function tf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qO.has(e)}let X2=e=>!tf(e);function XO(e){e&&(X2=t=>t.startsWith("on")?!tf(t):e(t))}try{XO(require("@emotion/is-prop-valid").default)}catch{}function YO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(X2(o)||n===!0&&tf(o)||!t&&!tf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function QO(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Yf=h.createContext({});function oc(e){return typeof e=="string"||Array.isArray(e)}function Qf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const $y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ay=["initial",...$y];function Zf(e){return Qf(e.animate)||Ay.some(t=>oc(e[t]))}function Y2(e){return!!(Zf(e)||e.variants)}function ZO(e,t){if(Zf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||oc(n)?n:void 0,animate:oc(r)?r:void 0}}return e.inherit!==!1?t:{}}function JO(e){const{initial:t,animate:n}=ZO(e,h.useContext(Yf));return h.useMemo(()=>({initial:t,animate:n}),[v1(t),v1(n)])}function v1(e){return Array.isArray(e)?e.join(" "):e}const e6=Symbol.for("motionComponentSymbol");function Cs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function t6(e,t,n){return h.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cs(n)&&(n.current=r))},[t])}const Ry=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),n6="framerAppearId",Q2="data-"+Ry(n6),{schedule:My}=G2(queueMicrotask,!1),Z2=h.createContext({});function r6(e,t,n,r,o){var i,s;const{visualElement:a}=h.useContext(Yf),l=h.useContext(q2),c=h.useContext($c),d=h.useContext(_y).reducedMotion,f=h.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,g=h.useContext(Z2);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&o6(f.current,n,o,g);const m=h.useRef(!1);h.useInsertionEffect(()=>{p&&m.current&&p.update(n,c)});const y=n[Q2],x=h.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return H2(()=>{p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),My.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),h.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,y)}),x.current=!1))}),p}function o6(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:J2(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Cs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function J2(e){if(e)return e.options.allowProjection!==!1?e.projection:J2(e.parent)}function i6({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;e&&GO(e);function a(c,d){let f;const p={...h.useContext(_y),...c,layoutId:s6(c)},{isStatic:g}=p,m=JO(c),y=r(c,g);if(!g&&Ey){a6();const x=l6(p);f=x.MeasureLayout,m.visualElement=r6(o,y,p,t,x.ProjectionNode)}return u.jsxs(Yf.Provider,{value:m,children:[f&&m.visualElement?u.jsx(f,{visualElement:m.visualElement,...p}):null,n(o,c,t6(y,m.visualElement,d),y,g,m.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(s=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&s!==void 0?s:""})`}`;const l=h.forwardRef(a);return l[e6]=o,l}function s6({layoutId:e}){const t=h.useContext(Cy).id;return t&&e!==void 0?t+"-"+e:e}function a6(e,t){h.useContext(q2).strict}function l6(e){const{drag:t,layout:n}=aa;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const c6=["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 Iy(e){return typeof e!="string"||e.includes("-")?!1:!!(c6.indexOf(e)>-1||/[A-Z]/u.test(e))}function y1(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ny(e,t,n,r){if(typeof t=="function"){const[o,i]=y1(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=y1(r);t=t(n!==void 0?n:e.custom,o,i)}return t}const ug=e=>Array.isArray(e),u6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),d6=e=>ug(e)?e[e.length-1]||0:e,Bt=e=>!!(e&&e.getVelocity);function pd(e){const t=Bt(e)?e.get():e;return u6(t)?t.toValue():t}function f6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:p6(r,o,i,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}const e_=e=>(t,n)=>{const r=h.useContext(Yf),o=h.useContext($c),i=()=>f6(e,t,r,o);return n?i():Py(i)};function p6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=pd(i[p]);let{initial:s,animate:a}=e;const l=Zf(e),c=Y2(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;if(f&&typeof f!="boolean"&&!Qf(f)){const p=Array.isArray(f)?f:[f];for(let g=0;gt=>typeof t=="string"&&t.startsWith(e),n_=t_("--"),h6=t_("var(--"),Dy=e=>h6(e)?m6.test(e.split("/*")[0].trim()):!1,m6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,r_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ic={...ka,transform:e=>Zr(0,1,e)},Tu={...ka,default:1},Ac=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uo=Ac("deg"),Sr=Ac("%"),ae=Ac("px"),g6=Ac("vh"),v6=Ac("vw"),b1={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},y6={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,radius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,backgroundPositionX:ae,backgroundPositionY:ae},b6={rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scale:Tu,scaleX:Tu,scaleY:Tu,scaleZ:Tu,skew:uo,skewX:uo,skewY:uo,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:ic,originX:b1,originY:b1,originZ:ae},x1={...ka,transform:Math.round},zy={...y6,...b6,zIndex:x1,size:ae,fillOpacity:ic,strokeOpacity:ic,numOctaves:x1},x6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S6=wa.length;function w6(e,t,n){let r="",o=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),o_=()=>({...By(),attrs:{}}),Fy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function i_(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const s_=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"]);function a_(e,t,n,r){i_(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(s_.has(o)?o:Ry(o),t.attrs[o])}const nf={};function T6(e){Object.assign(nf,e)}function l_(e,{layout:t,layoutId:n}){return Hi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nf[e]||e==="opacity")}function Vy(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Bt(o[s])||t.style&&Bt(t.style[s])||l_(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function c_(e,t,n){const r=Vy(e,t,n);for(const o in e)if(Bt(e[o])||Bt(t[o])){const i=wa.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function E6(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const w1=["x","y","width","height","cx","cy","r"],j6={useVisualState:e_({scrapeMotionValuesFromProps:c_,createRenderState:o_,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in o)if(Hi.has(a)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let a=0;a{E6(n,r),Ke.render(()=>{Oy(r,o,Fy(n.tagName),e.transformTemplate),a_(n,r)})})}})},$6={useVisualState:e_({scrapeMotionValuesFromProps:Vy,createRenderState:By})};function u_(e,t,n){for(const r in t)!Bt(t[r])&&!l_(r,n)&&(e[r]=t[r])}function A6({transformTemplate:e},t){return h.useMemo(()=>{const n=By();return Ly(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R6(e,t){const n=e.style||{},r={};return u_(r,n,e),Object.assign(r,A6(e,t)),r}function M6(e,t){const n={},r=R6(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}function I6(e,t,n,r){const o=h.useMemo(()=>{const i=o_();return Oy(i,t,Fy(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};u_(i,e.style,e),o.style={...i,...o.style}}return o}function N6(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Iy(n)?I6:M6)(r,i,s,n),c=YO(r,typeof n=="string",e),d=n!==h.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=h.useMemo(()=>Bt(f)?f.get():f,[f]);return h.createElement(n,{...d,children:p})}}function D6(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Iy(r)?j6:$6,preloadedFeatures:e,useRender:N6(o),createVisualElement:t,Component:r};return i6(s)}}function d_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class L6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(z6()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class O6 extends L6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Wy(e,t){return e?e[t]||e.default||e:void 0}const dg=2e4;function f_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=dg?1/0:t}function Uy(e){return typeof e=="function"}function k1(e,t){e.timeline=t,e.onfinish=null}const Hy=e=>Array.isArray(e)&&typeof e[0]=="number",B6={linearEasing:void 0};function F6(e,t){const n=jy(e);return()=>{var r;return(r=B6[t])!==null&&r!==void 0?r:n()}}const rf=F6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),p_=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:il([0,.65,.55,1]),circOut:il([.55,0,1,.45]),backIn:il([.31,.01,.66,-.59]),backOut:il([.33,1.53,.69,.99])};function m_(e,t){if(e)return typeof e=="function"&&rf()?p_(e,t):Hy(e)?il(e):Array.isArray(e)?e.map(n=>m_(n,t)||fg.easeOut):fg[e]}const Gn={x:!1,y:!1};function g_(){return Gn.x||Gn.y}function V6(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function v_(e,t){const n=V6(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function C1(e){return t=>{t.pointerType==="touch"||g_()||e(t)}}function W6(e,t,n={}){const[r,o,i]=v_(e,n),s=C1(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const d=C1(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const y_=(e,t)=>t?e===t?!0:y_(e,t.parentElement):!1,Ky=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,U6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function H6(e){return U6.has(e.tagName)||e.tabIndex!==-1}const sl=new WeakSet;function P1(e){return t=>{t.key==="Enter"&&e(t)}}function Sh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const K6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P1(()=>{if(sl.has(n))return;Sh(n,"down");const o=P1(()=>{Sh(n,"up")}),i=()=>Sh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _1(e){return Ky(e)&&!g_()}function G6(e,t,n={}){const[r,o,i]=v_(e,n),s=a=>{const l=a.currentTarget;if(!_1(a)||sl.has(l))return;sl.add(l);const c=t(a),d=(g,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!_1(g)||!sl.has(l))&&(sl.delete(l),typeof c=="function"&&c(g,{success:m}))},f=g=>{d(g,n.useGlobalTarget||y_(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(a=>{!H6(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",c=>K6(c,o),o)}),i}function q6(e){return e==="x"||e==="y"?Gn[e]?null:(Gn[e]=!0,()=>{Gn[e]=!1}):Gn.x||Gn.y?null:(Gn.x=Gn.y=!0,()=>{Gn.x=Gn.y=!1})}const b_=new Set(["width","height","top","left","right","bottom",...wa]);let hd;function X6(){hd=void 0}const wr={now:()=>(hd===void 0&&wr.set(_t.isProcessing||UO.useManualTiming?_t.timestamp:performance.now()),hd),set:e=>{hd=e,queueMicrotask(X6)}};function Gy(e,t){e.indexOf(t)===-1&&e.push(t)}function qy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xy{constructor(){this.subscriptions=[]}add(t){return Gy(this.subscriptions,t),()=>qy(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Q6{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=wr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Y6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=wr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>T1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,T1);return x_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function sc(e,t){return new Q6(e,t)}function Z6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sc(n))}function J6(e,t){const n=Jf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=d6(i[s]);Z6(e,s,a)}}function eB(e){return!!(Bt(e)&&e.add)}function pg(e,t){const n=e.getValue("willChange");if(eB(n))return n.add(t)}function S_(e){return e.props[Q2]}const w_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tB=1e-7,nB=12;function rB(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=w_(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>tB&&++arB(i,0,1,e,n);return i=>i===0||i===1?i:w_(o(i),t,r)}const k_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,C_=e=>t=>1-e(1-t),P_=Rc(.33,1.53,.69,.99),Yy=C_(P_),__=k_(Yy),T_=e=>(e*=2)<1?.5*Yy(e):.5*(2-Math.pow(2,-10*(e-1))),Qy=e=>1-Math.sin(Math.acos(e)),E_=C_(Qy),j_=k_(Qy),$_=e=>/^0[^.\s]+$/u.test(e);function oB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$_(e):!0}const El=e=>Math.round(e*1e5)/1e5,Zy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iB(e){return e==null}const sB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jy=(e,t)=>n=>!!(typeof n=="string"&&sB.test(n)&&n.startsWith(e)||t&&!iB(n)&&Object.prototype.hasOwnProperty.call(n,t)),A_=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Zy);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},aB=e=>Zr(0,255,e),wh={...ka,transform:e=>Math.round(aB(e))},bi={test:Jy("rgb","red"),parse:A_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wh.transform(e)+", "+wh.transform(t)+", "+wh.transform(n)+", "+El(ic.transform(r))+")"};function lB(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const hg={test:Jy("#"),parse:lB,transform:bi.transform},Ps={test:Jy("hsl","hue"),parse:A_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Sr.transform(El(t))+", "+Sr.transform(El(n))+", "+El(ic.transform(r))+")"},zt={test:e=>bi.test(e)||hg.test(e)||Ps.test(e),parse:e=>bi.test(e)?bi.parse(e):Ps.test(e)?Ps.parse(e):hg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bi.transform(e):Ps.transform(e)},cB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cB))===null||n===void 0?void 0:n.length)||0)>0}const R_="number",M_="color",dB="var",fB="var(",E1="${}",pB=/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 ac(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(pB,l=>(zt.test(l)?(r.color.push(i),o.push(M_),n.push(zt.parse(l))):l.startsWith(fB)?(r.var.push(i),o.push(dB),n.push(l)):(r.number.push(i),o.push(R_),n.push(parseFloat(l))),++i,E1)).split(E1);return{values:n,split:a,indexes:r,types:o}}function I_(e){return ac(e).values}function N_(e){const{split:t,types:n}=ac(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function mB(e){const t=I_(e);return N_(e)(t.map(hB))}const Wo={test:uB,parse:I_,createTransformer:N_,getAnimatableNone:mB},gB=new Set(["brightness","contrast","saturate","opacity"]);function vB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zy)||[];if(!r)return e;const o=n.replace(r,"");let i=gB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const yB=/\b([a-z-]*)\(.*?\)/gu,mg={...Wo,getAnimatableNone:e=>{const t=e.match(yB);return t?t.map(vB).join(" "):e}},bB={...zy,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:mg,WebkitFilter:mg},e0=e=>bB[e];function D_(e,t){let n=e0(e);return n!==mg&&(n=Wo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xB=new Set(["auto","none","0"]);function SB(e,t,n){let r=0,o;for(;re===ka||e===ae,$1=(e,t)=>parseFloat(e.split(", ")[t]),A1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return $1(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?$1(i[1],e):0}},wB=new Set(["x","y","z"]),kB=wa.filter(e=>!wB.has(e));function CB(e){const t=[];return kB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const la={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:A1(4,13),y:A1(5,14)};la.translateX=la.x;la.translateY=la.y;const Ti=new Set;let gg=!1,vg=!1;function z_(){if(vg){const e=Array.from(Ti).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=CB(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vg=!1,gg=!1,Ti.forEach(e=>e.complete()),Ti.clear()}function L_(){Ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vg=!0)})}function PB(){L_(),z_()}class t0{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ti.add(this),gg||(gg=!0,Ke.read(L_),Ke.resolveKeyframes(z_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_B=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function TB(e){const t=_B.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function B_(e,t,n=1){const[r,o]=TB(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return O_(s)?parseFloat(s):s}return Dy(o)?B_(o,t,n+1):o}const F_=e=>t=>t.test(e),EB={test:e=>e==="auto",parse:e=>e},V_=[ka,ae,Sr,uo,v6,g6,EB],R1=e=>V_.find(F_(e));class W_ extends t0{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const M1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wo.test(e)||e==="0")&&!e.startsWith("url("));function jB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ep(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(AB),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const RB=40;class U_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=wr.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>RB?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&PB(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=wr.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!$B(t,r,o,i))if(s)this.options.duration=0;else{l&&l(ep(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Qe=(e,t,n)=>e+(t-e)*n;function kh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function MB({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=kh(l,a,e+1/3),i=kh(l,a,e),s=kh(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function of(e,t){return n=>n>0?t:e}const Ch=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},IB=[hg,bi,Ps],NB=e=>IB.find(t=>t.test(e));function I1(e){const t=NB(e);if(!t)return!1;let n=t.parse(e);return t===Ps&&(n=MB(n)),n}const N1=(e,t)=>{const n=I1(e),r=I1(t);if(!n||!r)return of(e,t);const o={...n};return i=>(o.red=Ch(n.red,r.red,i),o.green=Ch(n.green,r.green,i),o.blue=Ch(n.blue,r.blue,i),o.alpha=Qe(n.alpha,r.alpha,i),bi.transform(o))},DB=(e,t)=>n=>t(e(n)),Mc=(...e)=>e.reduce(DB),yg=new Set(["none","hidden"]);function zB(e,t){return yg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function LB(e,t){return n=>Qe(e,t,n)}function n0(e){return typeof e=="number"?LB:typeof e=="string"?Dy(e)?of:zt.test(e)?N1:FB:Array.isArray(e)?H_:typeof e=="object"?zt.test(e)?N1:OB:of}function H_(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>n0(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function BB(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Wo.createTransformer(t),r=ac(e),o=ac(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?yg.has(e)&&!o.values.length||yg.has(t)&&!r.values.length?zB(e,t):Mc(H_(BB(r,o),o.values),n):of(e,t)};function K_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):n0(e)(e,t)}const VB=5;function G_(e,t,n){const r=Math.max(t-VB,0);return x_(n-e(r),t-r)}const rt={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},Ph=.001;function WB({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:r=rt.mass}){let o,i,s=1-t;s=Zr(rt.minDamping,rt.maxDamping,s),e=Zr(rt.minDuration,rt.maxDuration,Kr(e)),s<1?(o=c=>{const d=c*s,f=d*e,p=d-n,g=bg(c,s),m=Math.exp(-f);return Ph-p/g*m},i=c=>{const f=c*s*e,p=f*n+n,g=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-f),y=bg(Math.pow(c,2),s);return(-o(c)+Ph>0?-1:1)*((p-g)*m)/y}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Ph+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,l=HB(o,i,a);if(e=Hr(e),isNaN(l))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const UB=12;function HB(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function qB(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!D1(e,GB)&&D1(e,KB))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Zr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:rt.mass,stiffness:o,damping:i}}else{const n=WB(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function q_(e=rt.visualDuration,t=rt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:g}=qB({...n,velocity:-Kr(n.velocity||0)}),m=p||0,y=c/(2*Math.sqrt(l*d)),x=s-i,b=Kr(Math.sqrt(l/d)),v=Math.abs(x)<5;r||(r=v?rt.restSpeed.granular:rt.restSpeed.default),o||(o=v?rt.restDelta.granular:rt.restDelta.default);let S;if(y<1){const C=bg(b,y);S=_=>{const k=Math.exp(-y*b*_);return s-k*((m+y*b*x)/C*Math.sin(C*_)+x*Math.cos(C*_))}}else if(y===1)S=C=>s-Math.exp(-b*C)*(x+(m+b*x)*C);else{const C=b*Math.sqrt(y*y-1);S=_=>{const k=Math.exp(-y*b*_),T=Math.min(C*_,300);return s-k*((m+y*b*x)*Math.sinh(T)+C*x*Math.cosh(T))/C}}const w={calculatedDuration:g&&f||null,next:C=>{const _=S(C);if(g)a.done=C>=f;else{let k=0;y<1&&(k=C===0?Hr(m):G_(S,C,_));const T=Math.abs(k)<=r,A=Math.abs(s-_)<=o;a.done=T&&A}return a.value=a.done?s:_,a},toString:()=>{const C=Math.min(f_(w),dg),_=p_(k=>w.next(C*k).value,C,30);return C+"ms "+_}};return w}function z1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},g=T=>a!==void 0&&Tl,m=T=>a===void 0?l:l===void 0||Math.abs(a-T)-y*Math.exp(-T/r),S=T=>b+v(T),w=T=>{const A=v(T),$=S(T);p.done=Math.abs(A)<=c,p.value=p.done?b:$};let C,_;const k=T=>{g(p.value)&&(C=T,_=q_({keyframes:[p.value,m(p.value)],velocity:G_(S,T,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:T=>{let A=!1;return!_&&C===void 0&&(A=!0,w(T),k(T)),C!==void 0&&T>=C?_.next(T-C):(!A&&w(T),p)}}}const XB=Rc(.42,0,1,1),YB=Rc(0,0,.58,1),X_=Rc(.42,0,.58,1),QB=e=>Array.isArray(e)&&typeof e[0]!="number",ZB={linear:vn,easeIn:XB,easeInOut:X_,easeOut:YB,circIn:Qy,circInOut:j_,circOut:E_,backIn:Yy,backInOut:__,backOut:P_,anticipate:T_},L1=e=>{if(Hy(e)){K2(e.length===4);const[t,n,r,o]=e;return Rc(t,n,r,o)}else if(typeof e=="string")return ZB[e];return e};function JB(e,t,n){const r=[],o=n||K_,i=e.length-1;for(let s=0;st[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=JB(t,r,o),l=a.length,c=d=>{if(s&&d1)for(;fc(Zr(e[0],e[i-1],d)):c}function tF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=sa(0,t,r);e.push(Qe(n,1,o))}}function nF(e){const t=[0];return tF(t,e.length-1),t}function rF(e,t){return e.map(n=>n*t)}function oF(e,t){return e.map(()=>t||X_).splice(0,e.length-1)}function sf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=QB(r)?r.map(L1):L1(r),i={done:!1,value:t[0]},s=rF(n&&n.length===t.length?n:nF(t),e),a=eF(s,t,{ease:Array.isArray(o)?o:oF(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const iF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ke.update(t,!0),stop:()=>Vo(t),now:()=>_t.isProcessing?_t.timestamp:wr.now()}},sF={decay:z1,inertia:z1,tween:sf,keyframes:sf,spring:q_},aF=e=>e/100;class r0 extends U_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||t0,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Uy(n)?n:sF[n]||sf;let l,c;a!==sf&&typeof t[0]!="number"&&(l=Mc(aF,K_(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=f_(d));const{calculatedDuration:f}=d,p=f+o,g=p*(r+1)-o;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:g,repeatType:m,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=i;if(g){const T=Math.min(this.currentTime,d)/f;let A=Math.floor(T),$=T%1;!$&&T>=1&&($=1),$===1&&A--,A=Math.min(A,g+1),!!(A%2)&&(m==="reverse"?($=1-$,y&&($-=y/f)):m==="mirror"&&(w=s)),S=Zr(0,1,$)*f}const C=v?{done:!1,value:l[0]}:w.next(S);a&&(C.value=a(C.value));let{done:_}=C;!v&&c!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return k&&o!==void 0&&(C.value=ep(l,this.options,o)),x&&x(C.value),k&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Kr(t.calculatedDuration):0}get time(){return Kr(this.currentTime)}set time(t){t=Hr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=iF,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const lF=new Set(["opacity","clipPath","filter","transform"]);function cF(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=m_(a,o);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const uF=jy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),af=10,dF=2e4;function fF(e){return Uy(e.type)||e.type==="spring"||!h_(e.ease)}function pF(e,t){const n=new r0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&rf()&&hF(i)&&(i=Y_[i]),fF(this.options)){const{onComplete:f,onUpdate:p,motionValue:g,element:m,...y}=this.options,x=pF(t,y);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,o=x.times,i=x.ease,s="keyframes"}const d=cF(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(k1(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(ep(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Kr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return vn;const{animation:r}=n;k1(r,t)}return vn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:p,...g}=this.options,m=new r0({...g,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=Hr(this.time);c.setWithVelocity(m.sample(y-af).value,m.sample(y).value,af)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return uF()&&r&&lF.has(r)&&!l&&!c&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const mF={type:"spring",stiffness:500,damping:25,restSpeed:10},gF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vF={type:"keyframes",duration:.8},yF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bF=(e,{keyframes:t})=>t.length>2?vF:Hi.has(e)?e.startsWith("scale")?gF(t[1]):mF:yF;function xF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const o0=(e,t,n,r={},o,i)=>s=>{const a=Wy(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Hr(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};xF(a)||(d={...d,...bF(e,d)}),d.duration&&(d.duration=Hr(d.duration)),d.repeatDelay&&(d.repeatDelay=Hr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=ep(d.keyframes,a);if(p!==void 0)return Ke.update(()=>{d.onUpdate(p),d.onComplete()}),new O6([])}return!i&&O1.supports(d)?new O1(d):new r0(d)};function SF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Q_(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),g=l[f];if(g===void 0||d&&SF(d,f))continue;const m={delay:n,...Wy(s||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=S_(e);if(b){const v=window.MotionHandoffAnimation(b,f,Ke);v!==null&&(m.startTime=v,y=!0)}}pg(e,f),p.start(o0(f,p,g,e.shouldReduceMotion&&b_.has(f)?{type:!1}:m,e,y));const x=p.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{Ke.update(()=>{a&&J6(e,a)})}),c}function xg(e,t,n={}){var r;const o=Jf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Q_(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=i;return wF(e,t,d+c,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function wF(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(kF).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(xg(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function kF(e,t){return e.sortNodePosition(t)}function CF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>xg(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=xg(e,t,n);else{const o=typeof t=="function"?Jf(e,t,n.custom):t;r=Promise.all(Q_(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const PF=Ay.length;function Z_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Z_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>CF(e,n,r)))}function jF(e){let t=EF(e),n=B1(),r=!0;const o=l=>(c,d)=>{var f;const p=Jf(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:g,transitionEnd:m,...y}=p;c={...c,...y,...m}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Z_(e.parent)||{},f=[],p=new Set;let g={},m=1/0;for(let x=0;xm&&w,A=!1;const $=Array.isArray(S)?S:[S];let L=$.reduce(o(b),{});C===!1&&(L={});const{prevResolvedValues:X={}}=v,re={...X,...L},R=N=>{T=!0,p.has(N)&&(A=!0,p.delete(N)),v.needsAnimating[N]=!0;const z=e.getValue(N);z&&(z.liveStyle=!1)};for(const N in re){const z=L[N],M=X[N];if(g.hasOwnProperty(N))continue;let V=!1;ug(z)&&ug(M)?V=!d_(z,M):V=z!==M,V?z!=null?R(N):p.add(N):z!==void 0&&p.has(N)?R(N):v.protectedKeys[N]=!0}v.prevProp=S,v.prevResolvedValues=L,v.isActive&&(g={...g,...L}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(_&&k)||A)&&f.push(...$.map(N=>({animation:N,options:{type:b}})))}if(p.size){const x={};p.forEach(b=>{const v=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),x[b]=v??null}),f.push({animation:x})}let y=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=B1(),r=!0}}}function $F(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!d_(t,e):!1}function ii(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function B1(){return{animate:ii(!0),whileInView:ii(),whileHover:ii(),whileTap:ii(),whileDrag:ii(),whileFocus:ii(),exit:ii()}}class Xo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AF extends Xo{constructor(t){super(t),t.animationState||(t.animationState=jF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let RF=0;class MF extends Xo{constructor(){super(...arguments),this.id=RF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const IF={animation:{Feature:AF},exit:{Feature:MF}};function lc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ic(e){return{point:{x:e.pageX,y:e.pageY}}}const NF=e=>t=>Ky(t)&&e(t,Ic(t));function jl(e,t,n,r){return lc(e,t,NF(n),r)}const F1=(e,t)=>Math.abs(e-t);function DF(e,t){const n=F1(e.x,t.x),r=F1(e.y,t.y);return Math.sqrt(n**2+r**2)}class J_{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Th(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=DF(f.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:m}=f,{timestamp:y}=_t;this.history.push({...m,timestamp:y});const{onStart:x,onMove:b}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_h(p,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Th(f.type==="pointercancel"?this.lastMoveEventInfo:_h(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,x),m&&m(f,x)},!Ky(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ic(t),a=_h(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=_t;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Th(a,this.history)),this.removeListeners=Mc(jl(this.contextWindow,"pointermove",this.handlePointerMove),jl(this.contextWindow,"pointerup",this.handlePointerUp),jl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vo(this.updatePoint)}}function _h(e,t){return t?{point:t(e.point)}:e}function V1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Th({point:e},t){return{point:e,delta:V1(e,eT(t)),offset:V1(e,zF(t)),velocity:LF(t,.1)}}function zF(e){return e[0]}function eT(e){return e[e.length-1]}function LF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=eT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Hr(t)));)n--;if(!r)return{x:0,y:0};const i=Kr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const tT=1e-4,OF=1-tT,BF=1+tT,nT=.01,FF=0-nT,VF=0+nT;function bn(e){return e.max-e.min}function WF(e,t,n){return Math.abs(e-t)<=n}function W1(e,t,n,r=.5){e.origin=r,e.originPoint=Qe(t.min,t.max,e.origin),e.scale=bn(n)/bn(t),e.translate=Qe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=OF&&e.scale<=BF||isNaN(e.scale))&&(e.scale=1),(e.translate>=FF&&e.translate<=VF||isNaN(e.translate))&&(e.translate=0)}function $l(e,t,n,r){W1(e.x,t.x,n.x,r?r.originX:void 0),W1(e.y,t.y,n.y,r?r.originY:void 0)}function U1(e,t,n){e.min=n.min+t.min,e.max=e.min+bn(t)}function UF(e,t,n){U1(e.x,t.x,n.x),U1(e.y,t.y,n.y)}function H1(e,t,n){e.min=t.min-n.min,e.max=e.min+bn(t)}function Al(e,t,n){H1(e.x,t.x,n.x),H1(e.y,t.y,n.y)}function HF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Qe(n,e,r.max):Math.min(e,n)),e}function K1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function KF(e,{top:t,left:n,bottom:r,right:o}){return{x:K1(e.x,n,o),y:K1(e.y,t,r)}}function G1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sa(t.min,t.max-r,e.min):r>o&&(n=sa(e.min,e.max-o,t.min)),Zr(0,1,n)}function XF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Sg=.35;function YF(e=Sg){return e===!1?e=0:e===!0&&(e=Sg),{x:q1(e,"left","right"),y:q1(e,"top","bottom")}}function q1(e,t,n){return{min:X1(e,t),max:X1(e,n)}}function X1(e,t){return typeof e=="number"?e:e[t]||0}const Y1=()=>({translate:0,scale:1,origin:0,originPoint:0}),_s=()=>({x:Y1(),y:Y1()}),Q1=()=>({min:0,max:0}),st=()=>({x:Q1(),y:Q1()});function jn(e){return[e("x"),e("y")]}function rT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZF(e,t){if(!t)return e;const 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 Eh(e){return e===void 0||e===1}function wg({scale:e,scaleX:t,scaleY:n}){return!Eh(e)||!Eh(t)||!Eh(n)}function ci(e){return wg(e)||oT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oT(e){return Z1(e.x)||Z1(e.y)}function Z1(e){return e&&e!=="0%"}function lf(e,t,n){const r=e-n,o=t*r;return n+o}function J1(e,t,n,r,o){return o!==void 0&&(e=lf(e,o,r)),lf(e,n,r)+t}function kg(e,t=0,n=1,r,o){e.min=J1(e.min,t,n,r,o),e.max=J1(e.max,t,n,r,o)}function iT(e,{x:t,y:n}){kg(e.x,t.translate,t.scale,t.originPoint),kg(e.y,n.translate,n.scale,n.originPoint)}const eS=.999999999999,tS=1.0000000000001;function JF(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aeS&&(t.x=1),t.yeS&&(t.y=1)}function Ts(e,t){e.min=e.min+t,e.max=e.max+t}function nS(e,t,n,r,o=.5){const i=Qe(e.min,e.max,o);kg(e,t,n,i,r)}function Es(e,t){nS(e.x,t.x,t.scaleX,t.scale,t.originX),nS(e.y,t.y,t.scaleY,t.scale,t.originY)}function sT(e,t){return rT(ZF(e.getBoundingClientRect(),t))}function e8(e,t,n){const r=sT(e,n),{scroll:o}=t;return o&&(Ts(r.x,o.offset.x),Ts(r.y,o.offset.y)),r}const aT=({current:e})=>e?e.ownerDocument.defaultView:null,t8=new WeakMap;class n8{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=st(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ic(d).point)},i=(d,f)=>{const{drag:p,dragPropagation:g,onDragStart:m}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=q6(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jn(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Sr.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[x];S&&(b=bn(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),m&&Ke.postRender(()=>m(d,f)),pg(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:m,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(g&&this.currentDirection===null){this.currentDirection=r8(x),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(d,f)},a=(d,f)=>this.stop(d,f),l=()=>jn(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new J_(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:aT(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ke.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Eu(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=HF(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Cs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=KF(o.layoutBox,n):this.constraints=!1,this.elastic=YF(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&jn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=XF(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cs(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=e8(r,o.root,this.visualElement.getTransformPagePoint());let s=GF(o.layout.layoutBox,i);if(n){const a=n(QF(s));this.hasMutatedConstraints=!!a,a&&(s=rT(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=jn(d=>{if(!Eu(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const p=o?200:1e6,g=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pg(this.visualElement,t),r.start(o0(t,r,0,n,this.visualElement,!1))}stopAnimation(){jn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){jn(n=>{const{drag:r}=this.getProps();if(!Eu(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Qe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cs(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};jn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=qF({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),jn(s=>{if(!Eu(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Qe(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;t8.set(this.visualElement,this);const t=this.visualElement.current,n=jl(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Cs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ke.read(r);const s=lc(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(jn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Sg,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Eu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function r8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class o8 extends Xo{constructor(t){super(t),this.removeGroupControls=vn,this.removeListeners=vn,this.controls=new n8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rS=e=>(t,n)=>{e&&Ke.postRender(()=>e(t,n))};class i8 extends Xo{constructor(){super(...arguments),this.removePointerDownListener=vn}onPointerDown(t){this.session=new J_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:rS(t),onStart:rS(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Ke.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=jl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const md={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ha={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const n=oS(e,t.target.x),r=oS(e,t.target.y);return`${n}% ${r}%`}},s8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Wo.parse(e);if(o.length>5)return r;const i=Wo.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Qe(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};class a8 extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;T6(l8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),md.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Ke.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),My.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lT(e){const[t,n]=Ty(),r=h.useContext(Cy);return u.jsx(a8,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(Z2),isPresent:t,safeToRemove:n})}const l8={borderRadius:{...Ha,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ha,borderTopRightRadius:Ha,borderBottomLeftRadius:Ha,borderBottomRightRadius:Ha,boxShadow:s8};function c8(e,t,n){const r=Bt(e)?e:sc(e);return r.start(o0("",r,t,n)),r.animation}function u8(e){return e instanceof SVGElement&&e.tagName!=="svg"}const d8=(e,t)=>e.depth-t.depth;class f8{constructor(){this.children=[],this.isDirty=!1}add(t){Gy(this.children,t),this.isDirty=!0}remove(t){qy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d8),this.isDirty=!1,this.children.forEach(t)}}function p8(e,t){const n=wr.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Vo(r),e(i-t))};return Ke.read(r,!0),()=>Vo(r)}const cT=["TopLeft","TopRight","BottomLeft","BottomRight"],h8=cT.length,iS=e=>typeof e=="string"?parseFloat(e):e,sS=e=>typeof e=="number"||ae.test(e);function m8(e,t,n,r,o,i){o?(e.opacity=Qe(0,n.opacity!==void 0?n.opacity:1,g8(r)),e.opacityExit=Qe(t.opacity!==void 0?t.opacity:1,0,v8(r))):i&&(e.opacity=Qe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(sa(e,t,r))}function lS(e,t){e.min=t.min,e.max=t.max}function Tn(e,t){lS(e.x,t.x),lS(e.y,t.y)}function cS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uS(e,t,n,r,o){return e-=t,e=lf(e,1/n,r),o!==void 0&&(e=lf(e,1/o,r)),e}function y8(e,t=0,n=1,r=.5,o,i=e,s=e){if(Sr.test(t)&&(t=parseFloat(t),t=Qe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Qe(i.min,i.max,r);e===i&&(a-=t),e.min=uS(e.min,t,n,a,o),e.max=uS(e.max,t,n,a,o)}function dS(e,t,[n,r,o],i,s){y8(e,t[n],t[r],t[o],t.scale,i,s)}const b8=["x","scaleX","originX"],x8=["y","scaleY","originY"];function fS(e,t,n,r){dS(e.x,t,b8,n?n.x:void 0,r?r.x:void 0),dS(e.y,t,x8,n?n.y:void 0,r?r.y:void 0)}function pS(e){return e.translate===0&&e.scale===1}function dT(e){return pS(e.x)&&pS(e.y)}function hS(e,t){return e.min===t.min&&e.max===t.max}function S8(e,t){return hS(e.x,t.x)&&hS(e.y,t.y)}function mS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fT(e,t){return mS(e.x,t.x)&&mS(e.y,t.y)}function gS(e){return bn(e.x)/bn(e.y)}function vS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class w8{constructor(){this.members=[]}add(t){Gy(this.members,t),t.scheduleRender()}remove(t){if(qy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function k8(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:g,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const ui={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},al=typeof window<"u"&&window.MotionDebug!==void 0,jh=["","X","Y","Z"],C8={visibility:"hidden"},yS=1e3;let P8=0;function $h(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=S_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pT(r)}function hT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=P8++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,al&&(ui.totalNodes=ui.resolvedTargetDeltas=ui.recalculatedProjection=0),this.nodes.forEach(E8),this.nodes.forEach(M8),this.nodes.forEach(I8),this.nodes.forEach(j8),al&&window.MotionDebug.record(ui)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=p8(p,250),md.hasAnimatedSinceResize&&(md.hasAnimatedSinceResize=!1,this.nodes.forEach(xS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||O8,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!fT(this.targetLayout,m)||g,S=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...Wy(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||xS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vo(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(N8),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=w/1e3;SS(f.x,s.x,C),SS(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Al(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z8(this.relativeTarget,this.relativeTargetOrigin,p,C),S&&S8(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=st()),Tn(S,this.relativeTarget)),y&&(this.animationValues=d,m8(d,c,this.latestValues,C,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{md.hasAnimatedSinceResize=!0,this.currentAnimation=c8(0,yS,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&mT(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||st();const f=bn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const p=bn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}Tn(a,l),Es(a,d),$l(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new w8),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&$h("z",s,c,this.animationValues);for(let d=0;d{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(bS),this.root.sharedNodes.clear()}}}function _8(e){e.updateLayout()}function T8(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?jn(f=>{const p=s?n.measuredBox[f]:n.layoutBox[f],g=bn(p);p.min=r[f].min,p.max=p.min+g}):mT(i,n.layoutBox,r)&&jn(f=>{const p=s?n.measuredBox[f]:n.layoutBox[f],g=bn(r[f]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=_s();$l(a,r,n.layoutBox);const l=_s();s?$l(l,e.applyTransform(o,!0),n.measuredBox):$l(l,r,n.layoutBox);const c=!dT(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:g}=f;if(p&&g){const m=st();Al(m,n.layoutBox,p.layoutBox);const y=st();Al(y,r,g.layoutBox),fT(m,y)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function E8(e){al&&ui.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function j8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $8(e){e.clearSnapshot()}function bS(e){e.clearMeasurements()}function A8(e){e.isLayoutDirty=!1}function R8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function M8(e){e.resolveTargetDelta()}function I8(e){e.calcProjection()}function N8(e){e.resetSkewAndRotation()}function D8(e){e.removeLeadSnapshot()}function SS(e,t,n){e.translate=Qe(t.translate,0,n),e.scale=Qe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wS(e,t,n,r){e.min=Qe(t.min,n.min,r),e.max=Qe(t.max,n.max,r)}function z8(e,t,n,r){wS(e.x,t.x,n.x,r),wS(e.y,t.y,n.y,r)}function L8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const O8={duration:.45,ease:[.4,0,.1,1]},kS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),CS=kS("applewebkit/")&&!kS("chrome/")?Math.round:vn;function PS(e){e.min=CS(e.min),e.max=CS(e.max)}function B8(e){PS(e.x),PS(e.y)}function mT(e,t,n){return e==="position"||e==="preserve-aspect"&&!WF(gS(t),gS(n),.2)}function F8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const V8=hT({attachResizeListener:(e,t)=>lc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ah={current:void 0},gT=hT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ah.current){const e=new V8({});e.mount(window),e.setOptions({layoutScroll:!0}),Ah.current=e}return Ah.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W8={pan:{Feature:i8},drag:{Feature:o8,ProjectionNode:gT,MeasureLayout:lT}};function _S(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Ke.postRender(()=>i(t,Ic(t)))}class U8 extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=W6(t,n=>(_S(this.node,n,"Start"),r=>_S(this.node,r,"End"))))}unmount(){}}class H8 extends Xo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Mc(lc(this.node.current,"focus",()=>this.onFocus()),lc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function TS(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Ke.postRender(()=>i(t,Ic(t)))}class K8 extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=G6(t,n=>(TS(this.node,n,"Start"),(r,{success:o})=>TS(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cg=new WeakMap,Rh=new WeakMap,G8=e=>{const t=Cg.get(e.target);t&&t(e)},q8=e=>{e.forEach(G8)};function X8({root:e,...t}){const n=e||document;Rh.has(n)||Rh.set(n,{});const r=Rh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(q8,{root:e,...t})),r[o]}function Y8(e,t,n){const r=X8(t);return Cg.set(e,n),r.observe(e),()=>{Cg.delete(e),r.unobserve(e)}}const Q8={some:0,all:1};class Z8 extends Xo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Q8[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return Y8(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(J8(t,n))&&this.startObserver()}unmount(){}}function J8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const e9={inView:{Feature:Z8},tap:{Feature:K8},focus:{Feature:H8},hover:{Feature:U8}},t9={layout:{ProjectionNode:gT,MeasureLayout:lT}},Pg={current:null},vT={current:!1};function n9(){if(vT.current=!0,!!Ey)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pg.current=e.matches;e.addListener(t),t()}else Pg.current=!1}const r9=[...V_,zt,Wo],o9=e=>r9.find(F_(e)),ES=new WeakMap;function i9(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Bt(o))e.addValue(r,o);else if(Bt(i))e.addValue(r,sc(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,sc(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const jS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s9{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const g=wr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),vT.current||n9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ES.delete(this.current),this.projection&&this.projection.unmount(),Vo(this.notifyUpdate),Vo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Hi.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in aa){const n=aa[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):st()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=sc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(O_(o)||$_(o))?o=parseFloat(o):!o9(o)&&Wo.test(n)&&(o=D_(t,n)),this.setBaseTarget(t,Bt(o)?o.get():o)),Bt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Ny(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Bt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yT extends s9{constructor(){super(...arguments),this.KeyframeResolver=W_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Bt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function a9(e){return window.getComputedStyle(e)}class l9 extends yT{constructor(){super(...arguments),this.type="html",this.renderInstance=i_}readValueFromInstance(t,n){if(Hi.has(n)){const r=e0(n);return r&&r.default||0}else{const r=a9(t),o=(n_(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return sT(t,n)}build(t,n,r){Ly(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vy(t,n,r)}}class c9 extends yT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hi.has(n)){const r=e0(n);return r&&r.default||0}return n=s_.has(n)?n:Ry(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return c_(t,n,r)}build(t,n,r){Oy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){a_(t,n,r,o)}mount(t){this.isSVGTag=Fy(t.tagName),super.mount(t)}}const u9=(e,t)=>Iy(e)?new c9(t):new l9(t,{allowProjection:e!==h.Fragment}),d9=D6({...IF,...e9,...W8,...t9},u9),Cn=QO(d9),f9=(e,t)=>e.find(n=>n.id===t);function $S(e,t){const n=bT(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function bT(e,t){for(const[n,r]of Object.entries(e))if(f9(r,t))return n}function p9(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function h9(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var m9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,g9=$2(function(e){return m9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),v9=g9,y9=function(t){return t!=="theme"},AS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?v9:y9},RS=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},b9=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return vy(n,r,o),O2(function(){return yy(n,r,o)}),null},x9=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=RS(t,n,r),l=a||AS(o),c=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var g=d.length,m=1;mt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=aM(s,JM),l=Ot(e,t),c=FR({},o,l,Jv(a),i),d=ZP(c)(t.theme);return r?[d,r]:d};function Mh(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=C9);const o=_9({baseStyle:n}),i=P9(e,r)(o);return h.forwardRef(function(l,c){const{children:d,...f}=l,{colorMode:p,forced:g}=jc(),m=g?p:void 0;return h.createElement(i,{ref:c,"data-theme":m,...f},d)})}function T9(){const e=new Map;return new Proxy(Mh,{apply(t,n,r){return Mh(...r)},get(t,n){return e.has(n)||e.set(n,Mh(n)),e.get(n)}})}const D=T9(),E9={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},xT=h.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=E9,toastSpacing:d="0.5rem"}=e,[f,p]=h.useState(a),g=VO();Yd(()=>{g||r==null||r()},[g]),Yd(()=>{p(a)},[a]);const m=()=>p(null),y=()=>p(a),x=()=>{g&&o()};h.useEffect(()=>{g&&i&&o()},[g,i,o]),vM(x,f);const b=h.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),v=h.useMemo(()=>p9(s),[s]);return u.jsx(Cn.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:y,custom:{position:s},style:v,children:u.jsx(D.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Ot(n,{id:t,onClose:x})})})});xT.displayName="ToastComponent";function O(e){return h.forwardRef(e)}var j9=typeof Element<"u",$9=typeof Map=="function",A9=typeof Set=="function",R9=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!gd(e[r],t[r]))return!1;return!0}var i;if($9&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!gd(r.value[1],t.get(r.value[0])))return!1;return!0}if(A9&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(R9&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(j9&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!gd(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var M9=function(t,n){try{return gd(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const I9=tv(M9);function no(){const e=h.useContext(ia);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function ST(){const e=jc(),t=no();return{...e,theme:t}}function N9(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function D9(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,c)=>{const d=`${e}.${l}`;return N9(i,d,s[c]??l)});return Array.isArray(t)?a:a[0]}}function z9(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!h.isValidElement(n)))}function wT(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=ST(),s=e?BP(o,`components.${e}`):void 0,a=n||s,l=Mn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},z9(r),(d,f)=>d?void 0:f),c=h.useRef({});if(a){const f=u4(a)(l);I9(c.current,f)||(c.current=f)}return c.current}function Pn(e,t={}){return wT(e,t)}function Oe(e,t={}){return wT(e,t)}const MS={path:u.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[u.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),u.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),u.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},yt=O((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...c}=e,d=B("chakra-icon",a),f=Pn("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...f},g={ref:t,focusable:i,className:d,__css:p},m=r??MS.viewBox;if(n&&typeof n!="string")return u.jsx(D.svg,{as:n,...g,...c});const y=s??MS.path;return u.jsx(D.svg,{verticalAlign:"middle",viewBox:m,...g,...c,children:y})});yt.displayName="Icon";function L9(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function O9(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function IS(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const B9=Ec({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ln=O((e,t)=>{const n=Pn("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=xe(e),c=B("chakra-spinner",a),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${B9} ${i} linear infinite`,...n};return u.jsx(D.div,{ref:t,__css:d,className:c,...l,children:r&&u.jsx(D.span,{srOnly:!0,children:r})})});Ln.displayName="Spinner";const[F9,i0]=pe({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[V9,s0]=pe({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),kT={info:{icon:O9,colorScheme:"blue"},warning:{icon:IS,colorScheme:"orange"},success:{icon:L9,colorScheme:"green"},error:{icon:IS,colorScheme:"red"},loading:{icon:Ln,colorScheme:"blue"}};function W9(e){return kT[e].colorScheme}function U9(e){return kT[e].icon}const CT=O(function(t,n){const{status:r="info",addRole:o=!0,...i}=xe(t),s=t.colorScheme??W9(r),a=Oe("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return u.jsx(F9,{value:{status:r},children:u.jsx(V9,{value:a,children:u.jsx(D.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:B("chakra-alert",t.className),__css:l})})})});CT.displayName="Alert";function PT(e){const{status:t}=i0(),n=U9(t),r=s0(),o=t==="loading"?r.spinner:r.icon;return u.jsx(D.span,{display:"inherit","data-status":t,...e,className:B("chakra-alert__icon",e.className),__css:o,children:e.children||u.jsx(n,{h:"100%",w:"100%"})})}PT.displayName="AlertIcon";const _T=O(function(t,n){const r=s0(),{status:o}=i0();return u.jsx(D.div,{ref:n,"data-status":o,...t,className:B("chakra-alert__title",t.className),__css:r.title})});_T.displayName="AlertTitle";const TT=O(function(t,n){const{status:r}=i0(),o=s0(),i={display:"inline",...o.description};return u.jsx(D.div,{ref:n,"data-status":r,...t,className:B("chakra-alert__desc",t.className),__css:i})});TT.displayName="AlertDescription";function H9(e){return u.jsx(yt,{focusable:"false","aria-hidden":!0,...e,children:u.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const tp=O(function(t,n){const r=Pn("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=xe(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return u.jsx(D.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||u.jsx(H9,{width:"1em",height:"1em"})})});tp.displayName="CloseButton";const K9=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:c}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return u.jsxs(CT,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[u.jsx(PT,{children:c}),u.jsxs(D.div,{flex:"1",maxWidth:"100%",children:[o&&u.jsx(_T,{id:d==null?void 0:d.title,children:o}),a&&u.jsx(TT,{id:d==null?void 0:d.description,display:"block",children:a})]}),i&&u.jsx(tp,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function ET(e={}){const{render:t,toastComponent:n=K9}=e;return o=>typeof t=="function"?t({...o,...e}):u.jsx(n,{...o,...e})}const G9={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},mr=q9(G9);function q9(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=X9(o,i),{position:a,id:l}=s;return r(c=>{const f=a.includes("top")?[s,...c[a]??[]]:[...c[a]??[],s];return{...c,[a]:f}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:c}=$S(a,o);return l&&c!==-1&&(a[l][c]={...a[l][c],...i,message:ET(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(d=>({...d,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=bT(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!$S(mr.getState(),o).position}}let NS=0;function X9(e,t={}){NS+=1;const n=t.id??NS,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>mr.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[jT,Y9]=pe({strict:!1,name:"PortalContext"}),a0="chakra-portal",Q9=".chakra-portal",Z9=e=>u.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),J9=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=h.useState(null),i=h.useRef(null),[,s]=h.useState({});h.useEffect(()=>s({}),[]);const a=Y9(),l=NO();Wr(()=>{if(!r)return;const d=r.ownerDocument,f=t?a??d.body:d.body;if(!f)return;i.current=d.createElement("div"),i.current.className=a0,f.appendChild(i.current),s({});const p=i.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const c=l!=null&&l.zIndex?u.jsx(Z9,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?Yv.createPortal(u.jsx(jT,{value:i.current,children:c}),i.current):u.jsx("span",{ref:d=>{d&&o(d)}})},eV=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=h.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=a0),l},[o]),[,a]=h.useState({});return Wr(()=>a({}),[]),Wr(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Yv.createPortal(u.jsx(jT,{value:r?s:null,children:t}),s):null};function Ca(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?u.jsx(eV,{containerRef:n,...r}):u.jsx(J9,{...r})}Ca.className=a0;Ca.selector=Q9;Ca.displayName="Portal";const[tV,nV]=pe({name:"ToastOptionsContext",strict:!1}),rV=e=>{const t=h.useSyncExternalStore(mr.subscribe,mr.getState,mr.getState),{motionVariants:n,component:r=xT,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const c=t[l];return u.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:h9(l),children:u.jsx(to,{...i,initial:!1,children:c.map(d=>u.jsx(r,{motionVariants:n,...d},d.id))})},l)});return u.jsx(Ca,{...o,children:a})},oV=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return u.jsxs(zO,{theme:r,...i,children:[u.jsx(tV,{value:o==null?void 0:o.defaultOptions,children:n}),u.jsx(rV,{...o})]})},iV=oV(yi);function DS(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const sV=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function zS(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function LS(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const Ih=typeof window<"u"?h.useLayoutEffect:h.useEffect,OS=e=>e;var aV=Object.defineProperty,lV=(e,t,n)=>t in e?aV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t,n)=>(lV(e,typeof t!="symbol"?t+"":t,n),n);class cV{constructor(){nt(this,"descendants",new Map),nt(this,"register",t=>{if(t!=null)return sV(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),nt(this,"unregister",t=>{this.descendants.delete(t);const n=DS(Array.from(this.descendants.keys()));this.assignIndex(n)}),nt(this,"destroy",()=>{this.descendants.clear()}),nt(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),nt(this,"count",()=>this.descendants.size),nt(this,"enabledCount",()=>this.enabledValues().length),nt(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),nt(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),nt(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),nt(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),nt(this,"first",()=>this.item(0)),nt(this,"firstEnabled",()=>this.enabledItem(0)),nt(this,"last",()=>this.item(this.descendants.size-1)),nt(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),nt(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),nt(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),nt(this,"next",(t,n=!0)=>{const r=zS(t,this.count(),n);return this.item(r)}),nt(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=zS(o,this.enabledCount(),n);return this.enabledItem(i)}),nt(this,"prev",(t,n=!0)=>{const r=LS(t,this.count()-1,n);return this.item(r)}),nt(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=LS(o,this.enabledCount()-1,n);return this.enabledItem(i)}),nt(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),o=DS(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const i={node:t,index:-1,...n};this.descendants.set(t,i),this.assignIndex(o)})}}function uV(){const[e,t]=pe({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=h.useRef(new cV);return Ih(()=>()=>o.current.destroy()),o.current},o=>{const i=t(),[s,a]=h.useState(-1),l=h.useRef(null);Ih(()=>()=>{l.current&&i.unregister(l.current)},[]),Ih(()=>{if(!l.current)return;const d=Number(l.current.dataset.index);s!=d&&!Number.isNaN(d)&&a(d)});const c=OS(o?i.register(o):i.register);return{descendants:i,index:s,enabledIndex:i.enabledIndexOf(l.current),register:mt(c,l)}}]}const Or={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ka={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Tg(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Ka.slideRight;case"left":return Ka.slideLeft;case"bottom":return Ka.slideDown;case"top":return Ka.slideUp;default:return Ka.slideRight}}const Ei={enter:{duration:.2,ease:Or.easeOut},exit:{duration:.1,ease:Or.easeIn}},tr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},dV=e=>e!=null&&parseInt(e.toString(),10)>0,BS={exit:{height:{duration:.2,ease:Or.ease},opacity:{duration:.3,ease:Or.ease}},enter:{height:{duration:.3,ease:Or.ease},opacity:{duration:.4,ease:Or.ease}}},fV={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:dV(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??tr.exit(BS.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??tr.enter(BS.enter,o)})},np=h.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:a,className:l,transition:c,transitionEnd:d,animatePresenceProps:f,...p}=e,[g,m]=h.useState(!1);h.useEffect(()=>{const S=setTimeout(()=>{m(!0)});return()=>clearTimeout(S)},[]);const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:s,animateOpacity:o,transition:g?c:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:y?"block":"none"}}},b=r?n:!0,v=n||r?"enter":"exit";return u.jsx(to,{...f,initial:!1,custom:x,children:b&&u.jsx(Cn.div,{ref:t,...p,className:B("chakra-collapse",l),style:{overflow:"hidden",display:"block",...a},custom:x,variants:fV,initial:r?"exit":!1,animate:v,exit:"exit"})})});np.displayName="Collapse";const[pV,$T]=pe({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function hV(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function AT(e){const{name:t,getInitials:n,...r}=e,o=$T();return u.jsx(D.div,{role:"img","aria-label":t,...r,__css:o.label,children:t?n==null?void 0:n(t):null})}AT.displayName="AvatarName";const RT=e=>u.jsxs(D.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[u.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),u.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function mV(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[c,d]=h.useState("pending");h.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=h.useRef(null),p=h.useCallback(()=>{if(!n)return;g();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=y=>{g(),d("loaded"),o==null||o(y)},m.onerror=y=>{g(),d("failed"),i==null||i(y)},f.current=m},[n,s,r,a,o,i,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Wr(()=>{if(!l)return c==="loading"&&p(),()=>{g()}},[c,p,l]),l?"loaded":c}function MT(e){const{src:t,srcSet:n,onError:r,onLoad:o,getInitials:i,name:s,borderRadius:a,loading:l,iconLabel:c,icon:d=u.jsx(RT,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:g}=e,y=mV({src:t,onError:r,crossOrigin:g,ignoreFallback:f})==="loaded";return!t||!y?s?u.jsx(AT,{className:"chakra-avatar__initials",getInitials:i,name:s}):h.cloneElement(d,{role:"img","aria-label":c}):u.jsx(D.img,{src:t,srcSet:n,alt:s??c,onLoad:o,referrerPolicy:p,crossOrigin:g??void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:a}})}MT.displayName="AvatarImage";const gV={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},l0=O((e,t)=>{const n=Oe("Avatar",e),[r,o]=h.useState(!1),{src:i,srcSet:s,name:a,showBorder:l,borderRadius:c="full",onError:d,onLoad:f,getInitials:p=hV,icon:g=u.jsx(RT,{}),iconLabel:m=" avatar",loading:y,children:x,borderColor:b,ignoreFallback:v,crossOrigin:S,referrerPolicy:w,...C}=xe(e),_={borderRadius:c,borderWidth:l?"2px":void 0,...gV,...n.container};return b&&(_.borderColor=b),u.jsx(D.span,{ref:t,...C,className:B("chakra-avatar",e.className),"data-loaded":ne(r),__css:_,children:u.jsxs(pV,{value:n,children:[u.jsx(MT,{src:i,srcSet:s,loading:y,onLoad:ie(f,()=>{o(!0)}),onError:d,getInitials:p,name:a,borderRadius:c,icon:g,iconLabel:m,ignoreFallback:v,crossOrigin:S,referrerPolicy:w}),x]})})});l0.displayName="Avatar";const vV={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},IT=O(function(t,n){const{placement:r="bottom-end",className:o,...i}=t,s=$T(),l={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...vV[r],...s.badge};return u.jsx(D.div,{ref:n,...i,className:B("chakra-avatar__badge",o),__css:l})});IT.displayName="AvatarBadge";const On=O(function(t,n){const r=Pn("Badge",t),{className:o,...i}=xe(t);return u.jsx(D.span,{ref:n,className:B("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});On.displayName="Badge";const be=D("div");be.displayName="Box";const[yV,bV]=pe({strict:!1,name:"ButtonGroupContext"});function ll(e){const{children:t,className:n,...r}=e,o=h.isValidElement(t)?h.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=B("chakra-button__icon",n);return u.jsx(D.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}ll.displayName="ButtonIcon";function Eg(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=u.jsx(Ln,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=B("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",d=h.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,r]);return u.jsx(D.div,{className:l,...a,__css:d,children:o})}Eg.displayName="ButtonSpinner";function xV(e){const[t,n]=h.useState(!e);return{ref:h.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const ke=O((e,t)=>{const n=bV(),r=Pn("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:g,spinnerPlacement:m="start",className:y,as:x,shouldWrapChildren:b,...v}=xe(e),S=h.useMemo(()=>{const k={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:k}}},[r,n]),{ref:w,type:C}=xV(x),_={rightIcon:c,leftIcon:l,iconSpacing:f,children:a,shouldWrapChildren:b};return u.jsxs(D.button,{disabled:o||i,ref:ny(t,w),as:x,type:p??C,"data-active":ne(s),"data-loading":ne(i),__css:S,className:B("chakra-button",y),...v,children:[i&&m==="start"&&u.jsx(Eg,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:g}),i?d||u.jsx(D.span,{opacity:0,children:u.jsx(FS,{..._})}):u.jsx(FS,{..._}),i&&m==="end"&&u.jsx(Eg,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:g})]})});ke.displayName="Button";function FS(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?u.jsxs("span",{style:{display:"contents"},children:[t&&u.jsx(ll,{marginEnd:o,children:t}),r,n&&u.jsx(ll,{marginStart:o,children:n})]}):u.jsxs(u.Fragment,{children:[t&&u.jsx(ll,{marginEnd:o,children:t}),r,n&&u.jsx(ll,{marginStart:o,children:n})]})}const SV={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},wV={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},c0=O(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:a="0.5rem",isAttached:l,isDisabled:c,orientation:d="horizontal",...f}=t,p=B("chakra-button__group",s),g=h.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:c}),[r,o,i,c]);let m={display:"inline-flex",...l?SV[d]:wV[d](a)};const y=d==="vertical";return u.jsx(yV,{value:g,children:u.jsx(D.div,{ref:n,role:"group",__css:m,className:p,"data-attached":l?"":void 0,"data-orientation":d,flexDir:y?"column":void 0,...f})})});c0.displayName="ButtonGroup";const zo=O((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=h.isValidElement(a)?h.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return u.jsx(ke,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});zo.displayName="IconButton";const[kV,CV]=rr("Card"),NT=O(function(t,n){const{className:r,children:o,direction:i="column",justify:s,align:a,...l}=xe(t),c=Oe("Card",t);return u.jsx(D.div,{ref:n,className:B("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:u.jsx(kV,{value:c,children:o})})}),DT=O(function(t,n){const{className:r,...o}=t,i=CV();return u.jsx(D.div,{ref:n,className:B("chakra-card__body",r),__css:i.body,...o})}),zT=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});zT.displayName="Center";const PV={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};O(function(t,n){const{axis:r="both",...o}=t;return u.jsx(D.div,{ref:n,__css:PV[r],...o,position:"absolute"})});var _V=()=>typeof document<"u",VS=!1,Nc=null,Bi=!1,jg=!1,$g=new Set;function u0(e,t){$g.forEach(n=>n(e,t))}var TV=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function EV(e){return!(e.metaKey||!TV&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function WS(e){Bi=!0,EV(e)&&(Nc="keyboard",u0("keyboard",e))}function ts(e){if(Nc="pointer",e.type==="mousedown"||e.type==="pointerdown"){Bi=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;u0("pointer",e)}}function jV(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function $V(e){jV(e)&&(Bi=!0,Nc="virtual")}function AV(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!Bi&&!jg&&(Nc="virtual",u0("virtual",e)),Bi=!1,jg=!1)}function RV(){Bi=!1,jg=!0}function US(){return Nc!=="pointer"}function MV(){if(!_V()||VS)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Bi=!0,e.apply(this,n)},document.addEventListener("keydown",WS,!0),document.addEventListener("keyup",WS,!0),document.addEventListener("click",$V,!0),window.addEventListener("focus",AV,!0),window.addEventListener("blur",RV,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ts,!0),document.addEventListener("pointermove",ts,!0),document.addEventListener("pointerup",ts,!0)):(document.addEventListener("mousedown",ts,!0),document.addEventListener("mousemove",ts,!0),document.addEventListener("mouseup",ts,!0)),VS=!0}function LT(e){MV(),e(US());const t=()=>e(US());return $g.add(t),()=>{$g.delete(t)}}const[IV,OT]=pe({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[NV,Dc]=pe({strict:!1,name:"FormControlContext"});function DV(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=h.useId(),l=t||`field-${a}`,c=`${l}-label`,d=`${l}-feedback`,f=`${l}-helptext`,[p,g]=h.useState(!1),[m,y]=h.useState(!1),[x,b]=h.useState(!1),v=h.useCallback((k={},T=null)=>({id:f,...k,ref:mt(T,A=>{A&&y(!0)})}),[f]),S=h.useCallback((k={},T=null)=>({...k,ref:T,"data-focus":ne(x),"data-disabled":ne(o),"data-invalid":ne(r),"data-readonly":ne(i),id:k.id!==void 0?k.id:c,htmlFor:k.htmlFor!==void 0?k.htmlFor:l}),[l,o,x,r,i,c]),w=h.useCallback((k={},T=null)=>({id:d,...k,ref:mt(T,A=>{A&&g(!0)}),"aria-live":"polite"}),[d]),C=h.useCallback((k={},T=null)=>({...k,...s,ref:T,role:"group","data-focus":ne(x),"data-disabled":ne(o),"data-invalid":ne(r),"data-readonly":ne(i)}),[s,o,x,r,i]),_=h.useCallback((k={},T=null)=>({...k,ref:T,role:"presentation","aria-hidden":!0,children:k.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:g,hasHelpText:m,setHasHelpText:y,id:l,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:v,getErrorMessageProps:w,getRootProps:C,getLabelProps:S,getRequiredIndicatorProps:_}}const Me=O(function(t,n){const r=Oe("Form",t),o=xe(t),{getRootProps:i,htmlProps:s,...a}=DV(o),l=B("chakra-form-control",t.className);return u.jsx(NV,{value:a,children:u.jsx(IV,{value:r,children:u.jsx(D.div,{...i({},n),className:l,__css:r.container})})})});Me.displayName="FormControl";const Ag=O(function(t,n){const r=Dc(),o=OT(),i=B("chakra-form__helper-text",t.className);return u.jsx(D.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});Ag.displayName="FormHelperText";function BT(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=FT(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Vr(n),"aria-required":Vr(o),"aria-readonly":Vr(r)}}function FT(e){const t=Dc(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:d,onBlur:f,...p}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&g.push(t.feedbackId),t!=null&&t.hasHelpText&&g.push(t.helpTextId),{...p,"aria-describedby":g.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??c??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:ie(t==null?void 0:t.onFocus,d),onBlur:ie(t==null?void 0:t.onBlur,f)}}const VT={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function zV(e={}){const t=FT(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":c}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:g,isIndeterminate:m,name:y,value:x,tabIndex:b=void 0,"aria-label":v,"aria-labelledby":S,"aria-invalid":w,...C}=e,_=ey(C,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),k=er(g),T=er(a),A=er(l),[$,L]=h.useState(!1),[X,re]=h.useState(!1),[R,W]=h.useState(!1),K=h.useRef(!1);h.useEffect(()=>LT(se=>{K.current=se}),[]);const N=h.useRef(null),[z,M]=h.useState(!0),[V,G]=h.useState(!!d),Z=f!==void 0,J=Z?f:V,he=h.useCallback(se=>{if(r||n){se.preventDefault();return}Z||G(J?se.currentTarget.checked:m?!0:se.currentTarget.checked),k==null||k(se)},[r,n,J,Z,m,k]);Wr(()=>{N.current&&(N.current.indeterminate=!!m)},[m]),Yd(()=>{n&&L(!1)},[n,L]),Wr(()=>{const se=N.current;if(!(se!=null&&se.form))return;const tt=()=>{G(!!d)};return se.form.addEventListener("reset",tt),()=>{var Be;return(Be=se.form)==null?void 0:Be.removeEventListener("reset",tt)}},[]);const de=n&&!p,me=h.useCallback(se=>{se.key===" "&&W(!0)},[W]),ze=h.useCallback(se=>{se.key===" "&&W(!1)},[W]);Wr(()=>{if(!N.current)return;N.current.checked!==J&&G(N.current.checked)},[N.current]);const ce=h.useCallback((se={},tt=null)=>{const Be=Mt=>{$&&Mt.preventDefault(),W(!0)};return{...se,ref:tt,"data-active":ne(R),"data-hover":ne(X),"data-checked":ne(J),"data-focus":ne($),"data-focus-visible":ne($&&K.current),"data-indeterminate":ne(m),"data-disabled":ne(n),"data-invalid":ne(i),"data-readonly":ne(r),"aria-hidden":!0,onMouseDown:ie(se.onMouseDown,Be),onMouseUp:ie(se.onMouseUp,()=>W(!1)),onMouseEnter:ie(se.onMouseEnter,()=>re(!0)),onMouseLeave:ie(se.onMouseLeave,()=>re(!1))}},[R,J,n,$,X,m,i,r]),q=h.useCallback((se={},tt=null)=>({...se,ref:tt,"data-active":ne(R),"data-hover":ne(X),"data-checked":ne(J),"data-focus":ne($),"data-focus-visible":ne($&&K.current),"data-indeterminate":ne(m),"data-disabled":ne(n),"data-invalid":ne(i),"data-readonly":ne(r)}),[R,J,n,$,X,m,i,r]),Y=h.useCallback((se={},tt=null)=>({..._,...se,ref:mt(tt,Be=>{Be&&M(Be.tagName==="LABEL")}),onClick:ie(se.onClick,()=>{var Be;z||((Be=N.current)==null||Be.click(),requestAnimationFrame(()=>{var Mt;(Mt=N.current)==null||Mt.focus({preventScroll:!0})}))}),"data-disabled":ne(n),"data-checked":ne(J),"data-invalid":ne(i)}),[_,n,J,i,z]),Se=h.useCallback((se={},tt=null)=>({...se,ref:mt(N,tt),type:"checkbox",name:y,value:x,id:s,tabIndex:b,onChange:ie(se.onChange,he),onBlur:ie(se.onBlur,T,()=>L(!1)),onFocus:ie(se.onFocus,A,()=>L(!0)),onKeyDown:ie(se.onKeyDown,me),onKeyUp:ie(se.onKeyUp,ze),required:o,checked:J,disabled:de,readOnly:r,"aria-label":v,"aria-labelledby":S,"aria-invalid":w?!!w:i,"aria-describedby":c,"aria-disabled":n,"aria-checked":m?"mixed":J,style:VT}),[y,x,s,b,he,T,A,me,ze,o,J,de,r,v,S,w,i,c,n,m]),ue=h.useCallback((se={},tt=null)=>({...se,ref:tt,onMouseDown:ie(se.onMouseDown,LV),"data-disabled":ne(n),"data-checked":ne(J),"data-invalid":ne(i)}),[J,n,i]);return{state:{isInvalid:i,isFocused:$,isChecked:J,isActive:R,isHovered:X,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Y,getCheckboxProps:ce,getIndicatorProps:q,getInputProps:Se,getLabelProps:ue,htmlProps:_}}function LV(e){e.preventDefault(),e.stopPropagation()}const OV=new Set(["dark","light","system"]);function BV(e){let t=e;return OV.has(t)||(t="light"),t}function FV(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=BV(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function VV(e={}){const{nonce:t}=e;return u.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:FV(e)}})}const Cr=O(function(t,n){const{className:r,centerContent:o,...i}=xe(t),s=Pn("Container",t);return u.jsx(D.div,{ref:n,className:B("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Cr.displayName="Container";const ca=O(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:l,borderColor:c,...d}=Pn("Divider",t),{className:f,orientation:p="horizontal",__css:g,...m}=xe(t),y={vertical:{borderLeftWidth:r||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return u.jsx(D.hr,{ref:n,"aria-orientation":p,...m,__css:{...d,border:"0",borderColor:c,borderStyle:l,...y[p],...g},className:B("chakra-divider",f)})});ca.displayName="Divider";const[WV,WT]=pe({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[UV,d0]=pe({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function HS(e,t){return e?e===t||e.contains(t):!1}function HV(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:o,value:i,isDisabled:s,defaultValue:a,startWithEditView:l,isPreviewFocusable:c=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:g,finalFocusRef:m,...y}=e,x=er(g),b=!!(l&&!s),[v,S]=h.useState(b),[w,C]=HP({defaultValue:a||"",value:i,onChange:t}),[_,k]=h.useState(w),T=h.useRef(null),A=h.useRef(null),$=h.useRef(null),L=h.useRef(null),X=h.useRef(null);mM({ref:T,enabled:v,elements:[L,X]});const re=!v&&!s;Wr(()=>{var q,Y;v&&((q=T.current)==null||q.focus(),f&&((Y=T.current)==null||Y.select()))},[]),Yd(()=>{var q,Y,Se,ue;if(!v){m?(q=m.current)==null||q.focus():(Y=$.current)==null||Y.focus();return}(Se=T.current)==null||Se.focus(),f&&((ue=T.current)==null||ue.select()),x==null||x()},[v,x,f]);const R=h.useCallback(()=>{re&&S(!0)},[re]),W=h.useCallback(()=>{k(w)},[w]),K=h.useCallback(()=>{S(!1),C(_),n==null||n(_),o==null||o(_)},[n,o,C,_]),N=h.useCallback(()=>{S(!1),k(w),r==null||r(w),o==null||o(_)},[w,r,o,_]);h.useEffect(()=>{if(v)return;const q=T.current;(q==null?void 0:q.ownerDocument.activeElement)===q&&(q==null||q.blur())},[v]);const z=h.useCallback(q=>{C(q.currentTarget.value)},[C]),M=h.useCallback(q=>{const Y=q.key,ue={Escape:K,Enter:ee=>{!ee.shiftKey&&!ee.metaKey&&N()}}[Y];ue&&(q.preventDefault(),ue(q))},[K,N]),V=h.useCallback(q=>{const Y=q.key,ue={Escape:K}[Y];ue&&(q.preventDefault(),ue(q))},[K]),G=w.length===0,Z=h.useCallback(q=>{if(!v)return;const Y=q.currentTarget.ownerDocument,Se=q.relatedTarget??Y.activeElement,ue=HS(L.current,Se),ee=HS(X.current,Se);!ue&&!ee&&(d?N():K())},[d,N,K,v]),J=h.useCallback((q={},Y=null)=>{const Se=re&&c?0:void 0;return{...q,ref:mt(Y,A),children:G?p:w,hidden:v,"aria-disabled":Vr(s),tabIndex:Se,onFocus:ie(q.onFocus,R,W)}},[s,v,re,c,G,R,W,p,w]),he=h.useCallback((q={},Y=null)=>({...q,hidden:!v,placeholder:p,ref:mt(Y,T),disabled:s,"aria-disabled":Vr(s),value:w,onBlur:ie(q.onBlur,Z),onChange:ie(q.onChange,z),onKeyDown:ie(q.onKeyDown,M),onFocus:ie(q.onFocus,W)}),[s,v,Z,z,M,W,p,w]),de=h.useCallback((q={},Y=null)=>({...q,hidden:!v,placeholder:p,ref:mt(Y,T),disabled:s,"aria-disabled":Vr(s),value:w,onBlur:ie(q.onBlur,Z),onChange:ie(q.onChange,z),onKeyDown:ie(q.onKeyDown,V),onFocus:ie(q.onFocus,W)}),[s,v,Z,z,V,W,p,w]),me=h.useCallback((q={},Y=null)=>({"aria-label":"Edit",...q,type:"button",onClick:ie(q.onClick,R),ref:mt(Y,$),disabled:s}),[R,s]),ze=h.useCallback((q={},Y=null)=>({...q,"aria-label":"Submit",ref:mt(X,Y),type:"button",onClick:ie(q.onClick,N),disabled:s}),[N,s]),ce=h.useCallback((q={},Y=null)=>({"aria-label":"Cancel",id:"cancel",...q,ref:mt(L,Y),type:"button",onClick:ie(q.onClick,K),disabled:s}),[K,s]);return{isEditing:v,isDisabled:s,isValueEmpty:G,value:w,onEdit:R,onCancel:K,onSubmit:N,getPreviewProps:J,getInputProps:he,getTextareaProps:de,getEditButtonProps:me,getSubmitButtonProps:ze,getCancelButtonProps:ce,htmlProps:y}}const cl=O(function(t,n){const r=Oe("Editable",t),o=xe(t),{htmlProps:i,...s}=HV(o),{isEditing:a,onSubmit:l,onCancel:c,onEdit:d}=s,f=B("chakra-editable",t.className),p=Ot(t.children,{isEditing:a,onSubmit:l,onCancel:c,onEdit:d});return u.jsx(UV,{value:s,children:u.jsx(WV,{value:r,children:u.jsx(D.div,{ref:n,...i,className:f,children:p})})})});cl.displayName="Editable";const UT={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},ul=O(function(t,n){const{getInputProps:r}=d0(),o=WT(),i=r(t,n),s=B("chakra-editable__input",t.className);return u.jsx(D.input,{...i,__css:{outline:0,...UT,...o.input},className:s})});ul.displayName="EditableInput";const dl=O(function(t,n){const{getPreviewProps:r}=d0(),o=WT(),i=r(t,n),s=B("chakra-editable__preview",t.className);return u.jsx(D.span,{...i,__css:{cursor:"text",display:"inline-block",...UT,...o.preview},className:s})});dl.displayName="EditablePreview";function KV(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=d0();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function fl(e){return typeof e=="function"}function GV(...e){return t=>e.reduce((n,r)=>r(n),t)}const qV=e=>function(...n){let r=[...n],o=n[n.length-1];return wL(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,GV(...r.map(i=>s=>fl(i)?i(s):XV(s,i)))(o)},f0=qV(yi);function XV(...e){return Mn({},...e,HT)}function HT(e,t,n,r){if((fl(e)||fl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=fl(e)?e(...o):e,s=fl(t)?t(...o):t;return Mn({},i,s,HT)};if(vt(e)&&Xm(t)||Xm(e)&&vt(t))return t}const At=O(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,...d}=t,f={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c};return u.jsx(D.div,{ref:n,__css:f,...d})});At.displayName="Flex";function YV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rg="data-focus-lock",KT="data-focus-lock-disabled",QV="data-no-focus-lock",ZV="data-autofocus-inside",JV="data-no-autofocus";function Nh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function e7(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var t7=typeof window<"u"?h.useLayoutEffect:h.useEffect,KS=new WeakMap;function GT(e,t){var n=e7(null,function(r){return e.forEach(function(o){return Nh(o,r)})});return t7(function(){var r=KS.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Nh(a,null)}),i.forEach(function(a){o.has(a)||Nh(a,s)})}KS.set(n,e)},[e]),n}var Dh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},gr=function(){return gr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(S7)},k7=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],v0=k7.join(","),C7="".concat(v0,", [data-focus-guard]"),cE=function(e,t){return _r((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?C7:v0)?[r]:[],cE(r))},[])},P7=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?ua([e.contentDocument.body],t):[e]},ua=function(e,t){return e.reduce(function(n,r){var o,i=cE(r,t),s=(o=[]).concat.apply(o,i.map(function(a){return P7(a,t)}));return n.concat(s,r.parentNode?_r(r.parentNode.querySelectorAll(v0)).filter(function(a){return a===r}):[])},[])},_7=function(e){var t=e.querySelectorAll("[".concat(ZV,"]"));return _r(t).map(function(n){return ua([n])}).reduce(function(n,r){return n.concat(r)},[])},y0=function(e,t){return _r(e).filter(function(n){return oE(t,n)}).filter(function(n){return y7(n)})},GS=function(e,t){return t===void 0&&(t=new Map),_r(e).filter(function(n){return iE(t,n)})},b0=function(e,t,n){return g0(y0(ua(e,n),t),!0,n)},uc=function(e,t){return g0(y0(ua(e),t),!1)},T7=function(e,t){return y0(_7(e),t)},ji=function(e,t){return e.shadowRoot?ji(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:_r(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?ji(o,t):!1}return ji(n,t)})},E7=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,a){return!t.has(a)})},uE=function(e){return e.parentNode?uE(e.parentNode):e},x0=function(e){var t=Fi(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Rg);return n.push.apply(n,o?E7(_r(uE(r).querySelectorAll("[".concat(Rg,'="').concat(o,'"]:not([').concat(KT,'="disabled"])')))):[r]),n},[])},j7=function(e){try{return e()}catch{return}},dc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?dc(t.shadowRoot):t instanceof HTMLIFrameElement&&j7(function(){return t.contentWindow.document})?dc(t.contentWindow.document):t}},$7=function(e,t){return e===t},A7=function(e,t){return!!_r(e.querySelectorAll("iframe")).some(function(n){return $7(n,t)})},dE=function(e,t){return t===void 0&&(t=dc(tE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:x0(e).some(function(n){return ji(n,t)||A7(n,t)})},R7=function(e){e===void 0&&(e=document);var t=dc(e);return t?_r(e.querySelectorAll("[".concat(QV,"]"))).some(function(n){return ji(n,t)}):!1},M7=function(e,t){return t.filter(lE).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},S0=function(e,t){return lE(e)&&e.name?M7(e,t):e},I7=function(e){var t=new Set;return e.forEach(function(n){return t.add(S0(n,e))}),e.filter(function(n){return t.has(n)})},qS=function(e){return e[0]&&e.length>1?S0(e[0],e):e[0]},XS=function(e,t){return e.indexOf(S0(t,e))},Ng="NEW_FOCUS",N7=function(e,t,n,r,o){var i=e.length,s=e[0],a=e[i-1],l=m0(r);if(!(r&&e.indexOf(r)>=0)){var c=r!==void 0?n.indexOf(r):-1,d=o?n.indexOf(o):c,f=o?e.indexOf(o):-1;if(c===-1)return f!==-1?f:Ng;if(f===-1)return Ng;var p=c-d,g=n.indexOf(s),m=n.indexOf(a),y=I7(n),x=r!==void 0?y.indexOf(r):-1,b=o?y.indexOf(o):x,v=y.filter(function(T){return T.tabIndex>=0}),S=r!==void 0?v.indexOf(r):-1,w=o?v.indexOf(o):S,C=S>=0&&w>=0?w-S:b-x;if(!p&&f>=0||t.length===0)return f;var _=XS(e,t[0]),k=XS(e,t[t.length-1]);if(c<=g&&l&&Math.abs(p)>1)return k;if(c>=m&&l&&Math.abs(p)>1)return _;if(p&&Math.abs(C)>1)return f;if(c<=g)return k;if(c>m)return _;if(p)return Math.abs(p)>1?f:(i+f+p)%i}},D7=function(e){return function(t){var n,r=(n=sE(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},YS=function(e,t,n){var r=e.map(function(i){var s=i.node;return s}),o=GS(r.filter(D7(n)));return o&&o.length?qS(o):qS(GS(t))},Dg=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Dg(e.parentNode.host||e.parentNode,t),t},zh=function(e,t){for(var n=Dg(e),r=Dg(t),o=0;o=0)return i}return!1},fE=function(e,t,n){var r=Fi(e),o=Fi(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(a){s=zh(s||a,a)||s,n.filter(Boolean).forEach(function(l){var c=zh(i,l);c&&(!s||ji(c,s)?s=c:s=zh(c,s))})}),s},QS=function(e,t){return e.reduce(function(n,r){return n.concat(T7(r,t))},[])},z7=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(x7)},L7=function(e,t){var n=dc(Fi(e).length>0?document:tE(e).ownerDocument),r=x0(e).filter(Ig),o=fE(n||e,e,r),i=new Map,s=uc(r,i),a=s.filter(function(m){var y=m.node;return Ig(y)});if(a[0]){var l=uc([o],i).map(function(m){var y=m.node;return y}),c=z7(l,a),d=c.map(function(m){var y=m.node;return y}),f=c.filter(function(m){var y=m.tabIndex;return y>=0}).map(function(m){var y=m.node;return y}),p=N7(d,f,l,n,t);if(p===Ng){var g=YS(s,f,QS(r,i))||YS(s,d,QS(r,i));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:c[p]}},O7=function(e){var t=x0(e).filter(Ig),n=fE(e,e,t),r=g0(ua([n],!0),!0,!0),o=ua(t,!1);return r.map(function(i){var s=i.node,a=i.index;return{node:s,index:a,lockItem:o.indexOf(s)>=0,guard:m0(s)}})},w0=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Lh=0,Oh=!1,pE=function(e,t,n){n===void 0&&(n={});var r=L7(e,t);if(!Oh&&r){if(Lh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Oh=!0,setTimeout(function(){Oh=!1},1);return}Lh++,w0(r.node,n.focusOptions),Lh--}};function Ga(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var B7=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ga(n),parent:Ga(n.parentElement),left:Ga(n.previousElementSibling),right:Ga(n.nextElementSibling)}),n=n.parentElement;return{element:Ga(e),stack:t,ownerDocument:e.ownerDocument}},F7=function(e){var t,n,r,o,i;if(e)for(var s=e.stack,a=e.ownerDocument,l=new Map,c=0,d=s;c-1&&(x.filter(function(v){var S=v.guard,w=v.node;return S&&w.dataset.focusAutoGuard}).forEach(function(v){var S=v.node;return S.removeAttribute("tabIndex")}),JS(b,x.length,1,x),JS(b,-1,-1,x))}}}return t},bE=function(t){cf()&&t&&(t.stopPropagation(),t.preventDefault())},P0=function(){return k0(cf)},iW=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||J7(r,n)},sW=function(){return null},xE=function(){C0=!0},SE=function(){C0=!1,fc="just",k0(function(){fc="meanwhile"})},aW=function(){document.addEventListener("focusin",bE),document.addEventListener("focusout",P0),window.addEventListener("focus",xE),window.addEventListener("blur",SE)},lW=function(){document.removeEventListener("focusin",bE),document.removeEventListener("focusout",P0),window.removeEventListener("focus",xE),window.removeEventListener("blur",SE)};function cW(e){return e.filter(function(t){var n=t.disabled;return!n})}var wE={moveFocusInside:pE,focusInside:dE,focusNextElement:H7,focusPrevElement:K7,focusFirstElement:G7,focusLastElement:q7,captureFocusRestore:hE};function uW(e){var t=e.slice(-1)[0];t&&!Ks&&aW();var n=Ks,r=n&&t&&t.id===n.id;Ks=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Zt=null,(!r||n.observed!==t.observed)&&t.onActivation(wE),cf(),k0(cf)):(lW(),Zt=null)}JT.assignSyncMedium(iW);eE.assignMedium(P0);o7.assignMedium(function(e){return e(wE)});const dW=f7(cW,uW)(sW);var zg=h.forwardRef(function(t,n){return Jt.createElement(h0,Oi({sideCar:dW,ref:n},t))}),kE=h0.propTypes||{};kE.sideCar;YV(kE,["sideCar"]);zg.propTypes={};const fW=zg.default??zg,CE=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=h.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&JR(r.current).length===0&&requestAnimationFrame(()=>{var m;(m=r.current)==null||m.focus()})},[t,r]),f=h.useCallback(()=>{var g;(g=n==null?void 0:n.current)==null||g.focus()},[n]),p=o&&!n;return u.jsx(fW,{crossFrame:c,persistentFocus:l,autoFocus:a,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};CE.displayName="FocusLock";const Ie=O(function(t,n){const r=Pn("FormLabel",t),o=xe(t),{className:i,children:s,requiredIndicator:a=u.jsx(PE,{}),optionalIndicator:l=null,...c}=o,d=Dc(),f=(d==null?void 0:d.getLabelProps(c,n))??{ref:n,...c};return u.jsxs(D.label,{...f,className:B("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[s,d!=null&&d.isRequired?a:l]})});Ie.displayName="FormLabel";const PE=O(function(t,n){const r=Dc(),o=OT();if(!(r!=null&&r.isRequired))return null;const i=B("chakra-form__required-indicator",t.className);return u.jsx(D.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});PE.displayName="RequiredIndicator";const _E=O(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:c,autoRows:d,templateRows:f,autoColumns:p,templateColumns:g,...m}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:p,gridColumn:a,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:g};return u.jsx(D.div,{ref:n,__css:y,...m})});_E.displayName="Grid";const Pa=O(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,c=no(),d=a?hW(a,c):mW(r);return u.jsx(_E,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:d,...l})});Pa.displayName="SimpleGrid";function pW(e){return typeof e=="number"?`${e}px`:e}function hW(e,t){return ty(e,n=>{const r=D9("sizes",n,pW(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function mW(e){return ty(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function rp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=h.Children.toArray(e.path),s=O((a,l)=>u.jsx(yt,{ref:l,viewBox:t,...o,...a,children:i.length?i:u.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const We=O(function(t,n){const{htmlSize:r,...o}=t,i=Oe("Input",o),s=xe(o),a=BT(s),l=B("chakra-input",t.className);return u.jsx(D.input,{size:r,...a,__css:i.field,ref:n,className:l})});We.displayName="Input";We.id="Input";const[gW,vW]=pe({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),TE=O(function(t,n){const r=Oe("Input",t),{children:o,className:i,...s}=xe(t),a=B("chakra-input__group",i),l={},c=Zv(o),d=r.field;c.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=c.map(p=>{var m,y;const g=Jv({size:((m=p.props)==null?void 0:m.size)||t.size,variant:((y=p.props)==null?void 0:y.variant)||t.variant});return p.type.id!=="Input"?h.cloneElement(p,g):h.cloneElement(p,Object.assign(g,l,p.props))});return u.jsx(D.div,{className:a,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...s,children:u.jsx(gW,{value:r,children:f})})});TE.displayName="InputGroup";const yW=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),op=O(function(t,n){const{placement:r="left",...o}=t,i=vW(),s=i.field,l={[r==="left"?"insetStart":"insetEnd"]:"0",width:(s==null?void 0:s.height)??(s==null?void 0:s.h),height:(s==null?void 0:s.height)??(s==null?void 0:s.h),fontSize:s==null?void 0:s.fontSize,...i.element};return u.jsx(yW,{ref:n,__css:l,...o})});op.id="InputElement";op.displayName="InputElement";const _0=O(function(t,n){const{className:r,...o}=t,i=B("chakra-input__left-element",r);return u.jsx(op,{ref:n,placement:"left",className:i,...o})});_0.id="InputLeftElement";_0.displayName="InputLeftElement";const T0=O(function(t,n){const{className:r,...o}=t,i=B("chakra-input__right-element",r);return u.jsx(op,{ref:n,placement:"right",className:i,...o})});T0.id="InputRightElement";T0.displayName="InputRightElement";const Ki=O(function(t,n){const r=Pn("Link",t),{className:o,isExternal:i,...s}=xe(t);return u.jsx(D.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:B("chakra-link",o),...s,__css:r})});Ki.displayName="Link";const[bW,EE]=pe({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ip=O(function(t,n){const r=Oe("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=xe(t),c=Zv(o),f=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return u.jsx(bW,{value:r,children:u.jsx(D.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...f},...l,children:c})})});ip.displayName="List";const xW=O((e,t)=>{const{as:n,...r}=e;return u.jsx(ip,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});xW.displayName="OrderedList";const SW=O(function(t,n){const{as:r,...o}=t;return u.jsx(ip,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});SW.displayName="UnorderedList";const jE=O(function(t,n){const r=EE();return u.jsx(D.li,{ref:n,...t,__css:r.item})});jE.displayName="ListItem";const wW=O(function(t,n){const r=EE();return u.jsx(yt,{ref:n,role:"presentation",...t,__css:r.icon})});wW.displayName="ListIcon";function kW(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=DO(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(c=>c!=null);const[a,l]=h.useState(()=>i.map((c,d)=>({media:c,matches:n?!!s[d]:o().matchMedia(c).matches})));return h.useEffect(()=>{const c=o();l(i.map(p=>({media:p,matches:c.matchMedia(p).matches})));const d=i.map(p=>c.matchMedia(p)),f=p=>{l(g=>g.slice().map(m=>m.media===p.media?{...m,matches:p.matches}:m))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[o]),a.map(c=>c.matches)}function CW(e){var a;const t=vt(e)?e:{fallback:e??"base"},r=no().__breakpoints.details.map(({minMaxQuery:l,breakpoint:c})=>({breakpoint:c,query:l.replace("@media screen and ","")})),o=r.map(l=>l.breakpoint===t.fallback),s=kW(r.map(l=>l.query),{fallback:o,ssr:t.ssr}).findIndex(l=>l==!0);return((a=r[s])==null?void 0:a.breakpoint)??t.fallback}function PW(e,t,n=VP){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function uf(e,t){var a;const n=vt(t)?t:{fallback:t??"base"},r=CW(n),o=no();if(!r)return;const i=Array.from(((a=o.__breakpoints)==null?void 0:a.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(rM(e,i)).map(([l,c])=>[l,c])):e;return PW(s,r,i)}var an="top",Bn="bottom",Fn="right",ln="left",E0="auto",zc=[an,Bn,Fn,ln],da="start",pc="end",_W="clippingParents",$E="viewport",qa="popper",TW="reference",ew=zc.reduce(function(e,t){return e.concat([t+"-"+da,t+"-"+pc])},[]),AE=[].concat(zc,[E0]).reduce(function(e,t){return e.concat([t,t+"-"+da,t+"-"+pc])},[]),EW="beforeRead",jW="read",$W="afterRead",AW="beforeMain",RW="main",MW="afterMain",IW="beforeWrite",NW="write",DW="afterWrite",zW=[EW,jW,$W,AW,RW,MW,IW,NW,DW];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vi(e){var t=xn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function j0(e){if(typeof ShadowRoot>"u")return!1;var t=xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function LW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!Pr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function OW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!Pr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const BW={name:"applyStyles",enabled:!0,phase:"write",fn:LW,effect:OW,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var $i=Math.max,df=Math.min,fa=Math.round;function Lg(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function RE(){return!/^((?!chrome|android).)*safari/i.test(Lg())}function pa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&fa(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fa(r.height)/e.offsetHeight||1);var s=Vi(e)?xn(e):window,a=s.visualViewport,l=!RE()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function $0(e){var t=pa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ME(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&j0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jr(e){return xn(e).getComputedStyle(e)}function FW(e){return["table","td","th"].indexOf(Pr(e))>=0}function Yo(e){return((Vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function sp(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(j0(e)?e.host:null)||Yo(e)}function tw(e){return!Nn(e)||Jr(e).position==="fixed"?null:e.offsetParent}function VW(e){var t=/firefox/i.test(Lg()),n=/Trident/i.test(Lg());if(n&&Nn(e)){var r=Jr(e);if(r.position==="fixed")return null}var o=sp(e);for(j0(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(Pr(o))<0;){var i=Jr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Lc(e){for(var t=xn(e),n=tw(e);n&&FW(n)&&Jr(n).position==="static";)n=tw(n);return n&&(Pr(n)==="html"||Pr(n)==="body"&&Jr(n).position==="static")?t:n||VW(e)||t}function A0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rl(e,t,n){return $i(e,df(t,n))}function WW(e,t,n){var r=Rl(e,t,n);return r>n?n:r}function IE(){return{top:0,right:0,bottom:0,left:0}}function NE(e){return Object.assign({},IE(),e)}function DE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var UW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,NE(typeof t!="number"?t:DE(t,zc))};function HW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=kr(n.placement),l=A0(a),c=[ln,Fn].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var f=UW(o.padding,n),p=$0(i),g=l==="y"?an:ln,m=l==="y"?Bn:Fn,y=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],x=s[l]-n.rects.reference[l],b=Lc(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,w=f[g],C=v-p[d]-f[m],_=v/2-p[d]/2+S,k=Rl(w,_,C),T=l;n.modifiersData[r]=(t={},t[T]=k,t.centerOffset=k-_,t)}}function KW(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ME(t.elements.popper,o)&&(t.elements.arrow=o))}const GW={name:"arrow",enabled:!0,phase:"main",fn:HW,effect:KW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ha(e){return e.split("-")[1]}var qW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XW(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fa(n*o)/o||0,y:fa(r*o)/o||0}}function nw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,m=s.y,y=m===void 0?0:m,x=typeof d=="function"?d({x:g,y}):{x:g,y};g=x.x,y=x.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=ln,w=an,C=window;if(c){var _=Lc(n),k="clientHeight",T="clientWidth";if(_===xn(n)&&(_=Yo(n),Jr(_).position!=="static"&&a==="absolute"&&(k="scrollHeight",T="scrollWidth")),_=_,o===an||(o===ln||o===Fn)&&i===pc){w=Bn;var A=f&&_===C&&C.visualViewport?C.visualViewport.height:_[k];y-=A-r.height,y*=l?1:-1}if(o===ln||(o===an||o===Bn)&&i===pc){S=Fn;var $=f&&_===C&&C.visualViewport?C.visualViewport.width:_[T];g-=$-r.width,g*=l?1:-1}}var L=Object.assign({position:a},c&&qW),X=d===!0?XW({x:g,y},xn(n)):{x:g,y};if(g=X.x,y=X.y,l){var re;return Object.assign({},L,(re={},re[w]=v?"0":"",re[S]=b?"0":"",re.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",re))}return Object.assign({},L,(t={},t[w]=v?y+"px":"",t[S]=b?g+"px":"",t.transform="",t))}function YW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:kr(t.placement),variation:ha(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const QW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YW,data:{}};var ju={passive:!0};function ZW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=xn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,ju)}),a&&l.addEventListener("resize",n.update,ju),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ju)}),a&&l.removeEventListener("resize",n.update,ju)}}const JW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZW,data:{}};var eU={left:"right",right:"left",bottom:"top",top:"bottom"};function vd(e){return e.replace(/left|right|bottom|top/g,function(t){return eU[t]})}var tU={start:"end",end:"start"};function rw(e){return e.replace(/start|end/g,function(t){return tU[t]})}function R0(e){var t=xn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function M0(e){return pa(Yo(e)).left+R0(e).scrollLeft}function nU(e,t){var n=xn(e),r=Yo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=RE();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+M0(e),y:l}}function rU(e){var t,n=Yo(e),r=R0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=$i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=$i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+M0(e),l=-r.scrollTop;return Jr(o||n).direction==="rtl"&&(a+=$i(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function I0(e){var t=Jr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zE(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:Nn(e)&&I0(e)?e:zE(sp(e))}function Ml(e,t){var n;t===void 0&&(t=[]);var r=zE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=xn(r),s=o?[i].concat(i.visualViewport||[],I0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ml(sp(s)))}function Og(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oU(e,t){var n=pa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ow(e,t,n){return t===$E?Og(nU(e,n)):Vi(t)?oU(t,n):Og(rU(Yo(e)))}function iU(e){var t=Ml(sp(e)),n=["absolute","fixed"].indexOf(Jr(e).position)>=0,r=n&&Nn(e)?Lc(e):e;return Vi(r)?t.filter(function(o){return Vi(o)&&ME(o,r)&&Pr(o)!=="body"}):[]}function sU(e,t,n,r){var o=t==="clippingParents"?iU(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var d=ow(e,c,r);return l.top=$i(d.top,l.top),l.right=df(d.right,l.right),l.bottom=df(d.bottom,l.bottom),l.left=$i(d.left,l.left),l},ow(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function LE(e){var t=e.reference,n=e.element,r=e.placement,o=r?kr(r):null,i=r?ha(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case an:l={x:s,y:t.y-n.height};break;case Bn:l={x:s,y:t.y+t.height};break;case Fn:l={x:t.x+t.width,y:a};break;case ln:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?A0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case da:l[c]=l[c]-(t[d]/2-n[d]/2);break;case pc:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function hc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?_W:a,c=n.rootBoundary,d=c===void 0?$E:c,f=n.elementContext,p=f===void 0?qa:f,g=n.altBoundary,m=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,b=NE(typeof x!="number"?x:DE(x,zc)),v=p===qa?TW:qa,S=e.rects.popper,w=e.elements[m?v:p],C=sU(Vi(w)?w:w.contextElement||Yo(e.elements.popper),l,d,s),_=pa(e.elements.reference),k=LE({reference:_,element:S,placement:o}),T=Og(Object.assign({},S,k)),A=p===qa?T:_,$={top:C.top-A.top+b.top,bottom:A.bottom-C.bottom+b.bottom,left:C.left-A.left+b.left,right:A.right-C.right+b.right},L=e.modifiersData.offset;if(p===qa&&L){var X=L[o];Object.keys($).forEach(function(re){var R=[Fn,Bn].indexOf(re)>=0?1:-1,W=[an,Bn].indexOf(re)>=0?"y":"x";$[re]+=X[W]*R})}return $}function aU(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?AE:l,d=ha(r),f=d?a?ew:ew.filter(function(m){return ha(m)===d}):zc,p=f.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=f);var g=p.reduce(function(m,y){return m[y]=hc(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[kr(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function lU(e){if(kr(e)===E0)return[];var t=vd(e);return[rw(e),t,rw(t)]}function cU(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,b=kr(x),v=b===x,S=l||(v||!m?[vd(x)]:lU(x)),w=[x].concat(S).reduce(function(he,de){return he.concat(kr(de)===E0?aU(t,{placement:de,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:y}):de)},[]),C=t.rects.reference,_=t.rects.popper,k=new Map,T=!0,A=w[0],$=0;$=0,W=R?"width":"height",K=hc(t,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),N=R?re?Fn:ln:re?Bn:an;C[W]>_[W]&&(N=vd(N));var z=vd(N),M=[];if(i&&M.push(K[X]<=0),a&&M.push(K[N]<=0,K[z]<=0),M.every(function(he){return he})){A=L,T=!1;break}k.set(L,M)}if(T)for(var V=m?3:1,G=function(de){var me=w.find(function(ze){var ce=k.get(ze);if(ce)return ce.slice(0,de).every(function(q){return q})});if(me)return A=me,"break"},Z=V;Z>0;Z--){var J=G(Z);if(J==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const uU={name:"flip",enabled:!0,phase:"main",fn:cU,requiresIfExists:["offset"],data:{_skip:!1}};function iw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sw(e){return[an,Fn,Bn,ln].some(function(t){return e[t]>=0})}function dU(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=hc(t,{elementContext:"reference"}),a=hc(t,{altBoundary:!0}),l=iw(s,r),c=iw(a,o,i),d=sw(l),f=sw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const fU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dU};function pU(e,t,n){var r=kr(e),o=[ln,an].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[ln,Fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function hU(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=AE.reduce(function(d,f){return d[f]=pU(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const mU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hU};function gU(e){var t=e.state,n=e.name;t.modifiersData[n]=LE({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const vU={name:"popperOffsets",enabled:!0,phase:"read",fn:gU,data:{}};function yU(e){return e==="x"?"y":"x"}function bU(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,x=hc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),b=kr(t.placement),v=ha(t.placement),S=!v,w=A0(b),C=yU(w),_=t.modifiersData.popperOffsets,k=t.rects.reference,T=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,X={x:0,y:0};if(_){if(i){var re,R=w==="y"?an:ln,W=w==="y"?Bn:Fn,K=w==="y"?"height":"width",N=_[w],z=N+x[R],M=N-x[W],V=g?-T[K]/2:0,G=v===da?k[K]:T[K],Z=v===da?-T[K]:-k[K],J=t.elements.arrow,he=g&&J?$0(J):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:IE(),me=de[R],ze=de[W],ce=Rl(0,k[K],he[K]),q=S?k[K]/2-V-ce-me-$.mainAxis:G-ce-me-$.mainAxis,Y=S?-k[K]/2+V+ce+ze+$.mainAxis:Z+ce+ze+$.mainAxis,Se=t.elements.arrow&&Lc(t.elements.arrow),ue=Se?w==="y"?Se.clientTop||0:Se.clientLeft||0:0,ee=(re=L==null?void 0:L[w])!=null?re:0,se=N+q-ee-ue,tt=N+Y-ee,Be=Rl(g?df(z,se):z,N,g?$i(M,tt):M);_[w]=Be,X[w]=Be-N}if(a){var Mt,or=w==="x"?an:ln,Vn=w==="x"?Bn:Fn,Vt=_[C],io=C==="y"?"height":"width",ei=Vt+x[or],Wn=Vt-x[Vn],Yi=[an,ln].indexOf(b)!==-1,ja=(Mt=L==null?void 0:L[C])!=null?Mt:0,Hc=Yi?ei:Vt-k[io]-T[io]-ja+$.altAxis,Kc=Yi?Vt+k[io]+T[io]-ja-$.altAxis:Wn,ti=g&&Yi?WW(Hc,Vt,Kc):Rl(g?Hc:ei,Vt,g?Kc:Wn);_[C]=ti,X[C]=ti-Vt}t.modifiersData[r]=X}}const xU={name:"preventOverflow",enabled:!0,phase:"main",fn:bU,requiresIfExists:["offset"]};function SU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wU(e){return e===xn(e)||!Nn(e)?R0(e):SU(e)}function kU(e){var t=e.getBoundingClientRect(),n=fa(t.width)/e.offsetWidth||1,r=fa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CU(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&kU(t),i=Yo(t),s=pa(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Pr(t)!=="body"||I0(i))&&(a=wU(t)),Nn(t)?(l=pa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=M0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function PU(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function _U(e){var t=PU(e);return zW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function TU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function EU(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var aw={placement:"bottom",modifiers:[],strategy:"absolute"};function lw(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),jt={arrowShadowColor:ns("--popper-arrow-shadow-color"),arrowSize:ns("--popper-arrow-size","8px"),arrowSizeHalf:ns("--popper-arrow-size-half"),arrowBg:ns("--popper-arrow-bg"),transformOrigin:ns("--popper-transform-origin"),arrowOffset:ns("--popper-arrow-offset")};function RU(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const MU={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},IU=e=>MU[e],cw={scroll:!0,resize:!0};function NU(e){let t;return typeof e=="object"?t={enabled:!0,options:{...cw,...e}}:t={enabled:e,options:cw},t}const DU={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},zU={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{uw(e)},effect:({state:e})=>()=>{uw(e)}},uw=e=>{e.elements.popper.style.setProperty(jt.transformOrigin.var,IU(e.placement))},LU={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{OU(e)}},OU=e=>{var n;if(!e.placement)return;const t=BU(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:jt.arrowSize.varRef,height:jt.arrowSize.varRef,zIndex:-1});const r={[jt.arrowSizeHalf.var]:`calc(${jt.arrowSize.varRef} / 2 - 1px)`,[jt.arrowOffset.var]:`calc(${jt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},BU=e=>{if(e.startsWith("top"))return{property:"bottom",value:jt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:jt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:jt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:jt.arrowOffset.varRef}},FU={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{dw(e)},effect:({state:e})=>()=>{dw(e)}},dw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=RU(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:jt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},VU={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},WU={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function UU(e,t="ltr"){var r;const n=((r=VU[e])==null?void 0:r[t])||e;return t==="ltr"?n:WU[e]??n}function HU(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:a,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:g="ltr"}=e,m=h.useRef(null),y=h.useRef(null),x=h.useRef(null),b=UU(r,g),v=h.useRef(()=>{}),S=h.useCallback(()=>{var $;!t||!m.current||!y.current||(($=v.current)==null||$.call(v),x.current=AU(m.current,y.current,{placement:b,modifiers:[FU,LU,zU,{...DU,enabled:!!p},{name:"eventListeners",...NU(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:o}),x.current.forceUpdate(),v.current=x.current.destroy)},[b,t,n,p,s,i,a,l,c,f,d,o]);h.useEffect(()=>()=>{var $;!m.current&&!y.current&&(($=x.current)==null||$.destroy(),x.current=null)},[]);const w=h.useCallback($=>{m.current=$,S()},[S]),C=h.useCallback(($={},L=null)=>({...$,ref:mt(w,L)}),[w]),_=h.useCallback($=>{y.current=$,S()},[S]),k=h.useCallback(($={},L=null)=>({...$,ref:mt(_,L),style:{...$.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,_,p]),T=h.useCallback(($={},L=null)=>{const{size:X,shadowColor:re,bg:R,style:W,...K}=$;return{...K,ref:L,"data-popper-arrow":"",style:KU($)}},[]),A=h.useCallback(($={},L=null)=>({...$,ref:L,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=x.current)==null||$.update()},forceUpdate(){var $;($=x.current)==null||$.forceUpdate()},transformOrigin:jt.transformOrigin.varRef,referenceRef:w,popperRef:_,getPopperProps:k,getArrowProps:T,getArrowInnerProps:A,getReferenceProps:C}}function KU(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}const[cee,uee,dee,fee]=uV(),[pee,GU]=pe({strict:!1,name:"MenuContext"});var qU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rs=new WeakMap,$u=new WeakMap,Au={},Bh=0,OE=function(e){return e&&(e.host||OE(e.parentNode))},XU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=OE(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},YU=function(e,t,n,r){var o=XU(t,Array.isArray(e)?e:[e]);Au[n]||(Au[n]=new WeakMap);var i=Au[n],s=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),m=g!==null&&g!=="false",y=(rs.get(p)||0)+1,x=(i.get(p)||0)+1;rs.set(p,y),i.set(p,x),s.push(p),y===1&&m&&$u.set(p,!0),x===1&&p.setAttribute(n,"true"),m||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),a.clear(),Bh++,function(){s.forEach(function(f){var p=rs.get(f)-1,g=i.get(f)-1;rs.set(f,p),i.set(f,g),p||($u.has(f)||f.removeAttribute(r),$u.delete(f)),g||f.removeAttribute(n)}),Bh--,Bh||(rs=new WeakMap,rs=new WeakMap,$u=new WeakMap,Au={})}},QU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=qU(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),YU(r,o,n,"aria-hidden")):function(){return null}},ZU=Object.defineProperty,JU=(e,t,n)=>t in e?ZU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eH=(e,t,n)=>(JU(e,t+"",n),n);class tH{constructor(){eH(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Bg=new tH;function BE(e,t){const[n,r]=h.useState(0);return h.useEffect(()=>{const o=e.current;if(o){if(t){const i=Bg.add(o);r(i)}return()=>{Bg.remove(o),r(0)}}},[t,e]),n}function nH(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:a,onEsc:l}=e,c=h.useRef(null),d=h.useRef(null),[f,p,g]=oH(r,"chakra-modal","chakra-modal--header","chakra-modal--body");rH(c,t&&s);const m=BE(c,t),y=h.useRef(null),x=h.useCallback(A=>{y.current=A.target},[]),b=h.useCallback(A=>{A.key==="Escape"&&(A.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[v,S]=h.useState(!1),[w,C]=h.useState(!1),_=h.useCallback((A={},$=null)=>({role:"dialog",...A,ref:mt($,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?p:void 0,"aria-describedby":w?g:void 0,onClick:ie(A.onClick,L=>L.stopPropagation())}),[g,w,f,p,v]),k=h.useCallback(A=>{A.stopPropagation(),y.current===A.target&&Bg.isTopModal(c.current)&&(o&&(n==null||n()),a==null||a())},[n,o,a]),T=h.useCallback((A={},$=null)=>({...A,ref:mt($,d),onClick:ie(A.onClick,k),onKeyDown:ie(A.onKeyDown,b),onMouseDown:ie(A.onMouseDown,x)}),[b,x,k]);return{isOpen:t,onClose:n,headerId:p,bodyId:g,setBodyMounted:C,setHeaderMounted:S,dialogRef:c,overlayRef:d,getDialogProps:_,getDialogContainerProps:T,index:m}}function rH(e,t){const n=e.current;h.useEffect(()=>{if(!(!e.current||!t))return QU(e.current)},[t,e,n])}function oH(e,...t){const n=h.useId(),r=e||n;return h.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}const[iH,Gi]=pe({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[sH,Uo]=pe({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),ap=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:g,animatePresenceProps:m,onCloseComplete:y}=t,x=Oe("Modal",t),v={...nH(t),autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:g};return u.jsx(sH,{value:v,children:u.jsx(iH,{value:x,children:u.jsx(to,{...m,onExitComplete:y,children:v.isOpen&&u.jsx(Ca,{...n,children:r})})})})};ap.displayName="Modal";var yd="right-scroll-bar-position",bd="width-before-scroll-bar",aH="with-scroll-bars-hidden",lH="--removed-body-scroll-bar-size",FE=QT(),Fh=function(){},lp=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Fh,onWheelCapture:Fh,onTouchMoveCapture:Fh}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,g=e.noRelative,m=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,S=e.gapMode,w=qT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=GT([n,t]),k=gr(gr({},w),o);return h.createElement(h.Fragment,null,d&&h.createElement(C,{sideCar:FE,removeScrollBar:c,shards:f,noRelative:g,noIsolation:m,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),s?h.cloneElement(h.Children.only(a),gr(gr({},k),{ref:_})):h.createElement(v,gr({},k,{className:l,ref:_}),a))});lp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lp.classNames={fullWidth:bd,zeroRight:yd};var cH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cH();return t&&e.setAttribute("nonce",t),e}function dH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uH())&&(dH(t,n),fH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hH=function(){var e=pH();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},VE=function(){var e=hH(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},mH={left:0,top:0,right:0,gap:0},Vh=function(e){return parseInt(e||"",10)||0},gH=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Vh(n),Vh(r),Vh(o)]},vH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mH;var t=gH(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])}},yH=VE(),qs="data-scroll-locked",bH=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(aH,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(qs,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(yd,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(bd,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(yd," .").concat(yd,` { - right: 0 `).concat(r,`; - } - - .`).concat(bd," .").concat(bd,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(qs,`] { - `).concat(lH,": ").concat(a,`px; - } -`)},fw=function(){var e=parseInt(document.body.getAttribute(qs)||"0",10);return isFinite(e)?e:0},xH=function(){h.useEffect(function(){return document.body.setAttribute(qs,(fw()+1).toString()),function(){var e=fw()-1;e<=0?document.body.removeAttribute(qs):document.body.setAttribute(qs,e.toString())}},[])},SH=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;xH();var i=h.useMemo(function(){return vH(o)},[o]);return h.createElement(yH,{styles:bH(i,!t,o,n?"":"!important")})},Fg=!1;if(typeof window<"u")try{var Ru=Object.defineProperty({},"passive",{get:function(){return Fg=!0,!0}});window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch{Fg=!1}var os=Fg?{passive:!1}:!1,wH=function(e){return e.tagName==="TEXTAREA"},WE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wH(e)&&n[t]==="visible")},kH=function(e){return WE(e,"overflowY")},CH=function(e){return WE(e,"overflowX")},pw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=UE(e,r);if(o){var i=HE(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PH=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_H=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},UE=function(e,t){return e==="v"?kH(t):CH(t)},HE=function(e,t){return e==="v"?PH(t):_H(t)},TH=function(e,t){return e==="h"&&t==="rtl"?-1:1},EH=function(e,t,n,r,o){var i=TH(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),c=!1,d=s>0,f=0,p=0;do{if(!a)break;var g=HE(e,a),m=g[0],y=g[1],x=g[2],b=y-x-i*m;(m||b)&&UE(e,a)&&(f+=b,p+=m);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},Mu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hw=function(e){return[e.deltaX,e.deltaY]},mw=function(e){return e&&"current"in e?e.current:e},jH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$H=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},AH=0,is=[];function RH(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(AH++)[0],i=h.useState(VE)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=n7([e.lockRef.current],(e.shards||[]).map(mw),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var b=Mu(y),v=n.current,S="deltaX"in y?y.deltaX:v[0]-b[0],w="deltaY"in y?y.deltaY:v[1]-b[1],C,_=y.target,k=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in y&&k==="h"&&_.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,$=A?A===_||A.contains(_):!1;if($)return!1;var L=pw(k,_);if(!L)return!0;if(L?C=k:(C=k==="v"?"h":"v",L=pw(k,_)),!L)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=C),!C)return!0;var X=r.current||C;return EH(X,x,y,X==="h"?S:w)},[]),l=h.useCallback(function(y){var x=y;if(!(!is.length||is[is.length-1]!==i)){var b="deltaY"in x?hw(x):Mu(x),v=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&jH(C.delta,b)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(s.current.shards||[]).map(mw).filter(Boolean).filter(function(C){return C.contains(x.target)}),w=S.length>0?a(x,S[0]):!s.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),c=h.useCallback(function(y,x,b,v){var S={name:y,delta:x,target:b,should:v,shadowParent:MH(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=h.useCallback(function(y){n.current=Mu(y),r.current=void 0},[]),f=h.useCallback(function(y){c(y.type,hw(y),y.target,a(y,e.lockRef.current))},[]),p=h.useCallback(function(y){c(y.type,Mu(y),y.target,a(y,e.lockRef.current))},[]);h.useEffect(function(){return is.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,os),document.addEventListener("touchmove",l,os),document.addEventListener("touchstart",d,os),function(){is=is.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,os),document.removeEventListener("touchmove",l,os),document.removeEventListener("touchstart",d,os)}},[]);var g=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(i,{styles:$H(o)}):null,g?h.createElement(SH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const IH=r7(FE,RH);var KE=h.forwardRef(function(e,t){return h.createElement(lp,gr({},e,{ref:t,sideCar:IH}))});KE.classNames=lp.classNames;function GE(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Uo(),[p,g]=Ty();h.useEffect(()=>{!p&&g&&setTimeout(g)},[p,g]);const m=BE(r,f);return u.jsx(CE,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:a,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:u.jsx(KE,{removeScrollBar:!c,allowPinchZoom:s,enabled:m===1&&i,forwardProps:!0,children:e.children})})}const NH={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??tr.exit(Ei.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??tr.enter(Ei.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??tr.exit(Ei.exit,i),...o?{...s,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...s,...r==null?void 0:r.exit}}}}},ko={initial:"initial",animate:"enter",exit:"exit",variants:NH},DH=h.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:a=0,offsetY:l=8,transition:c,transitionEnd:d,delay:f,animatePresenceProps:p,...g}=t,m=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:a,offsetY:l,reverse:i,transition:c,transitionEnd:d,delay:f};return u.jsx(to,{...p,custom:x,children:m&&u.jsx(Cn.div,{ref:n,className:B("chakra-offset-slide",s),custom:x,...ko,animate:y,...g})})});DH.displayName="SlideFade";const zH={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??tr.exit(Ei.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??tr.enter(Ei.enter,n),transitionEnd:e==null?void 0:e.enter})},N0={initial:"exit",animate:"enter",exit:"exit",variants:zH},LH=h.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:a,transition:l,transitionEnd:c,delay:d,animatePresenceProps:f,...p}=t,g=r?o&&r:!0,m=o||r?"enter":"exit",y={initialScale:s,reverse:i,transition:l,transitionEnd:c,delay:d};return u.jsx(to,{...f,custom:y,children:g&&u.jsx(Cn.div,{ref:n,className:B("chakra-offset-slide",a),...N0,animate:m,custom:y,...p})})});LH.displayName="ScaleFade";const OH={slideInBottom:{...ko,custom:{offsetY:16,reverse:!0}},slideInRight:{...ko,custom:{offsetX:16,reverse:!0}},slideInTop:{...ko,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...ko,custom:{offsetX:-16,reverse:!0}},scale:{...N0,custom:{initialScale:.95,reverse:!0}},none:{}},BH=D(Cn.section),FH=e=>OH[e||"none"],qE=h.forwardRef((e,t)=>{const{preset:n,motionProps:r=FH(n),...o}=e;return u.jsx(BH,{ref:t,...r,...o})});qE.displayName="ModalTransition";const D0=O((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l}=Uo(),c=a(s,t),d=l(o),f=B("chakra-modal__content",n),p=Gi(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:y}=Uo();return u.jsx(GE,{children:u.jsx(D.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:m,children:u.jsx(qE,{preset:y,motionProps:i,className:f,...c,__css:g,children:r})})})});D0.displayName="ModalContent";const Oc=O((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Uo();h.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=B("chakra-modal__body",n),a=Gi();return u.jsx(D.div,{ref:t,className:s,id:o,...r,__css:a.body})});Oc.displayName="ModalBody";const cp=O((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Uo(),s=B("chakra-modal__close-btn",r),a=Gi();return u.jsx(tp,{ref:t,__css:a.closeButton,className:s,onClick:ie(n,l=>{l.stopPropagation(),i()}),...o})});cp.displayName="ModalCloseButton";const z0=O((e,t)=>{const{className:n,...r}=e,o=B("chakra-modal__footer",n),i=Gi(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return u.jsx(D.footer,{ref:t,...r,__css:s,className:o})});z0.displayName="ModalFooter";const Bc=O((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Uo();h.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=B("chakra-modal__header",n),a=Gi(),l={flex:0,...a.header};return u.jsx(D.header,{ref:t,className:s,id:o,...r,__css:l})});Bc.displayName="ModalHeader";const VH={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??tr.enter(Ei.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??tr.exit(Ei.exit,n),transitionEnd:t==null?void 0:t.exit})},XE={initial:"exit",animate:"enter",exit:"exit",variants:VH},WH=h.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:a,delay:l,animatePresenceProps:c,...d}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,g={transition:s,transitionEnd:a,delay:l};return u.jsx(to,{...c,custom:g,children:p&&u.jsx(Cn.div,{ref:n,className:B("chakra-fade",i),custom:g,...XE,animate:f,...d})})});WH.displayName="Fade";const UH=D(Cn.div),Fc=O((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,s=B("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Gi().overlay},{motionPreset:c}=Uo(),f=o||(c==="none"?{}:XE);return u.jsx(UH,{...f,__css:l,ref:t,className:s,...i})});Fc.displayName="ModalOverlay";function HH(e){const{leastDestructiveRef:t,...n}=e;return u.jsx(ap,{...n,initialFocusRef:t})}const KH=O((e,t)=>u.jsx(D0,{ref:t,role:"alertdialog",...e})),[GH,qH]=pe(),XH={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function YH(e,t){var n;if(e)return((n=XH[e])==null?void 0:n[t])??e}function YE(e){var c;const{isOpen:t,onClose:n,placement:r="right",children:o,...i}=e,s=no(),a=(c=s.components)==null?void 0:c.Drawer,l=YH(r,s.direction);return u.jsx(GH,{value:{placement:l},children:u.jsx(ap,{isOpen:t,onClose:n,styleConfig:a,...i,children:o})})}const gw={exit:{duration:.15,ease:Or.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},QH={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=Tg({direction:e});return{...o,transition:(t==null?void 0:t.exit)??tr.exit(gw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=Tg({direction:e});return{...o,transition:(n==null?void 0:n.enter)??tr.enter(gw.enter,r),transitionEnd:t==null?void 0:t.enter}}},QE=h.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:a,transition:l,transitionEnd:c,delay:d,motionProps:f,animatePresenceProps:p,...g}=t,m=Tg({direction:r}),y=Object.assign({position:"fixed"},m.position,o),x=i?s&&i:!0,b=s||i?"enter":"exit",v={transitionEnd:c,transition:l,direction:r,delay:d};return u.jsx(to,{...p,custom:v,children:x&&u.jsx(Cn.div,{...g,ref:n,initial:"exit",className:B("chakra-slide",a),animate:b,exit:"exit",custom:v,variants:QH,style:y,...f})})});QE.displayName="Slide";const ZH=D(QE),L0=O((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l,isOpen:c}=Uo(),d=a(s,t),f=l(i),p=B("chakra-modal__content",n),g=Gi(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...g.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...g.dialogContainer},{placement:x}=qH();return u.jsx(GE,{children:u.jsx(D.div,{...f,className:"chakra-modal__content-container",__css:y,children:u.jsx(ZH,{motionProps:o,direction:x,in:c,className:p,...d,__css:m,children:r})})})});L0.displayName="DrawerContent";function JH(e){var n;const t=h.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function eK(e,t,n){return(e-t)*100/(n-t)}Ec({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Ec({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const tK=Ec({"0%":{left:"-40%"},"100%":{left:"100%"}}),nK=Ec({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function rK(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s,role:a="progressbar"}=e,l=eK(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:a},percent:l,value:t}}const[oK,iK]=pe({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),sK=O((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:s,...a}=e,l=rK({value:o,min:n,max:r,isIndeterminate:i,role:s}),d={height:"100%",...iK().filledTrack};return u.jsx(D.div,{ref:t,style:{width:`${l.percent}%`,...a.style},...l.bind,...a,__css:d})}),Vg=O((e,t)=>{var k;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:a,borderRadius:l,isIndeterminate:c,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:g,role:m,...y}=xe(e),x=Oe("Progress",e),b=l??((k=x.track)==null?void 0:k.borderRadius),v={animation:`${nK} 1s linear infinite`},C={...!c&&i&&s&&v,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${tK} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...x.track};return u.jsx(D.div,{ref:t,borderRadius:b,__css:_,...y,children:u.jsxs(oK,{value:x,children:[u.jsx(sK,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:c,css:C,borderRadius:b,title:g,role:m}),a]})})});Vg.displayName="Progress";function aK(e){return e&&vt(e)&&vt(e.target)}function lK(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:i,isFocusable:s,isNative:a,...l}=e,[c,d]=h.useState(r||""),f=typeof n<"u",p=f?n:c,g=h.useRef(null),m=h.useCallback(()=>{const C=g.current;if(!C)return;let _="input:not(:disabled):checked";const k=C.querySelector(_);if(k){k.focus();return}_="input:not(:disabled)";const T=C.querySelector(_);T==null||T.focus()},[]),x=`radio-${h.useId()}`,b=o||x,v=h.useCallback(C=>{const _=aK(C)?C.target.value:C;f||d(_),t==null||t(String(_))},[t,f]),S=h.useCallback((C={},_=null)=>({...C,ref:mt(_,g),role:"radiogroup"}),[]),w=h.useCallback((C={},_=null)=>({...C,ref:_,name:b,[a?"checked":"isChecked"]:p!=null?C.value===p:void 0,onChange(T){v(T)},"data-radiogroup":!0}),[a,b,v,p]);return{getRootProps:S,getRadioProps:w,name:b,ref:g,focus:m,setValue:d,value:p,onChange:v,isDisabled:i,isFocusable:s,htmlProps:l}}const[cK,ZE]=pe({name:"RadioGroupContext",strict:!1}),JE=O((e,t)=>{const{colorScheme:n,size:r,variant:o,children:i,className:s,isDisabled:a,isFocusable:l,...c}=e,{value:d,onChange:f,getRootProps:p,name:g,htmlProps:m}=lK(c),y=h.useMemo(()=>({name:g,size:r,onChange:f,colorScheme:n,value:d,variant:o,isDisabled:a,isFocusable:l}),[g,r,f,n,d,o,a,l]);return u.jsx(cK,{value:y,children:u.jsx(D.div,{...p(m,t),className:B("chakra-radio-group",s),children:i})})});JE.displayName="RadioGroup";function uK(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:i,isRequired:s,onChange:a,isInvalid:l,name:c,value:d,id:f,"data-radiogroup":p,"aria-describedby":g,...m}=e,y=`radio-${h.useId()}`,x=Dc(),v=!!ZE()||!!p;let w=!!x&&!v?x.id:y;w=f??w;const C=o??(x==null?void 0:x.isDisabled),_=i??(x==null?void 0:x.isReadOnly),k=s??(x==null?void 0:x.isRequired),T=l??(x==null?void 0:x.isInvalid),[A,$]=h.useState(!1),[L,X]=h.useState(!1),[re,R]=h.useState(!1),[W,K]=h.useState(!!t),N=typeof n<"u",z=N?n:W,M=h.useRef(!1);h.useEffect(()=>LT(Y=>{M.current=Y}),[]);const V=h.useCallback(Y=>{if(_||C){Y.preventDefault();return}N||K(Y.currentTarget.checked),a==null||a(Y)},[N,C,_,a]),G=h.useCallback(Y=>{Y.key===" "&&R(!0)},[R]),Z=h.useCallback(Y=>{Y.key===" "&&R(!1)},[R]),J=h.useCallback((Y={},Se=null)=>({...Y,ref:Se,"data-active":ne(re),"data-hover":ne(L),"data-disabled":ne(C),"data-invalid":ne(T),"data-checked":ne(z),"data-focus":ne(A),"data-focus-visible":ne(A&&M.current),"data-readonly":ne(_),"aria-hidden":!0,onMouseDown:ie(Y.onMouseDown,()=>R(!0)),onMouseUp:ie(Y.onMouseUp,()=>R(!1)),onMouseEnter:ie(Y.onMouseEnter,()=>X(!0)),onMouseLeave:ie(Y.onMouseLeave,()=>X(!1))}),[re,L,C,T,z,A,_]),{onFocus:he,onBlur:de}=x??{},me=h.useCallback((Y={},Se=null)=>{const ue=C&&!r;return{...Y,id:w,ref:Se,type:"radio",name:c,value:d,onChange:ie(Y.onChange,V),onBlur:ie(de,Y.onBlur,()=>$(!1)),onFocus:ie(he,Y.onFocus,()=>$(!0)),onKeyDown:ie(Y.onKeyDown,G),onKeyUp:ie(Y.onKeyUp,Z),checked:z,disabled:ue,readOnly:_,required:k,"aria-invalid":Vr(T),"aria-disabled":Vr(ue),"aria-required":Vr(k),"data-readonly":ne(_),"aria-describedby":g,style:VT}},[C,r,w,c,d,V,de,he,G,Z,z,_,k,T,g]);return{state:{isInvalid:T,isFocused:A,isChecked:z,isActive:re,isHovered:L,isDisabled:C,isReadOnly:_,isRequired:k},getRadioProps:J,getInputProps:me,getLabelProps:(Y={},Se=null)=>({...Y,ref:Se,onMouseDown:ie(Y.onMouseDown,dK),"data-disabled":ne(C),"data-checked":ne(z),"data-invalid":ne(T)}),getRootProps:(Y,Se=null)=>({htmlFor:w,...Y,ref:Se,"data-disabled":ne(C),"data-checked":ne(z),"data-invalid":ne(T)}),htmlProps:m}}function dK(e){e.preventDefault(),e.stopPropagation()}const Wg=O((e,t)=>{const n=ZE(),{onChange:r,value:o}=e,i=Oe("Radio",{...n,...e}),s=xe(e),{spacing:a="0.5rem",children:l,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=s;let g=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(g=n.value===o);let m=r;n!=null&&n.onChange&&o!=null&&(m=KR(n.onChange,r));const y=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:b,getLabelProps:v,getRootProps:S,htmlProps:w}=uK({...p,isChecked:g,isFocusable:d,isDisabled:c,onChange:m,name:y}),[C,_]=UP(w,QP),k=b(_),T=x(f,t),A=v(),$=Object.assign({},C,S()),L={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},X={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},re={userSelect:"none",marginStart:a,...i.label};return u.jsxs(D.label,{className:"chakra-radio",...$,__css:L,children:[u.jsx("input",{className:"chakra-radio__input",...T}),u.jsx(D.span,{className:"chakra-radio__control",...k,__css:X}),l&&u.jsx(D.span,{className:"chakra-radio__label",...A,__css:re,children:l})]})});Wg.displayName="Radio";const ej=O(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return u.jsxs(D.select,{...s,ref:n,className:B("chakra-select",i),children:[o&&u.jsx("option",{value:"",children:o}),r]})});ej.displayName="SelectField";const tj=O((e,t)=>{var S;const n=Oe("Select",e),{rootProps:r,placeholder:o,icon:i,color:s,height:a,h:l,minH:c,minHeight:d,iconColor:f,iconSize:p,...g}=xe(e),[m,y]=UP(g,QP),x=BT(y),b={width:"100%",height:"fit-content",position:"relative",color:s},v={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return u.jsxs(D.div,{className:"chakra-select__wrapper",__css:b,...m,...r,children:[u.jsx(ej,{ref:t,height:l??a,minH:c??d,placeholder:o,...x,__css:v,children:e.children}),u.jsx(nj,{"data-disabled":ne(x.disabled),...(f||s)&&{color:f||s},__css:n.icon,...p&&{fontSize:p},children:i})]})});tj.displayName="Select";const fK=e=>u.jsx("svg",{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),pK=D("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),nj=e=>{const{children:t=u.jsx(fK,{}),...n}=e,r=h.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return u.jsx(pK,{...n,className:"chakra-select__icon-wrapper",children:h.isValidElement(t)?r:null})};nj.displayName="SelectIcon";const ma=D("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});ma.displayName="Spacer";const rj=e=>u.jsx(D.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});rj.displayName="StackItem";function hK(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":ty(n,o=>r[o])}}const $e=O((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:c,className:d,shouldWrapChildren:f,...p}=e,g=n?"row":r??"column",m=h.useMemo(()=>hK({spacing:s,direction:g}),[s,g]),y=!!c,x=!f&&!y,b=h.useMemo(()=>{const S=Zv(l);return x?S:S.map((w,C)=>{const _=typeof w.key<"u"?w.key:C,k=C+1===S.length,A=f?u.jsx(rj,{children:w},_):w;if(!y)return A;const $=h.cloneElement(c,{__css:m}),L=k?null:$;return u.jsxs(h.Fragment,{children:[A,L]},_)})},[c,m,y,x,f,l]),v=B("chakra-stack",d);return u.jsx(D.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:g,flexWrap:a,gap:y?void 0:s,className:v,...p,children:b})});$e.displayName="Stack";const ve=O((e,t)=>u.jsx($e,{align:"center",...e,direction:"row",ref:t}));ve.displayName="HStack";const ff=O((e,t)=>u.jsx($e,{align:"center",...e,direction:"column",ref:t}));ff.displayName="VStack";const[mK,oj]=pe({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),di=O(function(t,n){const r=Oe("Stat",t),o={position:"relative",flex:"1 1 0%",...r.container},{className:i,children:s,...a}=xe(t);return u.jsx(mK,{value:r,children:u.jsx(D.div,{ref:n,...a,className:B("chakra-stat",i),__css:o,children:u.jsx("dl",{children:s})})})});di.displayName="Stat";const fi=O(function(t,n){const r=oj();return u.jsx(D.dt,{ref:n,...t,className:B("chakra-stat__label",t.className),__css:r.label})});fi.displayName="StatLabel";const fo=O(function(t,n){const r=oj();return u.jsx(D.dd,{ref:n,...t,className:B("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});fo.displayName="StatNumber";const[gK,Qo]=pe({name:"StepContext"}),[vK,qi]=rr("Stepper"),yK=O(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=Qo(),s=qi();return u.jsx(D.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":ne(i),__css:s.step,...t,className:B("chakra-step",t.className)})}),bK=O(function(t,n){const{status:r}=Qo(),o=qi();return u.jsx(D.p,{ref:n,"data-status":r,...t,className:B("chakra-step__description",t.className),__css:o.description})});function xK(e){return u.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function SK(e){const{status:t}=Qo(),n=qi(),r=t==="complete"?xK:void 0;return u.jsx(yt,{as:r,__css:n.icon,...e,className:B("chakra-step__icon",e.className)})}const vw=O(function(t,n){const{children:r,...o}=t,{status:i,index:s}=Qo(),a=qi();return u.jsx(D.div,{ref:n,"data-status":i,__css:a.number,...o,className:B("chakra-step__number",t.className),children:r||s+1})});function wK(e){const{complete:t,incomplete:n,active:r}=e,o=Qo();let i=null;switch(o.status){case"complete":i=Ot(t,o);break;case"incomplete":i=Ot(n,o);break;case"active":i=Ot(r,o);break}return i?u.jsx(u.Fragment,{children:i}):null}const kK=O(function(t,n){const{status:r}=Qo(),o=qi();return u.jsx(D.div,{ref:n,"data-status":r,...t,__css:o.indicator,className:B("chakra-step__indicator",t.className)})}),ij=O(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:s}=Qo(),a=qi();return i&&!s?null:u.jsx(D.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:a.separator,...t,className:B("chakra-step__separator",t.className)})}),CK=O(function(t,n){const{status:r}=Qo(),o=qi();return u.jsx(D.h3,{ref:n,"data-status":r,...t,__css:o.title,className:B("chakra-step__title",t.className)})}),PK=O(function(t,n){const r=Oe("Stepper",t),{children:o,index:i,orientation:s="horizontal",showLastSeparator:a=!1,...l}=xe(t),c=h.Children.toArray(o),d=c.length;function f(p){return pi?"incomplete":"active"}return u.jsx(D.div,{ref:n,"aria-label":"Progress","data-orientation":s,...l,__css:r.stepper,className:B("chakra-stepper",t.className),children:u.jsx(vK,{value:r,children:c.map((p,g)=>u.jsx(gK,{value:{index:g,status:f(g),orientation:s,showLastSeparator:a,count:d,isFirst:g===0,isLast:g===d-1},children:p},g))})})}),xd=O(function(t,n){const r=Oe("Switch",t),{spacing:o="0.5rem",children:i,...s}=xe(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:c,getRootProps:d,getLabelProps:f}=zV(s),p=h.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),g=h.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),m=h.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return u.jsxs(D.label,{...d(),className:B("chakra-switch",t.className),__css:p,children:[u.jsx("input",{className:"chakra-switch__input",...l({},n)}),u.jsx(D.span,{...c(),className:"chakra-switch__track",__css:g,children:u.jsx(D.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),i&&u.jsx(D.span,{className:"chakra-switch__label",...f(),__css:m,children:i})]})});xd.displayName="Switch";const[_K,Vc]=pe({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),up=O((e,t)=>{const n=Oe("Table",e),{className:r,layout:o,...i}=xe(e);return u.jsx(_K,{value:n,children:u.jsx(D.table,{ref:t,__css:{tableLayout:o,...n.table},className:B("chakra-table",r),...i})})});up.displayName="Table";const O0=O((e,t)=>{const{overflow:n,overflowX:r,className:o,...i}=e;return u.jsx(D.div,{ref:t,className:B("chakra-table__container",o),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),B0=O((e,t)=>{const n=Vc();return u.jsx(D.tbody,{...e,ref:t,__css:n.tbody})}),Et=O(({isNumeric:e,...t},n)=>{const r=Vc();return u.jsx(D.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Ut=O(({isNumeric:e,...t},n)=>{const r=Vc();return u.jsx(D.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),F0=O((e,t)=>{const n=Vc();return u.jsx(D.thead,{...e,ref:t,__css:n.thead})}),Lo=O((e,t)=>{const n=Vc();return u.jsx(D.tr,{...e,ref:t,__css:n.tr})});function TK(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function EK(e,t){const n=o=>({...t,...o,position:TK((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=ET(i);return mr.notify(s,i)};return r.update=(o,i)=>{mr.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Ot(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Ot(i.error,a)}))},r.closeAll=mr.closeAll,r.close=mr.close,r.isActive=mr.isActive,r}function Zo(e){const{theme:t}=ST(),n=nV();return h.useMemo(()=>EK(t.direction,{...n,...e}),[e,t.direction,n])}const jK={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Ug=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Sd=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function $K(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:s=o,closeOnEsc:a=!0,onOpen:l,onClose:c,placement:d,id:f,isOpen:p,defaultIsOpen:g,arrowSize:m=10,arrowShadowColor:y,arrowPadding:x,modifiers:b,isDisabled:v,gutter:S,offset:w,direction:C,..._}=e,{isOpen:k,onOpen:T,onClose:A}=Pc({isOpen:p,defaultIsOpen:g,onOpen:l,onClose:c}),{referenceRef:$,getPopperProps:L,getArrowInnerProps:X,getArrowProps:re}=HU({enabled:k,placement:d,arrowPadding:x,modifiers:b,gutter:S,offset:w,direction:C}),R=h.useId(),K=`tooltip-${f??R}`,N=h.useRef(null),z=h.useRef(void 0),M=h.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=void 0)},[]),V=h.useRef(void 0),G=h.useCallback(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),Z=h.useCallback(()=>{G(),A()},[A,G]),J=AK(N,Z),he=h.useCallback(()=>{if(!v&&!z.current){k&&J();const ue=Sd(N);z.current=ue.setTimeout(T,t)}},[J,v,k,T,t]),de=h.useCallback(()=>{M();const ue=Sd(N);V.current=ue.setTimeout(Z,n)},[n,Z,M]),me=h.useCallback(()=>{k&&r&&de()},[r,de,k]),ze=h.useCallback(()=>{k&&s&&de()},[s,de,k]),ce=h.useCallback(ue=>{k&&ue.key==="Escape"&&de()},[k,de]);ed(()=>Ug(N),"keydown",a?ce:void 0),ed(()=>{if(!i)return null;const ue=N.current;if(!ue)return null;const ee=WP(ue);return ee.localName==="body"?Sd(N):ee},"scroll",()=>{k&&i&&Z()},{passive:!0,capture:!0}),h.useEffect(()=>{v&&(M(),k&&A())},[v,k,A,M]),h.useEffect(()=>()=>{M(),G()},[M,G]),ed(()=>N.current,"pointerleave",de);const q=h.useCallback((ue={},ee=null)=>({...ue,ref:mt(N,ee,$),onPointerEnter:ie(ue.onPointerEnter,tt=>{tt.pointerType!=="touch"&&he()}),onClick:ie(ue.onClick,me),onPointerDown:ie(ue.onPointerDown,ze),onFocus:ie(ue.onFocus,he),onBlur:ie(ue.onBlur,de),"aria-describedby":k?K:void 0}),[he,de,ze,k,K,me,$]),Y=h.useCallback((ue={},ee=null)=>L({...ue,style:{...ue.style,[jt.arrowSize.var]:m?`${m}px`:void 0,[jt.arrowShadowColor.var]:y}},ee),[L,m,y]),Se=h.useCallback((ue={},ee=null)=>{const se={...ue.style,position:"relative",transformOrigin:jt.transformOrigin.varRef};return{ref:ee,..._,...ue,id:K,role:"tooltip",style:se}},[_,K]);return{isOpen:k,show:he,hide:de,getTriggerProps:q,getTooltipProps:Se,getTooltipPositionerProps:Y,getArrowProps:re,getArrowInnerProps:X}}const Wh="chakra-ui:close-tooltip";function AK(e,t){return h.useEffect(()=>{const n=Ug(e);return n.addEventListener(Wh,t),()=>n.removeEventListener(Wh,t)},[t,e]),()=>{const n=Ug(e),r=Sd(e);n.dispatchEvent(new r.CustomEvent(Wh))}}const RK=D(Cn.div),V0=O((e,t)=>{const n=Pn("Tooltip",e),r=xe(e),o=no(),{children:i,label:s,shouldWrapChildren:a,"aria-label":l,hasArrow:c,bg:d,portalProps:f,background:p,backgroundColor:g,bgColor:m,motionProps:y,animatePresenceProps:x,...b}=r,v=p??g??d??m;if(v){n.bg=v;const $=s4(o,"colors",v);n[jt.arrowBg.var]=$}const S=$K({...b,direction:o.direction}),w=!h.isValidElement(i)||a;let C;if(w)C=u.jsx(D.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:i});else{const $=h.Children.only(i);C=h.cloneElement($,S.getTriggerProps($.props,JH($)))}const _=!!l,k=S.getTooltipProps({},t),T=_?ey(k,["role","id"]):k,A=FP(k,["role","id"]);return s?u.jsxs(u.Fragment,{children:[C,u.jsx(to,{...x,children:S.isOpen&&u.jsx(Ca,{...f,children:u.jsx(D.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:u.jsxs(RK,{variants:jK,initial:"exit",animate:"enter",exit:"exit",...y,...T,__css:n,children:[s,_&&u.jsx(D.span,{srOnly:!0,...A,children:l}),c&&u.jsx(D.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:u.jsx(D.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):u.jsx(u.Fragment,{children:i})});V0.displayName="Tooltip";const qt=O(function(t,n){const r=Pn("Heading",t),{className:o,...i}=xe(t);return u.jsx(D.h2,{ref:n,className:B("chakra-heading",t.className),...i,__css:r})});qt.displayName="Heading";const le=O(function(t,n){const r=Pn("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=xe(t),c=Jv({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return u.jsx(D.p,{ref:n,className:B("chakra-text",t.className),...c,...l,__css:r})});le.displayName="Text";var un=e=>rp({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});un({displayName:"ChevronUpIcon",path:u.jsx("polyline",{points:"18 15 12 9 6 15"})});un({displayName:"ChevronDownIcon",path:u.jsx("polyline",{points:"6 9 12 15 18 9"})});un({displayName:"ChevronLeftIcon",path:u.jsx("polyline",{points:"15 18 9 12 15 6"})});un({displayName:"ChevronRightIcon",path:u.jsx("polyline",{points:"9 18 15 12 9 6"})});un({displayName:"ChevronDownIcon",path:u.jsxs("g",{fill:"none",children:[u.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),u.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),u.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var MK=un({displayName:"CloseIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});un({displayName:"FilterIcon",path:u.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});un({displayName:"CalendarIcon",path:u.jsxs("g",{children:[u.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),u.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),u.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),u.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});un({displayName:"PlusIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});un({displayName:"MinusIcon",path:u.jsx("g",{children:u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});un({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),u.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});un({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var IK=un({displayName:"SearchIcon",path:u.jsxs("g",{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});un({displayName:"CheckIcon",path:u.jsx("g",{children:u.jsx("polyline",{points:"20 6 9 17 4 12"})})});function kt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return kt(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return kt(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const g=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var NK=kt("app-shell").parts("container","inner","main"),sj=kt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),DK=kt("banner").parts("container","icon","content","title","description","actions","close"),zK=kt("hotkeys").parts("container","group","groupTitle","item","command","then"),LK=kt("loading-overlay").parts("overlay","text"),OK=kt("nav-group").parts("container","title","icon","content"),BK=kt("nav-item").parts("item","link","inner","icon","label"),FK=kt("nprogress").parts("container","bar"),VK=kt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),WK=kt("search-input").parts("input","reset"),UK=kt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");kt("stepper").parts("container","steps","icon","content","title","separator");var HK=kt("structured-list").parts("list","item","button","header","cell","icon"),aj=kt("property").parts("property","label","value"),KK=kt("select").parts("addon","field","element"),GK=kt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:lj,defineMultiStyleConfig:qK}=oe(t2.keys),XK=lj(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),YK=lj({container:{borderRadius:"md"}}),QK=qK({defaultProps:{size:"sm"},baseStyle:YK,variants:{snackbar:XK}}),Nr=e2("badge",["bg","color","shadow","border"]),yw=e=>{const{colorScheme:t,theme:n}=e,r=wt(`${t}.200`,.8)(n);return{[Nr.color.variable]:`colors.${t}.500`,_dark:{[Nr.color.variable]:r},[Nr.shadow.variable]:`inset 0 0 0px 1px ${Nr.color.reference}`}},ZK={variants:{outline:e=>{const t=yw(e);return{...t,_dark:{...t==null?void 0:t._dark,[Nr.shadow.variable]:`inset 0 0 0px 1px ${Nr.border.reference}`,[Nr.color.variable]:`colors.${e.colorScheme}.200`,[Nr.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=yw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[Nr.color.variable]:`colors.${e.colorScheme}.200`}}}}},cj=e=>{const{colorScheme:t}=e;return t==="gray"?{base:H("gray.100","whiteAlpha.300")(e),hover:H("gray.200","whiteAlpha.400")(e),active:H("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:H(`${t}.500`,`${t}.500`)(e),hover:H(`${t}.600`,`${t}.600`)(e),active:H(`${t}.700`,`${t}.700`)(e)}},JK={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},dp=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:o,hover:i,active:s}=cj(e),{color:a=n==="gray"?H("black","white")(e):"white",bg:l=o,hoverBg:c=i,activeBg:d=s}=(t=JK[n])!=null?t:{};return{bg:l,color:a,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:d}}},eG=e=>({shadow:"md",...dp(e)}),uj=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:o}=cj(e);return{...dj(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?o:r}}},dj=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=wt(`${t}.200`,.12)(n),o=wt(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:o}}}},tG=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":H(`${t}.500`,`${t}.200`)(e),o=wt(r,.1)(n),i=wt(r,.16)(n),s=wt(r,.24)(n);return{color:t==="white"?"white":H(`${t}.600`,`${t}.200`)(e),bg:o,_hover:{bg:i},_active:{bg:s}}},nG=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":H(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":H(`${t}.700`,`${t}.500`)(e)}}},rG=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),dp({...e,variant:"solid",colorScheme:t})},oG=e=>dp({...e,variant:"solid"}),iG=e=>uj({...e,variant:"outline"}),sG={defaultProps:{size:"sm"},variants:{solid:dp,ghost:dj,outline:uj,subtle:tG,elevated:eG,link:nG,primary:rG,secondary:oG,tertiary:iG}},{definePartsStyle:Ai,defineMultiStyleConfig:aG}=oe(u2.keys),xi=U("card-bg"),Uh=U("card-padding"),W0=U("card-shadow"),Hh=U("card-radius"),U0=U("card-border-width","0"),Co=U("card-border-color"),lG=Ai(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),cG=Ai(e=>({container:{[xi.variable]:"colors.white",[Co.variable]:"colors.blackAlpha.200",[U0.variable]:"1px",[W0.variable]:"shadows.sm",_dark:{[xi.variable]:"colors.whiteAlpha.200",[Co.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Co.variable]:"colors.blackAlpha.300",_dark:{[Co.variable]:"colors.whiteAlpha.300"}}}})),uG=Ai(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[U0.variable]:"0",[W0.variable]:"none",[xi.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[xi.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[xi.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[xi.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),dG=Ai(e=>{const{colorScheme:t}=e;return{container:{[U0.variable]:"1px",[W0.variable]:"none",[Co.variable]:t?`${t}.500`:"colors.blackAlpha.200",[xi.variable]:"transparent","&.chakra-linkbox:hover":{[Co.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Co.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Co.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),fG={sm:Ai({container:{[Hh.variable]:"radii.base",[Uh.variable]:"space.3"}}),md:Ai({container:{[Hh.variable]:"radii.md",[Uh.variable]:"space.4"}}),lg:Ai({container:{[Hh.variable]:"radii.xl",[Uh.variable]:"space.6"}})},pG=aG({defaultProps:{variant:"elevated"},baseStyle:lG,variants:{elevated:cG,outline:dG,filled:uG},sizes:fG}),{definePartsStyle:hG,defineMultiStyleConfig:mG}=oe(n2.keys),gG=hG(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),vG=mG({baseStyle:gG,defaultProps:{colorScheme:"primary"}}),yG={defaultProps:{size:"sm"}},{definePartsStyle:wd,defineMultiStyleConfig:bG}=oe(iy.keys),Iu=U("input-height"),Nu=U("input-padding"),bw=U("input-border-radius"),fj={sm:wd({field:{[bw.variable]:"radii.md"},group:{[bw.variable]:"radii.md"}}),md:wd({field:{[Nu.variable]:"space.3",[Iu.variable]:"sizes.9"},group:{[Nu.variable]:"space.3",[Iu.variable]:"sizes.9"}}),lg:wd({field:{[Nu.variable]:"space.3",[Iu.variable]:"sizes.10"},group:{[Nu.variable]:"space.3",[Iu.variable]:"sizes.10"}})},pj=wd(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),H0=bG({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:pj},sizes:fj}),xG={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Il=H0,SG=H0,wG={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:pj},sizes:fj},kG={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=Il.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},CG=H0,{definePartsStyle:Br,defineMultiStyleConfig:PG}=oe(iy.keys),js=U("input-height"),$s=U("input-font-size"),As=U("input-padding"),Rs=U("input-border-radius"),_G=Br({addon:{height:js.reference,fontSize:$s.reference,px:As.reference,borderRadius:Rs.reference},field:{width:"100%",height:js.reference,fontSize:$s.reference,px:As.reference,borderRadius:Rs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),co={lg:{[$s.variable]:"fontSizes.lg",[As.variable]:"space.4",[Rs.variable]:"radii.md",[js.variable]:"sizes.12"},md:{[$s.variable]:"fontSizes.md",[As.variable]:"space.4",[Rs.variable]:"radii.md",[js.variable]:"sizes.10"},sm:{[$s.variable]:"fontSizes.sm",[As.variable]:"space.3",[Rs.variable]:"radii.sm",[js.variable]:"sizes.8"},xs:{[$s.variable]:"fontSizes.xs",[As.variable]:"space.2",[Rs.variable]:"radii.sm",[js.variable]:"sizes.6"}},TG={lg:Br({field:co.lg,group:co.lg}),md:Br({field:co.md,group:co.md}),sm:Br({field:co.sm,group:co.sm}),xs:Br({field:co.xs,group:co.xs})};function K0(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||H("blue.500","blue.300")(e),errorBorderColor:n||H("red.500","red.300")(e)}}var EG=Br(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=K0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:H("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r),boxShadow:`0 0 0 1px ${He(t,r)}`},_focusVisible:{zIndex:1,borderColor:He(t,n),boxShadow:`0 0 0 1px ${He(t,n)}`}},addon:{border:"1px solid",borderColor:H("inherit","whiteAlpha.50")(e),bg:H("gray.100","whiteAlpha.300")(e)}}}),jG=Br(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=K0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:H("gray.100","whiteAlpha.50")(e),_hover:{bg:H("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r)},_focusVisible:{bg:"transparent",borderColor:He(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:H("gray.100","whiteAlpha.50")(e)}}}),$G=Br(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=K0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,r),boxShadow:`0px 1px 0px 0px ${He(t,r)}`},_focusVisible:{borderColor:He(t,n),boxShadow:`0px 1px 0px 0px ${He(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),AG=Br({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),RG={outline:EG,filled:jG,flushed:$G,unstyled:AG},Po=PG({baseStyle:_G,sizes:TG,variants:RG,defaultProps:{size:"md",variant:"outline"}}),xw,Sw,MG={...Po,defaultProps:Il.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=Il.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Po.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Po.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Sw=(xw=Po.variants)==null?void 0:xw.unstyled)!=null?Sw:{}},sizes:Il.sizes},IG={defaultProps:{size:"lg"}},NG=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),DG={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:NG}},{definePartsStyle:hj,defineMultiStyleConfig:zG}=oe(o2.keys),LG=hj(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),OG=hj(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),BG=zG({baseStyle:LG,variants:{dialog:OG}}),{definePartsStyle:FG,defineMultiStyleConfig:VG}=oe(i2.keys),WG=FG(e=>({closeButton:{top:4,insetEnd:4}})),UG=VG({baseStyle:WG}),{definePartsStyle:HG,defineMultiStyleConfig:KG}=oe(s2.keys),GG=KG({defaultProps:{colorScheme:"primary"},baseStyle:HG(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:qG,defineMultiStyleConfig:XG}=oe(a2.keys),YG=XG({defaultProps:{colorScheme:"primary"},baseStyle:qG(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:QG,defineMultiStyleConfig:ZG}=oe(l2.keys),JG=ZG({defaultProps:{colorScheme:"primary"},baseStyle:QG(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:eq,defineMultiStyleConfig:tq}=oe(c2.keys),nq=tq({defaultProps:{colorScheme:"primary"},baseStyle:eq(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),Du=it("tooltip-bg"),ww=it("tooltip-fg"),rq=it("popper-arrow-bg"),oq=e=>({display:"flex",[Du.variable]:"colors.white",[ww.variable]:"colors.blackAlpha.900",_dark:{[Du.variable]:"colors.gray.700",[ww.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Du.reference],[rq.variable]:[Du.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),iq={baseStyle:oq},zu=U("stepper-indicator-size"),Ri=U("stepper-accent-color"),Si=U("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:sq,definePartsStyle:_o}=oe(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),aq=_o(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:Si.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Si.variable]:"10px",[Ri.variable]:`colors.${e}.500`,_dark:{[Ri.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:Si.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),lq=_o(e=>({})),cq=_o(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ri.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:Ri.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),uq=_o(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[Ri.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ri.reference,color:`${n}.500`,_dark:{bg:wt(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:Ri.reference,color:`${n}.500`,_dark:{bg:wt(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),dq=sq({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:aq,variants:{outline:lq,solid:cq,subtle:uq},sizes:{xs:_o({stepper:{[zu.variable]:"sizes.4",[Si.variable]:"7px"}}),sm:_o({stepper:{[zu.variable]:"sizes.6",[Si.variable]:"11px"}}),md:_o({stepper:{[zu.variable]:"sizes.7",[Si.variable]:"14px"}}),lg:_o({stepper:{[zu.variable]:"sizes.8",[Si.variable]:"16px"}})}}),{definePartsStyle:fq,defineMultiStyleConfig:pq}=oe(sj.keys),hq=fq(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),mq=pq({baseStyle:hq}),{definePartsStyle:mj,defineMultiStyleConfig:gj}=oe(FK.keys),gq=mj(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),vq=gj({defaultProps:{colorScheme:"teal"},baseStyle:gq}),yq=mj(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),bq=gj({defaultProps:{colorScheme:"primary"},baseStyle:yq}),{defineMultiStyleConfig:xq}=oe(aj.keys),Sq=xq({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),wq={Alert:QK,Badge:ZK,Button:sG,Card:pG,Checkbox:vG,CloseButton:yG,Heading:IG,Kbd:DG,Menu:BG,Modal:UG,Progress:GG,Radio:YG,Slider:JG,Switch:nq,Stepper:dq,Tooltip:iq,Input:Il,PinInput:wG,FormLabel:xG,NumberInput:SG,Select:CG,Textarea:kG,SuiEmptyState:mq,SuiNProgress:bq,SuiProperty:Sq,SuiSelect:MG},{definePartsStyle:kq,defineMultiStyleConfig:Cq}=oe(NK.keys),Pq=kq({container:{},inner:{},main:{}}),_q=Cq({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:Pq}),{definePartsStyle:G0,defineMultiStyleConfig:Tq}=oe(DK.keys),Eq=G0({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),jq=G0(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:wt(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),$q=G0(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),Aq=Tq({baseStyle:Eq,variants:{subtle:jq,solid:$q},defaultProps:{variant:"subtle",colorScheme:"blue"}}),Rq={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:vj,defineMultiStyleConfig:Mq}=oe(sj.keys),Iq=vj(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),Nq=vj(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),Dq=Mq({baseStyle:Iq,variants:{centered:Nq}}),{definePartsStyle:zq,defineMultiStyleConfig:Lq}=oe(r2.keys),Oq=zq({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),Bq=Lq({variants:{horizontal:Oq}}),Fq={defaultProps:{spacing:4}},Vq={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:Wq}=oe(zK.keys),Uq=Wq({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:Hq,definePartsStyle:fp}=oe(LK.keys),Kq=fp({overlay:{p:4}}),Gq=fp(()=>({overlay:{flex:1,height:"100%"}})),qq=fp(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),Xq=fp(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),Yq=Hq({defaultProps:{variant:"fill"},baseStyle:Kq,variants:{fill:Gq,fullscreen:qq,overlay:Xq}}),{definePartsStyle:Qq,defineMultiStyleConfig:Zq}=oe(OK.keys),Jq=Qq(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),eX=Zq({baseStyle:Jq}),{definePartsStyle:Wc,defineMultiStyleConfig:tX}=oe(BK.keys),nX=Wc(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),rX=Wc(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),oX=Wc(e=>{const{colorScheme:t,theme:n}=e,r={bg:wt(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:wt(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),iX=Wc(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),sX=Wc(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),kw,Cw,Pw,_w,aX=tX({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:nX,sizes:{xs:{link:(kw=yi.components.Button.sizes)==null?void 0:kw.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(Cw=yi.components.Button.sizes)==null?void 0:Cw.sm,icon:{me:2,fontSize:"sm"}},md:{link:(Pw=yi.components.Button.sizes)==null?void 0:Pw.md,icon:{me:2,fontSize:"md"}},lg:{link:(_w=yi.components.Button.sizes)==null?void 0:_w.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:rX,subtle:oX,solid:iX,"left-accent":sX}}),{definePartsStyle:po,defineMultiStyleConfig:lX}=oe(VK.keys),Tw=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),cX=po(e=>({details:{minW:0},secondaryLabel:Tw(e),tertiaryLabel:Tw(e)})),uX={"2xs":po({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:po({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:po({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:po({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:po({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:po({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":po({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},dX=lX({defaultProps:{size:"md"},baseStyle:cX,sizes:uX}),{defineMultiStyleConfig:fX}=oe(aj.keys),pX=fX({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:hX}=oe(WK.keys),mX=hX({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:q0,defineMultiStyleConfig:gX}=oe(UK.keys),vX=q0(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),yX=q0(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),bX=q0(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),xX=gX({defaultProps:{variant:"default"},baseStyle:vX,variants:{default:yX,compact:bX}}),{defineMultiStyleConfig:SX}=oe(KK.keys),wX=SX({defaultProps:Po.defaultProps,baseStyle:Po.baseStyle,sizes:Po.sizes,variants:Po.variants}),{definePartsStyle:kX,defineMultiStyleConfig:CX}=oe(HK.keys),PX=kX(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),_X=CX({defaultProps:{size:"md"},baseStyle:PX,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:X0,defineMultiStyleConfig:TX}=oe(GK.keys),Ew=U("timeline-row-start","minmax(0,1fr)"),EX=U("timeline-row-end","minmax(0,1fr)"),jw=U("timeline-col-start","minmax(0,1fr)"),$w=U("timeline-col-end","minmax(0,1fr)"),jX=X0(e=>({container:{display:"flex",[Ew.variable]:"minmax(0,1fr)",[EX.variable]:"minmax(0,1fr)",[jw.variable]:"auto",[$w.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${Ew.reference}`,gridTemplateColumns:`${jw.reference} ${$w.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),$X=X0(e=>({icon:{}})),AX=X0(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),RX=TX({defaultProps:{variant:"solid",size:"sm"},baseStyle:jX,variants:{solid:$X,outline:AX},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),MX={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},IX=Ce("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:NX,definePartsStyle:DX}=oe(IX.keys),Aw=U("navbar-bg"),Rw=U("navbar-text-color","currentColor"),Kh=U("navbar-link-bg","transparent"),zX=["yellow","cyan"],LX=NX({baseStyle:DX(({colorScheme:e})=>{let t="currentColor";return e&&(t=zX.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[Aw.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[Rw.variable]:t,bg:Aw.reference,color:Rw.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:Kh.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[Kh.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[Kh.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),OX={Form:Bq,SuiAppShell:_q,SuiBanner:Aq,SuiCommand:Rq,SuiEmptyState:Dq,SuiFormLayout:Fq,SuiFormLegend:Vq,SuiHotkeys:Uq,SuiStructuredList:_X,SuiLoadingOverlay:Yq,SuiNavGroup:eX,SuiNavItem:aX,SuiPersona:dX,SuiProperty:pX,SuiNProgress:vq,SuiSearchInput:mX,SuiSelect:wX,SuiSidebar:xX,SuiTimeline:RX,SuiIconBadge:MX,SuiNavbar:LX},BX=f0({colors:{primary:yi.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:OX}),FX={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Gh={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Hg={primary:Gh.purple,secondary:Gh.cyan,...Gh},VX={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},WX={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},UX={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},HX={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},KX=HX,GX={outline:`0 0 0 2px ${wt(Hg.primary[500],.6)({colors:Hg})}`},qX=GX,XX={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},YX={colors:Hg,fonts:VX,fontSizes:WX,textStyles:UX,sizes:KX,shadows:qX,semanticTokens:XX},yj=f0({...YX,styles:FX,components:wq},BX);function bj(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function QX(e,t){return e.find(n=>n.id===t)}function xj(e,t){const n=QX(e,t);return n?e.indexOf(n):-1}function ZX(e,t,n=!0){let r=xj(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function JX(e,t,n=!0){let r=xj(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const To=e=>(e==null?void 0:e.ownerDocument)??document,Ho=e=>e&&"window"in e&&e.window===e?e:To(e).defaultView||window;function eY(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function tY(e){return eY(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const nY=typeof Element<"u"&&"checkVisibility"in Element.prototype;function rY(e){const t=Ho(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=Ho(e);let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function oY(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Sj(e,t){return nY?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&rY(e)&&oY(e,t)&&(!e.parentElement||Sj(e.parentElement,e))}const wj=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],iY=wj.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";wj.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function sY(e,t){return e.matches(iY)&&!aY(e)&&((t==null?void 0:t.skipVisibilityCheck)||Sj(e))}function aY(e){let t=e;for(;t!=null;){if(t instanceof Ho(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function kj(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Y0=typeof document<"u"?Jt.useLayoutEffect:()=>{};let Kg=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Kg.delete(e)});function lY(e,t){if(e===t)return e;let n=Kg.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Kg.get(t);return r?(r.forEach(o=>o.current=e),e):t}function cY(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=Mw(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():Mw(e[i],null)})}}}function Mw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t=65&&o.charCodeAt(2)<=90?t[o]=kj(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=uY(i,s):o==="id"&&i&&s?t.id=lY(i,s):o==="ref"&&i&&s?t.ref=cY(i,s):t[o]=s!==void 0?s:i}}return t}function mc(e){if(dY())e.focus({preventScroll:!0});else{let t=fY(e);e.focus(),pY(t)}}let Lu=null;function dY(){if(Lu==null){Lu=!1;try{document.createElement("div").focus({get preventScroll(){return Lu=!0,!0}})}catch{}}return Lu}function fY(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightt.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function gY(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function vY(e){for(;e&&!sY(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=Ho(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,o=d=>{(bt(d)===n||r)&&d.stopImmediatePropagation()},i=d=>{(bt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,mc(n),l()))},s=d=>{(bt(d)===e||r)&&d.stopImmediatePropagation()},a=d=>{(bt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,mc(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),r=!1},c=requestAnimationFrame(l);return l}function pp(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Z0(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function Jo(e){let t=null;return()=>(t==null&&(t=e()),t)}const pf=Jo(function(){return Z0(/^Mac/i)}),yY=Jo(function(){return Z0(/^iPhone/i)}),_j=Jo(function(){return Z0(/^iPad/i)||pf()&&navigator.maxTouchPoints>1}),Tj=Jo(function(){return yY()||_j()}),bY=Jo(function(){return pp(/AppleWebKit/i)&&!xY()}),xY=Jo(function(){return pp(/Chrome/i)}),Ej=Jo(function(){return pp(/Android/i)}),SY=Jo(function(){return pp(/Firefox/i)});let xo=new Map,Gg=new Set;function Iw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let o=bt(r);if(!e(r)||!o)return;let i=xo.get(o);i||(i=new Set,xo.set(o,i),o.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{let o=bt(r);if(!e(r)||!o)return;let i=xo.get(o);if(i&&(i.delete(r.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",n),xo.delete(o)),xo.size===0)){for(let s of Gg)s();Gg.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Iw():document.addEventListener("DOMContentLoaded",Iw));function wY(){for(const[e]of xo)"isConnected"in e&&!e.isConnected&&xo.delete(e)}function kY(e){requestAnimationFrame(()=>{wY(),xo.size===0?e():Gg.add(e)})}let Ms="default",qg="",kd=new WeakMap;function CY(e){if(Tj()){if(Ms==="default"){const t=To(e);qg=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ms="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";kd.set(e,e.style[t]),e.style[t]="none"}}function Nw(e){if(Tj()){if(Ms!=="disabled")return;Ms="restoring",setTimeout(()=>{kY(()=>{if(Ms==="restoring"){const t=To(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=qg||""),qg="",Ms="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&kd.has(e)){let t=kd.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),kd.delete(e)}}function Dw(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let qh=new WeakMap;function PY(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Dw(t);if(qh.has(t))return qh.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof Ho(n).HTMLMetaElement&&(n.nonce||n.content)||Dw(t)||void 0;return r!==void 0&&qh.set(t,r),r}function _Y(e){return e.pointerType===""&&e.isTrusted?!0:Ej()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function TY(e){return!Ej()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function gc(e,t,n=!0){var l,c;let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:s}=t;SY()&&((c=(l=window.event)==null?void 0:l.type)!=null&&c.startsWith("key"))&&e.target==="_blank"&&(pf()?r=!0:o=!0);let a=bY()&&pf()&&!_j()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});gc.isOpening=n,mc(e),e.dispatchEvent(a),gc.isOpening=!1}gc.isOpening=!1;const jj=Jt.createContext({register:()=>{}});jj.displayName="PressResponderContext";const EY=Jt.useInsertionEffect??Y0;function Cd(e){const t=h.useRef(null);return EY(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function $j(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=h.useCallback((o,i,s,a)=>{var c;let l=((c=e.current.get(s))==null?void 0:c.fn)||s;o.removeEventListener(i,l,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function jY(e,t){Y0(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function $Y(e){let t=h.useContext(jj);if(t){let{register:n,ref:r,...o}=t;e=Q0(o,e),n()}return jY(t,e.ref),e}var Xs;class Ou{constructor(t,n,r,o){jb(this,Xs);jp(this,Xs,!0);let i=(o==null?void 0:o.target)??r.currentTarget;const s=i==null?void 0:i.getBoundingClientRect();let a,l=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),s&&(c!=null&&d!=null?(a=c-s.left,l=d-s.top):(a=s.width/2,l=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=l,this.key=r.key}continuePropagation(){jp(this,Xs,!1)}get shouldStopPropagation(){return Eb(this,Xs)}}Xs=new WeakMap;const zw=Symbol("linkClicked"),Lw="react-aria-pressable-style",Ow="data-react-aria-pressable";function AY(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=$Y(e),[m,y]=h.useState(!1),x=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=$j(),S=h.useCallback((R,W)=>{let K=x.current;if(a||K.didFirePressStart)return!1;let N=!0;if(K.isTriggeringEvent=!0,r){let z=new Ou("pressstart",W,R);r(z),N=z.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,y(!0),N},[a,r,n]),w=h.useCallback((R,W,K=!0)=>{let N=x.current;if(!N.didFirePressStart)return!1;N.didFirePressStart=!1,N.isTriggeringEvent=!0;let z=!0;if(o){let M=new Ou("pressend",W,R);o(M),z=M.shouldStopPropagation}if(n&&n(!1),y(!1),t&&K&&!a){let M=new Ou("press",W,R);t(M),z&&(z=M.shouldStopPropagation)}return N.isTriggeringEvent=!1,z},[a,o,n,t]),C=Cd(w),_=h.useCallback((R,W)=>{let K=x.current;if(a)return!1;if(i){K.isTriggeringEvent=!0;let N=new Ou("pressup",W,R);return i(N),K.isTriggeringEvent=!1,N.shouldStopPropagation}return!0},[a,i]),k=Cd(_),T=h.useCallback(R=>{let W=x.current;if(W.isPressed&&W.target){W.didFirePressStart&&W.pointerType!=null&&w(si(W.target,R),W.pointerType,!1),W.isPressed=!1,W.isOverTarget=!1,W.activePointerId=null,W.pointerType=null,v(),f||Nw(W.target);for(let K of W.disposables)K();W.disposables=[]}},[f,v,w]),A=Cd(T);h.useEffect(()=>{a&&x.current.isPressed&&A({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[a]);let $=h.useCallback(R=>{d&&T(R)},[d,T]),L=h.useCallback(R=>{a||s==null||s(R)},[a,s]),X=h.useCallback((R,W)=>{if(!a&&s){let K=new MouseEvent("click",R);gY(K,W),s(mY(K))}},[a,s]),re=h.useMemo(()=>{let R=x.current,W={onKeyDown(N){var z;if(Xh(N.nativeEvent,N.currentTarget)&&lr(N.currentTarget,bt(N))){Bw(bt(N),N.key)&&N.preventDefault();let M=!0;!R.isPressed&&!N.repeat&&(R.target=N.currentTarget,R.isPressed=!0,R.pointerType="keyboard",M=S(N,"keyboard"));let V=N.currentTarget,G=Z=>{Xh(Z,V)&&!Z.repeat&&lr(V,bt(Z))&&R.target&&k(si(R.target,Z),"keyboard")};b(To(N.currentTarget),"keyup",kj(G,K),!0),M&&N.stopPropagation(),N.metaKey&&pf()&&((z=R.metaKeyEvents)==null||z.set(N.key,N.nativeEvent))}else N.key==="Meta"&&(R.metaKeyEvents=new Map)},onClick(N){if(!(N&&!lr(N.currentTarget,bt(N)))&&N&&N.button===0&&!R.isTriggeringEvent&&!gc.isOpening){let z=!0;if(a&&N.preventDefault(),!R.ignoreEmulatedMouseEvents&&!R.isPressed&&(R.pointerType==="virtual"||_Y(N.nativeEvent))){let M=S(N,"virtual"),V=k(N,"virtual"),G=C(N,"virtual");L(N),z=M&&V&&G}else if(R.isPressed&&R.pointerType!=="keyboard"){let M=R.pointerType||N.nativeEvent.pointerType||"virtual",V=k(si(N.currentTarget,N),M),G=C(si(N.currentTarget,N),M,!0);z=V&&G,R.isOverTarget=!1,L(N),A(N)}R.ignoreEmulatedMouseEvents=!1,z&&N.stopPropagation()}}},K=N=>{var z,M,V;if(R.isPressed&&R.target&&Xh(N,R.target)){Bw(bt(N),N.key)&&N.preventDefault();let G=bt(N),Z=lr(R.target,G);C(si(R.target,N),"keyboard",Z),Z&&X(N,R.target),v(),N.key!=="Enter"&&J0(R.target)&&lr(R.target,G)&&!N[zw]&&(N[zw]=!0,gc(R.target,N,!1)),R.isPressed=!1,(z=R.metaKeyEvents)==null||z.delete(N.key)}else if(N.key==="Meta"&&((M=R.metaKeyEvents)!=null&&M.size)){let G=R.metaKeyEvents;R.metaKeyEvents=void 0;for(let Z of G.values())(V=R.target)==null||V.dispatchEvent(new KeyboardEvent("keyup",Z))}};if(typeof PointerEvent<"u"){W.onPointerDown=M=>{if(M.button!==0||!lr(M.currentTarget,bt(M)))return;if(TY(M.nativeEvent)){R.pointerType="virtual";return}R.pointerType=M.pointerType;let V=!0;if(!R.isPressed){R.isPressed=!0,R.isOverTarget=!0,R.activePointerId=M.pointerId,R.target=M.currentTarget,f||CY(R.target),V=S(M,R.pointerType);let G=bt(M);"releasePointerCapture"in G&&("hasPointerCapture"in G?G.hasPointerCapture(M.pointerId)&&G.releasePointerCapture(M.pointerId):G.releasePointerCapture(M.pointerId)),b(To(M.currentTarget),"pointerup",N,!1),b(To(M.currentTarget),"pointercancel",z,!1)}V&&M.stopPropagation()},W.onMouseDown=M=>{if(lr(M.currentTarget,bt(M))&&M.button===0){if(c){let V=vY(M.target);V&&R.disposables.push(V)}M.stopPropagation()}},W.onPointerUp=M=>{!lr(M.currentTarget,bt(M))||R.pointerType==="virtual"||M.button===0&&!R.isPressed&&k(M,R.pointerType||M.pointerType)},W.onPointerEnter=M=>{M.pointerId===R.activePointerId&&R.target&&!R.isOverTarget&&R.pointerType!=null&&(R.isOverTarget=!0,S(si(R.target,M),R.pointerType))},W.onPointerLeave=M=>{M.pointerId===R.activePointerId&&R.target&&R.isOverTarget&&R.pointerType!=null&&(R.isOverTarget=!1,C(si(R.target,M),R.pointerType,!1),$(M))};let N=M=>{if(M.pointerId===R.activePointerId&&R.isPressed&&M.button===0&&R.target){if(lr(R.target,bt(M))&&R.pointerType!=null){let V=!1,G=setTimeout(()=>{R.isPressed&&R.target instanceof HTMLElement&&(V?A(M):(mc(R.target),R.target.click()))},80);b(M.currentTarget,"click",()=>V=!0,!0),R.disposables.push(()=>clearTimeout(G))}else A(M);R.isOverTarget=!1}},z=M=>{A(M)};W.onDragStart=M=>{lr(M.currentTarget,bt(M))&&A(M)}}return W},[b,a,c,v,f,$,S,L,X]);return h.useEffect(()=>{if(!p)return;const R=To(p.current);if(!R||!R.head||R.getElementById(Lw))return;const W=R.createElement("style");W.id=Lw;let K=PY(R);K&&(W.nonce=K),W.textContent=` -@layer { - [${Ow}] { - touch-action: pan-x pan-y pinch-zoom; - } -} - `.trim(),R.head.prepend(W)},[p]),h.useEffect(()=>{let R=x.current;return()=>{f||Nw(R.target??void 0);for(let W of R.disposables)W();R.disposables=[]}},[f]),{isPressed:l||m,pressProps:Q0(g,re,{[Ow]:!0})}}function J0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xh(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Ho(o).HTMLInputElement&&!Aj(o,n)||o instanceof Ho(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&J0(o))&&n!=="Enter")}function si(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function RY(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!J0(e)}function Bw(e,t){return e instanceof HTMLInputElement?!Aj(e,t):RY(e)}const MY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Aj(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":MY.has(e.type)}let IY=0;const Yh=new Map;function NY(e){let[t,n]=h.useState();return Y0(()=>{if(!e)return;let r=Yh.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${IY++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Yh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Yh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const DY=500;function zY(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=DY,accessibilityDescription:s}=e;const a=h.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=$j(),{pressProps:d}=AY({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),To(p.target).activeElement!==p.target&&mc(p.target),o&&o({...p,type:"longpress"}),a.current=void 0},i),p.pointerType==="touch")){let g=y=>{y.preventDefault()},m=Ho(p.target);l(p.target,"contextmenu",g,{once:!0}),l(m,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=NY(o&&!t?s:void 0);return{longPressProps:Q0(d,f)}}function LY(){return typeof window.ResizeObserver<"u"}function OY(e){const{ref:t,box:n,onResize:r}=e;let o=Cd(r);h.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(LY()){const s=new window.ResizeObserver(a=>{a.length&&o()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function BY(e,t){return h.Children.toArray(e).find(n=>n.type===t)}function FY(e,t){return h.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var VY=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],Fw=(e,t)=>{var n;const r=no(),o=VY(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return uf(o,t)},[hee,WY]=rr("SuiEmptyState"),UY=O((e,t)=>{var n;const r=WY();return u.jsx(yt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:B("sui-empty-state__icon",e.className)})});UY.displayName="EmptyStateIcon";var eb=h.createContext({});function HY(e){const{theme:t,linkComponent:n,onError:r,children:o,...i}=e,s={linkComponent:n,onError:r};return u.jsx(eb.Provider,{value:s,children:u.jsx(iV,{...i,theme:t||yj,children:o})})}var KY=()=>h.useContext(eb),GY=e=>u.jsx(D.a,{...e});function tb(){const e=KY();return e!=null&&e.linkComponent?e.linkComponent:GY}var qY=class extends h.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,o,i,s;(o=(r=this.props).onError)==null||o.call(r,t,n),(s=(i=this.context).onError)==null||s.call(i,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||u.jsx("h1",{children:"Something went wrong."}):this.props.children}};qY.contextType=eb;var Rj=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[XY,YY]=pe({strict:!1,errorMessage:"AppShell context not available."}),QY=e=>{const t=Pc(),n=Rj(e.toggleBreakpoint),r=uf(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[ZY]=rr("SuiAppShell"),JY=O((e,t)=>{const n=Oe("SuiAppShell",e),{navbar:r,sidebar:o,aside:i,footer:s,children:a,mainRef:l,...c}=xe(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},g=h.isValidElement(o)&&o.type.id==="Sidebar",m=QY({toggleBreakpoint:g?o==null?void 0:o.props.toggleBreakpoint:void 0});return u.jsx(XY,{value:m,children:u.jsx(ZY,{value:n,children:u.jsxs(At,{ref:t,...c,sx:d,className:B("sui-app-shell",e.className),children:[r,u.jsxs(At,{sx:f,className:"saas-app-shell__inner",children:[o,u.jsx(At,{ref:l,sx:p,className:"saas-app-shell__main",children:a}),i]}),s]})})})});JY.displayName="AppShell";function eQ(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function tQ(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Vw(e){return u.jsx(yt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Bu={enter:{duration:.2,ease:Or.easeOut},exit:{duration:.2,ease:Or.easeIn}},nQ={slideOutTop:{...ko,custom:{offsetY:"-100%",reverse:!0,transition:Bu},initial:"enter"},slideOutBottom:{...ko,custom:{offsetY:"100%",reverse:!0,transition:Bu},initial:"enter"},fade:{...ko,custom:{transition:Bu},initial:"enter"},scale:{...N0,custom:{initialScale:.1,reverse:!0,transition:Bu},initial:"enter"},none:{custom:{}}},rQ=D(Cn.div),oQ=h.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,i={...nQ[n]};return u.jsx(rQ,{ref:t,...i,...r})}),[iQ,Uc]=rr("SuiBanner"),sQ={info:{icon:tQ,colorScheme:"blue"},warning:{icon:Vw,colorScheme:"orange"},success:{icon:eQ,colorScheme:"green"},error:{icon:Vw,colorScheme:"red"}},[aQ,lQ]=pe({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),cQ=O((e,t)=>{var n;const{id:r,status:o="info",isOpen:i=!0,onClose:s,motionPreset:a="slideOutTop",...l}=xe(e),c=(n=e.colorScheme)!=null?n:sQ[o].colorScheme,d=Oe("SuiBanner",{...e,colorScheme:c}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${h.useId()}`,status:o,onClose:s,isOpen:i},g=["warning","error"].includes(o)?"alert":"status",m=i?"enter":"exit";return u.jsx(aQ,{value:p,children:u.jsx(iQ,{value:d,children:u.jsx(to,{children:i&&u.jsx(oQ,{id:p.id,role:g,ref:t,motionPreset:a,animate:m,...l,className:B("sui-banner",e.className),__css:f})})})})});cQ.displayName="Banner";var uQ=O((e,t)=>{const n=Uc();return u.jsx(D.div,{ref:t,...e,className:B("sui-banner__content",e.className),__css:n.content})});uQ.displayName="BannerContent";var dQ=O((e,t)=>{const n=Uc();return u.jsx(D.div,{ref:t,...e,className:B("sui-banner__title",e.className),__css:n.title})});dQ.displayName="BannerTitle";var fQ=O((e,t)=>{const r={display:"inline",...Uc().description};return u.jsx(D.div,{ref:t,...e,className:B("sui-banner__desc",e.className),__css:r})});fQ.displayName="BannerDescription";var pQ=O((e,t)=>{const{children:n,variant:r}=e,o=Uc();return u.jsx(D.div,{ref:t,...e,className:B("sui-banner__actions",e.className),__css:o.actions,children:u.jsx(c0,{variant:r,children:n})})});pQ.displayName="BannerActions";var hQ=O((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i,isOpen:s,id:a}=lQ(),l=B("sui-banner__close-btn",r),c=Uc();return u.jsx(tp,{ref:t,__css:c.closeButton,className:l,onClick:ie(n,d=>{d.stopPropagation(),i==null||i()}),"aria-controls":a,"aria-expanded":s!=null&&s.toString()?"true":"false",...o})});hQ.displayName="BannerCloseButton";pe({name:"UseCollapseReturn"});var[mQ,nb]=rr("SuiStructuredList"),[gQ,vQ]=pe({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function yQ(e){return bj(e,"[role='button']:not([disabled])")}var bQ=e=>{var t;const n=h.useId(),r=h.useRef(null),[o,i]=h.useState(null),s={onBlur:ie(e.onBlur,a=>{a.relatedTarget&&(yQ(r.current).includes(a.relatedTarget)||i(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:o,setFocusId:i,listProps:s}},xQ=O((e,t)=>{const{items:n,children:r,...o}=e,i=Oe("SuiStructuredList",o),s=xe(o);let a;n?a=n.map((f,p)=>h.createElement(Mj,{...f,key:f.id||p})):a=r;const l={py:2,position:"relative",...i.list},{listProps:c,...d}=bQ(e);return u.jsx(gQ,{value:d,children:u.jsx(mQ,{value:i,children:u.jsx(D.ul,{ref:ny(t,d.containerRef),__css:l,...s,...c,className:B("sui-list",e.className),children:a})})})});xQ.displayName="StructuredList";var SQ=O((e,t)=>{const{children:n,onClick:r,action:o,role:i="heading",level:s=1,...a}=e,l=nb();return u.jsxs(D.li,{ref:t,__css:l.header,onClick:r,...a,className:B("sui-list__header",e.className),children:[u.jsx(D.span,{flex:"1",userSelect:"none",role:i,"aria-level":s,children:n}),o]})});SQ.displayName="StructuredListHeader";var Mj=O((e,t)=>{const{onClick:n,href:r,as:o,children:i,isDisabled:s,...a}=e,l=nb(),c=!!(n||r),d=c?Ij:h.Fragment,f=!!c,p={...l.item,...f?{py:0,px:0}:{}},g=c?{onClick:n,href:r,as:o,isDisabled:s}:{},m=c?u.jsx(d,{...g,children:i}):i;return u.jsx(D.li,{ref:t,__css:p,...a,className:B("sui-list__item",e.className),children:m})});Mj.displayName="StructuredListItem";var wQ=e=>{var t;const{id:n,containerRef:r,focusId:o,setFocusId:i}=vQ(),s=`${n}-${h.useId()}`,a=(t=e.id)!=null?t:s,l=o===a;function c(){return bj(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:a,"data-focus":ne(l),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:ie(e.onFocus,()=>{i(a)}),onKeyDown:ie(e.onKeyDown,h.useCallback(f=>{const p=c(),g={ArrowUp:()=>{var m;(m=JX(p,a))==null||m.focus()},ArrowDown:()=>{var m;(m=ZX(p,a))==null||m.focus()},Home:()=>{var m;(m=p[0])==null||m.focus()},End:()=>{var m;(m=p[p.length-1])==null||m.focus()}};g[f.key]&&(f.preventDefault(),g[f.key](f))},[a])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},Ij=O((e,t)=>{const{children:n,isDisabled:r,...o}=e,{buttonProps:i}=wQ(e),s=nb();return u.jsx(D.div,{ref:t,__css:s.button,role:"button",...o,...i,className:B("sui-list__item-button",e.className),children:n})});Ij.displayName="StructuredListButton";var kQ=O((e,t)=>{const n=tb(),{href:r,...o}=e;return u.jsx(Ki,{as:n,ref:t,href:r,...o})});kQ.displayName="Link";rr("SuiLoadingOverlay");D(Cn.div);var CQ=typeof window<"u";function Ww(e){return CQ?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var PQ=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=h.useRef(o?Ww(t==null?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const l=Ww(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,s=null};return h.useEffect(()=>{if(!o)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current},[mee,_Q]=pe({name:"UseContextMenuContext",strict:!1}),Uw=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),TQ=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,EQ=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:o,anchor:i}=_Q(),s=GU(),{popper:a,openAndFocusFirstItem:l}=s,{longPressProps:c}=zY({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:g=>{o()},onLongPress:g=>{g.pointerType!=="mouse"&&g.type==="longpress"&&(r(g),l())}}),d=h.useRef({getBoundingClientRect:Uw(i.x,i.y)});return h.useEffect(()=>{a.referenceRef(d.current)},[]),h.useEffect(()=>{d.current.getBoundingClientRect=Uw(i.x,i.y),s.popper.update()},[i]),{triggerProps:{...c,onPointerDown:g=>{var m;g.pointerType!=="mouse"&&((m=c.onPointerDown)==null||m.call(c,g))},onMouseDown:g=>{var m;TQ()&&((m=c.onMouseDown)==null||m.call(c,g))},onContextMenu:ie(g=>{g.preventDefault(),r(g),l()},e.onContextMenu),ref:mt(n,t)}}},jQ=O((e,t)=>{const{children:n,longPressDisabled:r,...o}=e,{triggerProps:i}=EQ(e,t);return u.jsx(D.span,{...o,sx:{WebkitTouchCallout:"none"},...i,children:n})});jQ.displayName="ContextMenuTrigger";var[$Q,hp]=rr("SuiPersona"),Hw={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},AQ={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},RQ=O((e,t)=>{const{children:n,...r}=e,o=Oe("SuiPersona",e),i=xe(r),a={...{display:"flex",flexDirection:"row",alignItems:"center"},...o.container};return u.jsx($Q,{value:o,children:u.jsx(D.div,{ref:t,__css:a,...i,className:B("sui-persona",e.className),children:n})})});RQ.displayName="PersonaContainer";var MQ=O((e,t)=>{var n,r,o,i,s;const{name:a,presence:l,presenceLabel:c,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:g,getInitials:m,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:C,..._}=e,k={};let T;const A=no(),$=((n=A.colors)==null?void 0:n.presence)||AQ,L=!!((o=(r=A.semanticTokens)==null?void 0:r.colors)!=null&&o["presence.online"]);if(l){const X=c||((i=Hw[l])==null?void 0:i.label),re=L?((s=Hw[l])==null?void 0:s.color)||`presence.${l}`:$[l];f?(k.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:re,borderRadius:"50%",boxSizing:"border-box"}},k.borderWidth="0.15em",k.bg=cg("white","gray.800")):k.bg=re,T=u.jsx(IT,{boxSize:p,...k,children:d}),X&&(T=u.jsx(V0,{label:X,children:T}))}return u.jsx(l0,{ref:t,name:a,size:g,getInitials:m,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:C,..._,children:T})});MQ.displayName="PersonaAvatar";var IQ=O((e,t)=>{const{children:n,className:r,...o}=e,i=hp(),a={...{display:"flex",flexDirection:"column"},...i.details};return u.jsx(D.div,{ref:t,...o,__css:a,className:B("sui-persona__details",r),children:n})});IQ.displayName="PersonaDetails";var NQ=O((e,t)=>{const n=hp();return u.jsx(D.span,{ref:t,...e,__css:n.label,className:B("sui-persona__label",e.className)})});NQ.displayName="PersonaLabel";var DQ=O((e,t)=>{const n=hp();return u.jsx(D.span,{ref:t,...e,__css:n.secondaryLabel,className:B("sui-persona__secondary-label",e.className)})});DQ.displayName="PersonaSecondaryLabel";var zQ=O((e,t)=>{const n=hp();return u.jsx(D.span,{ref:t,...e,__css:n.tertiaryLabel,className:B("sui-persona__tertiary-label",e.className)})});zQ.displayName="PersonaTertiaryLabel";var[LQ,Nj]=rr("SuiProperty"),OQ=O((e,t)=>{const n=Oe("SuiProperty",e),{children:r,label:o,value:i,labelWidth:s,spacing:a,...l}=xe(e),c={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return u.jsx(LQ,{value:n,children:u.jsxs(D.dl,{ref:t,__css:c,...l,className:B("sui-property",e.className),children:[o&&u.jsx(Dj,{width:s,minWidth:s,marginEnd:a,children:o}),i&&u.jsx(zj,{children:i}),r]})})});OQ.displayName="Property";var Dj=O((e,t)=>{const n=Nj(),{children:r,noOfLines:o=1,width:i,minWidth:s,...a}=e,l={display:"flex",flexDirection:"row",...n.label};return i&&(l.minWidth=s||"auto",l.width=i),u.jsx(D.dt,{ref:t,__css:l,...a,className:B("sui-property__label",e.className),children:u.jsx(D.span,{flex:"1",noOfLines:o,children:r})})});Dj.displayName="PropertyLabel";var zj=O((e,t)=>{const n=Nj(),{children:r,...o}=e,i={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return u.jsx(D.dd,{ref:t,__css:i,...o,className:B("sui-property__value",e.className),children:r})});zj.displayName="PropertyValue";function BQ(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:o=!1,disableScrollHandler:i=!1,onScrollPositionChange:s,motionProps:a,...l}=e,c=h.useRef(null);h.useImperativeHandle(t,()=>c.current);const d=h.useRef(0),f=h.useRef(0),[p,g]=h.useState(!1),m=()=>{if(c.current){const x=c.current.offsetWidth;x!==d.current&&(d.current=x)}};return OY({ref:c,onResize:()=>{var x;((x=c.current)==null?void 0:x.offsetWidth)!==d.current&&m()}}),h.useEffect(()=>{var x;m(),f.current=((x=c.current)==null?void 0:x.offsetHeight)||0},[]),PQ({elementRef:n,isEnabled:o||!i,callback:({prevPos:x,currPos:b})=>{s==null||s(b.y),o&&g(v=>{const S=b.y>x.y&&b.y>f.current;return S!==v?S:v})}}),{containerRef:c,height:r,isHidden:p,shouldHideOnScroll:o,motionProps:a,getContainerProps:(x={})=>({...l,...a,"data-hidden":ne(p),ref:c,style:{"--navbar-height":r,...l.style,...x==null?void 0:x.style}})}}var[FQ]=pe({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[VQ,mp]=pe({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),WQ=D(Cn.nav),UQ=O((e,t)=>{const{children:n,...r}=e,o=BQ({...r,ref:t}),i=Oe("SuiNavbar",e),s=u.jsx(D.header,{__css:i.inner,className:"sui-navbar__inner",children:n}),a={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...i.container};return u.jsx(VQ,{value:i,children:u.jsx(FQ,{value:o,children:u.jsx(WQ,{__css:a,animate:o.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:B("sui-navbar",e.className),...o.getContainerProps(e),children:s})})})});UQ.displayName="Navbar";var HQ=O((e,t)=>{const{className:n,children:r,...o}=e,i=mp();return u.jsx(D.div,{ref:t,__css:i.brand,className:B("sui-navbar__brand"),...o,children:r})});HQ.displayName="NavbarBrand";var KQ=O((e,t)=>{const{className:n,children:r,spacing:o=0,...i}=e,a={...mp().content,"& > *:not(style) ~ *:not(style)":{marginStart:o}};return u.jsx(D.ul,{ref:t,__css:a,className:B("sui-navbar__content",n),...i,children:r})});KQ.displayName="NavbarContent";var GQ=O((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,s=mp();return u.jsx(D.li,{ref:t,__css:s.item,className:B("sui-navbar__item",n),"data-active":ne(o),...i,children:r})});GQ.displayName="NavbarItem";var qQ=O((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,s=tb(),a=mp();return u.jsx(D.a,{as:s,ref:t,__css:a.link,"data-active":ne(o),className:B("sui-navbar__link",n),...i,children:r})});qQ.displayName="NavbarLink";var[XQ,YQ]=pe({name:"SidebarContext",strict:!1}),[QQ]=pe({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),ZQ=D(Cn.nav),JQ={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},Lj=O((e,t)=>{var n,r,o;const i=Oe("SuiSidebar",e),a=(n=no().components.SuiSidebar)==null?void 0:n.defaultProps,l=Fw((r=e.variant)!=null?r:a==null?void 0:a.variant,{fallback:"base"}),c=Fw((o=e.size)!=null?o:a==null?void 0:a.size,{fallback:"base"}),d=l==="compact",{spacing:f=4,children:p,toggleBreakpoint:g="lg",className:m,motionPreset:y="slideInOut",isOpen:x,onOpen:b,onClose:v,...S}=xe(e),w=YY(),C=Rj(g),_=uf(C,{fallback:void 0}),k=uf(C),T=typeof _>"u",A=typeof x<"u",$=(_||A)&&!d,L=Pc({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:b||(w==null?void 0:w.openSidebar),onClose:v||(w==null?void 0:w.closeSidebar)}),{isOpen:X,onClose:re,onOpen:R}=L;h.useEffect(()=>{T&&k||d||A||(k?re():R())},[T,d,k]);const W={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",..._&&$?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},K={...L,breakpoints:C,isMobile:_,variant:l,size:c},N=JQ[d?"none":y||"none"];return u.jsx(XQ,{value:K,children:u.jsx(QQ,{value:i,children:u.jsx(ZQ,{ref:t,initial:!1,animate:!T&&(!$||X?"enter":"exit"),variants:N,__css:{...W,...i.container},...S,id:L.getDisclosureProps().id,className:B("sui-sidebar",m),"data-compact":ne(d),"data-collapsible":ne(_&&$),children:p})})})});Lj.displayName="Sidebar";Lj.id="Sidebar";pe({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[eZ,Oj]=pe({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),Bj=O(({children:e,...t},n)=>{const r=Oj();return u.jsx(D.span,{ref:n,__css:r.label,...t,className:B("sui-nav-item__label",t.className),children:e})});Bj.displayName="NavItemLabel";var Fj=e=>{const t=Oj(),{className:n,children:r,...o}=e,i=h.Children.only(r),s=h.isValidElement(i)?h.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return u.jsx(D.span,{...o,className:B("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:s})};Fj.displayName="NavItemIcon";var tZ=O((e,t)=>{const{as:n,href:r,icon:o,inset:i,className:s,tooltipProps:a,isActive:l,children:c,...d}=xe(e),f=tb(),{onClose:p,variant:g}=YQ()||{},m=g==="compact",y=Oe("SuiNavItem",e);let x=c,b=a==null?void 0:a.label;typeof x=="string"&&(!b&&m&&(b=x),x=u.jsx(Bj,{children:x}));let v=n;r&&!n&&(v=f);const S=u.jsx(D.a,{as:v,"aria-current":l?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":ne(l),__css:y.link,children:u.jsxs(D.span,{__css:{...y.inner,pl:i},className:"sui-nav-item__inner",children:[o&&u.jsx(Fj,{children:o}),x]})});return u.jsx(eZ,{value:y,children:u.jsx(V0,{label:b,placement:"right",openDelay:400,...a,children:u.jsx(D.div,{__css:y.item,onClick:p,"data-compact":ne(m),className:B("sui-nav-item",s),children:S})})})});tZ.displayName="NavItem";var nZ=O((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:o,size:i,variant:s,width:a,icon:l,resetIcon:c,rightElement:d,onChange:f,onReset:p,onKeyDown:g,...m}=e,y=Oe("SuiSearchInput",e),x=h.useRef(null),[b,v]=HP({value:r,defaultValue:o}),S=h.useCallback(T=>{v(T.target.value)},[v]),w=h.useCallback(T=>{T.key==="Escape"&&(v(""),C())},[p,v]),C=()=>{var T;v(""),p==null||p(),(T=x.current)==null||T.focus()},_=i==="lg"?"sm":"xs",k=b&&!e.isDisabled;return u.jsxs(TE,{size:i,width:a,children:[u.jsx(_0,{children:l||u.jsx(IK,{})}),u.jsx(We,{type:"text",placeholder:n,variant:s,size:i,value:b,ref:ny(t,x),sx:y.input,onChange:ie(S,f),onKeyDown:ie(w,g),...m}),u.jsx(T0,{children:k?u.jsx(zo,{onClick:C,size:_,variant:"ghost","aria-label":"Reset search",icon:c||u.jsx(MK,{}),sx:y.reset}):d})]})});nZ.displayName="SearchInput";var[rZ,oZ]=pe({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function iZ(e){const{step:t,onChange:n}=e,[r,o]=h.useState(0),i=h.useRef([]),[,s]=h.useState(Date.now()),a=h.useCallback(g=>{const m=[...i.current];m.indexOf(g)===-1&&m.push(g),i.current=m,s(Date.now())},[i,s]),l=g=>{i.current=i.current.slice(i.current.indexOf(g),1)},c=g=>{const m=i.current.indexOf(g);m!==-1&&o(m)},d=()=>{o(r+1)},f=()=>{o(r-1)};return h.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?o(t):r===-1&&o(0)},[t]),h.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:i,activeStep:i.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===i.current.length-1,isCompleted:r>=i.current.length,setIndex:o,setStep:c,nextStep:d,prevStep:f,registerStep:a,unregisterStep:l}}function sZ(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:i,activeStep:s}=oZ();return h.useEffect(()=>{if(t)return o(t),()=>{i(t)}},[]),{isActive:t?s===t:n,isCompleted:r}}var[aZ,lZ]=rr("Stepper"),cZ=O((e,t)=>{var n,r,o,i;const{children:s,orientation:a="horizontal",index:l,step:c,onChange:d,variant:f,colorScheme:p,size:g,stepperProps:m,...y}=e,x=Oe("Stepper",e),b=iZ({step:c??l,onChange:d}),{activeIndex:v}=b,S=a==="vertical",w=FY(s,Vj),C={position:"relative",...x.item},_=w.reduce(($,L,X,re)=>{const R=h.cloneElement(L,{key:X,...L.props,isActive:v===X,isCompleted:L.props.isCompleted||v>X});return S?$.push(u.jsxs(D.div,{className:"sui-steps__item",__css:C,children:[R,u.jsx(Xg,{isOpen:v===X,orientation:a,children:L.props.children}),X=w.length?k:!S&&T?u.jsx(Xg,{orientation:a,children:(i=(o=w[v])==null?void 0:o.props)==null?void 0:i.children}):null;return u.jsx(aZ,{value:x,children:u.jsx(rZ,{value:b,children:u.jsxs(D.div,{ref:t,__css:x.container,...y,className:B("sui-steps",e.className),children:[u.jsx(PK,{index:v,orientation:a,variant:f,colorScheme:p,size:g,...m,children:_}),A]})})})});cZ.displayName="Steps";var Vj=e=>{const{render:t,icon:n,title:r,description:o,...i}=e,s=sZ(i);return t?t({...s,...e}):u.jsxs(yK,{children:[u.jsx(kK,{children:u.jsx(wK,{complete:u.jsx(SK,{}),incomplete:u.jsx(vw,{children:n}),active:u.jsx(vw,{})})}),u.jsxs(be,{flexShrink:"0",children:[u.jsx(CK,{children:r}),o&&u.jsx(bK,{children:o})]}),u.jsx(ij,{})]})};Vj.displayName="StepsItem";var Xg=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...o}=e,i=lZ();return u.jsx(D.div,{...o,__css:i.content,className:B("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?u.jsx(np,{in:n,style:{overflow:n?"visible":"hidden"},children:u.jsx(D.div,{p:"2px",children:n?t:null})}):t})};Xg.displayName="StepsContent";var Wj=e=>{const t={};return u.jsx(D.div,{__css:t,...e,className:B("sui-steps__completed",e.className)})};Wj.displayName="StepsCompleted";var[gee,uZ]=rr("SuiTimeline"),dZ=O((e,t)=>{const{children:n,...r}=e,o=uZ();return u.jsx(D.li,{...r,ref:t,__css:o.item,className:B("sui-timeline__item",e.className),children:n})});dZ.displayName="TimelineItem";O((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=Pn("SuiIconBadge",e),l=xe(s),c=n||r,d=h.isValidElement(c)?h.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...a};return u.jsx(D.div,{ref:t,__css:f,borderRadius:o?"full":void 0,"aria-label":i,...l,className:B("sui-icon-badge",e.className),children:d})});/** - * @remix-run/router v1.23.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function rb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pZ(){return Math.random().toString(36).substr(2,8)}function Gw(e,t){return{usr:e.state,key:e.key,idx:t}}function Yg(e,t,n,r){return n===void 0&&(n=null),vc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_a(t):t,{state:n,key:t&&t.key||r||pZ()})}function hf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _a(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hZ(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Eo.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(vc({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=Eo.Pop;let x=d(),b=x==null?null:x-c;c=x,l&&l({action:a,location:y.location,delta:b})}function p(x,b){a=Eo.Push;let v=Yg(y.location,x,b);c=d()+1;let S=Gw(v,c),w=y.createHref(v);try{s.pushState(S,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(w)}i&&l&&l({action:a,location:y.location,delta:1})}function g(x,b){a=Eo.Replace;let v=Yg(y.location,x,b);c=d();let S=Gw(v,c),w=y.createHref(v);s.replaceState(S,"",w),i&&l&&l({action:a,location:y.location,delta:0})}function m(x){let b=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof x=="string"?x:hf(x);return v=v.replace(/ $/,"%20"),Je(b,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,b)}let y={get action(){return a},get location(){return e(o,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Kw,f),l=x,()=>{o.removeEventListener(Kw,f),l=null}},createHref(x){return t(o,x)},createURL:m,encodeLocation(x){let b=m(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:g,go(x){return s.go(x)}};return y}var qw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qw||(qw={}));function mZ(e,t,n){return n===void 0&&(n="/"),gZ(e,t,n)}function gZ(e,t,n,r){let o=typeof t=="string"?_a(t):t,i=ga(o.pathname||"/",n);if(i==null)return null;let s=Uj(e);vZ(s);let a=null,l=EZ(i);for(let c=0;a==null&&c{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Je(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Oo([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Je(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Uj(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:CZ(c,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Hj(i.path))o(i,s,l)}),t}function Hj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Hj(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function vZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:PZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yZ=/^:[\w-]+$/,bZ=3,xZ=2,SZ=1,wZ=10,kZ=-2,Xw=e=>e==="*";function CZ(e,t){let n=e.split("/"),r=n.length;return n.some(Xw)&&(r+=kZ),t&&(r+=xZ),n.filter(o=>!Xw(o)).reduce((o,i)=>o+(yZ.test(i)?bZ:i===""?SZ:wZ),r)}function PZ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function _Z(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=a[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[f];return g&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function TZ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function EZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const jZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$Z=e=>jZ.test(e);function AZ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_a(e):e,i;if(n)if($Z(n))i=n;else{if(n.includes("//")){let s=n;n=Kj(n),rb(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?i=Yw(n.substring(1),"/"):i=Yw(n,t)}else i=t;return{pathname:i,search:IZ(r),hash:NZ(o)}}function Yw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function RZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ob(e,t){let n=RZ(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ib(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=_a(e):(o=vc({},e),Je(!o.pathname||!o.pathname.includes("?"),Qh("?","pathname","search",o)),Je(!o.pathname||!o.pathname.includes("#"),Qh("#","pathname","hash",o)),Je(!o.search||!o.search.includes("#"),Qh("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=AZ(o,a),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Kj=e=>e.replace(/\/\/+/g,"/"),Oo=e=>Kj(e.join("/")),MZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gj=["post","put","patch","delete"];new Set(Gj);const zZ=["get",...Gj];new Set(zZ);/** - * React Router v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=ib(c,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Oo([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,i,e])}const BZ=h.createContext(null);function FZ(e){let t=h.useContext(oo).outlet;return t&&h.createElement(BZ.Provider,{value:e},t)}function yp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(ro),{matches:o}=h.useContext(oo),{pathname:i}=Ea(),s=JSON.stringify(ob(o,r.v7_relativeSplatPath));return h.useMemo(()=>ib(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function VZ(e,t){return WZ(e,t)}function WZ(e,t,n,r){Ta()||Je(!1);let{navigator:o}=h.useContext(ro),{matches:i}=h.useContext(oo),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Ea(),d;if(t){var f;let x=typeof t=="string"?_a(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||Je(!1),d=x}else d=c;let p=d.pathname||"/",g=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=mZ(e,{pathname:g}),y=qZ(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Oo([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Oo([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?h.createElement(vp.Provider,{value:{location:yc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Eo.Pop}},y):y}function UZ(){let e=ZZ(),t=DZ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const HZ=h.createElement(UZ,null);class KZ extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(oo.Provider,{value:this.props.routeContext},h.createElement(Xj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GZ(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(gp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(oo.Provider,{value:t},r)}function qZ(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Je(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,m=!1,y=null,x=null;n&&(g=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||HZ,l&&(c<0&&p===0?(eJ("route-fallback"),m=!0,x=null):c===p&&(m=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,p+1)),v=()=>{let S;return g?S=y:m?S=x:f.route.Component?S=h.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,h.createElement(GZ,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?h.createElement(KZ,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var Qj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Qj||{}),Zj=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zj||{});function XZ(e){let t=h.useContext(gp);return t||Je(!1),t}function YZ(e){let t=h.useContext(qj);return t||Je(!1),t}function QZ(e){let t=h.useContext(oo);return t||Je(!1),t}function Jj(e){let t=QZ(),n=t.matches[t.matches.length-1];return n.route.id||Je(!1),n.route.id}function ZZ(){var e;let t=h.useContext(Xj),n=YZ(),r=Jj();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JZ(){let{router:e}=XZ(Qj.UseNavigateStable),t=Jj(Zj.UseNavigateStable),n=h.useRef(!1);return Yj(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,yc({fromRouteId:t},i)))},[e,t])}const Qw={};function eJ(e,t,n){Qw[e]||(Qw[e]=!0)}function tJ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function bc(e){let{to:t,replace:n,state:r,relative:o}=e;Ta()||Je(!1);let{future:i,static:s}=h.useContext(ro),{matches:a}=h.useContext(oo),{pathname:l}=Ea(),c=Tr(),d=ib(t,ob(a,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return h.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function e$(e){return FZ(e.context)}function Qt(e){Je(!1)}function nJ(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Eo.Pop,navigator:i,static:s=!1,future:a}=e;Ta()&&Je(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:s,future:yc({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=_a(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:m="default"}=r,y=h.useMemo(()=>{let x=ga(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:g,key:m},navigationType:o}},[l,d,f,p,g,m,o]);return y==null?null:h.createElement(ro.Provider,{value:c},h.createElement(vp.Provider,{children:n,value:y}))}function rJ(e){let{children:t,location:n}=e;return VZ(Zg(t),n)}new Promise(()=>{});function Zg(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let i=[...t,o];if(r.type===h.Fragment){n.push.apply(n,Zg(r.props.children,i));return}r.type!==Qt&&Je(!1),!r.props.index||!r.props.children||Je(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Zg(r.props.children,i)),n.push(s)}),n}/** - * React Router DOM v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c&&Zw?Zw(()=>l(f)):l(f)},[l,c]);return h.useLayoutEffect(()=>s.listen(d),[s,d]),h.useEffect(()=>tJ(r),[r]),h.createElement(nJ,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const fJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ht=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,p=t$(t,sJ),{basename:g}=h.useContext(ro),m,y=!1;if(typeof c=="string"&&pJ.test(c)&&(m=c,fJ))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),C=ga(w.pathname,g);w.origin===S.origin&&C!=null?c=C+w.search+w.hash:y=!0}catch{}let x=LZ(c,{relative:o}),b=mJ(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:f});function v(S){r&&r(S),S.defaultPrevented||b(S)}return h.createElement("a",mf({},p,{href:m||x,onClick:y||i?r:v,ref:n,target:l}))}),n$=h.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:d}=t,f=t$(t,aJ),p=yp(l,{relative:f.relative}),g=Ea(),m=h.useContext(qj),{navigator:y,basename:x}=h.useContext(ro),b=m!=null&&gJ(p)&&c===!0,v=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=g.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(S=S.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&x&&(w=ga(w,x)||w);const C=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=S===v||!s&&S.startsWith(v)&&S.charAt(C)==="/",k=w!=null&&(w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/"),T={isActive:_,isPending:k,isTransitioning:b},A=_?r:void 0,$;typeof i=="function"?$=i(T):$=[i,_?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let L=typeof a=="function"?a(T):a;return h.createElement(Ht,mf({},f,{"aria-current":A,className:$,ref:n,style:L,to:l,viewTransition:c}),typeof d=="function"?d(T):d)});var Jg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jg||(Jg={}));var Jw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jw||(Jw={}));function hJ(e){let t=h.useContext(gp);return t||Je(!1),t}function mJ(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Tr(),c=Ea(),d=yp(e,{relative:s});return h.useCallback(f=>{if(iJ(f,n)){f.preventDefault();let p=r!==void 0?r:hf(c)===hf(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,d,r,o,n,e,i,s,a])}function gJ(e,t){t===void 0&&(t={});let n=h.useContext(cJ);n==null&&Je(!1);let{basename:r}=hJ(Jg.useViewTransitionState),o=yp(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ga(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ga(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qg(o.pathname,s)!=null||Qg(o.pathname,i)!=null}const vJ=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS TomTom, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"WAF ModSecurity/Coraza, TLS, JWT, isolation par démo."}];function yJ(){return u.jsxs(be,{children:[u.jsx(be,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:u.jsx(Cr,{maxW:"container.lg",children:u.jsxs($e,{spacing:6,textAlign:"center",align:"center",children:[u.jsx(qt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),u.jsx(le,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),u.jsxs($e,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[u.jsx(ke,{as:Ht,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),u.jsx(ke,{as:Ht,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),u.jsx(Cr,{maxW:"container.lg",py:16,children:u.jsx(Pa,{columns:{base:1,md:2},spacing:8,children:vJ.map(e=>u.jsxs(be,{p:6,borderWidth:"1px",borderRadius:"lg",children:[u.jsx(qt,{size:"md",mb:2,children:e.title}),u.jsx(le,{color:"gray.600",children:e.desc})]},e.title))})})]})}const bJ=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Données de démonstration pré-remplies","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte"},{name:"Pro",price:"Sur devis",period:"par mois",description:"Pour déployer la plateforme en production sur votre activité.",features:["Tout ce qui est inclus dans Démo","Déploiement production dédié","WAF, TLS, sauvegardes","GPS, paiements et notifications","Support prioritaire"],cta:"Nous contacter",highlighted:!0},{name:"Entreprise",price:"Sur mesure",period:"",description:"Multi-sites, SLA et intégrations spécifiques.",features:["Tout ce qui est inclus dans Pro","Haute disponibilité multi-régions","SLA et supervision 24/7","Intégrations sur mesure","Accompagnement dédié"],cta:"Nous contacter"}];function xJ(){return u.jsxs(Cr,{maxW:"container.lg",py:{base:12,md:20},children:[u.jsxs($e,{spacing:4,textAlign:"center",mb:12,align:"center",children:[u.jsx(qt,{size:"2xl",children:"Tarifs"}),u.jsx(le,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en production quand vous êtes prêt."})]}),u.jsx(Pa,{columns:{base:1,md:3},spacing:8,alignItems:"stretch",children:bJ.map(e=>u.jsx(SJ,{plan:e},e.name))}),u.jsxs(le,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ? ",u.jsx(wJ,{to:"/register",children:"Créez un compte"})," — un commercial vous recontacte."]})]})}function SJ({plan:e}){return u.jsxs($e,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&u.jsx(On,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),u.jsxs(be,{children:[u.jsx(qt,{size:"md",children:e.name}),u.jsx(le,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),u.jsxs(ve,{align:"baseline",spacing:2,children:[u.jsx(le,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&u.jsxs(le,{color:"gray.500",children:["/ ",e.period]})]}),u.jsx(ip,{spacing:3,flex:"1",children:e.features.map(t=>u.jsxs(jE,{display:"flex",alignItems:"flex-start",children:[u.jsx(yt,{as:kJ,color:"primary.500",mt:1,mr:2}),u.jsx(le,{fontSize:"sm",children:t})]},t))}),u.jsx(ke,{as:Ht,to:"/register",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function wJ({to:e,children:t}){return u.jsx(be,{as:Ht,to:e,color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function kJ(e){return u.jsx(yt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}const CJ="http://localhost:8080",sb="omnex.token";function ev(){return localStorage.getItem(sb)}function ek(e){localStorage.setItem(sb,e)}function tk(){localStorage.removeItem(sb)}class at extends Error{constructor(n,r){super(r);_b(this,"status");this.status=n}}async function ut(e,t,n){const r={"Content-Type":"application/json"},o=ev();o&&(r.Authorization=`Bearer ${o}`);const i=await fetch(`${CJ}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!i.ok){const s=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new at(i.status,s.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const De={login:(e,t)=>ut("POST","/auth/login",{username:e,password:t}),register:(e,t)=>ut("POST","/auth/register",{username:e,password:t}),me:()=>ut("GET","/auth/me"),logout:()=>ut("POST","/auth/logout"),listDemos:()=>ut("GET","/demos"),listMyDemos:()=>ut("GET","/demos/mine"),getDemo:e=>ut("GET",`/demos/${e}`),createDemo:e=>ut("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>ut("POST",`/demos/${e}/extend`),deleteDemo:e=>ut("DELETE",`/demos/${e}`),listCodes:()=>ut("GET","/codes"),createCode:e=>ut("POST","/codes",{username:e}),addCode:e=>ut("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>ut("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>ut("GET","/messages"),getDemoDetails:e=>ut("POST","/demos/details",{namespace:e}),updateUsername:e=>ut("POST","/profile/username",{username:e}),updatePassword:e=>ut("POST","/profile/password",{password:e}),getTelegram:()=>ut("GET","/profile/telegram"),setTelegram:e=>ut("POST","/profile/telegram",{telegram:e})},r$=h.createContext(null);function PJ({children:e}){const[t,n]=h.useState(ev()),[r,o]=h.useState(null),[i,s]=h.useState(null),[a,l]=h.useState(!!ev());h.useEffect(()=>{if(!t){l(!1);return}let m=!0;return De.me().then(y=>{m&&(o(y.role),s(y.type_abonnement))}).catch(()=>{m&&(tk(),n(null),o(null),s(null))}).finally(()=>{m&&l(!1)}),()=>{m=!1}},[]);const c=h.useCallback(async(m,y)=>{const x=await De.login(m,y);ek(x.token),n(x.token),o(x.role);const b=await De.me();s(b.type_abonnement)},[]),d=h.useCallback(async(m,y)=>{const x=await De.register(m,y);ek(x.token),n(x.token),o(x.role);const b=await De.me();s(b.type_abonnement)},[]),f=h.useCallback(async()=>{try{await De.logout()}finally{tk(),n(null),o(null),s(null)}},[]),p=h.useCallback(async()=>{const m=await De.me();s(m.type_abonnement)},[]),g=h.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:i==="premium",role:r,typeAbo:i,initializing:a,login:c,register:d,logout:f,refreshAbo:p}),[t,r,i,a,c,d,f,p]);return u.jsx(r$.Provider,{value:g,children:e})}function Xi(){const e=h.useContext(r$);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function va(e){const{toggleColorMode:t}=jc(),n=cg("Passer en mode sombre","Passer en mode clair");return u.jsx(zo,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:cg(u.jsx(TJ,{}),u.jsx(_J,{}))})}function _J(){return u.jsxs(yt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[u.jsx("circle",{cx:"12",cy:"12",r:"4"}),u.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function TJ(){return u.jsx(yt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:u.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}function EJ(){const{login:e}=Xi(),t=Tr(),n=Zo(),[r,o]=h.useState(""),[i,s]=h.useState(""),[a,l]=h.useState(!1),c=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i),t("/app",{replace:!0})}catch(f){const p=f instanceof at?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return u.jsxs(Cr,{maxW:"sm",py:20,position:"relative",children:[u.jsx(be,{position:"absolute",top:4,right:4,children:u.jsx(va,{})}),u.jsxs($e,{spacing:6,children:[u.jsxs(be,{textAlign:"center",children:[u.jsx(qt,{size:"lg",children:"Espace commercial"}),u.jsx(le,{color:"gray.500",children:"Connectez-vous pour gérer les démos."})]}),u.jsx(NT,{children:u.jsx(DT,{children:u.jsx("form",{onSubmit:c,children:u.jsxs($e,{spacing:4,children:[u.jsxs(Me,{isRequired:!0,children:[u.jsx(Ie,{children:"Nom d'utilisateur"}),u.jsx(We,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),u.jsxs(Me,{isRequired:!0,children:[u.jsx(Ie,{children:"Mot de passe"}),u.jsx(We,{type:"password",value:i,onChange:d=>s(d.target.value),autoComplete:"current-password"})]}),u.jsx(ke,{type:"submit",colorScheme:"primary",isLoading:a,children:"Se connecter"})]})})})}),u.jsxs(ve,{justify:"center",spacing:1,children:[u.jsx(le,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),u.jsx(ke,{as:Ht,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),u.jsx(ke,{as:Ht,to:"/",variant:"link",size:"sm",children:"← Retour au site"})]})]})}function jJ(){const{register:e}=Xi(),t=Tr(),n=Zo(),[r,o]=h.useState(""),[i,s]=h.useState(""),[a,l]=h.useState(""),[c,d]=h.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=i.length>=10,g=i===a,m=f&&p&&g,y=async x=>{if(x.preventDefault(),!!m){d(!0);try{await e(r.trim(),i),t("/app",{replace:!0})}catch(b){const v=b instanceof at?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:v})}finally{d(!1)}}};return u.jsxs(Cr,{maxW:"sm",py:16,position:"relative",children:[u.jsx(be,{position:"absolute",top:4,right:4,children:u.jsx(va,{})}),u.jsxs($e,{spacing:6,children:[u.jsxs(be,{textAlign:"center",children:[u.jsx(qt,{size:"lg",children:"Créer un compte"}),u.jsx(le,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),u.jsx(NT,{children:u.jsx(DT,{children:u.jsx("form",{onSubmit:y,children:u.jsxs($e,{spacing:4,children:[u.jsxs(Me,{isRequired:!0,isInvalid:r.length>0&&!f,children:[u.jsx(Ie,{children:"Nom d'utilisateur"}),u.jsx(We,{value:r,onChange:x=>o(x.target.value),autoComplete:"username"}),u.jsx(Ag,{children:"3 à 64 caractères alphanumériques."})]}),u.jsxs(Me,{isRequired:!0,isInvalid:i.length>0&&!p,children:[u.jsx(Ie,{children:"Mot de passe"}),u.jsx(We,{type:"password",value:i,onChange:x=>s(x.target.value),autoComplete:"new-password"}),u.jsx(Ag,{children:"10 caractères minimum."})]}),u.jsxs(Me,{isRequired:!0,isInvalid:a.length>0&&!g,children:[u.jsx(Ie,{children:"Confirmer le mot de passe"}),u.jsx(We,{type:"password",value:a,onChange:x=>l(x.target.value),autoComplete:"new-password"})]}),u.jsx(ke,{type:"submit",colorScheme:"primary",isLoading:c,isDisabled:!m,children:"Créer mon compte"})]})})})}),u.jsxs(ve,{justify:"center",spacing:1,children:[u.jsx(le,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),u.jsx(ke,{as:Ht,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}function ab(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function lb(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function nk(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function $J(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function AJ(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${o} h`;const i=Math.floor(n%36e5/6e4);return`${o} h ${i} min`}function RJ({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:o="Annuler",confirmColorScheme:i="red",isLoading:s=!1,onConfirm:a,onClose:l}){const c=h.useRef(null);return u.jsx(HH,{isOpen:e,leastDestructiveRef:c,onClose:l,isCentered:!0,motionPreset:"slideInBottom",children:u.jsx(Fc,{backdropFilter:"blur(2px)",children:u.jsxs(KH,{borderRadius:"xl",children:[u.jsx(Bc,{fontSize:"lg",fontWeight:"bold",children:t}),u.jsx(Oc,{color:"gray.600",children:n}),u.jsxs(z0,{gap:3,children:[u.jsx(ke,{ref:c,onClick:l,variant:"ghost",isDisabled:s,children:o}),u.jsx(ke,{colorScheme:i,onClick:a,isLoading:s,children:r})]})]})})})}function MJ({isOpen:e,onClose:t,onCreated:n}){const r=Zo(),[o,i]=h.useState(""),[s,a]=h.useState("admin"),[l,c]=h.useState(""),[d,f]=h.useState(!1),[p,g]=h.useState(""),[m,y]=h.useState(""),[x,b]=h.useState(!1),[v,S]=h.useState(""),[w,C]=h.useState(""),[_,k]=h.useState(!1),[T,A]=h.useState(""),[$,L]=h.useState(""),[X,re]=h.useState(""),[R,W]=h.useState(""),[K,N]=h.useState("failover"),[z,M]=h.useState(""),[V,G]=h.useState(""),[Z,J]=h.useState("local"),[he,de]=h.useState(""),[me,ze]=h.useState(""),[ce,q]=h.useState(!1),Y=()=>{i(""),a("admin"),c(""),f(!1),g(""),y(""),b(!1),S(""),C(""),k(!1),A(""),L(""),re(""),W(""),N("failover"),M(""),G(""),J("local"),de(""),ze("")},Se=()=>{ce||(Y(),t())},ue=async()=>{if(!o.trim()){r({status:"warning",title:"Username requis"});return}if(!s.trim()||l.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(Z==="s3"&&(!he.trim()||!me.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(_&&!T.trim()&&!X.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}const ee={username:o.trim(),adminUsername:s.trim(),adminPassword:l.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&m.trim()||void 0,nowPaymentsApiKey:x&&v.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:Z,...Z==="s3"?{s3Bucket:he.trim(),s3Endpoint:me.trim()}:{},..._?{lbBot1Username:T.trim()||void 0,lbBot1Token:$.trim()||void 0,lbBot2Username:X.trim()||void 0,lbBot2Token:R.trim()||void 0,lbStrategy:K,lbJwtTtlSeconds:z.trim()||void 0,lbHealthCheckInterval:V.trim()||void 0}:{}};q(!0);try{await De.createDemo(ee),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),Y(),n(),t()}catch(se){const tt=se instanceof at?se.message:"Erreur";r({status:"error",title:"Lancement impossible",description:tt})}finally{q(!1)}};return u.jsxs(ap,{isOpen:e,onClose:Se,size:"lg",closeOnOverlayClick:!ce,children:[u.jsx(Fc,{}),u.jsxs(D0,{children:[u.jsx(Bc,{children:"Nouvelle démo"}),u.jsx(cp,{isDisabled:ce}),u.jsx(Oc,{children:u.jsxs($e,{spacing:5,children:[u.jsxs(Me,{isRequired:!0,isDisabled:ce,children:[u.jsx(Ie,{children:"Username"}),u.jsx(We,{placeholder:"ex: acme-corp",value:o,onChange:ee=>i(ee.target.value)})]}),u.jsxs($e,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[u.jsx(le,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),u.jsx(le,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),u.jsxs(ve,{spacing:3,align:"start",children:[u.jsxs(Me,{isRequired:!0,isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Username"}),u.jsx(We,{value:s,onChange:ee=>a(ee.target.value)})]}),u.jsxs(Me,{isRequired:!0,isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Mot de passe"}),u.jsx(We,{placeholder:"8 caractères min.",value:l,onChange:ee=>c(ee.target.value),type:"password",autoComplete:"off"})]})]})]}),u.jsx(Me,{isDisabled:ce,children:u.jsxs(ve,{justify:"space-between",children:[u.jsx(Ie,{mb:0,children:"Bot Telegram"}),u.jsx(xd,{isChecked:d,onChange:ee=>f(ee.target.checked)})]})}),d&&u.jsxs($e,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Nom du bot (username)"}),u.jsx(We,{placeholder:"mon_bot",value:p,onChange:ee=>g(ee.target.value)})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Token bot Telegram"}),u.jsx(We,{placeholder:"123456:ABC-DEF...",value:m,onChange:ee=>y(ee.target.value),type:"password",autoComplete:"off"})]})]}),u.jsx(Me,{isDisabled:ce,children:u.jsxs(ve,{justify:"space-between",children:[u.jsx(Ie,{mb:0,children:"NowPayments (paiement crypto)"}),u.jsx(xd,{isChecked:x,onChange:ee=>b(ee.target.checked)})]})}),x&&u.jsxs($e,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Clé API NowPayments"}),u.jsx(We,{placeholder:"clé API du compte marchand",value:v,onChange:ee=>S(ee.target.value),type:"password",autoComplete:"off"})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Secret IPN NowPayments"}),u.jsx(We,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ee=>C(ee.target.value),type:"password",autoComplete:"off"}),u.jsx(le,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),u.jsx(Me,{isDisabled:ce,children:u.jsxs(ve,{justify:"space-between",children:[u.jsx(Ie,{mb:0,children:"Load-balancer Telegram"}),u.jsx(xd,{isChecked:_,onChange:ee=>k(ee.target.checked)})]})}),_&&u.jsxs($e,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsx(le,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),u.jsxs(ve,{spacing:3,align:"start",children:[u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Bot 1 — username"}),u.jsx(We,{placeholder:"mon_bot_1",value:T,onChange:ee=>A(ee.target.value)})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Bot 1 — token"}),u.jsx(We,{placeholder:"123456:ABC-DEF...",value:$,onChange:ee=>L(ee.target.value),type:"password",autoComplete:"off"})]})]}),u.jsxs(ve,{spacing:3,align:"start",children:[u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),u.jsx(We,{placeholder:"mon_bot_2",value:X,onChange:ee=>re(ee.target.value)})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Bot 2 — token"}),u.jsx(We,{placeholder:"123456:ABC-DEF...",value:R,onChange:ee=>W(ee.target.value),type:"password",autoComplete:"off"})]})]}),u.jsxs(ve,{spacing:3,align:"start",children:[u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Stratégie de répartition"}),u.jsxs(tj,{value:K,onChange:ee=>N(ee.target.value),children:[u.jsx("option",{value:"failover",children:"Failover"}),u.jsx("option",{value:"roundrobin",children:"Round-robin"}),u.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"TTL JWT (secondes)"}),u.jsx(We,{placeholder:"300",value:z,onChange:ee=>M(ee.target.value),type:"number"})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Intervalle health-check (s)"}),u.jsx(We,{placeholder:"30",value:V,onChange:ee=>G(ee.target.value),type:"number"})]})]})]}),u.jsxs(Me,{isDisabled:ce,children:[u.jsx(Ie,{children:"Stockage des fichiers"}),u.jsx(JE,{value:Z,onChange:ee=>J(ee),children:u.jsxs($e,{direction:"row",spacing:6,children:[u.jsx(Wg,{value:"local",children:"Local (disque du cluster)"}),u.jsx(Wg,{value:"s3",children:"S3"})]})})]}),Z==="s3"&&u.jsxs($e,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(Me,{isRequired:!0,isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Nom du bucket"}),u.jsx(We,{placeholder:"mon-bucket-demo",value:he,onChange:ee=>de(ee.target.value)})]}),u.jsxs(Me,{isRequired:!0,isDisabled:ce,children:[u.jsx(Ie,{fontSize:"sm",children:"Endpoint S3"}),u.jsx(We,{placeholder:"https://s3.exemple.com",value:me,onChange:ee=>ze(ee.target.value)})]})]})]})}),u.jsxs(z0,{children:[u.jsx(ke,{variant:"ghost",mr:3,onClick:Se,isDisabled:ce,children:"Annuler"}),u.jsx(ke,{colorScheme:"primary",onClick:ue,isLoading:ce,children:"Lancer la démo"})]})]})]})}const Zh=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function o$({state:e}){const t=Zh.every(r=>e[r.key].phase==="Running"),n=Zh.filter(r=>e[r.key].phase!=="Running").length;return u.jsxs($e,{spacing:3,children:[u.jsxs(ve,{spacing:2,children:[u.jsx(be,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),u.jsx(le,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),u.jsx(Pa,{columns:{base:1,sm:2,lg:4},spacing:3,children:Zh.map(r=>u.jsx(IJ,{title:r.label,cs:e[r.key]},r.key))})]})}function IJ({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return u.jsxs(be,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:[u.jsxs(ve,{justify:"space-between",mb:3,children:[u.jsx(le,{fontSize:"sm",fontWeight:"semibold",children:e}),u.jsxs(ve,{spacing:1.5,children:[u.jsx(be,{w:"7px",h:"7px",borderRadius:"full",bg:`${nk(t.phase)}.400`,flexShrink:0}),u.jsx(On,{colorScheme:nk(t.phase),fontSize:"10px",children:$J(t.phase)})]})]}),u.jsxs($e,{spacing:2,children:[u.jsxs(be,{children:[u.jsxs(At,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(le,{children:"CPU"}),u.jsxs(le,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),u.jsx(Vg,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),u.jsxs(be,{children:[u.jsxs(At,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(le,{children:"Mémoire"}),u.jsxs(le,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),u.jsx(Vg,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function i$(e){return u.jsx(yt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}const NJ=5e3,DJ=5e3;function zJ(){const e=Zo(),t=Tr(),[n,r]=h.useState([]),[o,i]=h.useState(!0),[s,a]=h.useState(null),[l,c]=h.useState(null),[d,f]=h.useState(!1),[p,g]=h.useState(null),[m,y]=h.useState(null),[x,b]=h.useState(!1),v=h.useCallback(async()=>{try{const k=await De.listDemos();r((k.items??[]).filter(T=>T.type_abonnement!=="premium"))}catch(k){k instanceof at&&k.status===401?t("/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);h.useEffect(()=>{v();const k=setInterval(()=>void v(),NJ);return()=>clearInterval(k)},[v]);const S=async k=>{a(k.id);try{await De.extendDemo(k.id),e({status:"success",title:"Démo prolongée de 30 jours"}),await v()}catch(T){const A=T instanceof at?T.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:A})}finally{a(null)}},w=async()=>{if(!l)return;const k=l;a(k.id);try{await De.deleteDemo(k.id),e({status:"success",title:"Démo détruite"}),c(null),await v()}catch(T){const A=T instanceof at?T.message:"Erreur";e({status:"error",title:"Destruction impossible",description:A})}finally{a(null)}},C=async k=>{if(p===k.id){g(null),y(null);return}g(k.id),y(null),b(!0);try{const T=await De.getDemoDetails(k.namespace);y(T)}catch(T){const A=T instanceof at?T.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:A}),g(null)}finally{b(!1)}};h.useEffect(()=>{const k=n.find($=>$.id===p);if(!k)return;const T=k.namespace,A=setInterval(()=>{De.getDemoDetails(T).then(y).catch(()=>{})},DJ);return()=>clearInterval(A)},[p]);const _=k=>k!=="expired"&&k!=="failed";return u.jsxs(u.Fragment,{children:[u.jsxs(At,{mb:6,align:"center",gap:4,wrap:"wrap",children:[u.jsx(qt,{size:"md",mr:4,children:"Démos"}),u.jsx(ma,{}),u.jsx(ke,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),u.jsx(MJ,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void v()}),o?u.jsx(Ln,{}):n.length===0?u.jsx(le,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):u.jsx(O0,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(up,{children:[u.jsx(F0,{children:u.jsxs(Lo,{children:[u.jsx(Ut,{children:"Namespace"}),u.jsx(Ut,{children:"Client"}),u.jsx(Ut,{children:"Statut"}),u.jsx(Ut,{children:"URL"}),u.jsx(Ut,{children:"Expire dans"}),u.jsx(Ut,{})]})}),u.jsx(B0,{children:n.map(k=>{const T=p===k.id;return u.jsxs(h.Fragment,{children:[u.jsxs(Lo,{cursor:"pointer",bg:T?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>C(k),children:[u.jsx(Et,{fontFamily:"mono",children:u.jsxs(ve,{spacing:2,children:[u.jsx(yt,{as:i$,boxSize:3,color:"gray.400",transform:T?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(le,{children:k.namespace})]})}),u.jsx(Et,{children:k.username?u.jsx(le,{children:k.username}):u.jsx(le,{color:"gray.400",children:"—"})}),u.jsx(Et,{children:u.jsx(On,{colorScheme:ab(k.status),children:lb(k.status)})}),u.jsx(Et,{children:k.status==="ready"?u.jsx(Ki,{href:k.url,color:"primary.500",isExternal:!0,onClick:A=>A.stopPropagation(),children:k.url}):u.jsx(le,{color:"gray.400",children:"—"})}),u.jsx(Et,{children:_(k.status)?AJ(k.expires_at):"—"}),u.jsx(Et,{textAlign:"right",children:u.jsxs(ve,{justify:"flex-end",children:[u.jsx(ke,{size:"sm",variant:"outline",isDisabled:!_(k.status)||s===k.id,onClick:A=>{A.stopPropagation(),S(k)},children:"+30 j"}),u.jsx(ke,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!_(k.status),onClick:A=>{A.stopPropagation(),c(k)},children:"Détruire"})]})})]}),u.jsx(Lo,{children:u.jsx(Et,{p:0,border:T?void 0:"none",colSpan:6,children:u.jsx(np,{in:T,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(be,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:x&&!m?u.jsx(At,{justify:"center",py:4,children:u.jsx(Ln,{size:"sm"})}):m?u.jsx(o$,{state:m.state}):u.jsx(le,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},k.id)})})]})}),u.jsxs(RJ,{isOpen:!!l,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!l&&s===l.id,onConfirm:w,onClose:()=>c(null),children:["La démo"," ",u.jsx(le,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:l==null?void 0:l.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]})]})}const LJ=5e3,OJ=5e3;function BJ(){const e=Zo(),t=Tr(),[n,r]=h.useState([]),[o,i]=h.useState(!0),[s,a]=h.useState(null),[l,c]=h.useState(null),[d,f]=h.useState(!1),p=h.useCallback(async()=>{try{const m=await De.listDemos();r((m.items??[]).filter(y=>y.type_abonnement==="premium"))}catch(m){m instanceof at&&m.status===401?t("/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);h.useEffect(()=>{p();const m=setInterval(()=>void p(),LJ);return()=>clearInterval(m)},[p]);const g=async m=>{if(s===m.id){a(null),c(null);return}a(m.id),c(null),f(!0);try{const y=await De.getDemoDetails(m.namespace);c(y)}catch(y){const x=y instanceof at?y.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:x}),a(null)}finally{f(!1)}};return h.useEffect(()=>{const m=n.find(b=>b.id===s);if(!m)return;const y=m.namespace,x=setInterval(()=>{De.getDemoDetails(y).then(c).catch(()=>{})},OJ);return()=>clearInterval(x)},[s]),u.jsxs(u.Fragment,{children:[u.jsx(qt,{size:"md",mb:2,children:"Démos Premium"}),u.jsx(le,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),o?u.jsx(Ln,{}):n.length===0?u.jsx(le,{color:"gray.500",children:"Aucune démo premium pour le moment."}):u.jsx(O0,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(up,{children:[u.jsx(F0,{children:u.jsxs(Lo,{children:[u.jsx(Ut,{children:"Namespace"}),u.jsx(Ut,{children:"Client"}),u.jsx(Ut,{children:"Statut"}),u.jsx(Ut,{children:"URL"})]})}),u.jsx(B0,{children:n.map(m=>{const y=s===m.id;return u.jsxs(h.Fragment,{children:[u.jsxs(Lo,{cursor:"pointer",bg:y?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>g(m),children:[u.jsx(Et,{fontFamily:"mono",children:u.jsxs(ve,{spacing:2,children:[u.jsx(yt,{as:i$,boxSize:3,color:"gray.400",transform:y?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(le,{children:m.namespace})]})}),u.jsx(Et,{children:m.username||u.jsx(le,{color:"gray.400",children:"—"})}),u.jsx(Et,{children:u.jsx(On,{colorScheme:ab(m.status),children:lb(m.status)})}),u.jsx(Et,{children:m.status==="ready"?u.jsx(Ki,{href:m.url,color:"primary.500",isExternal:!0,onClick:x=>x.stopPropagation(),children:m.url}):u.jsx(le,{color:"gray.400",children:"—"})})]}),u.jsx(Lo,{children:u.jsx(Et,{p:0,border:y?void 0:"none",colSpan:4,children:u.jsx(np,{in:y,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(be,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:d&&!l?u.jsx(Ln,{size:"sm"}):l?u.jsx(o$,{state:l.state}):u.jsx(le,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},m.id)})})]})})]})}const FJ=1e4;function VJ(){const e=Zo(),t=Tr(),[n,r]=h.useState([]),[o,i]=h.useState(!0),[s,a]=h.useState(null),[l,c]=h.useState(""),[d,f]=h.useState(null),p=h.useCallback(async()=>{try{const y=await De.listCodes();r(y.items??[])}catch(y){y instanceof at&&y.status===401?t("/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{i(!1)}},[t,e]);h.useEffect(()=>{p();const y=setInterval(()=>void p(),FJ);return()=>clearInterval(y)},[p]);const g=async y=>{if(y.preventDefault(),!l.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}a("generate");try{const x=await De.createCode(l.trim());f(x.code),c(""),e({status:"success",title:"Code généré avec succès !"}),await p()}catch(x){const b=x instanceof at?x.message:"Erreur";e({status:"error",title:"Génération impossible",description:b})}finally{a(null)}},m=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const b=document.createElement("textarea");b.value=y,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();const v=document.execCommand("copy");document.body.removeChild(b),e(v?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return u.jsxs(u.Fragment,{children:[u.jsxs(At,{mb:6,align:"center",children:[u.jsx(qt,{size:"md",children:"Gestion des codes de souscription"}),u.jsx(ma,{})]}),u.jsx(be,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:u.jsx("form",{onSubmit:g,children:u.jsxs(ff,{spacing:4,align:"stretch",children:[u.jsxs($e,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(Me,{isRequired:!0,children:[u.jsx(Ie,{children:"Nom d\\'utilisateur"}),u.jsx(We,{type:"text",value:l,onChange:y=>c(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:s==="generate",maxLength:64})]}),u.jsx(ke,{colorScheme:"primary",type:"submit",isLoading:s==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),d&&u.jsxs(be,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[u.jsxs(le,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",u.jsx("strong",{children:l})," :"]}),u.jsxs(ve,{children:[u.jsx(le,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),u.jsx(ke,{size:"sm",variant:"outline",onClick:()=>m(d),children:"Copier"})]})]})]})})}),o?u.jsx(Ln,{}):n.length===0?u.jsx(le,{color:"gray.500",children:"Aucun code de souscription généré."}):u.jsx(O0,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(up,{children:[u.jsx(F0,{children:u.jsxs(Lo,{children:[u.jsx(Ut,{children:"ID"}),u.jsx(Ut,{children:"Utilisateur"}),u.jsx(Ut,{children:"Code"}),u.jsx(Ut,{children:"Date de création"}),u.jsx(Ut,{})]})}),u.jsx(B0,{children:n.map(y=>u.jsxs(Lo,{children:[u.jsxs(Et,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),u.jsx(Et,{children:u.jsx(On,{colorScheme:"gray",px:2,py:1,children:y.username})}),u.jsx(Et,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),u.jsx(Et,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),u.jsx(Et,{textAlign:"right",children:u.jsx(ke,{size:"sm",variant:"outline",onClick:()=>m(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function WJ(){const e=Zo(),t=Tr(),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,a]=h.useState(!0),[l,c]=h.useState(!1),[d,f]=h.useState(""),[p,g]=h.useState(!1),[m,y]=h.useState([]),[x,b]=h.useState(!0),v=h.useCallback(async()=>{try{const T=await De.me();r(T.type_abonnement??null),i(T.expired_at?new Date(T.expired_at):null)}catch(T){T instanceof at&&T.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{a(!1)}},[t,e]),S=h.useCallback(async()=>{try{const T=await De.listMyDemos();y(T.items??[])}catch{}finally{b(!1)}},[]);h.useEffect(()=>{v(),S()},[v,S]);const w=async T=>{if(T.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}c(!0);try{await De.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),g(!1),await v()}catch(A){const $=A instanceof at?A.message:"Erreur";e({status:"error",title:"Code invalide",description:$})}finally{c(!1)}},C=n==="premium",_=!C||p,k=o?Math.ceil((o.getTime()-Date.now())/(1e3*60*60*24)):null;return u.jsxs(u.Fragment,{children:[u.jsxs(At,{mb:6,align:"center",children:[u.jsx(qt,{size:"md",children:"Ma démo"}),u.jsx(ma,{})]}),u.jsx(be,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?u.jsx(Ln,{size:"sm"}):m.length===0?u.jsx(le,{color:"gray.500",children:"Aucune démo pour le moment."}):u.jsx(ff,{align:"stretch",spacing:3,children:m.map(T=>u.jsxs(ve,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[T.status==="ready"?u.jsx(Ki,{href:T.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:T.url}):u.jsx(le,{color:"gray.400",fontFamily:"mono",children:T.url||"—"}),u.jsx(On,{colorScheme:ab(T.status),children:lb(T.status)})]},T.id))})}),u.jsxs(At,{mb:6,align:"center",children:[u.jsx(qt,{size:"md",children:"Mon abonnement"}),u.jsx(ma,{})]}),u.jsx(be,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s?u.jsx(Ln,{}):u.jsxs(ff,{align:"stretch",spacing:4,children:[u.jsxs(ve,{flexWrap:"wrap",rowGap:2,children:[u.jsx(le,{color:"gray.400",children:"Statut actuel :"}),u.jsx(On,{colorScheme:C?"purple":"gray",px:2,py:1,children:C?"Premium":"Demo"}),C&&!p&&u.jsx(ke,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>g(!0),children:"Renouveler avec un nouveau code"})]}),C&&o&&u.jsx(le,{fontSize:"sm",color:k!==null&&k<=5?"orange.400":"gray.400",children:k!==null&&k>0?`Expire dans ${k} jour${k>1?"s":""} (le ${o.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${o.toLocaleDateString("fr-FR")}`}),_&&u.jsx("form",{onSubmit:w,children:u.jsxs($e,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(Me,{isRequired:!0,children:[u.jsx(Ie,{children:C?"Nouveau code de renouvellement":"Code de souscription"}),u.jsx(We,{type:"text",value:d,onChange:T=>f(T.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:l,fontFamily:"mono",letterSpacing:"wide"})]}),u.jsxs(ve,{flexShrink:0,children:[u.jsx(ke,{colorScheme:"primary",type:"submit",isLoading:l,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:C?"Renouveler":"Activer"}),C&&u.jsx(ke,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{g(!1),f("")},isDisabled:l,children:"Annuler"})]})]})})]})})]})}const UJ=rp({displayName:"EditIcon",path:u.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[u.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),u.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),HJ=rp({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),KJ=rp({viewBox:"0 0 14 14",path:u.jsx("g",{fill:"currentColor",children:u.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function rk(e){return e==="admin"?"Administrateur":"Client"}function GJ(e){return e==="admin"?"purple":"blue"}function qJ(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function XJ(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Fu(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=KV();return e?u.jsxs(c0,{size:"sm",spacing:1,children:[u.jsx(zo,{"aria-label":"Enregistrer",icon:u.jsx(KJ,{}),...t()}),u.jsx(zo,{"aria-label":"Annuler",icon:u.jsx(HJ,{}),...n()})]}):u.jsx(zo,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:u.jsx(UJ,{}),...r()})}function YJ(){const e=Zo(),t=Tr(),{logout:n}=Xi(),[r,o]=h.useState(null),[i,s]=h.useState(!0),[a,l]=h.useState(!1),[c,d]=h.useState(!1),[f,p]=h.useState(!1),[g,m]=h.useState(0),[y,x]=h.useState(""),[b,v]=h.useState(!1),[S,w]=h.useState(!1);h.useEffect(()=>{let A=!1;return(async()=>{try{const[$,L]=await Promise.all([De.me(),De.getTelegram()]);A||(o($),x(L.telegram??""))}catch($){if($ instanceof at&&$.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{A||s(!1)}})(),()=>{A=!0}},[t,e]);const C=async A=>{const $=A.trim();if(!(!r||!$||$===r.username)){d(!0);try{const L=await De.updateUsername($);o({...r,username:L.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(L){if(L instanceof at&&L.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:L instanceof at?L.message:void 0})}finally{d(!1)}}},_=async A=>{const $=A.trim();if(!r||$.length<8){$.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),m(L=>L+1);return}p(!0);try{await De.updatePassword($),e({status:"success",title:"Mot de passe mis à jour"})}catch(L){if(L instanceof at&&L.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:L instanceof at?L.message:void 0})}finally{p(!1),m(L=>L+1)}},k=async A=>{const $=A.trim();if(!$){w(!1);return}v(!0);try{const L=await De.setTelegram($);x(L.telegram),w(!1),e({status:"success",title:"Telegram enregistré"})}catch(L){if(L instanceof at&&L.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:L instanceof at?L.message:void 0})}finally{v(!1)}},T=async()=>{l(!0);try{await De.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{l(!1)}};return u.jsx(be,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:u.jsxs(Cr,{maxW:"container.md",children:[u.jsxs($e,{spacing:3,mb:8,children:[u.jsx(qt,{size:"lg",children:"Mon profil"}),u.jsx(le,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),u.jsx(be,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:i?u.jsx(At,{justify:"center",py:10,children:u.jsx(Ln,{})}):r?u.jsxs($e,{spacing:8,children:[u.jsxs(At,{align:"center",gap:5,wrap:"wrap",children:[u.jsx(l0,{name:r.username,size:"xl"}),u.jsxs(be,{children:[u.jsx(cl,{defaultValue:r.username,onSubmit:C,isDisabled:c,submitOnBlur:!1,children:u.jsxs(ve,{spacing:2,children:[u.jsx(dl,{as:qt,size:"md",fontFamily:"mono"}),u.jsx(ul,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),u.jsx(Fu,{})]})},r.username),u.jsxs(ve,{mt:2,spacing:2,children:[u.jsx(On,{colorScheme:GJ(r.role),children:rk(r.role)}),r.type_abonnement&&u.jsx(On,{colorScheme:qJ(r.type_abonnement),children:r.type_abonnement})]})]})]}),u.jsx(ca,{borderColor:"chakra-border-color"}),u.jsxs(Pa,{columns:{base:1,sm:2},spacing:6,children:[u.jsxs(di,{children:[u.jsx(fi,{children:"Identifiant"}),u.jsx(fo,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),u.jsxs(di,{children:[u.jsx(fi,{children:"Rôle"}),u.jsx(fo,{fontSize:"md",children:rk(r.role)})]}),u.jsxs(di,{children:[u.jsx(fi,{children:"Type d'abonnement"}),u.jsx(fo,{fontSize:"md",children:r.type_abonnement||"—"})]}),u.jsxs(di,{children:[u.jsx(fi,{children:"Mot de passe"}),u.jsx(cl,{defaultValue:"",placeholder:"••••••••",onSubmit:_,isDisabled:f,submitOnBlur:!1,children:u.jsxs(ve,{spacing:2,children:[u.jsx(dl,{as:fo,fontSize:"md",fontFamily:"mono"}),u.jsx(ul,{type:"password",fontSize:"md",fontFamily:"mono"}),u.jsx(Fu,{})]})},g)]}),u.jsxs(di,{children:[u.jsx(fi,{children:"Telegram"}),y?u.jsx(cl,{defaultValue:y,onSubmit:k,isDisabled:b,submitOnBlur:!1,children:u.jsxs(ve,{spacing:2,children:[u.jsx(dl,{as:fo,fontSize:"md",fontFamily:"mono"}),u.jsx(ul,{fontSize:"md",fontFamily:"mono"}),u.jsx(Fu,{})]})},y):S?u.jsx(cl,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:k,onCancel:()=>w(!1),isDisabled:b,submitOnBlur:!1,children:u.jsxs(ve,{spacing:2,children:[u.jsx(dl,{as:fo,fontSize:"md",fontFamily:"mono"}),u.jsx(ul,{fontSize:"md",fontFamily:"mono"}),u.jsx(Fu,{})]})}):u.jsx(ke,{size:"sm",variant:"outline",onClick:()=>w(!0),children:"Ajouter mon Telegram"})]}),u.jsxs(di,{children:[u.jsx(fi,{children:"Expire le"}),u.jsx(fo,{fontSize:"md",children:XJ(r.expired_at)})]})]}),u.jsx(ca,{borderColor:"chakra-border-color"}),u.jsx(At,{justify:"flex-end",children:u.jsx(ke,{colorScheme:"red",variant:"outline",isLoading:a,onClick:T,children:"Se déconnecter"})})]}):u.jsx(le,{color:"gray.500",children:"Aucune information disponible."})})]})})}const ok=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/contact",label:"Contact",end:!1}],QJ=()=>u.jsx(be,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(be,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function ZJ(){const{isOpen:e,onOpen:t,onClose:n}=Pc();return u.jsxs(be,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[u.jsx(Cr,{maxW:"container.lg",children:u.jsxs(At,{h:16,align:"center",justify:"space-between",children:[u.jsxs(ve,{spacing:8,children:[u.jsx(be,{as:Ht,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),u.jsx(ve,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:ok.map(r=>u.jsx(ik,{to:r.to,end:r.end,children:r.label},r.to))})]}),u.jsxs(ve,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(va,{}),u.jsx(ke,{as:Ht,to:"/login",variant:"ghost",size:"sm",children:"Espace commercial"}),u.jsx(ke,{as:Ht,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),u.jsxs(ve,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(va,{}),u.jsx(zo,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:u.jsx(QJ,{})})]})]})}),u.jsxs(YE,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[u.jsx(Fc,{}),u.jsxs(L0,{bg:"chakra-body-bg",children:[u.jsx(cp,{size:"lg"}),u.jsx(Bc,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),u.jsxs(Oc,{py:6,children:[u.jsx($e,{as:"nav",spacing:1,children:ok.map(r=>u.jsx(ik,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),u.jsx(ca,{my:6}),u.jsxs($e,{spacing:3,children:[u.jsx(ke,{as:Ht,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace commercial"}),u.jsx(ke,{as:Ht,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function ik({to:e,end:t,children:n,onClick:r,mobile:o=!1}){return u.jsx(ke,{as:n$,to:e,end:t,size:o?"lg":"sm",variant:"ghost",justifyContent:o?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function JJ(){return u.jsx(be,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:u.jsxs(Cr,{maxW:"container.lg",py:12,children:[u.jsxs(Pa,{columns:{base:1,md:4},spacing:8,children:[u.jsxs($e,{spacing:3,children:[u.jsx(le,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),u.jsx(le,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),u.jsxs(sk,{title:"Produit",children:[u.jsx(Jh,{to:"/",children:"Présentation"}),u.jsx(Jh,{to:"/tarifs",children:"Tarifs"}),u.jsx(Jh,{to:"/register",children:"Créer un compte"})]}),u.jsxs(sk,{title:"Ressources",children:[u.jsx(Xa,{href:"#",children:"Documentation"}),u.jsx(Xa,{href:"#",children:"Statut"}),u.jsx(Xa,{href:"#",children:"Sécurité"})]})]}),u.jsx(ca,{my:8}),u.jsxs(ve,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[u.jsxs(le,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),u.jsxs(ve,{spacing:6,fontSize:"sm",color:"gray.500",children:[u.jsx(Xa,{href:"#",children:"Mentions légales"}),u.jsx(Xa,{href:"#",children:"Confidentialité"})]})]})]})})}function sk({title:e,children:t}){return u.jsxs($e,{spacing:2,children:[u.jsx(le,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function Jh({to:e,children:t}){return u.jsx(Ki,{as:Ht,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Xa({href:e,children:t}){return u.jsx(Ki,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function eee(){return u.jsxs(At,{direction:"column",minH:"100vh",children:[u.jsx(ZJ,{}),u.jsx(be,{as:"main",flex:"1",children:u.jsx(e$,{})}),u.jsx(JJ,{})]})}const tee=()=>u.jsx(be,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(be,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function nee(){const{logout:e,isAdmin:t,isClient:n}=Xi(),r=Tr(),{isOpen:o,onOpen:i,onClose:s}=Pc(),a=async()=>{await e(),r("/login",{replace:!0})},l=t?"Admin":n?"Client":"Utilisateur",c=t?"purple":"gray";return u.jsxs(be,{minH:"100vh",bg:"chakra-subtle-bg",children:[u.jsxs(At,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[u.jsxs(qt,{size:"sm",as:Ht,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(ve,{spacing:1,display:{base:"none",md:"flex"},children:[n&&u.jsx(cr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&u.jsx(cr,{to:"/app/profile",children:"Profile"}),t&&u.jsx(cr,{to:"/app/demos",children:"Démos"}),t&&u.jsx(cr,{to:"/app/premium",children:"Premium"}),t&&u.jsx(cr,{to:"/app/codes",children:"Codes"})]}),u.jsx(ma,{}),u.jsxs(ve,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(On,{colorScheme:c,children:l}),u.jsx(va,{}),u.jsx(ke,{size:"sm",variant:"outline",onClick:a,children:"Déconnexion"})]}),u.jsxs(ve,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(On,{colorScheme:c,children:l}),u.jsx(va,{}),u.jsx(zo,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:i,icon:u.jsx(tee,{})})]})]}),u.jsxs(YE,{isOpen:o,placement:"right",onClose:s,size:"xs",children:[u.jsx(Fc,{}),u.jsxs(L0,{bg:"chakra-body-bg",children:[u.jsx(cp,{size:"lg"}),u.jsxs(Bc,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(Oc,{py:6,children:[u.jsxs($e,{as:"nav",spacing:1,children:[n&&u.jsx(cr,{to:"/app/subscription",onClick:s,mobile:!0,children:"Abonnement"}),t&&u.jsx(cr,{to:"/app/demos",onClick:s,mobile:!0,children:"Démos"}),t&&u.jsx(cr,{to:"/app/premium",onClick:s,mobile:!0,children:"Premium"}),t&&u.jsx(cr,{to:"/app/codes",onClick:s,mobile:!0,children:"Codes"}),(t||n)&&u.jsx(cr,{to:"/app/profile",onClick:s,mobile:!0,children:"Profile"})]}),u.jsx(ca,{my:6}),u.jsx($e,{spacing:3,children:u.jsx(ke,{variant:"outline",justifyContent:"flex-start",onClick:a,children:"Déconnexion"})})]})]})]}),u.jsx(Cr,{maxW:"container.xl",py:8,children:u.jsx(e$,{})})]})}function cr({to:e,children:t,onClick:n,mobile:r=!1}){return u.jsx(ke,{as:n$,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}function ree({children:e}){const{isAuthenticated:t,initializing:n}=Xi();return n?u.jsx(zT,{h:"100vh",children:u.jsx(Ln,{})}):t?e:u.jsx(bc,{to:"/login",replace:!0})}function em({children:e}){const{isAdmin:t}=Xi();return t?e:u.jsx(bc,{to:"/app/subscription",replace:!0})}function oee(){const{role:e}=Xi();switch(e){case"admin":return u.jsx(bc,{to:"/app/demos",replace:!0});default:return u.jsx(bc,{to:"/app/subscription",replace:!0})}}function iee(){return u.jsxs(rJ,{children:[u.jsxs(Qt,{element:u.jsx(eee,{}),children:[u.jsx(Qt,{path:"/",element:u.jsx(yJ,{})}),u.jsx(Qt,{path:"/tarifs",element:u.jsx(xJ,{})})]}),u.jsx(Qt,{path:"/login",element:u.jsx(EJ,{})}),u.jsx(Qt,{path:"/register",element:u.jsx(jJ,{})}),u.jsxs(Qt,{path:"/app",element:u.jsx(ree,{children:u.jsx(nee,{})}),children:[u.jsx(Qt,{index:!0,element:u.jsx(oee,{})}),u.jsx(Qt,{path:"demos",element:u.jsx(em,{children:u.jsx(zJ,{})})}),u.jsx(Qt,{path:"codes",element:u.jsx(em,{children:u.jsx(VJ,{})})}),u.jsx(Qt,{path:"premium",element:u.jsx(em,{children:u.jsx(BJ,{})})}),u.jsx(Qt,{path:"subscription",element:u.jsx(WJ,{})}),u.jsx(Qt,{path:"profile",element:u.jsx(YJ,{})})]}),u.jsx(Qt,{path:"*",element:u.jsx(bc,{to:"/",replace:!0})})]})}const see={initialColorMode:"system",useSystemColorMode:!1},ak=f0({config:see,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},yj);nm.createRoot(document.getElementById("root")).render(u.jsxs(Jt.StrictMode,{children:[u.jsx(VV,{initialColorMode:ak.config.initialColorMode}),u.jsx(HY,{theme:ak,children:u.jsx(PJ,{children:u.jsx(dJ,{children:u.jsx(iee,{})})})})]})); diff --git a/web/dist/index.html b/web/dist/index.html index 570ddce..173a480 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Omnex — Plateforme de gestion de commandes & livraison - +
diff --git a/web/package-lock.json b/web/package-lock.json index 0c6e074..07e5f5b 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -12,6 +12,9 @@ "@chakra-ui/react": "^2.10.4", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", + "@fortawesome/fontawesome-svg-core": "^7.3.1", + "@fortawesome/free-solid-svg-icons": "^7.3.1", + "@fortawesome/react-fontawesome": "^3.5.0", "@saas-ui/react": "^2.11.0", "framer-motion": "^11.11.0", "react": "^18.3.1", @@ -89,6 +92,7 @@ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", @@ -382,6 +386,7 @@ "resolved": "https://registry.npmjs.org/@chakra-ui/react/-/react-2.10.10.tgz", "integrity": "sha512-uahxAfb83/O9fcgBm3ew/nVeQiNgE0uQf8NdQQp3I6u/PCuR2OjSEneV4Ba86W8z50Ppwcxvf9XDk5btYceggQ==", "license": "MIT", + "peer": true, "dependencies": { "@chakra-ui/hooks": "2.4.6", "@chakra-ui/styled-system": "2.12.5", @@ -407,6 +412,7 @@ "resolved": "https://registry.npmjs.org/@chakra-ui/styled-system/-/styled-system-2.12.5.tgz", "integrity": "sha512-sy39LJWnOvGcOHYBXQxT3bC5zj+R7GVUgxzkkoqx+auV5KVKOOE5aZD+POsciWEt86bqdEa+LpFm+E5pcdbkyg==", "license": "MIT", + "peer": true, "dependencies": { "@chakra-ui/utils": "2.2.6", "csstype": "^3.1.2" @@ -541,6 +547,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" }, @@ -564,6 +571,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" } @@ -626,6 +634,7 @@ "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz", "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==", "license": "MIT", + "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.13.5", @@ -669,6 +678,7 @@ "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz", "integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==", "license": "MIT", + "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.13.5", @@ -1105,6 +1115,53 @@ "node": ">=12" } }, + "node_modules/@fortawesome/fontawesome-common-types": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-7.3.1.tgz", + "integrity": "sha512-k0C0sdHmZtAo6dRDtd1Z/qcpyHbL0CKsjV8seMY/21xGhY5Wsv0XRmiI/xEEH4y2c9b1+jvgNs/3EqhV27yUEA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-svg-core": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-7.3.1.tgz", + "integrity": "sha512-BoxVN3PKnMbgStHhjoaky/oWdxHomDqmBVA24IA3KEmssFGeI7u9YT/BJceOjIum/t6TpPa/vcMKaVYQeIQ/3Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "7.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-7.3.1.tgz", + "integrity": "sha512-v0BLa0eqg7ubvVWeNSHVBs8fWH/GJicERZoJaxJ3FE/lj67VSqzoMg9pzfZVOfLMX10y0pGwQAuxoRVVH2patg==", + "license": "(CC-BY-4.0 AND MIT)", + "dependencies": { + "@fortawesome/fontawesome-common-types": "7.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/react-fontawesome": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-3.5.0.tgz", + "integrity": "sha512-63mlRr6fiBbJ0wjr1Cf6dsDGtP2lNvk9lnatKgxs/fIkhslsZT291hIUzJkuUkI9yr69ZvWnWfgb2qXm4QyVaA==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "@fortawesome/fontawesome-svg-core": "~6 || ~7", + "react": "^18.0.0 || ^19.0.0" + } + }, "node_modules/@hookform/resolvers": { "version": "3.10.0", "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.10.0.tgz", @@ -1739,6 +1796,7 @@ "resolved": "https://registry.npmjs.org/@saas-ui/react/-/react-2.11.4.tgz", "integrity": "sha512-rSit+RrsV1xkrli4tne1TjkEjGbkyMefNhP34iNfjbrWMuyu1F/csRx8F6tarYq7NRFmYbF6AnTY6ijgDQ2WBQ==", "license": "MIT", + "peer": true, "dependencies": { "@chakra-ui/utils": "^2.2.3", "@saas-ui/core": "2.8.1", @@ -1948,8 +2006,7 @@ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/babel__core": { "version": "7.20.5", @@ -2037,6 +2094,7 @@ "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", "devOptional": true, "license": "MIT", + "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" @@ -2048,6 +2106,7 @@ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "@types/react": "^18.0.0" } @@ -2288,7 +2347,6 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -2299,7 +2357,6 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -2394,6 +2451,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.10.44", "caniuse-lite": "^1.0.30001806", @@ -2661,8 +2719,7 @@ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/dunder-proto": { "version": "1.0.1", @@ -2884,6 +2941,7 @@ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.18.2.tgz", "integrity": "sha512-5F5Och7wrvtLVElIpclDT0CBzMVg3dL22B64aZwHtsIY8RB4mXICLrkajK4G9R+ieSAGcgrLeae2SeUTg2pr6w==", "license": "MIT", + "peer": true, "dependencies": { "motion-dom": "^11.18.1", "motion-utils": "^11.18.1", @@ -3186,6 +3244,7 @@ "integrity": "sha512-8i7LzZj7BF8uplX+ZyOlIz86V6TAsSs+np6m1kpW9u0JWi4z/1t+FzcK1aek+ybTnAC4KhBL4uXCNT0wcUIeCw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "cssstyle": "^4.1.0", "data-urls": "^5.0.0", @@ -3299,7 +3358,6 @@ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "lz-string": "bin/bin.js" } @@ -3539,7 +3597,6 @@ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -3554,8 +3611,7 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/prop-types": { "version": "15.8.1", @@ -3583,6 +3639,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", + "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -3628,6 +3685,7 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "license": "MIT", + "peer": true, "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" @@ -3670,6 +3728,7 @@ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.82.0.tgz", "integrity": "sha512-Zw/uFZ2dO+02GHlBn7JFGn8kZJ7LdM33B/0BXOovzFay+CMhf94JMw5BVu+F1tVkUKjNvBuaE3fz5BJhga10Tg==", "license": "MIT", + "peer": true, "engines": { "node": ">=18.0.0" }, @@ -4233,6 +4292,7 @@ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", diff --git a/web/package.json b/web/package.json index 555b313..6714a87 100644 --- a/web/package.json +++ b/web/package.json @@ -15,6 +15,9 @@ "@chakra-ui/react": "^2.10.4", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", + "@fortawesome/fontawesome-svg-core": "^7.3.1", + "@fortawesome/free-solid-svg-icons": "^7.3.1", + "@fortawesome/react-fontawesome": "^3.5.0", "@saas-ui/react": "^2.11.0", "framer-motion": "^11.11.0", "react": "^18.3.1", diff --git a/web/src/App.tsx b/web/src/App.tsx index fea61c0..80ca3a2 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -1,8 +1,9 @@ -import { Navigate, Route, Routes } from 'react-router-dom' +import { Navigate, Route, Routes, useLocation } from 'react-router-dom' import { Center, Spinner } from '@chakra-ui/react' import { Landing } from './pages/Landing' import { Pricing } from './pages/Pricing' import { Login } from './pages/Login' +import { AdminLogin } from './pages/AdminLogin' import { Register } from './pages/Register' import { Demos } from './pages/backoffice/Demos' import { PremiumDemos } from './pages/backoffice/PremiumDemos' @@ -14,8 +15,13 @@ import { BackofficeLayout } from './components/BackofficeLayout' import { useAuth } from './lib/auth' import type { JSX } from 'react' +// Chemins admin uniquement : un accès non authentifié y renvoie vers la +// page de connexion admin plutôt que la page client. +const ADMIN_ONLY_PATHS = ['/app/demos', '/app/premium', '/app/codes'] + function RequireAuth({ children }: { children: JSX.Element }) { const { isAuthenticated, initializing } = useAuth() + const location = useLocation() if (initializing) { return (
@@ -23,7 +29,9 @@ function RequireAuth({ children }: { children: JSX.Element }) {
) } - return isAuthenticated ? children : + if (isAuthenticated) return children + const isAdminPath = ADMIN_ONLY_PATHS.some((p) => location.pathname.startsWith(p)) + return } // Réservé à l'admin : provisioning des démos. @@ -52,6 +60,7 @@ export function App() { } /> } /> + } /> } /> {/* Back-office protégé */} diff --git a/web/src/components/BackofficeLayout.tsx b/web/src/components/BackofficeLayout.tsx index 9995db9..af88c52 100644 --- a/web/src/components/BackofficeLayout.tsx +++ b/web/src/components/BackofficeLayout.tsx @@ -28,14 +28,17 @@ const HamburgerIcon = () => ( ) +const SUPPORT_TELEGRAM_URL = 'https://t.me/OMNEX_CORP' + export function BackofficeLayout() { const { logout, isAdmin, isClient } = useAuth() const navigate = useNavigate() const { isOpen, onOpen, onClose } = useDisclosure() const onLogout = async () => { + const loginPath = isAdmin ? '/admin/login' : '/login' await logout() - navigate('/login', { replace: true }) + navigate(loginPath, { replace: true }) } const roleLabel = isAdmin ? 'Admin' : isClient ? 'Client' : 'Utilisateur' @@ -57,6 +60,9 @@ export function BackofficeLayout() { {roleLabel} + diff --git a/web/src/components/CreateDemoModal.tsx b/web/src/components/CreateDemoModal.tsx index a1d3c29..92c0297 100644 --- a/web/src/components/CreateDemoModal.tsx +++ b/web/src/components/CreateDemoModal.tsx @@ -21,6 +21,7 @@ import { useToast, } from '@chakra-ui/react' import { api, ApiError, type CreateDemoParams, type StorageDriver } from '../lib/api' +import { PasswordInput } from './PasswordInput' interface CreateDemoModalProps { isOpen: boolean @@ -179,11 +180,10 @@ export function CreateDemoModal({ isOpen, onClose, onCreated }: CreateDemoModalP Mot de passe - setAdminPassword(e.target.value)} - type="password" autoComplete="off" /> @@ -212,11 +212,10 @@ export function CreateDemoModal({ isOpen, onClose, onCreated }: CreateDemoModalP Token bot Telegram - setTelegramBotToken(e.target.value)} - type="password" autoComplete="off" /> @@ -237,21 +236,19 @@ export function CreateDemoModal({ isOpen, onClose, onCreated }: CreateDemoModalP Clé API NowPayments - setNowPaymentsApiKey(e.target.value)} - type="password" autoComplete="off" /> Secret IPN NowPayments - setNowPaymentsIpnSecret(e.target.value)} - type="password" autoComplete="off" /> @@ -287,11 +284,10 @@ export function CreateDemoModal({ isOpen, onClose, onCreated }: CreateDemoModalP Bot 1 — token - setLbBot1Token(e.target.value)} - type="password" autoComplete="off" /> @@ -307,11 +303,10 @@ export function CreateDemoModal({ isOpen, onClose, onCreated }: CreateDemoModalP Bot 2 — token - setLbBot2Token(e.target.value)} - type="password" autoComplete="off" /> diff --git a/web/src/components/Header.tsx b/web/src/components/Header.tsx index 599863f..412e564 100644 --- a/web/src/components/Header.tsx +++ b/web/src/components/Header.tsx @@ -62,7 +62,7 @@ export function Header() { + + + + + + + + ) +} diff --git a/web/src/pages/Login.tsx b/web/src/pages/Login.tsx index adcca32..71d1a3b 100644 --- a/web/src/pages/Login.tsx +++ b/web/src/pages/Login.tsx @@ -18,6 +18,7 @@ import { Link as RouterLink, useNavigate } from 'react-router-dom' import { useAuth } from '../lib/auth' import { ApiError } from '../lib/api' import { ColorModeToggle } from '../components/ColorModeToggle' +import { PasswordInput } from '../components/PasswordInput' export function Login() { const { login } = useAuth() @@ -31,7 +32,7 @@ export function Login() { e.preventDefault() setLoading(true) try { - await login(username.trim(), password) + await login(username.trim(), password, 'client') navigate('/app', { replace: true }) } catch (err) { const msg = err instanceof ApiError ? err.message : 'Connexion impossible' @@ -48,8 +49,8 @@ export function Login() { - Espace commercial - Connectez-vous pour gérer les démos. + Espace client + Connectez-vous pour gérer votre abonnement. @@ -65,8 +66,7 @@ export function Login() { Mot de passe - setPassword(e.target.value)} autoComplete="current-password" diff --git a/web/src/pages/Register.tsx b/web/src/pages/Register.tsx index 192aae1..57fa832 100644 --- a/web/src/pages/Register.tsx +++ b/web/src/pages/Register.tsx @@ -19,6 +19,7 @@ import { Link as RouterLink, useNavigate } from 'react-router-dom' import { useAuth } from '../lib/auth' import { ApiError } from '../lib/api' import { ColorModeToggle } from '../components/ColorModeToggle' +import { PasswordInput } from '../components/PasswordInput' export function Register() { const { register } = useAuth() @@ -76,8 +77,7 @@ export function Register() { 0 && !passwordValid}> Mot de passe - setPassword(e.target.value)} autoComplete="new-password" @@ -87,8 +87,7 @@ export function Register() { 0 && !passwordsMatch}> Confirmer le mot de passe - setConfirm(e.target.value)} autoComplete="new-password" diff --git a/web/src/pages/backoffice/Codes.tsx b/web/src/pages/backoffice/Codes.tsx index 9629944..0216587 100644 --- a/web/src/pages/backoffice/Codes.tsx +++ b/web/src/pages/backoffice/Codes.tsx @@ -43,7 +43,7 @@ export function Codes() { const res = await api.listCodes() setCodes(res.items ?? []) } catch (err) { - if (err instanceof ApiError && err.status === 401) navigate('/login') + if (err instanceof ApiError && err.status === 401) navigate('/admin/login') else toast({ status: 'error', title: 'Chargement des codes impossible' }) } finally { setLoading(false) diff --git a/web/src/pages/backoffice/Demos.tsx b/web/src/pages/backoffice/Demos.tsx index b77c0a4..567b8d3 100644 --- a/web/src/pages/backoffice/Demos.tsx +++ b/web/src/pages/backoffice/Demos.tsx @@ -55,7 +55,7 @@ export function Demos() { // les mélanger avec les démos d'essai ici. setDemos((res.items ?? []).filter((d) => d.type_abonnement !== 'premium')) } catch (err) { - if (err instanceof ApiError && err.status === 401) navigate('/login') + if (err instanceof ApiError && err.status === 401) navigate('/admin/login') else toast({ status: 'error', title: 'Chargement des démos impossible' }) } finally { setLoading(false) diff --git a/web/src/pages/backoffice/PremiumDemos.tsx b/web/src/pages/backoffice/PremiumDemos.tsx index 07e8ce8..12765bb 100644 --- a/web/src/pages/backoffice/PremiumDemos.tsx +++ b/web/src/pages/backoffice/PremiumDemos.tsx @@ -2,11 +2,14 @@ import { Fragment, useCallback, useEffect, useState } from 'react' import { Badge, Box, + Button, Collapse, + Flex, Heading, HStack, Icon, Link, + Spacer, Spinner, Table, TableContainer, @@ -22,6 +25,7 @@ import { useNavigate } from 'react-router-dom' import { api, ApiError, type Demo, type DemoDetails } from '../../lib/api' import { statusColor, statusLabel } from '../../lib/format' import { ChevronIcon, PodStatusPanel } from '../../components/PodStatusPanel' +import { CreateDemoModal } from '../../components/CreateDemoModal' // Un provisioning en cours => on rafraîchit régulièrement. const POLL_MS = 5000 @@ -33,6 +37,7 @@ export function PremiumDemos() { const navigate = useNavigate() const [demos, setDemos] = useState([]) const [loading, setLoading] = useState(true) + const [createModalOpen, setCreateModalOpen] = useState(false) // --- Ligne dépliée (état live des pods) --- const [expandedId, setExpandedId] = useState(null) @@ -44,7 +49,7 @@ export function PremiumDemos() { const res = await api.listDemos() setDemos((res.items ?? []).filter((d) => d.type_abonnement === 'premium')) } catch (err) { - if (err instanceof ApiError && err.status === 401) navigate('/login') + if (err instanceof ApiError && err.status === 401) navigate('/admin/login') else toast({ status: 'error', title: 'Chargement des démos impossible' }) } finally { setLoading(false) @@ -98,13 +103,25 @@ export function PremiumDemos() { return ( <> - - Démos Premium - + + + Démos Premium + + + + Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus. + setCreateModalOpen(false)} + onCreated={() => void load()} + /> + {loading ? ( ) : demos.length === 0 ? ( diff --git a/web/src/pages/backoffice/Profile.tsx b/web/src/pages/backoffice/Profile.tsx index a899de3..357a9e1 100644 --- a/web/src/pages/backoffice/Profile.tsx +++ b/web/src/pages/backoffice/Profile.tsx @@ -11,9 +11,13 @@ import { EditableInput, EditablePreview, Flex, + FormControl, + FormHelperText, + FormLabel, Heading, HStack, IconButton, + Input, SimpleGrid, Spinner, Stack, @@ -25,6 +29,8 @@ import { useToast, } from '@chakra-ui/react' import { CheckIcon, CloseIcon, EditIcon } from '@chakra-ui/icons' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons' import { useNavigate } from 'react-router-dom' import { api, ApiError } from '../../lib/api' import { useAuth } from '../../lib/auth' @@ -101,18 +107,30 @@ export function Profile() { const [updatingUsername, setUpdatingUsername] = useState(false) const [updatingPassword, setUpdatingPassword] = useState(false) const [passwordVersion, setPasswordVersion] = useState(0) + const [passwordVisible, setPasswordVisible] = useState(false) const [telegram, setTelegramState] = useState('') const [updatingTelegram, setUpdatingTelegram] = useState(false) const [addingTelegram, setAddingTelegram] = useState(false) + const [discordWebhookUrl, setDiscordWebhookUrl] = useState('') + const [telegramBotToken, setTelegramBotToken] = useState('') + const [telegramChatId, setTelegramChatId] = useState('') + const [savingAlerts, setSavingAlerts] = useState(false) + useEffect(() => { let cancelled = false ;(async () => { try { const [meRes, tgRes] = await Promise.all([api.me(), api.getTelegram()]) - if (!cancelled) { - setMe(meRes) - setTelegramState(tgRes.telegram ?? '') + if (cancelled) return + setMe(meRes) + setTelegramState(tgRes.telegram ?? '') + if (meRes.role === 'admin') { + const alertsRes = await api.getAlertSettings() + if (cancelled) return + setDiscordWebhookUrl(alertsRes.discord_webhook_url) + setTelegramBotToken(alertsRes.telegram_bot_token) + setTelegramChatId(alertsRes.telegram_chat_id) } } catch (err) { if (err instanceof ApiError && err.status === 401) { @@ -127,6 +145,33 @@ export function Profile() { return () => { cancelled = true } }, [navigate, toast]) + const handleSaveAlertSettings = async () => { + setSavingAlerts(true) + try { + const res = await api.setAlertSettings({ + discord_webhook_url: discordWebhookUrl.trim(), + telegram_bot_token: telegramBotToken.trim(), + telegram_chat_id: telegramChatId.trim(), + }) + setDiscordWebhookUrl(res.discord_webhook_url) + setTelegramBotToken(res.telegram_bot_token) + setTelegramChatId(res.telegram_chat_id) + toast({ status: 'success', title: 'Alertes enregistrées' }) + } catch (err) { + if (err instanceof ApiError && err.status === 401) { + navigate('/login') + return + } + toast({ + status: 'error', + title: "Impossible d'enregistrer les alertes", + description: err instanceof ApiError ? err.message : undefined, + }) + } finally { + setSavingAlerts(false) + } + } + const handleUpdateUsername = async (newUsername: string) => { const trimmed = newUsername.trim() if (!me || !trimmed || trimmed === me.username) return @@ -310,7 +355,19 @@ export function Profile() { > - + + } + size="sm" + variant="ghost" + tabIndex={-1} + onClick={() => setPasswordVisible((v) => !v)} + /> @@ -359,6 +416,73 @@ export function Profile() { + {me.role === 'admin' && ( + <> + + + + + Alertes monitoring + + Recevez une notification quand un pod d'une démo tombe en erreur (ou se + rétablit). Réglages propres à votre compte. + + + + + Webhook Discord + setDiscordWebhookUrl(e.target.value)} + isDisabled={savingAlerts} + /> + + + + + Bot Telegram (token) + setTelegramBotToken(e.target.value)} + isDisabled={savingAlerts} + /> + + + Telegram (chat ID) + setTelegramChatId(e.target.value)} + isDisabled={savingAlerts} + /> + + Envoyez un message au bot puis récupérez le chat_id via son API. + + + + + + + + + + )} + diff --git a/web/src/pages/backoffice/Subscription.tsx b/web/src/pages/backoffice/Subscription.tsx index 67dfc0a..d371677 100644 --- a/web/src/pages/backoffice/Subscription.tsx +++ b/web/src/pages/backoffice/Subscription.tsx @@ -93,7 +93,7 @@ export function Subscription() { return ( <> - Ma démo + {isPremium ? 'Ma plateforme' : 'Ma démo'} @@ -101,7 +101,9 @@ export function Subscription() { {demosLoading ? ( ) : demos.length === 0 ? ( - Aucune démo pour le moment. + + {isPremium ? 'Aucune plateforme pour le moment.' : 'Aucune démo pour le moment.'} + ) : ( {demos.map((d) => ( diff --git a/web/tsconfig.tsbuildinfo b/web/tsconfig.tsbuildinfo index 44d2a0c..57135b5 100644 --- a/web/tsconfig.tsbuildinfo +++ b/web/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/App.tsx","./src/main.tsx","./src/setupTests.ts","./src/theme.ts","./src/vite-env.d.ts","./src/components/BackofficeLayout.tsx","./src/components/ColorModeToggle.tsx","./src/components/ConfirmDialog.test.tsx","./src/components/ConfirmDialog.tsx","./src/components/CreateDemoModal.tsx","./src/components/Footer.tsx","./src/components/Header.tsx","./src/components/PodStatusPanel.tsx","./src/components/PublicLayout.tsx","./src/lib/api.ts","./src/lib/auth.tsx","./src/lib/format.test.ts","./src/lib/format.ts","./src/pages/Landing.tsx","./src/pages/Login.tsx","./src/pages/Pricing.tsx","./src/pages/Register.tsx","./src/pages/backoffice/Codes.tsx","./src/pages/backoffice/Demos.tsx","./src/pages/backoffice/PremiumDemos.tsx","./src/pages/backoffice/Profile.tsx","./src/pages/backoffice/Subscription.tsx"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/App.tsx","./src/main.tsx","./src/setupTests.ts","./src/theme.ts","./src/vite-env.d.ts","./src/components/BackofficeLayout.tsx","./src/components/ColorModeToggle.tsx","./src/components/ConfirmDialog.test.tsx","./src/components/ConfirmDialog.tsx","./src/components/CreateDemoModal.tsx","./src/components/Footer.tsx","./src/components/Header.tsx","./src/components/PasswordInput.tsx","./src/components/PodStatusPanel.tsx","./src/components/PublicLayout.tsx","./src/lib/api.ts","./src/lib/auth.tsx","./src/lib/format.test.ts","./src/lib/format.ts","./src/pages/AdminLogin.tsx","./src/pages/Landing.tsx","./src/pages/Login.tsx","./src/pages/Pricing.tsx","./src/pages/Register.tsx","./src/pages/backoffice/Codes.tsx","./src/pages/backoffice/Demos.tsx","./src/pages/backoffice/PremiumDemos.tsx","./src/pages/backoffice/Profile.tsx","./src/pages/backoffice/Subscription.tsx"],"version":"5.9.3"} \ No newline at end of file